/* Ecomic Digital Library — app styles */
/* Generated from index.html — do not edit inline */

.skip-link {
      position: absolute; top: -9999px; left: -9999px;
      background: #6546F3; color: #fff; padding: 10px 16px;
      font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600;
      z-index: 9999; border-radius: 0 0 4px 0; text-decoration: none;
    }
    .skip-link:focus { top: 0; left: 0; }

/* ─── TOKENS ──────────────────────────────────────────────────── */
    :root {
      --viola:        #6546F3;
      --viola-dark:   #4e32d4;
      --ossidiana:    #271E52;
      --ossidiana-lt: #493990;
      --viola-lt:     #A491FA;
      --off-black:    #1E1E1E;
      --gray-70:      #4D4D4D;
      --gray-40:      #767676;
      --gray-10:      #E0E0E0;
      --gray-05:      #F4F4F4;
      --white:        #FFFFFF;
      --focus-ring:   0 0 0 3px #6546F3, 0 0 0 5px #fff;
      --header-h:     56px;
      --sidebar-w:    300px;
      --panel-w:      280px;
      --toolbar-h:    48px;
      --bottom-nav-h: 56px;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { font-size: 16px; -webkit-text-size-adjust: 100%; height: 100%; }
    body {
      font-family: 'Manrope', sans-serif;
      font-size: 1rem; line-height: 1.5;
      background: var(--gray-05); color: var(--off-black);
      height: 100dvh;
      display: flex; flex-direction: column;
      overflow: hidden;
    }

    :focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 3px; }

/* ─── PRE-HEADER ─────────────────────────────────────────────────── */
    .pre-header {
      height: 56px;
      background: var(--white);
      border-bottom: 1px solid var(--gray-10);
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 24px; flex-shrink: 0; z-index: 210;
    }
    .pre-header-institution {
      font-size: 11px; font-weight: 500; color: var(--gray-40); letter-spacing: 0.01em;
    }
    .pre-header-cta {
      display: inline-flex; align-items: center;
      text-decoration: none; opacity: 0.85; transition: opacity 0.15s;
    }
    .pre-header-cta:hover { opacity: 1; }
    .pre-header-cta:focus-visible { box-shadow: var(--focus-ring); border-radius: 2px; outline: none; }
    .pre-header-icon { display: block; width: auto; height: 24px; }

    /* ─── HEADER ──────────────────────────────────────────────────── */
    .site-header {
      height: 80px;
      background: var(--white);
      border-bottom: 1px solid var(--gray-10);
      display: flex; align-items: center; padding: 0 24px; gap: 16px;
      flex-shrink: 0; z-index: 200;
      box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    .menu-toggle {
      display: none; align-items: center; justify-content: center;
      width: 44px; height: 44px; background: transparent; border: none;
      border-radius: 4px; cursor: pointer; color: var(--off-black); flex-shrink: 0;
    }
    .menu-toggle:focus-visible { box-shadow: var(--focus-ring); }
    .logo-ecomic { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
    .header-app-divider { width: 1px; height: 40px; background: var(--gray-10); flex-shrink: 0; }
    .header-app-info { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }
    .header-app-name { font-size: 14px; font-weight: 700; color: var(--ossidiana); letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; }
    .header-app-version { font-size: 11px; font-weight: 400; color: var(--gray-40); letter-spacing: 0.01em; line-height: 1.2; white-space: nowrap; }
    .header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

    /* ─── FOOTER ──────────────────────────────────────────────────── */
    /* Total height: 176px = 24px padding top + 128px content + 24px padding bottom */
    .site-footer {
      background: var(--white);
      border-top: 1px solid var(--gray-10);
      flex-shrink: 0; z-index: 100;
    }
    .footer-inner {
      height: 176px;
      display: flex; align-items: center;
      padding: 24px;
    }
    /* Adhesion block: 128px tall × 168px wide, 3 stacked elements */
    .footer-adhesion {
      width: 168px;
      height: 128px;
      display: flex; flex-direction: column;
      align-items: flex-start; justify-content: space-between;
    }
    .footer-adhesion-label {
      font-size: 14px; font-weight: 400;
      color: var(--off-black); line-height: 1.4;
    }
    .footer-logo-link {
      display: inline-flex; text-decoration: none;
      flex-shrink: 0;
    }
    .footer-logo-img {
      height: 56px; width: auto; display: block;
    }
    .footer-adhesion-cta {
      font-size: 14px; font-weight: 400;
      color: var(--viola); text-decoration: none;
      transition: color 0.15s; line-height: 1.4;
    }
    .footer-adhesion-cta:hover { color: var(--viola-dark); text-decoration: underline; }
    .footer-adhesion-cta:focus-visible { box-shadow: var(--focus-ring); border-radius: 2px; outline: none; }

    /* ─── LAYOUT ──────────────────────────────────────────────────── */
    .app-body { flex: 1; display: flex; overflow: hidden; position: relative; }

    /* ─── SIDEBAR ─────────────────────────────────────────────────── */
    .sidebar {
      width: var(--sidebar-w); background: var(--white);
      border-right: 1px solid var(--gray-10);
      display: flex; flex-direction: column;
      flex-shrink: 0; overflow: hidden;
      transition: transform 0.3s ease; z-index: 150;
    }
    .sidebar-header { padding: 18px 20px 12px; border-bottom: 1px solid var(--gray-10); }
    .sidebar-eyebrow { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-40); margin-bottom: 2px; }
    .sidebar-title { font-size: 14px; font-weight: 700; color: var(--ossidiana); }

    .catalog-list { overflow-y: auto; flex: 1; padding: 6px 0; }

    /* API error / loading state inside sidebar */
    .api-status {
      padding: 16px 20px; font-size: 12px; color: var(--gray-40); line-height: 1.6;
      display: flex; flex-direction: column; gap: 8px;
    }
    .api-status .spinner {
      width: 20px; height: 20px; border: 2px solid var(--gray-10);
      border-top-color: var(--viola); border-radius: 50%;
      animation: spin 0.8s linear infinite; flex-shrink: 0;
    }
    .api-status.error { color: #c0392b; }
    .api-retry-btn {
      padding: 6px 12px; border-radius: 3px; border: 1.5px solid var(--viola);
      background: transparent; color: var(--viola); font-family: 'Manrope', sans-serif;
      font-size: 11px; font-weight: 700; cursor: pointer;
      transition: all 0.15s; width: fit-content;
    }
    .api-retry-btn:hover { background: var(--viola); color: var(--white); }

    .catalog-item {
      display: flex; align-items: center; gap: 12px;
      padding: 12px 20px; min-height: 64px;
      cursor: pointer; border: none; background: transparent;
      width: 100%; text-align: left;
      border-left: 3px solid transparent;
      transition: background 0.15s, border-color 0.15s;
    }
    .catalog-item:hover { background: var(--gray-05); }
    .catalog-item.active { border-left-color: var(--viola); background: rgba(101,70,243,0.06); }
    .catalog-item:focus-visible { box-shadow: inset var(--focus-ring); outline: none; }

    .catalog-thumb {
      width: 44px; height: 44px; background: var(--ossidiana);
      border-radius: 4px; display: flex; align-items: center;
      justify-content: center; flex-shrink: 0; overflow: hidden;
    }
    .catalog-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .catalog-info { min-width: 0; }
    .catalog-label { font-size: 13px; font-weight: 700; color: var(--off-black); }
    .catalog-meta { font-size: 11px; color: var(--gray-40); margin-top: 1px; line-height: 1.4; }
    .catalog-tag {
      display: inline-block; font-size: 9px; font-weight: 700;
      text-transform: uppercase; letter-spacing: 0.06em;
      padding: 1px 5px; background: rgba(101,70,243,0.1);
      color: var(--viola); border-radius: 2px; margin-top: 4px;
    }

    .sidebar-overlay {
      display: none; position: fixed; inset: 0;
      background: rgba(0,0,0,0.45); z-index: 140;
    }
    .sidebar-overlay.visible { display: block; }

    /* ─── VIEWER ──────────────────────────────────────────────────── */
    .viewer-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

    .viewer-toolbar {
      height: var(--toolbar-h); background: var(--white);
      border-bottom: 1px solid var(--gray-10);
      display: flex; align-items: center;
      padding: 0 12px; gap: 6px; flex-shrink: 0;
      overflow-x: auto; -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .viewer-toolbar::-webkit-scrollbar { display: none; }

    .toolbar-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-40); white-space: nowrap; flex-shrink: 0; }
    .layer-toggle {
      display: flex; align-items: center; gap: 5px;
      padding: 6px 10px; min-height: 36px; border-radius: 3px;
      border: 1.5px solid var(--gray-10); cursor: pointer;
      font-size: 11px; font-weight: 600; color: var(--gray-70);
      background: var(--white); white-space: nowrap; flex-shrink: 0;
      font-family: 'Manrope', sans-serif; transition: all 0.15s;
    }
    .layer-toggle:hover { border-color: var(--viola-lt); }
    .layer-toggle.active { background: var(--ossidiana); border-color: var(--ossidiana); color: var(--white); }
    .layer-toggle:focus-visible { box-shadow: var(--focus-ring); outline: none; }
    .layer-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
    .toolbar-sep { width: 1px; height: 22px; background: var(--gray-10); margin: 0 2px; flex-shrink: 0; }

    .viewer-btn {
      padding: 6px 10px; min-height: 36px; border-radius: 3px;
      border: 1.5px solid var(--gray-10); cursor: pointer;
      font-size: 11px; font-weight: 700; color: var(--gray-70);
      background: var(--white); font-family: 'Manrope', sans-serif;
      white-space: nowrap; flex-shrink: 0; transition: border-color 0.15s, color 0.15s;
    }
    .viewer-btn:hover { border-color: var(--viola); color: var(--viola); }
    .viewer-btn.on { border-color: var(--viola); color: var(--viola); background: rgba(101,70,243,0.06); }
    .viewer-btn:focus-visible { box-shadow: var(--focus-ring); outline: none; }

    #canvas-container {
      flex: 1; position: relative; background: #1a1630;
      overflow: hidden; cursor: grab; touch-action: none;
    }
    #canvas-container:active { cursor: grabbing; }
    #three-canvas { display: block; width: 100%; height: 100%; }

    /* ─── LOADING ─────────────────────────────────────────────────── */
    .loading-overlay {
      position: absolute; inset: 0; background: rgba(26,22,48,0.96);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 14px; z-index: 10;
    }
    .loading-overlay.hidden { display: none; }
    .loader-ring {
      width: 40px; height: 40px; border: 3px solid rgba(165,145,250,0.2);
      border-top-color: var(--viola-lt); border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .loading-text { font-size: 12px; font-weight: 600; color: var(--viola-lt); letter-spacing: 0.06em; }
    .loading-detail { font-size: 11px; color: rgba(164,145,250,0.5); text-align: center; padding: 0 16px; }
    .loading-progress { width: 180px; height: 2px; background: rgba(255,255,255,0.1); border-radius: 1px; overflow: hidden; }
    .loading-progress-bar { height: 100%; background: var(--viola); border-radius: 1px; width: 0%; transition: width 0.2s ease; }

    /* ─── EMPTY & ERROR ───────────────────────────────────────────── */
    .empty-state {
      position: absolute; inset: 0; display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 16px; color: rgba(255,255,255,0.2); pointer-events: none;
    }
    .empty-state.hidden { display: none; }
    .empty-state p { font-size: 13px; font-weight: 500; text-align: center; padding: 0 24px; }
    .empty-state.is-error { color: rgba(255,120,100,0.7); }

    /* ─── HUD ─────────────────────────────────────────────────────── */
    .model-hud {
      position: absolute; top: 12px; right: 12px;
      background: rgba(39,30,82,0.9); backdrop-filter: blur(8px);
      border: 1px solid rgba(255,255,255,0.08); border-radius: 4px;
      padding: 8px 12px; pointer-events: none;
      min-width: 130px; max-width: calc(100% - 24px);
    }
    .model-hud.hidden { display: none; }
    .model-hud-title { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 3px; }
    .model-hud-sub { font-size: 10px; color: rgba(164,145,250,0.7); }
    .model-hud-layers { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
    .hud-layer-row { display: flex; align-items: center; gap: 6px; font-size: 10px; color: rgba(255,255,255,0.5); }
    .hud-layer-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
    .hud-layer-row.inactive { opacity: 0.3; }
    .camera-info { position: absolute; bottom: 10px; left: 10px; font-size: 10px; color: rgba(255,255,255,0.2); pointer-events: none; font-variant-numeric: tabular-nums; }
    .ecomic-watermark { position: absolute; bottom: 8px; right: 10px; opacity: 0.06; pointer-events: none; }

    /* ─── RIGHT PANEL ─────────────────────────────────────────────── */
    .right-panel {
      width: var(--panel-w); background: var(--white);
      border-left: 1px solid var(--gray-10);
      display: flex; flex-direction: column; flex-shrink: 0; overflow: hidden;
    }
    .panel-tabs { display: flex; border-bottom: 1px solid var(--gray-10); }
    .panel-tab {
      flex: 1; padding: 12px 8px; min-height: 44px;
      font-size: 11px; font-weight: 700; text-transform: uppercase;
      letter-spacing: 0.08em; text-align: center; cursor: pointer;
      color: var(--gray-40); border-bottom: 2px solid transparent;
      border: none; background: transparent; font-family: 'Manrope', sans-serif;
      transition: color 0.15s, border-color 0.15s;
    }
    .panel-tab[aria-selected="true"] { color: var(--viola); border-bottom: 2px solid var(--viola); }
    .panel-tab:focus-visible { box-shadow: inset var(--focus-ring); outline: none; }
    .panel-content { flex: 1; overflow-y: auto; }
    .panel-content[hidden] { display: none; }

    /* ─── METADATA ────────────────────────────────────────────────── */
    .meta-section { padding: 14px 14px 6px; }
    .meta-section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--viola); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
    .meta-section-title::after { content: ''; flex: 1; height: 1px; background: rgba(101,70,243,0.15); }
    .meta-row { display: flex; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--gray-05); align-items: flex-start; }
    .meta-row:last-child { border-bottom: none; }
    .meta-key { font-size: 11px; font-weight: 600; color: var(--gray-40); width: 100px; flex-shrink: 0; padding-top: 1px; line-height: 1.4; }
    .meta-val { font-size: 11px; color: var(--off-black); flex: 1; line-height: 1.4; word-break: break-word; }
    .meta-val.hi { color: var(--viola); font-weight: 700; }

    /* ─── DXF PANEL ───────────────────────────────────────────────── */
    .dxf-panel { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
    .dxf-info-box { padding: 10px 12px; background: rgba(101,70,243,0.06); border-left: 3px solid var(--viola-lt); font-size: 11px; color: var(--gray-70); line-height: 1.6; border-radius: 0 2px 2px 0; }
    .dxf-item { border: 1px solid var(--gray-10); border-radius: 4px; overflow: hidden; }
    .dxf-item-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--white); gap: 8px; }
    .dxf-item-label { font-size: 12px; font-weight: 700; color: var(--off-black); }
    .dxf-item-sub { font-size: 10px; color: var(--gray-40); margin-top: 1px; }
    .dxf-actions { display: flex; gap: 5px; flex-shrink: 0; }
    .dxf-btn {
      font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
      padding: 6px 8px; min-height: 32px; border-radius: 2px;
      border: 1.5px solid var(--viola); color: var(--viola); background: transparent;
      cursor: pointer; font-family: 'Manrope', sans-serif; transition: all 0.15s;
      text-decoration: none; display: inline-flex; align-items: center;
    }
    .dxf-btn:hover { background: var(--viola); color: var(--white); }
    .dxf-btn:focus-visible { box-shadow: var(--focus-ring); outline: none; }
    .dxf-viewer-wrap { border-top: 1px solid var(--gray-10); background: #0f0e1a; position: relative; }
    .dxf-viewer-wrap[hidden] { display: none; }
    .dxf-canvas { display: block; width: 100%; height: 180px; }
    .dxf-viewer-label { position: absolute; bottom: 5px; left: 8px; font-size: 9px; color: rgba(255,255,255,0.25); letter-spacing: 0.06em; text-transform: uppercase; pointer-events: none; }

    /* ─── BOTTOM NAV (mobile) ─────────────────────────────────────── */
    .bottom-nav { display: none; height: var(--bottom-nav-h); background: var(--white); border-top: 1px solid var(--gray-10); flex-shrink: 0; z-index: 100; }
    .bottom-nav-inner { display: flex; height: 100%; }
    .bottom-nav-btn {
      flex: 1; display: flex; flex-direction: column; align-items: center;
      justify-content: center; gap: 3px; border: none; background: transparent;
      cursor: pointer; font-family: 'Manrope', sans-serif;
      color: var(--gray-40); font-size: 9px; font-weight: 600;
      text-transform: uppercase; letter-spacing: 0.06em;
      border-top: 2px solid transparent; transition: color 0.15s, border-color 0.15s; min-height: 44px;
    }
    .bottom-nav-btn[aria-selected="true"] { color: var(--viola); border-top-color: var(--viola); }
    .bottom-nav-btn:focus-visible { box-shadow: inset var(--focus-ring); outline: none; }

    .mobile-sheet {
      position: fixed; bottom: var(--bottom-nav-h); left: 0; right: 0;
      height: 52dvh; background: var(--white);
      border-top: 1px solid var(--gray-10); border-radius: 12px 12px 0 0;
      z-index: 120; flex-direction: column; overflow: hidden;
      box-shadow: 0 -4px 24px rgba(0,0,0,0.12); display: none;
    }
    .mobile-sheet.visible { display: flex; }
    .mobile-sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--gray-10); margin: 10px auto 4px; flex-shrink: 0; }
    .mobile-sheet-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-40); padding: 0 16px 10px; flex-shrink: 0; }
    .mobile-sheet-content { flex: 1; overflow-y: auto; }

    /* ─── SCROLLBAR ───────────────────────────────────────────────── */
    ::-webkit-scrollbar { width: 4px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--gray-10); border-radius: 2px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--gray-40); }
    .placeholder-msg { padding: 20px 16px; color: var(--gray-40); font-size: 12px; line-height: 1.7; }

    /* ─── RESPONSIVE ──────────────────────────────────────────────── */
    @media (max-width: 1023px) { .right-panel { display: none; } }
    @media (max-width: 767px) {
      .pre-header { padding: 0 16px; }
      .pre-header-institution { display: none; }
      .menu-toggle { display: flex; }
      .header-app-version { display: none; }
      .site-header { height: 64px; padding: 0 16px; gap: 12px; }
      .header-app-divider { height: 32px; }
      .sidebar {
        position: fixed;
        top: calc(56px + 64px); /* pre-header + header */
        left: 0; bottom: 0;
        width: min(var(--sidebar-w), 85vw); transform: translateX(-100%);
        box-shadow: 4px 0 24px rgba(0,0,0,0.18);
      }
      .sidebar.open { transform: translateX(0); }
      .layer-toggle-label { display: none; }
      .layer-toggle { padding: 6px 8px; }
      .bottom-nav { display: flex; }
      .footer-inner { height: auto; padding: 20px 16px; }
      .footer-adhesion { height: auto; gap: 12px; }
      .footer-logo-img { height: 30px; }
    }
    @media (max-width: 374px) {
      .pre-header-icon { height: 20px; }
    }
    @media (forced-colors: active) {
      .layer-toggle.active { border: 2px solid ButtonText; }
      .catalog-item.active { border-left-color: Highlight; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
      .loader-ring { animation: none; border-color: var(--viola-lt); }
      .api-status .spinner { animation: none; }
    }

/* ─── LOGO (external SVG) ────────────────────────────────────────── */
.logo-img {
  height: 48px;
  width: auto;
  display: block;
  /* SVG has dark text (#1E1E1E) — correct for white header, no filter needed */
}

/* ─── LANGUAGE SWITCHER ──────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  gap: 2px;
  margin-right: 4px;
}
.lang-btn {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 2px;
  border: 1px solid var(--gray-10);
  background: transparent;
  color: var(--gray-40);
  cursor: pointer;
  transition: all 0.15s;
  min-height: 24px;
}
.lang-btn:hover { border-color: var(--viola); color: var(--viola); }
.lang-btn.active { background: var(--viola); border-color: var(--viola); color: var(--white); }
.lang-btn:focus-visible { box-shadow: var(--focus-ring); outline: none; }

/* ─── SETTINGS BUTTON ────────────────────────────────────────────── */
.settings-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 4px; border: 1px solid var(--gray-10);
  background: transparent; color: var(--gray-40); cursor: pointer; transition: all 0.15s;
  flex-shrink: 0;
}
.settings-toggle:hover { border-color: var(--viola); color: var(--viola); }
.settings-toggle.active { background: var(--viola); border-color: var(--viola); color: var(--white); }
.settings-toggle:focus-visible { box-shadow: var(--focus-ring); outline: none; }

/* ─── SETTINGS PANEL ─────────────────────────────────────────────── */
.settings-overlay {
  position: fixed; inset: 0; background: rgba(30,30,30,0.45);
  z-index: 300;
}
.settings-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 360px; max-width: 92vw;
  background: var(--white);
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  z-index: 301;
  display: flex; flex-direction: column;
  transform: translateX(0);
}
.settings-panel[hidden], .settings-overlay[hidden] { display: none; }

.settings-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--gray-10); flex-shrink: 0;
}
.settings-panel-title { font-size: 16px; font-weight: 700; color: var(--ossidiana); }
.settings-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 4px; border: none;
  background: transparent; color: var(--gray-40); cursor: pointer;
}
.settings-close:hover { color: var(--viola); }
.settings-close:focus-visible { box-shadow: var(--focus-ring); outline: none; }

.settings-panel-body { flex: 1; overflow-y: auto; padding: 20px; }

.settings-section { margin-bottom: 28px; }
.settings-section:last-child { margin-bottom: 0; }
.settings-section-title-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.settings-section-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gray-40); margin-bottom: 10px;
}
.settings-section-hint { font-size: 12px; color: var(--gray-40); margin: -4px 0 12px; }
.settings-reset-all {
  font-size: 11px; font-weight: 600; color: var(--viola); background: none; border: none;
  cursor: pointer; padding: 0; text-decoration: underline;
}
.settings-reset-all:hover { color: var(--viola-dark); }
.settings-reset-all:focus-visible { box-shadow: var(--focus-ring); outline: none; border-radius: 2px; }

.settings-layer-colors { display: flex; flex-direction: column; gap: 10px; }
.settings-layer-color-row {
  display: flex; align-items: center; gap: 10px;
}
.settings-layer-color-label {
  flex: 1; font-size: 13px; font-weight: 600; color: var(--off-black);
}
.settings-layer-color-input {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 30px; border: 1.5px solid var(--gray-10); border-radius: 6px;
  padding: 0; cursor: pointer; background: none;
}
.settings-layer-color-input::-webkit-color-swatch-wrapper { padding: 2px; }
.settings-layer-color-input::-webkit-color-swatch { border: none; border-radius: 4px; }
.settings-layer-color-reset {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 4px; border: none;
  background: transparent; color: var(--gray-40); cursor: pointer;
}
.settings-layer-color-reset:hover { color: var(--viola); }
.settings-layer-color-reset:focus-visible { box-shadow: var(--focus-ring); outline: none; }

.settings-apply-colors {
  margin-top: 12px; width: 100%;
  font-family: 'Manrope', sans-serif; font-size: 12.5px; font-weight: 700;
  color: var(--white); background: var(--viola); border: none; border-radius: 5px;
  padding: 9px 0; cursor: pointer; transition: background 0.15s;
}
.settings-apply-colors:hover { background: var(--viola-dark); }
.settings-apply-colors:focus-visible { box-shadow: var(--focus-ring); outline: none; }

.settings-logos { display: flex; flex-direction: column; gap: 32px; }
.settings-logo-row { display: flex; align-items: center; gap: 12px; }
.settings-logo-img { flex-shrink: 0; width: 100%; height: 40px; object-fit: contain; }
.settings-logo-img--ecomic { width: auto; height: 40px; }
.settings-logo-text { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--off-black); line-height: 1.3; }
.settings-logo-text strong { font-size: 12.5px; font-weight: 700; }
.settings-logo-text span { color: var(--gray-40); }

.settings-version { font-size: 12px; color: var(--gray-40); margin-bottom: 4px; }
.settings-claim { font-size: 12px; font-weight: 600; color: var(--ossidiana); }

@media (max-width: 480px) {
  .settings-panel { width: 100vw; max-width: 100vw; }
}

/* ─── RESPONSIVE: hide tagline on header (logo SVG already contains it) ── */
@media (max-width: 767px) {
  .logo-img { height: 22px; }
}
