/* Jensen Industry – Unified Digital Gateway (public site)
   Brand tokens come from /theme.css (admin-controlled); fallbacks below. */
:root {
  --jen-primary: #00B9F2;
  --jen-secondary: #009FD8;
  --jen-primary-rgb: 0, 185, 242;
  --jen-bg: #F5F9FC;
  --jen-text: #000000;
  --jen-radius: 12px;
  --jen-btn-radius: 10px;
  --jen-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --charcoal: #171717;
  --muted: #4A5662;
  --faint: #8597A6;
  --border: #E4EAF0;
  --white: #FFFFFF;
  --amber: #D98E04;
  --grey-status: #AEBBC6;
  --wrap: 1200px;
  --header-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--jen-font); font-size: 17px; line-height: 1.6; color: var(--jen-text); background: var(--white); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--jen-secondary); text-underline-offset: 3px; }
a:hover { color: var(--jen-text); }
h1, h2, h3 { color: var(--jen-text); margin: 0; }
p { margin: 0 0 1rem; }
address { font-style: normal; }
:focus-visible { outline: 3px solid rgba(var(--jen-primary-rgb), .55); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 200; background: var(--white); color: var(--jen-text); padding: 10px 14px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, .15); }
.skip-link:focus { left: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.ico { flex: none; width: 20px; height: 20px; }
.ico-sm { width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; padding: 12px 20px; min-height: 46px; border-radius: var(--jen-btn-radius); border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease; white-space: nowrap; }
.btn-lg { padding: 14px 24px; min-height: 52px; font-size: 16px; }
.btn-sm { padding: 7px 12px; min-height: 38px; font-size: 14px; font-weight: 600; }
.btn-primary { background: var(--jen-primary); color: var(--white); }
.btn-primary:hover { background: var(--jen-secondary); color: var(--white); }
.btn-outline { border-color: var(--border); background: var(--white); color: var(--jen-text); }
.btn-outline:hover { border-color: var(--jen-primary); color: var(--jen-text); }
.btn-disabled { background: #EEF2F6; color: #55606B; cursor: not-allowed; border-color: transparent; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: var(--jen-btn-radius); border: 2px solid var(--border); background: var(--white); color: var(--charcoal); cursor: pointer; flex: none; }
.icon-btn:hover { border-color: var(--jen-primary); color: var(--jen-secondary); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.link-btn:hover { text-decoration: underline; }
.text-link { font-weight: 700; color: var(--jen-secondary); text-decoration: none; }
.text-link:hover { text-decoration: underline; color: var(--jen-text); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--jen-text); min-width: 0; }
.brand-logo { height: 44px; width: auto; display: block; }
.brand-placeholder { color: var(--jen-secondary); width: 120px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 16px; font-weight: 800; letter-spacing: .08em; }
.brand-text small { font-size: 12.5px; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; color: var(--charcoal); font-size: 15px; font-weight: 600; text-decoration: none; border-radius: 8px; position: relative; }
.site-nav a:hover { color: var(--jen-text); background: var(--jen-bg); }
.site-nav a.is-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; background: var(--jen-primary); border-radius: 2px; }
.site-nav a.nav-admin { border: 2px solid var(--border); margin-left: 8px; padding: 8px 14px; }
.site-nav a.nav-admin:hover { border-color: var(--jen-primary); background: var(--white); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 2px solid var(--border); border-radius: 10px; background: var(--white); cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 50%; width: 20px; height: 2px; background: var(--charcoal); transform: translateX(-50%); transition: transform .2s ease; content: ''; }
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ---------- Announcement ---------- */
.announcement { background: #E8F8FE; border-bottom: 1px solid #BFEAF9; color: var(--charcoal); font-size: 15px; }
.announcement-inner { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.announcement-inner > .ico { color: var(--jen-secondary); }
.announcement-text { flex: 1; min-width: 0; }
.announcement-body p { display: inline; margin: 0; }
.announcement-close { border: 0; background: none; cursor: pointer; color: var(--muted); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; }
.announcement-close:hover { background: rgba(0, 0, 0, .05); }
.announcement[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 88px; background: var(--white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; max-width: 16ch; text-wrap: balance; }
.hero-sub { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 600; color: var(--charcoal); line-height: 1.45; margin: 24px 0 14px; max-width: 34ch; }
.hero-desc { color: var(--muted); max-width: 54ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-figure { margin: 0; position: relative; padding: 24px; border: 1px solid var(--border); border-radius: calc(var(--jen-radius) + 6px);
  background-color: #FBFDFE;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px; }
.frame { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--jen-font); }
.frame .gridline { stroke: #B8C7D3; stroke-width: 1; stroke-dasharray: 2 5; }
.frame .bubble { fill: var(--white); stroke: #7D93A5; stroke-width: 1.4; }
.frame .bubble-text { font-size: 13px; font-weight: 700; fill: #3E4C58; text-anchor: middle; }
.frame .level-text { font-size: 11px; font-weight: 600; fill: #7D93A5; }
.frame .member { stroke: var(--jen-secondary); stroke-width: 6; stroke-linecap: square; fill: none; }
.frame .brace { stroke: var(--jen-primary); stroke-width: 2; fill: none; }
.frame .baseplate { fill: var(--charcoal); }
.frame .dim { stroke: #7D93A5; stroke-width: 1; fill: none; }
.frame .dim-text { font-size: 11px; fill: #7D93A5; text-anchor: middle; font-weight: 600; }
.frame .node rect { fill: var(--charcoal); stroke: var(--white); stroke-width: 3; }
.frame .node-coming_soon rect, .frame .node-maintenance rect { fill: var(--white); stroke: #7D93A5; stroke-width: 2; }
.frame .node text { font-size: 13px; font-weight: 700; fill: var(--charcoal); paint-order: stroke; stroke: #FBFDFE; stroke-width: 5px; stroke-linejoin: round; }
.frame .node-coming_soon text, .frame .node-maintenance text { fill: #5B6B78; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .frame .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: jen-draw 1.1s cubic-bezier(.4, 0, .2, 1) forwards; }
  .frame .frame-members .draw:nth-of-type(2) { animation-delay: .1s; }
  .frame .frame-members .draw:nth-of-type(3) { animation-delay: .2s; }
  .frame .frame-members path:nth-of-type(4), .frame .frame-members path:nth-of-type(5) { animation-delay: .35s; }
  .frame .frame-members .brace { animation-delay: .6s; animation-duration: .8s; }
  .frame .node { opacity: 0; animation: jen-fade .45s ease forwards; animation-delay: 1.1s; }
  .frame .node:nth-child(2) { animation-delay: 1.2s; }
  .frame .node:nth-child(3) { animation-delay: 1.3s; }
  .frame .node:nth-child(4) { animation-delay: 1.4s; }
  .frame .node:nth-child(5) { animation-delay: 1.5s; }
  .frame .node:nth-child(6) { animation-delay: 1.6s; }
}
@keyframes jen-draw { to { stroke-dashoffset: 0; } }
@keyframes jen-fade { to { opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-apps, .section-about, .section-contact { background: var(--jen-bg); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2, .about-copy h2, .contact-grid h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; margin-bottom: 14px; }
.section-head p, .lead { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.empty-state { color: var(--muted); padding: 32px; border: 2px dashed var(--border); border-radius: var(--jen-radius); text-align: center; background: var(--white); }

/* ---------- Category chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: -12px 0 28px; }
.chip { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--border); background: var(--white); color: var(--charcoal); cursor: pointer; min-height: 40px; }
.chip:hover { border-color: var(--jen-primary); }
.chip[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }

/* ---------- Application cards ---------- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.app-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--jen-radius); padding: 28px 24px 24px; transition: border-color .15s ease; overflow: hidden; }
.app-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--jen-primary); }
.app-card.status-maintenance::before { background: var(--amber); }
.app-card.status-coming_soon::before { background: var(--grey-status); }
.app-card:hover { border-color: rgba(var(--jen-primary-rgb), .6); }
.app-card[hidden] { display: none; }
.app-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.app-logo { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--border); object-fit: contain; background: var(--white); padding: 6px; }
.app-monogram { display: grid; place-items: center; padding: 0; font-size: 22px; font-weight: 800; color: var(--jen-secondary); background: rgba(var(--jen-primary-rgb), .08); border-color: rgba(var(--jen-primary-rgb), .25); }
.status-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 4px 10px 4px 9px; border-radius: 999px; background: var(--jen-bg); white-space: nowrap; }
.status-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #1C9B4E; }
.status-maintenance .status-badge .dot { background: var(--amber); }
.status-coming_soon .status-badge .dot { background: var(--grey-status); }
.app-card h3 { font-size: 1.22rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.app-category { font-size: 13.5px; font-weight: 600; color: var(--jen-secondary); margin: 4px 0 12px; }
.app-desc { color: var(--muted); font-size: 15px; line-height: 1.55; flex: 1; margin-bottom: 22px; }
.app-card-actions { display: flex; gap: 10px; }
.app-card-actions .btn { flex: 1; }
@media (min-width: 980px) {
  .app-card.is-featured { grid-column: span 2; }
  .app-card.is-featured .app-desc { font-size: 16px; max-width: 56ch; }
}

/* ---------- Services ---------- */
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.service { display: flex; gap: 20px; padding: 28px 0; border-top: 1px solid var(--border); }
.service:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
.service-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border: 2px solid var(--jen-primary); border-radius: 10px; color: var(--jen-secondary); }
.service-icon .ico { width: 24px; height: 24px; }
.service h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; }
.service p { color: var(--muted); font-size: 15.5px; margin-bottom: 8px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.about-copy .lead { margin-bottom: 28px; }
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.highlight { background: var(--white); border: 1px solid var(--border); border-left: 5px solid var(--jen-primary); border-radius: var(--jen-radius); padding: 20px 22px; }
.highlight h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 4px; }
.highlight p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Social ---------- */
.social-list { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.social-link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 2px solid var(--border); border-radius: 999px; color: var(--charcoal); font-weight: 700; font-size: 15px; text-decoration: none; min-height: 50px; }
.social-link:hover { border-color: var(--jen-primary); color: var(--jen-text); }
.social-link .ico, .social-link img { color: var(--jen-secondary); width: 22px; height: 22px; }
.share-site { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--border); }
.share-site p { margin: 0; font-weight: 700; color: var(--charcoal); }
.share-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.contact-list { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--jen-radius); }
.contact-list li { display: flex; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ico { color: var(--jen-secondary); margin-top: 2px; }
.contact-list span { display: block; font-size: 13px; font-weight: 600; color: var(--faint); }
.contact-list a { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #B9C4CE; font-size: 15px; padding: 64px 0 0; }
.site-footer a, .site-footer .link-btn { color: #E7EDF2; text-decoration: none; }
.site-footer a:hover, .site-footer .link-btn:hover { color: var(--jen-primary); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-name { color: var(--white); font-weight: 800; letter-spacing: .08em; font-size: 16px; margin-bottom: 8px; }
.footer-head { color: var(--white); font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-social { display: flex; gap: 8px; margin-top: 18px !important; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); }
.footer-social a:hover { border-color: var(--jen-primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; padding-bottom: 28px; font-size: 14px; }
.footer-bottom p { margin: 0; }

/* ---------- Floating support widget ---------- */
.support-widget { position: fixed; z-index: 60; right: 0; top: 50%; transform: translateY(-50%); }
.support-options { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-right: 0; border-radius: 14px 0 0 14px; box-shadow: -6px 10px 30px rgba(16, 24, 40, .10); overflow: hidden; }
.support-option { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 88px; padding: 14px 6px; border: 0; border-bottom: 1px solid var(--border); background: var(--white); font: inherit; font-size: 12px; font-weight: 700; line-height: 1.2; color: var(--charcoal); cursor: pointer; text-align: center; }
.support-option:last-child { border-bottom: 0; }
.support-option .ico { color: var(--jen-secondary); width: 22px; height: 22px; }
.support-option:hover { background: rgba(var(--jen-primary-rgb), .08); }
.support-fab { display: none; }

/* ---------- Dialogs (forms) ---------- */
dialog.form-modal { width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 32px); border: 0; border-radius: 16px; padding: 0; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); color: var(--jen-text); }
dialog.form-modal::backdrop { background: rgba(23, 23, 23, .55); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 16px; background: var(--white); border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.modal-close { border: 0; background: none; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; color: var(--muted); flex: none; }
.modal-close:hover { background: var(--jen-bg); }
.modal-body { padding: 20px 24px 24px; }

/* ---------- Form controls (public) ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-field { margin-bottom: 16px; min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label, .form-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--charcoal); }
.form-field .opt { font-weight: 500; color: var(--faint); }
.form-field input:not([type=checkbox]):not([type=radio]):not([type=file]), .form-field select, .form-field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--jen-text); background: var(--white); border: 2px solid var(--border); border-radius: 10px; padding: 11px 13px; min-height: 48px; }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--jen-primary); box-shadow: 0 0 0 4px rgba(var(--jen-primary-rgb), .15); }
.form-field input[type=file] { font: inherit; font-size: 14px; width: 100%; padding: 10px; border: 2px dashed var(--border); border-radius: 10px; background: var(--jen-bg); }
.form-field [aria-invalid="true"] { border-color: #C62828 !important; }
.form-error { color: #B3261E; font-size: 13.5px; font-weight: 600; margin: 6px 0 0; }
.form-hint { color: var(--faint); font-size: 13px; margin: 6px 0 0; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-bottom: 14px; cursor: pointer; }
.form-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--jen-primary); flex: none; }
.form-note { background: var(--jen-bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: var(--charcoal); margin-bottom: 16px; }
.form-note.confidential { background: #F4F4F5; border-left: 4px solid var(--charcoal); }
.form-alert { border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: 15px; font-weight: 600; background: #FDECEE; color: #842029; border: 1px solid #F5C2C7; }
.form-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.result { text-align: left; }
.result h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.ref-box { display: grid; gap: 10px; margin: 18px 0; }
.ref-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 2px solid var(--border); border-radius: 10px; background: var(--jen-bg); flex-wrap: wrap; }
.ref-row span { font-size: 13px; font-weight: 700; color: var(--faint); display: block; }
.ref-row code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 17px; font-weight: 700; letter-spacing: .03em; color: var(--jen-text); overflow-wrap: anywhere; }
.ref-row.key { border-color: var(--jen-primary); background: rgba(var(--jen-primary-rgb), .06); }

/* ---------- Policy pages & tracking ---------- */
.page-policy main, .page-track main { padding: 56px 0 96px; background: var(--white); }
.crumb { font-size: 14px; color: var(--faint); margin-bottom: 18px; }
.crumb a { color: var(--muted); }
.policy h1, .track h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; margin-bottom: 10px; }
.policy-meta { color: var(--faint); font-size: 14.5px; margin-bottom: 32px; }
.prose { font-size: 17px; line-height: 1.7; color: #1F2933; max-width: 70ch; }
.prose h2 { font-size: 1.35rem; font-weight: 800; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.12rem; font-weight: 800; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose code { background: var(--jen-bg); padding: .1em .35em; border-radius: 4px; font-size: .9em; }

/* ---------- Ads ---------- */
.ad-slot { padding: 28px 0; background: var(--white); }
.ad-slot .wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ad-label { font-size: 12px; color: var(--faint); }
.ad-slot ins { display: block; width: 100%; min-height: 90px; }

/* ---------- Error page ---------- */
.error-page { min-height: 100vh; display: grid; place-items: center; background: var(--jen-bg); padding: 24px; }
.error-wrap { max-width: 520px; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 40px; }
.error-wrap h1 { font-size: 2rem; font-weight: 800; margin: 18px 0 10px; }
.error-brand { font-weight: 800; letter-spacing: .1em; color: var(--jen-secondary); text-decoration: none; font-size: 14px; }
.muted { color: var(--faint); }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .support-widget { top: auto; bottom: calc(var(--cookie-h, 0px) + max(20px, env(safe-area-inset-bottom))); right: max(20px, env(safe-area-inset-right)); transform: none; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
  .support-fab { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--jen-primary); color: var(--white); cursor: pointer; box-shadow: 0 10px 28px rgba(var(--jen-primary-rgb), .45); order: 2; }
  .support-fab .ico { width: 26px; height: 26px; }
  .support-fab[aria-expanded="true"] { background: var(--charcoal); box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
  .support-options { display: none; order: 1; border-radius: 14px; border-right: 1px solid var(--border); flex-direction: column; }
  .support-widget.open .support-options { display: flex; }
  .support-option { flex-direction: row; width: auto; min-width: 210px; padding: 14px 18px; font-size: 15px; gap: 12px; text-align: left; }
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: 16ch; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1180px) {
  .nav-toggle { display: inline-block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: 0 16px 30px rgba(16, 24, 40, .08); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 2px; }
  .site-nav a { padding: 14px 12px; font-size: 16px; }
  .site-nav a.is-active::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
  .site-nav a.nav-admin { margin: 10px 0 0; justify-content: center; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  :root { --header-h: 68px; }
  .wrap { padding: 0 18px; }
  .brand-logo { height: 38px; }
  .brand-placeholder { width: 100px; }
  .brand-text small { display: none; }
  .hero { padding: 44px 0 56px; }
  .hero-figure { padding: 12px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section { padding: 64px 0; }
  .service-list { grid-template-columns: 1fr; }
  .service:nth-last-child(2) { border-bottom: 0; }
  .form-grid { grid-template-columns: 1fr; }
  dialog.form-modal { width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; margin: 0; border-radius: 0; }
  .modal-head { padding: 16px 18px 12px; }
  .modal-body { padding: 16px 18px 96px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .support-widget, .site-footer, .announcement, #cookie-banner { display: none !important; }
}
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--charcoal); color: var(--white); padding: 12px 18px; border-radius: 10px; font-size: 15px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 300; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* ---------- Tracking ---------- */
.track .lead { margin-bottom: 28px; }
.track-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--jen-radius); padding: 24px; margin-bottom: 24px; }
.track-card .chips { margin: 4px 0 20px; }
.track-summary { border: 1px solid var(--border); border-top: 5px solid var(--jen-primary); border-radius: var(--jen-radius); padding: 22px 24px; margin: 18px 0 32px; }
.track-summary dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 24px; margin: 0 0 16px; }
.track-summary dt { font-size: 13px; color: var(--faint); font-weight: 700; }
.track-summary dd { margin: 2px 0 0; font-weight: 700; }
.track-subject { font-size: 1.2rem; font-weight: 800; }
.track-status { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--jen-bg); }
.track-status.status-resolved, .track-status.status-closed { background: #E7F6EC; color: #0A6B2D; }
.track-status.status-rejected { background: #FDECEE; color: #9B1C1C; }
.track-h { font-size: 1.15rem; font-weight: 800; margin: 0 0 14px; }
.track-timeline { list-style: none; margin: 0 0 32px; padding: 0; border-left: 2px solid var(--border); }
.track-timeline li { position: relative; padding: 0 0 20px 22px; }
.track-files { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 8px; }
.track-files a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.track-files .ico { width: 16px; height: 16px; }
.track-timeline li::before { content: ''; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 4px; background: var(--white); border: 3px solid var(--jen-primary); }
.track-timeline li.tl-system::before { border-color: var(--grey-status); }
.track-timeline li.tl-visitor::before { border-color: var(--charcoal); }
.tl-meta { font-size: 14px; color: var(--faint); margin: 0 0 4px; }
.tl-meta strong { color: var(--charcoal); }
.tl-body { margin: 0; white-space: normal; overflow-wrap: anywhere; }
/* ---------- Cookie consent ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; background: var(--white); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 50px rgba(16, 24, 40, .18); max-width: 1100px; margin: 0 auto; }
.cookie-inner { display: flex; align-items: center; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.cookie-text { margin: 0; font-size: 15px; color: var(--charcoal); flex: 1; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.consent-cat { border: 1px solid var(--border); border-radius: 10px; padding: 14px 14px 2px; margin-bottom: 10px; }
.consent-desc { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) {
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1 1 100%; }
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
}

/* ---------- Launcher-only layout (no header/footer) ---------- */
body.public { min-height: 100vh; display: flex; flex-direction: column; background: var(--jen-bg); }
body.public > main { flex: 1 0 auto; }
.launch-brand { display: flex; justify-content: center; padding: 36px 24px 8px; }
.launch-brand a { display: inline-flex; border-radius: 8px; }
.launcher { padding: 32px 0 56px; }
.launcher .app-grid { max-width: 1120px; margin: 0 auto; }
.legal-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 20px; padding: 20px 24px calc(20px + var(--cookie-h, 0px)); font-size: 13px; color: var(--muted); }
.legal-line a, .legal-line .link-btn { color: var(--muted); font-size: 13px; text-decoration: none; }
.legal-line a:hover, .legal-line .link-btn:hover { color: var(--jen-text); text-decoration: underline; }
@media print { .launch-brand, .legal-line { display: none !important; } }

/* ---------- Application card: drawing-sheet style (Option A) ---------- */
.launcher .app-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.app-card.app-sheet { --sheet-line: #C9D6E0; --sheet-ink: #0E2433; padding: 0; border: 1px solid var(--sheet-line); border-radius: 4px; overflow: visible; }
.app-card.app-sheet::before, .app-card.app-sheet::after { content: ''; position: absolute; width: 12px; height: 12px; border: 0 solid var(--jen-primary); background: none; left: auto; right: auto; top: auto; }
.app-card.app-sheet::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; height: 12px; }
.app-card.app-sheet::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.app-card.app-sheet.status-maintenance::before, .app-card.app-sheet.status-maintenance::after { border-color: var(--amber); background: none; }
.app-card.app-sheet.status-coming_soon::before, .app-card.app-sheet.status-coming_soon::after { border-color: var(--grey-status); background: none; }
.app-card.app-sheet:hover { border-color: #9FB4C3; }
.sheet-body { flex: 1; padding: 22px 22px 18px; }
.sheet-head { display: flex; align-items: center; gap: 14px; }
.app-sheet .app-logo { width: 48px; height: 48px; border-radius: 2px; border-color: var(--sheet-line); }
.app-sheet .app-monogram { background: var(--white); border-color: var(--sheet-line); color: var(--jen-secondary); font-size: 20px; }
.sheet-title { flex: 1; min-width: 0; }
.app-sheet h3 { font-size: 1.15rem; color: var(--sheet-ink); }
.app-domain { font-size: 13px; color: #4A6272; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-sheet .share-btn { width: 36px; height: 36px; border-width: 1px; border-radius: 2px; align-self: flex-start; }
.app-sheet .share-btn .ico { width: 16px; height: 16px; }
.app-sheet .app-desc { margin: 14px 0 0; font-size: 14.5px; color: #4A6272; line-height: 1.6; }
.title-block { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--sheet-line); }
.title-block > div { padding: 9px 14px 10px; min-width: 0; }
.title-block > div + div { border-left: 1px solid var(--sheet-line); }
.title-block dt span { display: block; font-size: 11.5px; color: #7A8E9B; }
.title-block dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; color: var(--sheet-ink); }
.title-block dd.status-badge { padding: 0; background: none; border-radius: 0; color: #17663E; font-size: 13.5px; gap: 6px; }
.status-maintenance .title-block dd.status-badge { color: #8A5A06; }
.status-coming_soon .title-block dd.status-badge { color: #5E7382; }
.sheet-launch { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 12px 22px; background: var(--sheet-ink); color: var(--white); font-weight: 600; font-size: 15px; text-decoration: none; border-radius: 0 0 3px 3px; transition: background-color .15s ease; }
.sheet-launch:hover { background: var(--jen-secondary); color: var(--white); }
.sheet-launch:focus-visible { outline: 3px solid var(--jen-primary); outline-offset: 2px; }
.sheet-launch .ico { width: 18px; height: 18px; flex: none; }
.sheet-launch.is-off { background: #E6ECF1; color: #5E7382; cursor: default; }
@media (min-width: 961px) { .app-card.app-sheet.is-featured { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { .sheet-launch { transition: none; } }
