:root {
    --bg: #0d1015;
    --bg-2: #121722;
    --panel: rgba(255,255,255,.045);
    --panel-2: rgba(255,255,255,.03);
    --text: #eef2f7;
    --muted: #9aa4b2;
    --line: rgba(255,255,255,.08);
    --accent: #d7ff4d;
    --accent-2: #ffb347;
    --danger: #ff7f6e;
    --radius: 24px;
    --shadow: 0 30px 80px rgba(0,0,0,.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at top, rgba(215,255,77,.06), transparent 35%),
        radial-gradient(circle at 80% 20%, rgba(255,179,71,.08), transparent 28%),
        linear-gradient(180deg, #141923 0%, var(--bg) 100%);
    color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 32px 0; }
.site-header { position: sticky; top: 0; backdrop-filter: blur(16px); background: rgba(13,16,21,.72); border-bottom: 1px solid var(--line); z-index: 30; }
.header-inner, .footer-inner, .section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-inner { min-height: 74px; }
.brand { font-weight: 700; letter-spacing: .01em; }
.nav { display: flex; gap: 18px; }
.nav a, .lang-switch a { color: var(--muted); }
.nav a:hover, .lang-switch a:hover, .lang-switch a.active { color: var(--text); }
.lang-switch { display: flex; gap: 8px; background: rgba(255,255,255,.04); padding: 6px; border-radius: 999px; border: 1px solid var(--line); }
.lang-switch a { padding: 8px 12px; border-radius: 999px; }
.lang-switch a.active { background: rgba(255,255,255,.08); }
.hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: 24px; align-items: center; min-height: 55vh; }
.card, .hero-card { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card { padding: 22px; }
.card.slim { padding: 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mini-viewer, .thumb-placeholder, .viewer-canvas { background: #000; border: 1px solid rgba(255,255,255,.08); border-radius: 22px; }
.mini-viewer { min-height: 280px; }
.hero-orb { position: relative; overflow: hidden; }
.hero-orb::before, .hero-orb::after { content: ''; position: absolute; border-radius: 999px; filter: blur(14px); }
.hero-orb::before { width: 260px; height: 260px; background: rgba(215,255,77,.16); top: 30px; left: 50px; }
.hero-orb::after { width: 200px; height: 200px; background: rgba(255,179,71,.14); right: 80px; bottom: 40px; }
.card-thumb, .detail-thumb { width: 100%; object-fit: cover; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); }
.card-thumb { aspect-ratio: 4 / 3; }
.detail-thumb { margin-top: 16px; max-height: 320px; }
.eyebrow, .muted { color: var(--muted); }
.lead { color: #d8dfeb; max-width: 68ch; }
h1, h2, h3 { line-height: 1.05; margin: 0 0 12px; }
h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
.button, .viewer-toolbar button, .viewer-inspector-toggle {
    text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line);
    background: rgba(255,255,255,.045); color: var(--text); cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}
.button:hover, .viewer-toolbar button:hover, .viewer-inspector-toggle:hover { transform: translateY(-1px); background: rgba(255,255,255,.08); }
.button.primary { background: var(--accent); color: #111; border-color: transparent; font-weight: 700; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.input, .range {
    width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line);
    background: rgba(255,255,255,.03); color: var(--text);
}
.range { padding: 10px; }
.select-fixed { min-width: 220px; }
.textarea { min-height: 140px; resize: vertical; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.model-card { overflow: hidden; padding: 0; }
.card-content { padding: 18px; }
.meta-row, .stats, .tag-list, .viewer-toolbar, .form-grid, .meta-stack, .stats-pills, .viewer-panel-row { display: flex; gap: 10px; flex-wrap: wrap; }
.stats { color: var(--muted); font-size: .92rem; }
.stats-pills { margin-top: 18px; }
.pill, .badge { display: inline-flex; align-items: center; padding: 8px 10px; border-radius: 999px; font-size: .85rem; }
.pill { background: rgba(255,255,255,.05); color: #dbe3ef; border: 1px solid rgba(255,255,255,.06); }
.badge-category { background: rgba(255,179,71,.12); color: #ffd08a; }
.badge-tag { background: transparent; color: #ecffb1; border: 0; padding: 0; }
.tag-text { color:#ecffb1; font-size:.88rem; }
.tax-line, .existing-model-tax { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.tax-category { color:#ffd08a; font-size:.88rem; }
.tax-sep { color:rgba(255,255,255,.35); }

.text-link { color: #fff; font-weight: 600; }
.model-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: start; }
.viewer-shell { position: relative; overflow: hidden; }
.viewer-toolbar.top { position: absolute; top: 14px; left: 14px; z-index: 4; }
.viewer-inspector-toggle { position: absolute; left: 14px; bottom: 14px; z-index: 5; }
.viewer-mobile-quality-note {
    position: absolute;
    top: 64px;
    right: 14px;
    z-index: 5;
    max-width: min(340px, calc(100% - 28px));
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(215,255,77,.24);
    background: rgba(8,12,18,.82);
    color: #ecffb1;
    font-size: .82rem;
    line-height: 1.35;
    box-shadow: 0 12px 34px rgba(0,0,0,.28);
    backdrop-filter: blur(12px);
}
.viewer-canvas { min-height: 560px; height: 560px; overflow: hidden; position: relative; }
.viewer-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.viewer-panel { margin-top: 12px; }
.viewer-panel label { display: grid; gap: 8px; color: var(--muted); flex: 1; min-width: 180px; }
.viewer-caption { margin: 12px 0 0; color: var(--muted); }
.viewer-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, rgba(12,15,20,.78), rgba(12,15,20,.92)); z-index: 3;
    transition: opacity .25s ease, visibility .25s ease;
}
.viewer-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.overlay-card {
    width: min(440px, calc(100% - 40px)); padding: 24px; border-radius: 22px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); text-align: center;
    box-shadow: var(--shadow);
}
.overlay-spinner {
    width: 54px; height: 54px; border-radius: 999px; border: 3px solid rgba(255,255,255,.12);
    border-top-color: var(--accent); margin: 0 auto 18px; animation: spin 1s linear infinite;
}
.overlay-progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 16px; }
.overlay-progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #f4ffba); }
.overlay-error { color: #ffd1cb; }
.grid-detail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); text-align: left; }
.admin-layout { display: grid; grid-template-columns: 1.4fr .6fr; gap: 18px; }
.form-grid.two > label { width: calc(50% - 5px); }
.form-grid.three > label { width: calc(33.333% - 7px); }
.admin-form label { display: grid; gap: 8px; color: var(--muted); }
.checkbox { display: flex !important; align-items: center; gap: 10px; margin-top: 28px; }
.notice { padding: 12px 14px; border-radius: 14px; margin: 14px 0; }
.notice.success { background: rgba(60, 179, 113, .15); color: #b9ffd7; }
.notice.error { background: rgba(255, 99, 71, .15); color: #ffd0c7; }
.code-block { background: #0c0f14; border: 1px solid var(--line); border-radius: 16px; padding: 16px; overflow: auto; }
.empty-state { text-align: center; padding: 50px 24px; }
.sidebar-list { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.8; }
.site-footer { border-top: 1px solid rgba(255,255,255,.05); margin-top: 28px; padding: 18px 0; }
.footer-left { display: flex; align-items: center; min-width: 0; }
.footer-right { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; text-align: right; }
.footer-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0; color: var(--muted); font-size: .92rem; }
.footer-nav a { color: var(--muted); transition: color .18s ease; }
.footer-nav a:hover { color: var(--text); }
.footer-separator,
.footer-brand-separator { color: rgba(255,255,255,.32); }
.footer-separator { margin: 0 10px; }
.footer-brand-separator { margin: 0 10px; font-size: .9rem; line-height: 1; }
.footer-brand-line { display: flex; align-items: center; justify-content: flex-end; gap: 0; white-space: nowrap; }
.footer-owner { color: rgba(255,255,255,.42); font-size: .78rem; line-height: 1.25; letter-spacing: .01em; white-space: nowrap; }
.footer-privacy-mark { display: inline-flex; flex-direction: column; align-items: stretch; color: var(--muted); font-size: .82rem; line-height: 1.35; letter-spacing: .01em; }
.footer-privacy-mark strong { display: inline; color: var(--text); font-size: .92rem; font-weight: 700; }
.footer-privacy-claim { display: block; width: 100%; text-align: justify; text-align-last: justify; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 960px) {
    .hero, .model-head, .grid-detail, .admin-layout, .card-grid { grid-template-columns: 1fr; }
    .form-grid.two > label, .form-grid.three > label { width: 100%; }
    .header-inner, .section-head { flex-direction: column; align-items: stretch; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-right { margin-left: 0; align-items: flex-start; justify-content: flex-start; text-align: left; }
    .footer-privacy-mark { text-align: left; align-items: flex-start; }
    .footer-privacy-claim { text-align: left; text-align-last: auto; }
    .footer-brand-line { justify-content: flex-start; }
    .viewer-canvas { min-height: 400px; height: 400px; }
    .viewer-toolbar.top { position: static; margin-bottom: 10px; }
}

.viewer-shell:fullscreen,
.viewer-shell:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    background: #090c12;
    padding: 18px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
}
.viewer-shell:fullscreen .viewer-canvas,
.viewer-shell:-webkit-full-screen .viewer-canvas {
    min-height: 0;
    height: 100%;
    width: 100%;
}
.viewer-shell:fullscreen .viewer-toolbar.top,
.viewer-shell:-webkit-full-screen .viewer-toolbar.top {
    position: static;
    margin-bottom: 0;
}
.viewer-shell:fullscreen .viewer-inspector-toggle,
.viewer-shell:-webkit-full-screen .viewer-inspector-toggle {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 6;
}


.thumb-link { display:block; color:inherit; text-decoration:none; }
.thumb-link:hover .card-thumb,
.thumb-link:hover .thumb-placeholder { transform: translateY(-1px); }
.card-thumb, .thumb-placeholder { transition: transform .18s ease, box-shadow .18s ease; }
.model-card > .thumb-link { margin-bottom: 14px; }


/* V6.2.5 readability fix */
.filters select,
select.select-fixed,
.input.select-fixed,
.viewer-panel select,
.admin-form select {
    color: #111;
    background: #fff;
}
.filters select option,
select.select-fixed option,
.admin-form select option,
.viewer-panel select option {
    color: #111;
    background: #fff;
}


.technical-inline {
    margin-top: 1rem;
}
.technical-inline .data-table {
    margin-top: .5rem;
}
.technical-inline h2 {
    margin-bottom: .5rem;
}


.model-head {
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
    gap: 24px;
    align-items: start;
}
.model-info-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.model-info-card h1 {
    margin-bottom: 4px;
    font-size: clamp(1.5rem, 2.3vw, 2.1rem);
}
.model-info-technical h2 {
    margin-bottom: 8px;
}
.model-info-tax {
    margin-top: auto;
    padding-top: 8px;
}
.model-info-tax .tag-text {
    font-size: .95rem;
}
.viewer-shell {
    align-self: start;
}
@media (max-width: 960px) {
    .model-head {
        grid-template-columns: 1fr;
    }
    .viewer-column {
        order: -1;
    }
    .viewer-shell {
        order: 0;
    }
}

.detail-year-row { margin-top: 1rem; color: var(--muted); }
.model-info-tax.bottom { margin-top: 0.8rem; }
.image-viewer-frame { width: 100%; height: 100%; min-height: 540px; display:flex; align-items:center; justify-content:center; background:#000; border-radius: 24px; overflow:hidden; }
.image-viewer { width:100%; height:100%; object-fit:contain; display:block; background:#000; }
.form-grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 980px) { .form-grid.four { grid-template-columns: 1fr 1fr; } }


.image-viewer-frame, .image-viewer {
    -webkit-user-select: none;
    user-select: none;
}
.image-toolbar {
    right: 14px;
    left: auto;
}

.detail-back-row { padding-top: 1rem; padding-bottom: 0; }
.button-ghost { background: transparent; border: 1px solid rgba(255,255,255,.18); color: #fff; }
.button-ghost:hover { background: rgba(255,255,255,.06); }


.hero-logo-wrap { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; }
.hero-single { grid-template-columns: 1fr; min-height: 38vh; }
.hero-logo { font-size: clamp(3.2rem, 10vw, 7.4rem); line-height: .92; font-weight: 300; letter-spacing: -.04em; color: rgba(255,255,255,.72); }
.hero-logo-main { color: rgba(255,255,255,.78); font-weight: 300; }
.hero-logo-main::after { content:''; }
.hero-logo-main { }
.hero-logo-main + .hero-logo-suffix { color: rgba(255,255,255,.58); font-size: .42em; margin-left: .05em; font-weight: 300; }
.hero-logo-subline {
    margin-top: 10px;
    color: rgba(255,255,255,.56);
    font-size: clamp(.9rem, 1.25vw, 1.18rem);
    line-height: 1.2;
    letter-spacing: .08em;
    font-weight: 300;
    text-transform: lowercase;
    text-align: left;
}

.footer-links { justify-content: center; gap: 28px; min-height: 84px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.legal-page { padding-top: 48px; }
.legal-page-card { max-width: 980px; margin: 0 auto; }
.legal-content { color: #d8dfeb; font-size: .94rem; line-height: 1.5; }
.legal-content p,
.legal-content h2,
.legal-content h3,
.legal-content h4,
.legal-content ul,
.legal-content ol,
.legal-content blockquote {
    margin: 0 0 .52em;
}
.legal-content h2 { font-size: 1.28rem; line-height: 1.25; margin-top: 1.05em; }
.legal-content h3 { font-size: 1.08rem; line-height: 1.3; margin-top: .9em; }
.legal-content h4 { font-size: 1rem; line-height: 1.3; margin-top: .8em; }
.legal-content p,
.legal-content li { font-size: .94rem; }
.legal-content > :last-child { margin-bottom: 0; }
.legal-content ul,
.legal-content ol { padding-left: 1.25em; }
.legal-content blockquote {
    padding-left: 12px;
    border-left: 3px solid rgba(255,255,255,.18);
    opacity: .9;
}
.legal-content a { color: var(--accent); text-decoration: underline; }
.legal-page-card + .legal-page-card { margin-top: 18px; }
@media (max-width: 960px) {
  .hero-logo-wrap { order: 1; }
}


.header-actions { display:flex; align-items:center; gap:12px; }
.header-search {
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-search::-webkit-scrollbar { display:none; }
.header-search-input { width: 180px; padding: 10px 12px; border-radius: 999px; }
.header-filter-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  flex: 0 0 auto;
  min-width: 150px;
  max-width: 190px;
  padding: 8px 28px 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.header-filter-select:hover,
.header-filter-select:focus {
  color: var(--text);
  outline: none;
  background-color: transparent;
  box-shadow: none;
}
.header-filter-select option,
.header-filter-select optgroup {
  color: var(--text);
  background: rgba(13,16,21,.96);
}
.hero-logo .hero-logo-main { color:#f2f4f8; }
.hero-logo .hero-logo-prefix, .hero-logo .hero-logo-suffix { color:#7f8793; }
.filters { justify-content:flex-end; }
.filters .select-fixed { min-width: 180px; }
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}
.nav-link:hover {
  color: var(--text);
}
.nav-link-static {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  cursor: default;
  user-select: none;
}
.nav-has-submenu > .nav-link-static::after {
  content: '\25be';
  font-size: .7em;
  margin-left: 6px;
  opacity: .7;
}
.nav-has-submenu:hover > .nav-link-static,
.nav-has-submenu:focus-within > .nav-link-static {
  color: var(--text);
}
.nav-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  gap: 4px;
  min-width: 210px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13,16,21,.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 60;
}
.nav-submenu a {
  display: block;
  padding: 9px 11px;
  border-radius: 12px;
  white-space: nowrap;
  color: var(--muted);
}
.nav-submenu a:hover {
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.nav-has-submenu:hover .nav-submenu,
.nav-has-submenu:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (max-width: 960px) {
  .header-actions { width:100%; justify-content:space-between; flex-wrap: wrap; }
  .header-search { width: 100%; }
  .header-search-input { width: 150px; }
  .nav-submenu {
    position: static;
    min-width: 0;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(13,16,21,.96);
  }
}

.viewer-inspector-panel {
    position: absolute;
    left: 14px;
    bottom: 70px;
    z-index: 4;
    width: min(240px, calc(100% - 28px));
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(9,12,18,.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
    display: none;
}
.viewer-inspector-panel.is-open {
    display: block;
}
.viewer-inspector-panel[hidden] {
    display: none !important;
}
.viewer-shell:fullscreen .viewer-inspector-panel,
.viewer-shell:-webkit-full-screen .viewer-inspector-panel {
    left: 18px;
    bottom: 76px;
    z-index: 6;
}
.viewer-shell:fullscreen .viewer-mobile-quality-note,
.viewer-shell:-webkit-full-screen .viewer-mobile-quality-note {
    top: 76px;
    right: 18px;
    z-index: 7;
}
.viewer-inspector-title {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.viewer-inspector-grid {
    display: grid;
    gap: 8px;
}
.viewer-inspector-grid button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.04);
    color: var(--text);
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.viewer-inspector-grid button:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.08);
}
.viewer-inspector-grid button.is-active,
.viewer-toolbar button.is-active,
.viewer-toolbar .button.is-active,
.viewer-inspector-toggle.is-active {
    background: rgba(215,255,77,.14);
    border-color: rgba(215,255,77,.35);
    color: #f4ffba;
}

@media (max-width: 960px) {
    .viewer-inspector-panel {
        left: 14px;
        bottom: 70px;
    }
    .viewer-inspector-toggle {
        left: 14px;
        bottom: 14px;
    }
    .viewer-mobile-quality-note {
        left: 14px;
        right: 14px;
        top: 66px;
        bottom: auto;
        max-width: none;
        pointer-events: none;
    }
}


/* Home privacy patch */
.hero-with-privacy-patch {
    position: relative;
    min-height: 470px;
    padding-right: 380px;
}
section.hero.hero-with-privacy-patch .home-privacy-patch-block {
    position: absolute !important;
    top: 84px !important;
    right: 72px !important;
    left: auto !important;
    width: 320px;
    z-index: 1;
}
section.hero.hero-with-privacy-patch .home-privacy-patch {
    width: 200px !important;
    height: 200px !important;
    object-fit: contain;
    filter: drop-shadow(0 16px 34px rgba(0,0,0,.35));
}
.home-privacy-patch-note {
    margin: 14px 0 0;
    max-width: 320px;
    color: rgba(238,242,247,.66);
    font-size: .76rem;
    line-height: 1.38;
    letter-spacing: .01em;
    text-align: left;
}
.hero-with-privacy-patch .hero-logo-wrap {
    position: relative;
    z-index: 2;
}
@media (max-width: 960px) {
    .hero-with-privacy-patch {
        padding-right: 0;
        padding-top: 430px;
        min-height: 650px;
    }
    section.hero.hero-with-privacy-patch .home-privacy-patch-block {
        top: 28px !important;
        right: 50% !important;
        left: auto !important;
        width: min(320px, calc(100vw - 36px));
        transform: translateX(50%);
    }
}
@media (max-width: 420px) {
    section.hero.hero-with-privacy-patch .home-privacy-patch {
        width: min(200px, calc(100vw - 80px)) !important;
        height: auto !important;
    }
    .hero-with-privacy-patch {
        padding-top: 430px;
    }
}

/* Model video feature */
.hidden { display: none !important; }
.viewer-column { display: grid; gap: 16px; min-width: 0; }
.thumb-link { position: relative; }
.video-sticker {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: grid;
    justify-items: center;
    gap: 3px;
    pointer-events: none;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.38));
}
.video-sticker-circle {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.24), rgba(215,255,77,.95) 0, rgba(215,255,77,.88) 58%, rgba(149,184,27,.96) 100%);
    border: 2px solid rgba(10,14,18,.72);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.26), 0 8px 18px rgba(0,0,0,.35);
}
.video-sticker-icon { width: 27px; height: 27px; object-fit: contain; display: block; }
.video-sticker-text {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(9,12,18,.88);
    color: #f4ffba;
    border: 1px solid rgba(215,255,77,.32);
    font-size: .68rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.model-video-panel { display: grid; gap: 12px; }
.model-video-panel h2 { margin-bottom: 0; }
.model-video-stage { position: relative; }
.model-video {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: #000;
    cursor: pointer;
}
.video-fullscreen-button {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(9,12,18,.72);
    backdrop-filter: blur(3px);
}
.video-fullscreen-button span { font-size: 1.15rem; line-height: 1; }
.model-video-controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.video-control-button {
    min-width: 52px;
    min-height: 52px;
    padding: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
}
.video-control-button.is-play { min-width: 58px; min-height: 58px; }
.video-control-button.is-fullscreen { margin-left: 14px; }
.video-control-icon { font-size: 1.2rem; line-height: 1; }
.model-video-panel:fullscreen,
.model-video-panel:-webkit-full-screen {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    padding: 20px;
    background: #06090e;
    align-content: center;
}
.model-video-panel:fullscreen .model-video,
.model-video-panel:-webkit-full-screen .model-video {
    max-height: calc(100vh - 150px);
}
.model-video-panel:fullscreen .model-video-controls,
.model-video-panel:-webkit-full-screen .model-video-controls {
    justify-content: center;
}
.editor-replace-model-box,
.editor-mobile-model-box {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px dashed rgba(215,255,77,.24);
    border-radius: 18px;
    background: rgba(255,255,255,.025);
}
.editor-mobile-model-box { border-color: rgba(255,179,71,.24); }
.video-upload-box {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.025);
}
.video-checkbox-row { margin-top: 0; cursor: pointer; }
.video-checkbox-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.video-picker-panel { display: grid; gap: 12px; }
.video-frame-preview,
.video-poster-preview {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: #000;
}
.video-frame-tools { display: grid; gap: 10px; }
.video-frame-tools label { display: grid; gap: 8px; }
.editor-video-sticker { top: 4px; right: 4px; gap: 2px; }
.editor-video-sticker .video-sticker-circle { width: 30px; height: 30px; border-width: 1.5px; }
.editor-video-sticker .video-sticker-icon { width: 17px; height: 17px; }
.editor-video-sticker .video-sticker-text { padding: 1px 5px; font-size: .54rem; }
@media (max-width: 960px) {
    .video-sticker-circle { width: 42px; height: 42px; }
    .video-sticker-icon { width: 24px; height: 24px; }
    .model-video-controls { justify-content: flex-start; }
}

/* Detail view video: compact thumbnail below the 3D viewer, not fullscreen. */
.model-head .viewer-column > .model-video-panel {
    width: min(340px, 100%);
    justify-self: start;
    padding: 10px;
    gap: 7px;
}
.model-head .viewer-column > .model-video-panel h2 {
    margin: 0;
    font-size: .82rem;
    line-height: 1.15;
}
.model-head .viewer-column > .model-video-panel .model-video-stage {
    width: 100%;
}
.model-head .viewer-column > .model-video-panel .model-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 125px;
    object-fit: contain;
    border-radius: 12px;
}
.model-head .viewer-column > .model-video-panel .video-fullscreen-button {
    right: 6px;
    bottom: 6px;
    min-width: 28px;
    min-height: 28px;
}
.model-head .viewer-column > .model-video-panel .video-fullscreen-button span {
    font-size: .88rem;
}
.model-head .viewer-column > .model-video-panel .model-video-controls {
    justify-content: flex-start;
    gap: 5px;
}
.model-head .viewer-column > .model-video-panel .video-control-button {
    min-width: 30px;
    min-height: 30px;
}
.model-head .viewer-column > .model-video-panel .video-control-button.is-fullscreen {
    margin-left: 12px;
}
.model-head .viewer-column > .model-video-panel .video-control-button.is-play {
    min-width: 34px;
    min-height: 34px;
}
.model-head .viewer-column > .model-video-panel .video-control-icon {
    font-size: .82rem;
}
.model-head .viewer-column > .model-video-panel:fullscreen,
.model-head .viewer-column > .model-video-panel:-webkit-full-screen {
    width: 100%;
    max-width: none;
    padding: 20px;
    gap: 12px;
}
.model-head .viewer-column > .model-video-panel:fullscreen .model-video,
.model-head .viewer-column > .model-video-panel:-webkit-full-screen .model-video {
    aspect-ratio: auto;
    max-height: calc(100vh - 150px);
    border-radius: 18px;
}
.model-head .viewer-column > .model-video-panel:fullscreen .model-video-controls,
.model-head .viewer-column > .model-video-panel:-webkit-full-screen .model-video-controls {
    justify-content: center;
    gap: 10px;
}
.model-head .viewer-column > .model-video-panel:fullscreen .video-control-button,
.model-head .viewer-column > .model-video-panel:-webkit-full-screen .video-control-button {
    min-width: 52px;
    min-height: 52px;
}
.model-head .viewer-column > .model-video-panel:fullscreen .video-control-button.is-play,
.model-head .viewer-column > .model-video-panel:-webkit-full-screen .video-control-button.is-play {
    min-width: 58px;
    min-height: 58px;
}
@media (max-width: 960px) {
    .model-head .viewer-column > .model-video-panel {
        width: min(340px, 100%);
    }
    .model-head .viewer-column > .model-video-panel .model-video {
        max-height: 180px;
    }
}

/* Lokale Sprach-Flaggen ohne Emoji.
   Beide Flaggen werden einheitlich als lokal eingebettete Base64-SVGs dargestellt.
   Keine externen Dateien, kein CDN, kein Tracking. */
.lang-switch a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lang-flag {
    display: inline-block;
    width: 18px;
    height: 12px;
    flex: 0 0 18px;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.24), 0 1px 4px rgba(0,0,0,.28);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    background-color: transparent;
}

.lang-flag-de {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MCAzNiI+PHBhdGggZmlsbD0iIzAwMDAwMCIgZD0iTTAgMGg2MHYxMkgweiIvPjxwYXRoIGZpbGw9IiNERDAwMDAiIGQ9Ik0wIDEyaDYwdjEySDB6Ii8+PHBhdGggZmlsbD0iI0ZGQ0UwMCIgZD0iTTAgMjRoNjB2MTJIMHoiLz48L3N2Zz4=");
}

.lang-flag-en {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MCAzNiI+PGNsaXBQYXRoIGlkPSJjIj48cGF0aCBkPSJNMCAwaDYwdjM2SDB6Ii8+PC9jbGlwUGF0aD48ZyBjbGlwLXBhdGg9InVybCgjYykiPjxwYXRoIGZpbGw9IiMwMTIxNjkiIGQ9Ik0wIDBoNjB2MzZIMHoiLz48cGF0aCBzdHJva2U9IiNmZmYiIHN0cm9rZS13aWR0aD0iNy4yIiBkPSJNMCAwbDYwIDM2TTYwIDBMMCAzNiIvPjxwYXRoIHN0cm9rZT0iI0M4MTAyRSIgc3Ryb2tlLXdpZHRoPSI0LjMiIGQ9Ik0wIDBsNjAgMzZNNjAgMEwwIDM2Ii8+PHBhdGggc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjEyIiBkPSJNMzAgMHYzNk0wIDE4aDYwIi8+PHBhdGggc3Ryb2tlPSIjQzgxMDJFIiBzdHJva2Utd2lkdGg9IjcuMiIgZD0iTTMwIDB2MzZNMCAxOGg2MCIvPjwvZz48L3N2Zz4=");
}

.lang-label {
    line-height: 1;
}

/* Footer-Versionsnummer */
.footer-version {
    white-space: nowrap;
    opacity: .72;
}


/* Progressive Mobile Viewer V6.5.0 */
.inline-action-form { display: inline-flex; margin: 0; }
.mobile-lod-card { border-color: rgba(215,255,77,.16); }
.viewer-mobile-quality-note {
    top: 0;
    left: 0;
    right: 0;
    max-width: none;
    border-radius: 22px 22px 0 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    padding: 9px 14px;
    text-align: center;
    background: rgba(8,12,18,.92);
}

.viewer-shell.is-mobile-experience .viewer-toolbar.top [data-action="reset"],
.viewer-shell.is-mobile-experience .viewer-toolbar.top [data-action="autorotate"],
.viewer-shell.is-mobile-experience .viewer-toolbar.top [data-action="wireframe"] {
    display: none !important;
}
@media (max-width: 960px) {
    .viewer-shell { border-radius: 22px; }
    .viewer-canvas { min-height: 70vh; height: 70vh; }
    .viewer-toolbar.top {
        position: absolute;
        top: auto;
        left: auto;
        right: 12px;
        bottom: 12px;
        z-index: 8;
        margin: 0;
        gap: 0;
    }
    .viewer-toolbar.top > :not([data-action="fullscreen"]) { display: none !important; }
    .viewer-toolbar.top [data-action="fullscreen"] {
        width: 46px;
        height: 46px;
        min-width: 46px;
        padding: 0;
        border-radius: 999px;
        font-size: 0;
        background: rgba(8,12,18,.72);
        backdrop-filter: blur(10px);
    }
    .viewer-toolbar.top [data-action="fullscreen"]::before {
        content: '⛶';
        font-size: 1.05rem;
        line-height: 1;
    }
    .viewer-inspector-toggle,
    .viewer-inspector-panel { display: none !important; }
    .viewer-mobile-quality-note {
        top: 0;
        left: 0;
        right: 0;
        max-width: none;
        border-radius: 22px 22px 0 0;
        pointer-events: none;
    }
    .model-head { padding-top: 10px; }
    .model-head .viewer-column { order: -2; }
    .model-info-card { order: 2; }
}
.viewer-shell:fullscreen .viewer-mobile-quality-note,
.viewer-shell:-webkit-full-screen .viewer-mobile-quality-note {
    top: 18px;
    left: 18px;
    right: 18px;
    border-radius: 18px;
}
.viewer-shell:fullscreen .viewer-toolbar.top,
.viewer-shell:-webkit-full-screen .viewer-toolbar.top {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: auto;
    top: auto;
}


/* Mobile LOD generation progress overlay (local Admin/Editor only) */
.mobile-lod-is-running,
.mobile-lod-is-running body {
    cursor: wait;
}

.mobile-lod-progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 8, 12, 0.78);
    backdrop-filter: blur(6px);
}

.mobile-lod-progress-box {
    width: min(520px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(17, 26, 34, 0.98), rgba(8, 12, 18, 0.98));
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.5);
    padding: 22px;
    color: #f3f7f8;
}

.mobile-lod-progress-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.mobile-lod-progress-head strong {
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.mobile-lod-progress-head span {
    color: rgba(215, 255, 77, 0.9);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.mobile-lod-progress-bar {
    position: relative;
    overflow: hidden;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.mobile-lod-progress-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -42%;
    width: 42%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(215, 255, 77, 0), rgba(215, 255, 77, 0.95), rgba(0, 139, 154, 0.95));
    animation: mobile-lod-progress-move 1.25s ease-in-out infinite;
}

.mobile-lod-progress-step {
    margin: 16px 0 6px;
    font-weight: 700;
}

.mobile-lod-progress-note {
    margin: 0;
    color: rgba(243, 247, 248, 0.72);
    line-height: 1.45;
}

@keyframes mobile-lod-progress-move {
    0% { transform: translateX(0); }
    55% { transform: translateX(170%); }
    100% { transform: translateX(340%); }
}


/* Admin-only mobile exposure tuning ------------------------------------- */
.admin-mobile-exposure-panel {
  display: grid;
  gap: .75rem;
  margin-top: .85rem;
  padding: .95rem;
  border: 1px solid rgba(215, 255, 77, .18);
  background: linear-gradient(135deg, rgba(12, 16, 22, .96), rgba(24, 31, 40, .96));
}

.admin-mobile-exposure-panel label {
  display: grid;
  gap: .35rem;
}

.admin-mobile-exposure-panel label span {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-weight: 700;
}

.admin-mobile-exposure-panel small {
  color: var(--muted, #9ca3af);
  line-height: 1.45;
}

.admin-mobile-exposure-status.success {
  color: #d7ff4d;
}

.admin-mobile-exposure-status.error {
  color: #ff7b7b;
}
