
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


:root,
[data-theme="dark"] {
  
  --glass-bg:          rgba(255, 255, 255, 0.05);
  --glass-bg-hover:    rgba(255, 255, 255, 0.08);
  --glass-border:      rgba(255, 255, 255, 0.12);
  --glass-border-hover:rgba(255, 255, 255, 0.18);
  --glass-shadow:      0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  --blur:              blur(20px) saturate(180%);
  --accent:            #3b82f6;
  --accent-glow:       rgba(59, 130, 246, 0.4);
  --success:           #22c55e;
  --danger:            #ef4444;
  --warning:           #f59e0b;
  --text:              rgba(255, 255, 255, 0.90);
  --text-muted:        rgba(255, 255, 255, 0.50);
  --text-dim:          rgba(255, 255, 255, 0.30);
  --radius:            16px;
  --radius-sm:         10px;
  --font:              'Segoe UI', system-ui, sans-serif;

  
  --bg-gradient-1:     #0a0a1a;
  --bg-gradient-2:     #0d1117;
  --bg-gradient-3:     #0a1628;
  --orb-color-1:       rgba(59, 130, 246, 0.18);
  --orb-color-2:       rgba(139, 92, 246, 0.15);
  --orb-color-3:       rgba(6, 182, 212, 0.12);
  --orb-color-4:       rgba(59, 130, 246, 0.10);

  
  --input-bg:          rgba(0, 0, 0, 0.30);
  --input-border:      rgba(255, 255, 255, 0.10);
  --input-text:        rgba(255, 255, 255, 0.90);
  --input-placeholder: rgba(255, 255, 255, 0.30);

  
  --nav-bg:            rgba(10, 10, 26, 0.80);
  --nav-border:        rgba(255, 255, 255, 0.08);

  
  --btn-ghost-bg:      rgba(255, 255, 255, 0.06);
  --btn-ghost-border:  rgba(255, 255, 255, 0.12);
  --btn-ghost-text:    rgba(255, 255, 255, 0.70);
  --btn-ghost-hover-bg:rgba(255, 255, 255, 0.12);

  
  --dropdown-bg:           rgba(15, 15, 35, 0.95);
  --dropdown-item-hover:   rgba(255, 255, 255, 0.08);

  
  --modal-bg:          rgba(15, 15, 40, 0.90);
  --modal-backdrop:    rgba(0, 0, 10, 0.65);

  
  --scrollbar-thumb:   rgba(255, 255, 255, 0.15);
  --scrollbar-track:   rgba(0, 0, 0, 0.20);

  
  --ruler-bg:          rgba(15, 15, 35, 0.90);
  --ruler-text:        rgba(255, 255, 255, 0.50);
  --ruler-border:      rgba(255, 255, 255, 0.06);
  --workspace-bg:      rgba(0, 0, 0, 0.20);
  --workspace-dots:    rgba(255, 255, 255, 0.05);
  --canvas-bg:         #ffffff;
  --canvas-shadow:     0 4px 24px rgba(0, 0, 0, 0.50), 0 0 0 1px rgba(255,255,255,0.10);

  
  --theme-transition:  0.3s ease;
}


[data-theme="light"] {
  --glass-bg:          rgba(255, 255, 255, 0.65);
  --glass-bg-hover:    rgba(255, 255, 255, 0.80);
  --glass-border:      rgba(59, 130, 246, 0.15);
  --glass-border-hover:rgba(59, 130, 246, 0.30);
  --glass-shadow:      0 8px 32px rgba(59, 130, 246, 0.12), inset 0 1px 0 rgba(255,255,255,0.80);
  --blur:              blur(20px) saturate(200%);
  --accent:            #2563eb;
  --accent-glow:       rgba(37, 99, 235, 0.25);

  --text:              rgba(15, 20, 40, 0.90);
  --text-muted:        rgba(15, 20, 40, 0.55);
  --text-dim:          rgba(15, 20, 40, 0.30);

  --bg-gradient-1:     #dde8ff;
  --bg-gradient-2:     #e8f0fe;
  --bg-gradient-3:     #d8e6ff;
  --orb-color-1:       rgba(59, 130, 246, 0.14);
  --orb-color-2:       rgba(139, 92, 246, 0.10);
  --orb-color-3:       rgba(16, 185, 129, 0.10);
  --orb-color-4:       rgba(37, 99, 235, 0.08);

  --input-bg:          rgba(255, 255, 255, 0.80);
  --input-border:      rgba(59, 130, 246, 0.20);
  --input-text:        rgba(15, 20, 40, 0.90);
  --input-placeholder: rgba(15, 20, 40, 0.40);

  --nav-bg:            rgba(255, 255, 255, 0.75);
  --nav-border:        rgba(59, 130, 246, 0.12);

  --btn-ghost-bg:      rgba(15, 20, 40, 0.05);
  --btn-ghost-border:  rgba(15, 20, 40, 0.12);
  --btn-ghost-text:    rgba(15, 20, 40, 0.70);
  --btn-ghost-hover-bg:rgba(59, 130, 246, 0.10);

  --dropdown-bg:           rgba(255, 255, 255, 0.95);
  --dropdown-item-hover:   rgba(59, 130, 246, 0.08);

  --modal-bg:          rgba(255, 255, 255, 0.92);
  --modal-backdrop:    rgba(15, 20, 40, 0.40);

  --scrollbar-thumb:   rgba(59, 130, 246, 0.25);
  --scrollbar-track:   rgba(59, 130, 246, 0.05);

  --ruler-bg:          rgba(230, 238, 255, 0.95);
  --ruler-text:        rgba(15, 20, 40, 0.55);
  --ruler-border:      rgba(59, 130, 246, 0.12);
  --workspace-bg:      rgba(200, 215, 255, 0.30);
  --workspace-dots:    rgba(59, 130, 246, 0.12);
  --canvas-shadow:     0 4px 24px rgba(59, 130, 246, 0.20), 0 0 0 1px rgba(59,130,246,0.15);
}

body {
  font-family: var(--font);
  background: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 40%, var(--bg-gradient-3) 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  
  overflow-x: clip;
  transition: background-color var(--theme-transition), color var(--theme-transition);
}
@supports not (overflow: clip) {
  body { overflow-x: hidden; }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, var(--orb-color-1) 0%, transparent 70%),
    radial-gradient(ellipse 50% 45% at 80% 15%, var(--orb-color-2) 0%, transparent 65%),
    radial-gradient(ellipse 55% 50% at 60% 80%, var(--orb-color-3) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 10% 75%, var(--orb-color-4) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }


.header {
  background: var(--nav-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--nav-border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.4rem; font-weight: 700; flex-shrink: 0;
}
.logo-icon { font-size: 1.1rem; }
.logo-accent { color: var(--accent); }


.nav { display: flex; gap: 4px; }
.nav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: .9rem;
  font-family: var(--font);
  transition: background .2s, color .2s;
}
.nav-btn:hover  { background: rgba(255,255,255,.08); color: var(--text); }
.nav-btn.active { background: rgba(59,130,246,.18); color: var(--accent); font-weight: 600; }


.main { flex: 1; max-width: 1200px; margin: 0 auto; padding: 32px 24px; width: 100%; }


.section { display: none; }
.section.active { display: block; }
.section-header { margin-bottom: 28px; }
.section-header h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 6px; }
.section-desc { color: var(--text-muted); font-size: .95rem; }


.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--glass-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.1);
}
.card-wide { grid-column: 1 / -1; }
.card-title {
  font-size: 1rem; font-weight: 600;
  margin-bottom: 20px; color: var(--text);
}
.card-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-title-row .card-title { margin-bottom: 0; }


.tab-group {
  display: flex; gap: 4px; margin-bottom: 16px;
  background: rgba(0,0,0,.35); border-radius: 10px; padding: 3px;
}
.tab {
  flex: 1; background: none; border: none; color: var(--text-muted);
  padding: 7px 12px; border-radius: 7px; cursor: pointer; font-size: .875rem;
  font-family: var(--font); transition: background .2s, color .2s;
}
.tab.active {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  color: var(--text); font-weight: 600;
}
.tab-content { display: none; }
.tab-content.active { display: block; }


.file-drop {
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 32px 20px;
  text-align: center;
  transition: border-color .2s, background .2s;
  cursor: pointer;
  margin-bottom: 12px;
}
.file-drop:hover, .file-drop.drag-over {
  border-color: var(--accent);
  background: rgba(59,130,246,.08);
}
.file-drop-icon { font-size: 2rem; margin-bottom: 8px; }
.file-drop p { color: var(--text-muted); margin-bottom: 12px; font-size: .9rem; }


.reader-upload-icon {
  width: 48px; height: 48px; display: block;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 6px rgba(99,179,250,.35));
  transition: filter .3s ease, transform .3s ease;
}

#pdf-drop:hover .reader-upload-icon,
.file-drop:hover .reader-upload-icon {
  filter: drop-shadow(0 0 12px rgba(99,179,250,.7))
          drop-shadow(0 0 24px rgba(167,139,250,.4));
  transform: translateY(-3px);
}

#pdf-drop.drag-over .reader-upload-icon,
.file-drop.drag-over .reader-upload-icon {
  filter: drop-shadow(0 0 16px rgba(99,179,250,.9))
          drop-shadow(0 0 32px rgba(167,139,250,.6));
  transform: translateY(-5px) scale(1.05);
}


.csv-upload-icon {
  width: 48px; height: 48px; display: block;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 6px rgba(99,179,250,.35));
  transition: filter .3s ease, transform .3s ease;
}

.file-drop:hover .csv-upload-icon {
  filter: drop-shadow(0 0 12px rgba(99,179,250,.7))
          drop-shadow(0 0 24px rgba(167,139,250,.4));
  transform: translateY(-3px);
}

.file-drop.drag-over .csv-upload-icon {
  filter: drop-shadow(0 0 16px rgba(99,179,250,.9))
          drop-shadow(0 0 32px rgba(167,139,250,.6));
  transform: translateY(-5px) scale(1.05);
}
.file-name { color: var(--accent); font-size: .85rem; margin-top: 8px; }


.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.form-label { display: flex; flex-direction: column; gap: 6px; font-size: .875rem; color: var(--text-muted); }
.form-input {
  background: rgba(0,0,0,.35);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text);
  font-size: .9rem;
  padding: 9px 12px;
  font-family: var(--font);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.2);
}
select.form-input { cursor: pointer; }
select.form-input option { background: #131720; color: var(--text); }


[data-theme="light"] .form-input {
  background:   #ffffff !important;
  background-color: #ffffff !important;
  border-color: rgba(37, 99, 235, 0.22) !important;
  color:        rgba(15, 20, 40, 0.90) !important;
}
[data-theme="light"] select.form-input option {
  background: #ffffff !important;
  color:      rgba(15, 20, 40, 0.90) !important;
}

[data-theme="light"] input[type="color"].form-input {
  background: transparent !important;
  background-color: transparent !important;
}

.textarea {
  width: 100%;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text);
  font-size: .875rem;
  font-family: 'Courier New', monospace;
  padding: 10px 12px;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
  line-height: 1.5;
  
  min-height: 100px;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.2);
}

.textarea::-webkit-scrollbar,
.codes-editor-wrap::-webkit-scrollbar { width: 6px; }
.textarea::-webkit-scrollbar-track,
.codes-editor-wrap::-webkit-scrollbar-track { background: transparent; }
.textarea::-webkit-scrollbar-thumb,
.codes-editor-wrap::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.2);
  border-radius: 3px;
}
.textarea::-webkit-scrollbar-thumb:hover,
.codes-editor-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.35);
}

.checkbox-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: .875rem; cursor: pointer; }
.checkbox-label input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; }
.input-with-select { display: flex; gap: 8px; }


.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; border: none; border-radius: 10px; cursor: pointer;
  font-family: var(--font); font-weight: 600; font-size: .9rem;
  padding: 10px 20px; transition: transform .2s ease, box-shadow .2s ease, opacity .2s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: scale(.97) translateY(0); }
.btn:disabled { opacity: .35; cursor: not-allowed; }

.btn-primary {
  background: rgba(59,130,246,.85);
  color: #fff;
  box-shadow: 0 4px 15px rgba(59,130,246,.35);
  border: 1px solid rgba(59,130,246,.5);
}
.btn-primary:hover:not(:disabled) {
  background: rgba(59,130,246,1);
  box-shadow: 0 6px 20px rgba(59,130,246,.5);
}
.btn-secondary {
  background: rgba(255,255,255,.12);
  color: var(--text);
  border: 1px solid var(--glass-border);
}
.btn-secondary:hover:not(:disabled) { background: rgba(255,255,255,.18); }
.btn-success {
  background: rgba(34,197,94,.85);
  color: #fff;
  box-shadow: 0 4px 15px rgba(34,197,94,.3);
  border: 1px solid rgba(34,197,94,.5);
}
.btn-success:hover:not(:disabled) { background: rgba(34,197,94,1); box-shadow: 0 6px 20px rgba(34,197,94,.45); }
.btn-danger {
  background: rgba(239,68,68,.8);
  color: #fff;
  box-shadow: 0 4px 12px rgba(239,68,68,.3);
  border: 1px solid rgba(239,68,68,.5);
}
.btn-danger:hover:not(:disabled) { background: rgba(239,68,68,1); }
.btn-ghost {
  background: rgba(255,255,255,.08);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,.14); color: var(--text); }

.btn-sm   { padding: 6px 12px; font-size: .8rem; border-radius: 8px; }
.btn-full { width: 100%; margin-top: 12px; }
.btn-row  { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }


.status-msg { margin-top: 10px; font-size: .875rem; min-height: 18px; }
.status-msg.error   { color: var(--danger); }
.status-msg.success { color: var(--success); }
.status-msg.loading { color: var(--text-muted); }


.badge {
  background: rgba(59,130,246,.2);
  color: var(--accent);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: .8rem;
  font-weight: 600;
}


.hint { font-size: .8rem; color: var(--text-muted); }
.row-between { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }


.preview-box {
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  background: rgba(0,0,0,.2);
  display: flex; justify-content: center;
}
.preview-label {
  border: 1px solid #555; border-radius: 4px;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; width: 220px; height: 76px;
}
.preview-dm {
  width: 48px; height: 48px;
  background: repeating-conic-gradient(#333 0% 25%, #666 0% 50%) 0 0 / 6px 6px;
  border: 1px solid #888; flex-shrink: 0;
}
.preview-text { display: flex; flex-direction: column; gap: 5px; flex: 1; overflow: hidden; }
.preview-line { height: 8px; background: #444; border-radius: 3px; }
.preview-line.bold { background: #ccc; height: 10px; }
.preview-line.short { width: 70%; }


.sscc-results { max-height: 400px; overflow-y: auto; }
.sscc-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.sscc-table th {
  background: rgba(0,0,0,.3); padding: 8px 12px; text-align: left;
  color: var(--text-muted); border-bottom: 1px solid var(--glass-border);
  font-weight: 600; font-size: .8rem;
}
.sscc-table td { padding: 7px 12px; border-bottom: 1px solid var(--glass-border); font-family: 'Courier New', monospace; font-size: .8rem; }
.sscc-table tr:last-child td { border-bottom: none; }
.sscc-table tr:hover td { background: rgba(255,255,255,.03); }


.scan-results { max-height: 500px; overflow-y: auto; }
.scan-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.scan-table th {
  background: rgba(0,0,0,.35); padding: 8px 10px; text-align: left;
  color: var(--text-muted); border-bottom: 1px solid var(--glass-border);
  font-weight: 600; font-size: .75rem; white-space: nowrap; position: sticky; top: 0;
  backdrop-filter: blur(10px);
}
.scan-table td { padding: 7px 10px; border-bottom: 1px solid var(--glass-border); font-family: 'Courier New', monospace; word-break: break-all; }
.scan-table tr:hover td { background: rgba(255,255,255,.03); }
.scan-table .col-page { width: 50px; text-align: center; }
.scan-table .col-gtin { width: 130px; }
.scan-table .col-serial { width: 120px; }


.gln-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.gln-item {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,0,0,.25); border: 1px solid var(--glass-border);
  border-radius: 10px; padding: 10px 14px;
}
.gln-item-info { display: flex; flex-direction: column; gap: 2px; }
.gln-item-name { font-weight: 600; font-size: .9rem; }
.gln-item-value { font-family: 'Courier New', monospace; color: var(--text-muted); font-size: .8rem; }

.divider { border: none; border-top: 1px solid var(--glass-border); margin: 20px 0; }
.placeholder-text { color: var(--text-muted); font-size: .875rem; text-align: center; padding: 20px; }


.footer {
  border-top: 1px solid var(--glass-border);
  padding: 20px 24px;
  color: var(--text-muted);
  font-size: .8rem;
  background: rgba(10,10,26,.6);
  backdrop-filter: blur(10px);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; justify-content: center;
}
.footer-brand { font-weight: 700; color: var(--text); font-size: .9rem; }
.footer-sep   { color: rgba(255,255,255,.2); }


.color-input { padding: 4px 6px; height: 38px; cursor: pointer; }


@media (max-width: 768px) {
  .header-inner { gap: 16px; flex-wrap: wrap; height: auto; padding: 12px 16px; }
  .nav-btn { padding: 6px 10px; font-size: .8rem; }
  .main { padding: 20px 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .btn-row { flex-direction: column; }
  .preview-box { display: none; }
  .card { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}

select.form-input.sm { padding: 5px 8px; font-size: .8rem; }


@media (prefers-reduced-motion: reduce) {
  .btn, .card, .tab, .nav-btn, .form-input, .textarea { transition: none; }
  .card:hover { transform: none; box-shadow: var(--glass-shadow); }
  .btn:hover:not(:disabled) { transform: none; }
}



.designer-wrap {
  margin-top: 20px;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.designer-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--glass-border);
}
.designer-title { font-size: 1rem; font-weight: 600; flex-shrink: 0; }

.designer-toolbar {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,.03);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
}
.dsgn-tbar-block { display: flex; flex-direction: column; gap: 5px; }
.dsgn-tbar-label { font-size: 10px; color: rgba(255,255,255,.4); line-height: 1; padding: 0 2px; }
.dsgn-tbar-btns  { display: flex; flex-direction: row; align-items: center; gap: 6px; flex-wrap: wrap; }
.dsgn-tbar-sep   { width: 1px; align-self: stretch; background: rgba(255,255,255,.12); margin: 0 8px; }
.dsgn-tpl-controls { gap: 4px; }
.dsgn-tpl-sel  { width: 140px !important; }
.dsgn-tpl-name { width: 120px !important; }
.dsgn-field-sel { width: 160px !important; }

.designer-body { display: flex; min-height: 320px; }

.designer-canvas-area {
  flex: 1; padding: 20px;
  display: flex; flex-direction: column; align-items: center; overflow: auto;
}
.dsgn-canvas-outer {
  position: relative;
  border: 2px dashed var(--glass-border);
  border-radius: 4px; overflow: visible; cursor: default;
  margin: 0 auto;
}
.dsgn-canvas { position: relative; background: #fff; overflow: hidden; }
.dsgn-canvas-hint { margin-top: 8px; text-align: center; }

.dsgn-el {
  position: absolute; box-sizing: border-box;
  border: 1px dashed rgba(100,116,139,.5);
  cursor: move; user-select: none;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .1s; overflow: visible;
  min-width: 10px; min-height: 10px;
}
.dsgn-el:hover { border-color: var(--accent); }
.dsgn-el.dsgn-selected { border: 2px solid var(--accent); box-shadow: 0 0 0 1px var(--accent); z-index: 10; }

.dsgn-el-dm { flex-direction: column; gap: 2px; background: #f8f8f8; }
.dsgn-dm-pattern {
  width: 70%; height: 70%;
  background-image: repeating-conic-gradient(#333 0% 25%, #eee 0% 50%);
  background-size: 6px 6px; flex-shrink: 0;
}
.dsgn-el-field { background: rgba(59,130,246,.08); }

.dsgn-el-label {
  color: #555; padding: 0 3px; pointer-events: none;
  overflow: hidden; text-overflow: ellipsis;
  display: block; width: 100%; box-sizing: border-box;
}

.dsgn-el-dm .dsgn-el-label,
.dsgn-el-bc .dsgn-el-label,
.dsgn-el-image .dsgn-el-label {
  font-size: 9px; white-space: nowrap; color: #777;
  text-align: center; flex-shrink: 0;
}

.dsgn-resize {
  position: absolute; bottom: 0; right: 0;
  width: 10px; height: 10px; cursor: se-resize;
  background: var(--accent); opacity: 0;
  border-radius: 2px 0 0 0; transition: opacity .15s; z-index: 20;
}
.dsgn-el:hover .dsgn-resize,
.dsgn-el.dsgn-selected .dsgn-resize { opacity: 1; }

.designer-props {
  width: 240px; flex-shrink: 0;
  border-left: 1px solid var(--glass-border);
  padding: 16px; overflow-y: auto;
  background: rgba(0,0,0,.15);
}
.dsgn-hint { color: var(--text-muted); font-size: .8rem; text-align: center; padding: 20px 0; }
.dsgn-prop-title { font-size: .875rem; font-weight: 600; margin-bottom: 12px; color: var(--accent); }
.dsgn-prop-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px;
}
.dsgn-prop-row label,
.dsgn-prop-label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: .75rem; color: var(--text-muted); margin-bottom: 10px;
}
.dsgn-prop-row label { margin-bottom: 0; }
.dsgn-prop-checks { display: flex; gap: 12px; margin-bottom: 10px; }

.dsgn-el-image { background: rgba(0,0,0,.2); border-style: solid; border-color: rgba(100,116,139,.4); }
.dsgn-el-image img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; display: block; }

.dsgn-el-custom { background: rgba(34,197,94,.08); overflow: hidden; }
.dsgn-el-custom .dsgn-el-label { color: #22c55e; }
.dsgn-el-custom.editing { cursor: text; border-style: solid; border-color: #22c55e; }
.dsgn-el-custom .dsgn-inline-input {
  position: absolute; inset: 0; border: none; background: transparent;
  color: #000; font: inherit; width: 100%; height: 100%;
  padding: 2px 4px; resize: none; outline: none;
}

.dsgn-el-bc {
  background: #fff; border-color: rgba(100,116,139,.4);
  flex-direction: column; gap: 2px;
}
.dsgn-bc-stripes {
  width: 90%; height: 65%;
  background: repeating-linear-gradient(
    90deg,
    #222 0px, #222 2px, #fff 2px, #fff 4px,
    #222 4px, #222 5px, #fff 5px, #fff 8px,
    #222 8px, #222 11px, #fff 11px, #fff 13px
  );
  flex-shrink: 0;
}


.dup-banner {
  margin-top: 10px; padding: 10px 14px;
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.35);
  border-radius: 10px; font-size: .85rem; color: var(--warning);
}
.dup-banner.hidden { display: none; }
.dup-actions { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }


.b64-results {
  margin-top: 8px;
  overflow: auto;
  max-height: 260px;
}
.b64-table {
  width: 100%; border-collapse: collapse; font-size: .78rem;
}
.b64-table th {
  background: rgba(0,0,0,.4); padding: 6px 8px; text-align: left;
  color: var(--text-muted); border-bottom: 1px solid var(--glass-border);
  font-size: .75rem; white-space: nowrap; position: sticky; top: 0;
  backdrop-filter: blur(10px);
}
.b64-table td {
  padding: 5px 8px; border-bottom: 1px solid var(--glass-border);
  font-family: 'Courier New', monospace;
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.b64-table tr:last-child td { border-bottom: none; }
.b64-row-ok        { background: rgba(34,197,94,.07); }
.b64-row-error     { background: rgba(239,68,68,.07); }
.b64-row-empty     { background: rgba(255,255,255,.02); }
.b64-row-duplicate { background: rgba(251,191,36,.15); }
.b64-row-current   { box-shadow: inset 3px 0 0 var(--accent); }


.b64-filter-panel {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.b64-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.b64-filter-label { font-size: .8rem; color: var(--text-muted); }
.b64-filter-spacer { flex: 1; }
.b64-search-wrap {
  position: relative; flex: 1; min-width: 200px;
  display: flex; align-items: center;
}
.b64-search-icon {
  position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%); font-size: .875rem; pointer-events: none;
  color: var(--text-muted);
}
.b64-search-input { padding-left: 32px !important; width: 100%; }
.b64-dropdown { min-width: 150px; }
.b64-tg-btn {
  padding: 6px 12px;
  font-size: .8rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.04);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s ease;
}
.b64-tg-btn:hover { background: rgba(255,255,255,.08); color: var(--text); }
.b64-tg-btn.tg-active {
  background: rgba(59,130,246,.25);
  border-color: rgba(59,130,246,.5);
  color: #fff;
}
.b64-filter-stats { justify-content: space-between; }
.b64-pager { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.b64-pager-btn {
  min-width: 28px;
  padding: 4px 8px;
  font-size: .8rem;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.04);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s ease;
}
.b64-pager-btn:hover:not(:disabled) { background: rgba(255,255,255,.08); color: var(--text); }
.b64-pager-btn:disabled { opacity: .35; cursor: not-allowed; }
.b64-pager-btn.pg-active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.b64-pager-ellipsis { color: var(--text-dim); padding: 0 4px; }
.b64-page-size { min-width: 110px; }
.b64-ok    { color: var(--success); }
.b64-error { color: var(--danger); }
.b64-empty { color: var(--text-muted); }


.details-block { }
.details-summary {
  cursor: pointer; font-size: .85rem; font-weight: 600;
  color: var(--accent); user-select: none; padding: 4px 0;
}
.details-summary:hover { opacity: .8; }


.codes-editor-wrap {
  display: flex;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0,0,0,.35);
  transition: border-color .2s, box-shadow .2s;
}
.codes-editor-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.2);
}
.codes-line-nums {
  display: none;
  flex-direction: column;
  padding: 10px 0;
  background: rgba(0,0,0,.25);
  border-right: 1px solid var(--glass-border);
  overflow: hidden;              
  pointer-events: none;
  user-select: none;
  min-width: 32px;
  height: 280px;                 
  text-align: right;
  flex-shrink: 0;
}
.codes-line-num {
  font-family: 'Courier New', monospace;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--text-dim);
  padding: 0 6px;
  cursor: default;
  display: block;
}
.codes-line-num.dup {
  color: var(--warning);
  background: rgba(245,158,11,.12);
  border-radius: 3px;
}
.codes-line-num.search-match {
  color: var(--accent);
  background: rgba(59,130,246,.18);
  border-radius: 3px;
}
.codes-line-num.line-highlight {
  background: rgba(251,191,36,.4);
  color: #fff;
  font-weight: 700;
  border-radius: 3px;
  transition: background .3s ease;
}
.codes-textarea {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  flex: 1;
  min-width: 0;
  
  height: 280px !important;
  min-height: 280px !important;
  max-height: 280px !important;
  resize: none !important;
  overflow-y: auto !important;
}
.codes-textarea:focus {
  outline: none;
  border: none !important;
  box-shadow: none !important;
}


.codes-search-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 6px 10px;
  background: rgba(0,0,0,.3);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}
.codes-search-icon { font-size: .9rem; flex-shrink: 0; }
.codes-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: .875rem;
  font-family: var(--font);
  outline: none;
  min-width: 0;
}
.codes-search-input::placeholder { color: var(--text-dim); }
.codes-search-counter {
  font-size: .78rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 80px;
  text-align: center;
}
.codes-search-nav { padding: 4px 8px !important; font-size: .8rem !important; min-width: 28px; }

@media (max-width: 900px) {
  .designer-body { flex-direction: column; }
  .designer-props { width: 100%; border-left: none; border-top: 1px solid var(--glass-border); }
  .dsgn-tpl-sel, .dsgn-tpl-name { width: 100px !important; }
}


::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,.2); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.25); }


@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
}


.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  background: rgba(18, 18, 42, 0.90);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.07);
  padding: 14px 20px; min-width: 260px; max-width: 360px;
  display: flex; align-items: center; gap: 12px;
  pointer-events: all; border-left: 3px solid transparent;
  animation: toastIn .3s ease;
}
.toast.t-success { border-left-color: var(--success); }
.toast.t-error   { border-left-color: var(--danger); }
.toast.t-warning { border-left-color: var(--warning); }
.toast.t-info    { border-left-color: var(--accent); }
.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.toast-icon--success { color: var(--success, rgba(74, 222, 128, 0.90)); }
.toast-icon--error   { color: var(--danger,  rgba(248, 113, 113, 0.90)); }
.toast-icon--warning { color: var(--warning, rgba(251, 191, 36,  0.90)); }
.toast-icon--info    { color: var(--accent,  rgba(99, 179, 250,  0.90)); }
.toast-text { font-size: .875rem; color: var(--text); flex: 1; }
@keyframes toastIn  { from { opacity:0; transform:translateY(14px) scale(.95); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes toastOut { to   { opacity:0; transform:translateY(8px)  scale(.95); } }
.toast.hiding { animation: toastOut .25s ease forwards; }


.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,12,.55); backdrop-filter: blur(6px);
  z-index: 9000; display: flex; align-items: center; justify-content: center;
  animation: fadeInOv .2s ease;
}
@keyframes fadeInOv { from { opacity:0; } to { opacity:1; } }
.modal-box {
  background: rgba(16, 16, 36, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.07);
  padding: 32px; max-width: 420px; width: 90%;
  animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity:0; transform:scale(.95); } to { opacity:1; transform:scale(1); } }
.modal-title   { font-size: 1rem; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.modal-message { font-size: .9rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.55; white-space: pre-wrap; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }


.codes-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-top: 10px;
}
.codes-bottom-btns { display: flex; gap: 8px; align-items: center; }
.btn-dup {
  background: rgba(251,191,36,.15);
  border: 1px solid rgba(251,191,36,.3);
  color: rgba(251,191,36,.95);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}
.btn-dup:hover { background: rgba(251,191,36,.25); }
.btn-dup:active { transform: scale(.97); }

.codes-dup-row { display: none; }  
.dup-modal-list {
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 18px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: rgba(0,0,0,.2);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
.dup-modal-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: .875rem;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .15s ease;
}
.dup-modal-item:last-child { border-bottom: none; }
.dup-modal-item:hover { background: rgba(59,130,246,.12); }
.dup-modal-empty { padding: 20px; text-align: center; color: var(--text-muted); font-size: .875rem; }



#pdf-progress-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 9999;
  align-items: center; justify-content: center;
}
#pdf-progress-overlay.active { display: flex; }

.pdf-progress-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 10, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pdf-progress-modal {
  position: relative; z-index: 1;
  background: rgba(15, 15, 40, 0.90);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
  
  padding: 36px 40px 32px !important;
  min-width: 540px; max-width: 640px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  overflow: visible !important;
}

.pdf-progress-title {
  font-size: 16px; font-weight: 600;
  color: rgba(255,255,255,.9);
  text-align: center; letter-spacing: .3px;
}

.pdf-progress-track-wrap {
  width: 100%;
  box-sizing: border-box;
  display: flex; align-items: center; gap: 12px;
  
  padding: 52px 0 16px 0;
  overflow: visible !important;
}

.pdf-progress-label-start,
.pdf-progress-label-end {
  flex-shrink: 0;
  font-size: 13px;
  color: rgba(255,255,255,.45);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 40px;            
  text-align: center;
}
.pdf-finish-flag {
  font-size: 20px; line-height: 1;
  
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', sans-serif;
}

.pdf-progress-track {
  flex: 1;
  position: relative;       
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.06);
  margin: 0 18px;           
  overflow: visible !important;
}
.pdf-progress-fill {
  position: absolute; left: 0; top: 0;
  height: 100%; width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  box-shadow: 0 0 8px rgba(59,130,246,.6), 0 0 16px rgba(139,92,246,.3);
  transition: width .4s cubic-bezier(.4,0,.2,1);
}
.pdf-progress-track::after {
  content: '';
  position: absolute; left: 0; top: -2px;
  height: 10px; width: var(--fill-width, 0%);
  border-radius: 5px;
  background: transparent;
  box-shadow: 0 0 12px rgba(99,179,250,.4);
  transition: width .4s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}

.pdf-progress-icon-wrap {
  position: absolute;
  
  top: auto !important;
  bottom: calc(100% + 10px);
  left: 0%;                                  
  transform: translateX(-50%);               
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: left .4s cubic-bezier(.4,0,.2,1);
  z-index: 10;
}

.pdf-progress-icon-wrap {
  perspective: 320px;
  perspective-origin: center center;
  
  overflow: visible;
}
.pdf-progress-dm-icon {
  width: 40px; height: 40px;
  filter: drop-shadow(0 0 10px rgba(99,179,250,.8))
          drop-shadow(0 0 20px rgba(167,139,250,.5));
  animation: dm-float-3d 6s ease-in-out infinite;
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform;   
}

@keyframes dm-float-3d {
  0%   { transform: rotateY(0deg)   rotateX(0deg)  translateY(0px);  }
  25%  { transform: rotateY(22deg)  rotateX(4deg)  translateY(-3px); }
  50%  { transform: rotateY(0deg)   rotateX(0deg)  translateY(0px);  }
  75%  { transform: rotateY(-22deg) rotateX(-4deg) translateY(-3px); }
  100% { transform: rotateY(0deg)   rotateX(0deg)  translateY(0px);  }
}

@media (prefers-reduced-motion: reduce) {
  .pdf-progress-dm-icon {
    animation: none !important;
    transform: none !important;
  }
}
.pdf-progress-counter {
  background: rgba(15,15,40,.92);
  border: 1px solid rgba(99,179,250,.35);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 13px !important;       
  font-weight: 600;
  color: rgba(255,255,255,.95);
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
  transform: none !important;        
}

.pdf-progress-substatus {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  text-align: center;
  min-height: 18px;
  transition: opacity .3s ease;
}




.dsgn-snap-toggle.snap-on {
  background: rgba(59,130,246,.22) !important;
  color: var(--accent) !important;
  border-color: rgba(59,130,246,.45) !important;
}


.dsgn-fmt-row { display: flex; gap: 4px; margin-bottom: 10px; }
.dsgn-fmt-btn {
  flex: 1; padding: 5px 4px; font-size: .82rem;
  background: rgba(255,255,255,.06); border: 1px solid var(--glass-border);
  border-radius: 6px; cursor: pointer; color: var(--text-muted);
  transition: background .15s, color .15s; font-family: var(--font);
}
.dsgn-fmt-btn:hover { background: rgba(255,255,255,.12); color: var(--text); }
.dsgn-fmt-btn.fmt-active { background: rgba(59,130,246,.24); color: var(--accent); border-color: rgba(59,130,246,.42); }
.dsgn-fmt-btn.fmt-b  { font-weight: 700; }
.dsgn-fmt-btn.fmt-i  { font-style: italic; }
.dsgn-fmt-btn.fmt-u  { text-decoration: underline; }
.dsgn-fmt-btn.fmt-s  { text-decoration: line-through; }


.dsgn-valign-row { display: flex; gap: 4px; margin-bottom: 10px; }
.dsgn-valign-btn {
  flex: 1; padding: 5px 4px; font-size: .9rem;
  background: rgba(255,255,255,.06); border: 1px solid var(--glass-border);
  border-radius: 6px; cursor: pointer; color: var(--text-muted);
  transition: background .15s, color .15s; text-align: center;
}
.dsgn-valign-btn:hover { background: rgba(255,255,255,.12); color: var(--text); }
.dsgn-valign-btn.va-active { background: rgba(59,130,246,.24); color: var(--accent); border-color: rgba(59,130,246,.42); }


.dsgn-align-section { margin-bottom: 8px; }
.dsgn-align-title { font-size: .68rem; color: rgba(255,255,255,.45); margin-bottom: 4px; }
.dsgn-align-row { display: flex; gap: 4px; }
.dsgn-align-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid transparent; border-radius: 6px;
  cursor: pointer; padding: 0; flex-shrink: 0;
  color: rgba(255,255,255,.4);
  transition: color .15s, background .15s, border-color .15s;
}
.dsgn-align-btn:hover { color: rgba(255,255,255,.75); }
.dsgn-align-btn.al-active {
  color: #fff;
  background: rgba(59,130,246,.3);
  border-color: rgba(59,130,246,.5);
}




.dg-topbar {
  display: flex; align-items: center;
  gap: 14px;
  padding: 10px 20px;
  margin-bottom: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  flex-wrap: wrap;
}
.dg-topbar-ic { flex-shrink: 0; filter: drop-shadow(0 0 4px rgba(99,179,250,.3)); }
.dg-tb-group { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.dg-tb-lbl {
  font-size: 12px; color: rgba(255,255,255,.55);
  font-weight: 500;
}
.dg-tb-sep-x { color: rgba(255,255,255,.25); font-size: 12px; }
.dg-tb-unit { font-size: 11px; color: rgba(255,255,255,.4); }
.dg-tb-inp {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: rgba(255,255,255,.9);
  font-size: 13px;
  text-align: center;
  padding: 4px 8px;
  width: 64px;
  font-family: var(--font);
  box-sizing: border-box;
  transition: border-color .15s ease;
}
.dg-tb-inp:focus { outline: none; border-color: rgba(59,130,246,.5); }
.dg-tb-color {
  width: 30px; height: 28px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  background: rgba(0,0,0,.25);
  cursor: pointer; padding: 2px;
}
.dg-tb-sep { width: 1px; align-self: stretch; background: rgba(255,255,255,.08); }
.dg-tb-flex { flex: 1; min-width: 0; }

.dg-tb-tpl { gap: 4px; flex-wrap: wrap; }
.dg-tb-tpl-sel  { width: 140px; text-align: left; }
.dg-tb-tpl-name { width: 110px; text-align: left; }
.dg-tb-ico-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.75);
  font-size: 14px; cursor: pointer;
  border-radius: 7px;
  transition: background .15s ease, border-color .15s ease;
}
.dg-tb-ico-btn:hover {
  background: rgba(59,130,246,.15);
  border-color: rgba(59,130,246,.3);
}

.dg-tb-pdf-btn {
  padding: 8px 18px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff; border: none; border-radius: 10px;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(59,130,246,.3);
  transition: transform .15s ease, box-shadow .15s ease;
  flex-shrink: 0;
}
.dg-tb-pdf-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(59,130,246,.45); }


.dg-layout {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 14px;
  min-height: 620px;
}
@media (max-width: 1100px) {
  .dg-layout { grid-template-columns: 200px 1fr 260px; }
}
@media (max-width: 880px) {
  .dg-layout { grid-template-columns: 1fr; }
}

.dg-left, .dg-right {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 16px;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}
.dg-card-title {
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,.92);
}
.dg-card-sub {
  font-size: 11px; color: rgba(255,255,255,.4);
  margin-bottom: 14px;
}


.dg-sec-label {
  font-size: 10px; color: rgba(255,255,255,.3);
  text-transform: uppercase; letter-spacing: 1px;
  margin: 14px 0 6px 4px;
  font-weight: 600;
}
.dg-sec-label:first-of-type { margin-top: 4px; }
.dg-add-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.75);
  font-size: 13px; font-family: var(--font);
  cursor: pointer; text-align: left;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.dg-add-btn:hover {
  background: rgba(59,130,246,.12);
  border-color: rgba(59,130,246,.3);
  color: rgba(255,255,255,.95);
}
.dg-add-ic {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(59,130,246,.12);
  border-radius: 8px;
  padding: 4px; box-sizing: border-box;
}
.dg-add-ic img { width: 20px; height: 20px; display: block; }


.dg-add-btn--attr .dg-add-ic {
  background: rgba(99, 179, 250, .14);
  color: rgba(147, 197, 253, .92);
}
.dg-add-btn--attr:hover .dg-add-ic {
  background: rgba(59, 130, 246, .22);
  color: #fff;
}
.dg-attr-preview-gtin {
  display: flex; flex-direction: column; gap: 4px;
  margin: 4px 4px 8px;
  padding: 8px 10px;
  border: 1px solid rgba(99, 179, 250, .18);
  border-radius: 9px;
  background: rgba(99, 179, 250, .05);
  font-size: 11px;
  color: rgba(255, 255, 255, .55);
}
.dg-attr-preview-gtin label {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: .04em; color: rgba(255, 255, 255, .45);
}
.dg-attr-preview-gtin input {
  width: 100%; padding: 6px 8px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 6px;
  color: rgba(255, 255, 255, .88);
  font-size: 12px; font-family: monospace;
  outline: none; box-sizing: border-box;
  letter-spacing: .03em;
}
.dg-attr-preview-gtin input:focus {
  border-color: rgba(59, 130, 246, .55);
  background: rgba(255, 255, 255, .08);
}
.dg-attr-preview-gtin input::placeholder { color: rgba(255, 255, 255, .25); }
.dg-attr-preview-status { font-size: 11px; min-height: 14px; }
.dg-attr-preview-status.loading { color: rgba(99, 179, 250, .80); }
.dg-attr-preview-status.ok      { color: rgba(110, 231, 183, .85); }
.dg-attr-preview-status.err     { color: rgba(252, 165, 165, .85); }


.ds-font-picker { position: relative; width: 100%; }
.ds-font-trigger {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 6px 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 7px; cursor: pointer;
  transition: all .15s; text-align: left;
  font-family: var(--font);
  box-sizing: border-box;
}
.ds-font-trigger:hover { background: rgba(255, 255, 255, .10); }
.ds-font-picker.open .ds-font-trigger {
  background: rgba(99, 179, 250, .08);
  border-color: rgba(99, 179, 250, .30);
}
.ds-font-trigger-name {
  flex: 1; min-width: 0;
  font-size: 13px; color: rgba(255, 255, 255, .85);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ds-font-trigger-chev {
  flex-shrink: 0; color: rgba(255, 255, 255, .40);
  transition: transform .15s;
}
.ds-font-picker.open .ds-font-trigger-chev { transform: rotate(180deg); }

.ds-font-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  z-index: 9999;
  
  width: max-content;
  min-width: 240px;
  max-width: 320px;
  background: rgba(18, 22, 48, .98);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 10px;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  max-height: 320px; overflow-y: auto;
  padding: 6px;
}
.ds-font-group { margin-bottom: 4px; }
.ds-font-group-label {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .4px;
  color: rgba(255, 255, 255, .28);
  padding: 6px 8px 3px;
}
.ds-font-option {
  display: flex; align-items: center;
  width: 100%; padding: 7px 10px;
  background: none; border: none; border-radius: 6px;
  cursor: pointer; transition: all .12s;
  text-align: left;
}
.ds-font-option:hover { background: rgba(99, 179, 250, .12); }
.ds-font-option.selected { background: rgba(99, 179, 250, .18); }
.ds-font-option-name {
  flex: 1; min-width: 0;
  font-size: 14px; color: rgba(255, 255, 255, .88);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ds-font-group--extra {
  border-top: 1px solid rgba(255, 255, 255, .07);
  margin-top: 4px; padding-top: 4px;
}
.ds-font-group--extra .ds-font-option-name {
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
}
.ds-font-dropdown::-webkit-scrollbar { width: 6px; }
.ds-font-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .15); border-radius: 3px;
}
.ds-font-dropdown::-webkit-scrollbar-track { background: transparent; }


[data-theme="light"] .ds-font-trigger {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(15, 20, 40, .12);
}
[data-theme="light"] .ds-font-trigger:hover { background: rgba(37, 99, 235, .04); }
[data-theme="light"] .ds-font-picker.open .ds-font-trigger {
  background: rgba(37, 99, 235, .06);
  border-color: rgba(37, 99, 235, .30);
}
[data-theme="light"] .ds-font-trigger-name    { color: rgba(15, 20, 40, .85); }
[data-theme="light"] .ds-font-trigger-chev    { color: rgba(15, 20, 40, .45); }
[data-theme="light"] .ds-font-dropdown {
  background: rgba(255, 255, 255, .98);
  border-color: rgba(37, 99, 235, .12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
}
[data-theme="light"] .ds-font-group-label     { color: rgba(15, 20, 40, .35); }
[data-theme="light"] .ds-font-option:hover    { background: rgba(37, 99, 235, .07); }
[data-theme="light"] .ds-font-option.selected { background: rgba(37, 99, 235, .12); }
[data-theme="light"] .ds-font-option-name     { color: rgba(15, 20, 40, .85); }
[data-theme="light"] .ds-font-group--extra    { border-top-color: rgba(15, 20, 40, .08); }
[data-theme="light"] .ds-font-group--extra .ds-font-option-name {
  color: rgba(15, 20, 40, .55);
}


@media (max-width: 768px) {
  .ds-font-dropdown { max-height: 250px; min-width: 200px; }
  .ds-font-trigger-name { font-size: 12px; }
  .ds-font-option-name  { font-size: 13px; }
}


.dsgn-el-attr-placeholder {
  color: rgba(99, 179, 250, .85) !important;
  font-style: italic !important;
  opacity: .85;
}


.ds-attr-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .50);
  backdrop-filter: blur(4px);
  animation: dh-fade-in .15s ease;
}
.ds-attr-modal {
  width: 380px; max-width: calc(100vw - 24px);
  max-height: 80vh;
  display: flex; flex-direction: column;
  background: rgba(18, 22, 48, .98);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  overflow: hidden;
  animation: dh-slide-up .18s ease;
}
.ds-attr-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.ds-attr-title {
  font-size: 14px; font-weight: 600;
  color: rgba(255, 255, 255, .90);
}
.ds-attr-close {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  color: rgba(255, 255, 255, .45);
  cursor: pointer; transition: all .15s;
}
.ds-attr-close:hover {
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .80);
}
.ds-attr-search-wrap { padding: 10px 12px; }
.ds-attr-search {
  width: 100%; padding: 7px 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 7px;
  color: rgba(255, 255, 255, .85);
  font-size: 12px; font-family: var(--font);
  outline: none; box-sizing: border-box;
}
.ds-attr-search:focus { border-color: rgba(59, 130, 246, .50); }
.ds-attr-search::placeholder { color: rgba(255, 255, 255, .28); }
.ds-attr-list {
  flex: 1; overflow-y: auto;
  padding: 4px 8px 12px;
}
.ds-attr-group { margin-bottom: 8px; }
.ds-attr-group-label {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
  color: rgba(255, 255, 255, .40);
  padding: 8px 8px 4px;
}
.ds-attr-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  width: 100%; text-align: left;
  padding: 8px 10px;
  background: none; border: none;
  border-radius: 6px;
  color: rgba(255, 255, 255, .80);
  font-size: 12px; font-family: var(--font);
  cursor: pointer; transition: all .12s;
}
.ds-attr-item:hover {
  background: rgba(59, 130, 246, .14);
  color: #fff;
}
.ds-attr-item-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-attr-item-val {
  flex: 0 1 auto; max-width: 50%;
  font-size: 11px;
  color: rgba(255, 255, 255, .50);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ds-attr-empty {
  padding: 18px 14px; text-align: center;
  color: rgba(255, 255, 255, .50);
  font-size: 12px; line-height: 1.45;
}
.ds-attr-footer {
  padding: 8px 14px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 11px; color: rgba(255, 255, 255, .42);
}


[data-theme="light"] .dg-attr-preview-gtin {
  background: rgba(37, 99, 235, .04);
  border-color: rgba(37, 99, 235, .15);
  color: rgba(15, 20, 40, .55);
}
[data-theme="light"] .dg-attr-preview-gtin label   { color: rgba(15, 20, 40, .50); }
[data-theme="light"] .dg-attr-preview-gtin input {
  background: rgba(255, 255, 255, .85);
  border-color: rgba(15, 20, 40, .12);
  color: rgba(15, 20, 40, .90);
}
[data-theme="light"] .dg-attr-preview-gtin input:focus { border-color: rgba(37, 99, 235, .50); }
[data-theme="light"] .dg-attr-preview-status.ok  { color: rgba(22, 163, 74, .85); }
[data-theme="light"] .dg-attr-preview-status.err { color: rgba(220, 38, 38, .85); }
[data-theme="light"] .dsgn-el-attr-placeholder   { color: rgba(29, 78, 216, .85) !important; }

[data-theme="light"] .ds-attr-modal {
  background: rgba(255, 255, 255, .98);
  border-color: rgba(37, 99, 235, .10);
}
[data-theme="light"] .ds-attr-title       { color: rgba(15, 20, 40, .90); }
[data-theme="light"] .ds-attr-close {
  background: rgba(15, 20, 40, .05);
  border-color: rgba(15, 20, 40, .10);
  color: rgba(15, 20, 40, .45);
}
[data-theme="light"] .ds-attr-close:hover {
  background: rgba(15, 20, 40, .10);
  color: rgba(15, 20, 40, .80);
}
[data-theme="light"] .ds-attr-search {
  background: rgba(37, 99, 235, .05);
  border-color: rgba(37, 99, 235, .15);
  color: rgba(15, 20, 40, .85);
}
[data-theme="light"] .ds-attr-group-label { color: rgba(15, 20, 40, .40); }
[data-theme="light"] .ds-attr-item        { color: rgba(15, 20, 40, .80); }
[data-theme="light"] .ds-attr-item:hover  {
  background: rgba(37, 99, 235, .08);
  color: rgba(29, 78, 216, .95);
}
[data-theme="light"] .ds-attr-item-val    { color: rgba(15, 20, 40, .50); }
[data-theme="light"] .ds-attr-empty       { color: rgba(15, 20, 40, .50); }
[data-theme="light"] .ds-attr-footer      { color: rgba(15, 20, 40, .42); border-top-color: rgba(15, 20, 40, .07); }


@media (max-width: 480px) {
  .ds-attr-modal { width: calc(100vw - 16px); max-height: 85vh; }
}


.dg-center { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dg-mini-toolbar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  flex-wrap: wrap;
}
.dg-zoom-group { display: flex; gap: 2px; }
.dg-zoom-btn {
  min-width: 40px; padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.65);
  border-radius: 6px;
  font-size: 11px; font-family: var(--font);
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.dg-zoom-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.dg-zoom-btn.active {
  background: rgba(59,130,246,.25);
  border-color: rgba(59,130,246,.45);
  color: #fff;
}
.dg-mini-sep { width: 1px; align-self: stretch; background: rgba(255,255,255,.08); margin: 0 4px; }
.dg-mini-btn {
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.7);
  border-radius: 6px;
  font-size: 11px; font-family: var(--font);
  cursor: pointer;
  transition: background .15s ease;
}
.dg-mini-btn:hover:not(:disabled) { background: rgba(255,255,255,.08); color: #fff; }
.dg-mini-btn:disabled { opacity: .4; cursor: not-allowed; }
.dg-mini-btn.snap-on {
  background: rgba(59,130,246,.2);
  border-color: rgba(59,130,246,.4);
  color: #fff;
}


.dg-workspace {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: 22px 1fr;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.2);
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 22px 22px;    
  flex: 1;
  min-height: 460px;
}
.dg-ruler-corner {
  grid-row: 1; grid-column: 1;
  background: rgba(15,15,35,.8);
  border-right: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dg-ruler-h {
  grid-row: 1; grid-column: 2;
  background: rgba(15,15,35,.8);
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative; overflow: hidden;
}
.dg-ruler-v {
  grid-row: 2; grid-column: 1;
  background: rgba(15,15,35,.8);
  border-right: 1px solid rgba(255,255,255,.06);
  position: relative; overflow: hidden;
}
.dg-ruler-tick {
  position: absolute;
  color: rgba(255,255,255,.35);
  font-size: 8px; font-family: var(--font);
  user-select: none; pointer-events: none;
}
.dg-ruler-h .dg-ruler-tick {
  top: 4px; transform: translateX(-50%);
  border-left: 1px solid rgba(255,255,255,.2);
  padding-left: 2px;
}
.dg-ruler-v .dg-ruler-tick {
  left: 2px; transform: translateY(-50%);
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 1px;
}

.dg-canvas-scroll {
  grid-row: 2; grid-column: 2;
  overflow: auto;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
.dg-canvas-scroll::-webkit-scrollbar       { width: 8px; height: 8px; }
.dg-canvas-scroll::-webkit-scrollbar-track { background: transparent; }
.dg-canvas-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }
.dg-canvas-zoomer {
  transform-origin: center center;
  transition: transform .2s ease;
  display: inline-block;
}


.dg-canvas-zoomer .dsgn-canvas-outer {
  background: transparent;
  box-shadow: 0 4px 24px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.1);
  border: none !important;
  overflow: visible !important;
  margin: 0 !important;
  border-radius: 2px;
}

.dg-canvas-hint {
  text-align: center; font-size: 12px;
  color: rgba(255,255,255,.35);
  margin: 0;
}
.dg-hint-sep { margin: 0 6px; opacity: .4; }


.dg-right .dg-card-title,
.dg-left  .dg-card-title { margin-bottom: 2px; }

.dg-empty {
  text-align: center;
  padding: 40px 10px;
  color: rgba(255,255,255,.35);
  font-size: 13px; line-height: 1.5;
}


.dg-sec {
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 14px 0 10px;
}
.dg-sec:first-child { padding-top: 4px; }
.dg-sec:last-child { border-bottom: none; padding-bottom: 4px; }
.dg-sec-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  color: rgba(255,255,255,.45);
  margin-bottom: 10px;
}
.dg-sec-ic { font-size: 14px; }


.dg-right input[type="text"],
.dg-right input[type="number"],
.dg-right select,
.dg-right textarea {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-family: var(--font);
  padding: 6px 10px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .2s ease;
}
.dg-right input:focus, .dg-right select:focus, .dg-right textarea:focus {
  outline: none; border-color: rgba(59,130,246,.5);
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.dg-right textarea { resize: none; min-height: 70px; font-family: var(--font); }

.dg-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dg-grid-2 label {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 11px; color: rgba(255,255,255,.5);
}
.dg-row-btns { display: flex; gap: 4px; margin-bottom: 6px; }


.dg-right .dsgn-fmt-btn,
.dg-right .dsgn-align-btn {
  flex: 1;
  padding: 6px 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  border-radius: 7px;
  font-family: var(--font);
  cursor: pointer;
  transition: all .15s ease;
}
.dg-right .dsgn-fmt-btn:hover,
.dg-right .dsgn-align-btn:hover {
  background: rgba(59,130,246,.12);
  border-color: rgba(59,130,246,.3);
  color: #fff;
}
.dg-right .dsgn-fmt-btn.fmt-active,
.dg-right .dsgn-align-btn.al-active {
  background: rgba(59,130,246,.25);
  border-color: rgba(59,130,246,.45);
  color: #fff;
}

.dg-del-btn {
  width: 100%;
  margin-top: 16px; padding: 9px;
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.3);
  color: rgba(239,68,68,.95);
  border-radius: 8px;
  font-size: 13px; font-family: var(--font);
  cursor: pointer;
  transition: background .15s ease;
}
.dg-del-btn:hover { background: rgba(239,68,68,.25); }


.header-nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--nav-border);
  overflow: visible !important;  
}


.header-nav > * {
  position: relative;
  z-index: 1;
}
.header-nav-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 1.25rem; font-weight: 700;
  color: var(--text);
  padding: 4px 8px; border-radius: 8px;
  transition: background .15s ease;
}
.nav-logo:hover { background: rgba(255,255,255,.05); }


.header-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; cursor: pointer;
  padding: 4px 4px; border-radius: 8px;
  transition: background .15s ease;
  overflow: visible !important;  
}
.header-logo:hover { background: rgba(255,255,255,.04); }

.logo-icon-wrap {
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 4px;                    
  overflow: visible !important;
}
.header-logo-icon {
  
  width: 52px; height: 52px;
  overflow: visible !important;
  filter: drop-shadow(0 0 8px rgba(99,179,250,.5));
  transition: filter .3s ease, transform .3s ease;
}
.logo-icon-wrap:hover .header-logo-icon {
  filter: drop-shadow(0 0 12px rgba(99,179,250,.8))
          drop-shadow(0 0 24px rgba(167,139,250,.5));
}

.logo-icon-wrap:hover #logo-content {
  animation-duration: 3s !important;
}

.header-logo-text {
  font-size: 20px; font-weight: 700;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.3px;
  user-select: none;
}
.nav-center {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.nav-link {
  background: none; border: 1px solid transparent;
  color: var(--text-muted);
  padding: 8px 16px; border-radius: 10px;
  cursor: pointer;
  font-family: var(--font); font-size: .95rem; font-weight: 500;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  display: flex; align-items: center; gap: 4px;
}
.nav-link:hover { background: rgba(255,255,255,.06); color: var(--text); }
.nav-link.active {
  background: rgba(59,130,246,.15);
  border-color: rgba(59,130,246,.3);
  color: #fff;
}
.nav-dd-caret { font-size: .7rem; transition: transform .2s ease; }
.nav-dd-btn.open .nav-dd-caret { transform: rotate(180deg); }


.nav-dd-wrap { position: relative; }
.nav-dd {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  opacity: 0; pointer-events: none;
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  padding: 8px; min-width: 280px;
  display: flex; flex-direction: column; gap: 2px;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1100;
}
.nav-dd.open { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.nav-dd-item {
  padding: 12px 16px; border-radius: 10px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; background: none; border: none;
  color: var(--text); text-align: left;
  transition: background .15s ease;
  font-family: var(--font);
}
.nav-dd-item:hover:not(.nav-dd-disabled) { background: rgba(255,255,255,.08); }
.nav-dd-ic {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  
}
.nav-dd-ic img {
  width: 32px; height: 32px; display: block;
  filter: drop-shadow(0 0 4px rgba(99,179,250,.3));
  transition: filter .2s ease;
}
.nav-dd-item:hover .nav-dd-ic img {
  filter: drop-shadow(0 0 8px rgba(99,179,250,.6))
          drop-shadow(0 0 16px rgba(167,139,250,.3));
}
.nav-dd-disabled .nav-dd-ic img { opacity: .6; }
.nav-dd-txt { display: flex; flex-direction: column; gap: 2px; }
.nav-dd-title {
  font-size: .875rem; font-weight: 600; color: rgba(255,255,255,.9);
  display: flex; align-items: center; gap: 8px;
}
.nav-dd-desc { font-size: .75rem; color: rgba(255,255,255,.45); }
.nav-dd-disabled { opacity: .5; cursor: not-allowed; }
.nav-dd-disabled:hover { background: none; }
.badge-soon {
  background: rgba(168,85,247,.2);
  border: 1px solid rgba(168,85,247,.4);
  color: rgba(168,85,247,.95);
  border-radius: 4px; padding: 2px 8px;
  font-size: .7rem; font-weight: 500; letter-spacing: .02em;
}


.nav-link-pricing {
  color: rgba(255,255,255,.7);
  font-size: 14px;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
  flex-shrink: 0;
}
.nav-link-pricing:hover { color: rgba(255,255,255,.95); background: rgba(255,255,255,.08); }


.btn-login {
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 8px;
  color: rgba(255,255,255,.85);
  padding: 6px 14px; cursor: pointer;
  font-family: var(--font); font-size: .875rem; font-weight: 500;
  text-decoration: none;
  transition: background .15s ease;
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-login:hover { background: rgba(59,130,246,.22); }
.header-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  object-fit: cover;
}

.header-avatar-letter {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  color: #fff; font-weight: 700; font-size: 12px;
  user-select: none;
}


.btn-logout {
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.30);
  color: rgba(252,165,165,.95);
  border-radius: 8px;
  padding: 6px 12px; cursor: pointer;
  font-family: var(--font); font-size: .875rem; font-weight: 500;
  transition: background .15s ease;
  flex-shrink: 0;
  margin-left: 8px;
}
.btn-logout:hover { background: rgba(239,68,68,.22); }
[data-theme="light"] .btn-logout {
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.30);
  color: rgba(185,28,28,.95);
}
[data-theme="light"] .btn-logout:hover { background: rgba(239,68,68,.18); }
[data-theme="light"] .header-avatar-letter {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}


.burger {
  display: none;
  background: none; border: none;
  color: var(--text); font-size: 1.4rem;
  cursor: pointer; padding: 6px 10px;
}


.mob-close-btn,
.mob-menu-auth,
.mob-menu-overlay { display: none; }


@media (max-width: 768px) {
  .header-nav-inner { padding: 0 16px; gap: 12px; }
  .burger { display: block; }
  .btn-login { display: none; }
  .btn-logout { display: none !important; }

  
  .header-nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    
    position: sticky !important;
    z-index: 9999 !important;
    isolation: isolate;
  }
  .header-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: -1;
    pointer-events: none;
  }

  
  .nav-center {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    background: rgba(15, 15, 35, 0.97);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45);
    
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    overscroll-behavior: contain;     
    z-index: 9999;
    padding: 16px 12px;
    
    padding-top:    max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    padding-right:  max(12px, env(safe-area-inset-right));
    
    display: flex !important;
    visibility: hidden;               
  }
  .nav-center.burger-open {
    transform: translateX(0);
    visibility: visible;
  }

  
  .nav-center .nav-link,
  .nav-center .nav-dd-btn { width: 100%; text-align: left; }

  
  .nav-dd {
    position: static; transform: none; opacity: 1; pointer-events: auto;
    box-shadow: none; border: none;
    background: rgba(0, 0, 0, 0.2);
    display: none;
  }
  .nav-dd.open { display: flex; transform: none; }

  
  .mob-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top:   max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.10);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    z-index: 10;            
    flex-shrink: 0;
    transition: all 0.15s;
  }
  .mob-close-btn:hover,
  .mob-close-btn:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    outline: none;
  }

  
  .nav-center {
    padding-top: max(60px, calc(env(safe-area-inset-top) + 56px)) !important;
  }

  
  .mob-menu-auth {
    display: block;
    margin-top: auto;
    padding: 16px 8px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .mob-auth-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }
  .mob-auth-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.80), rgba(109, 40, 217, 0.80));
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #ffffff;
    flex-shrink: 0; overflow: hidden;
  }
  .mob-auth-avatar img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  }
  .mob-auth-name {
    font-size: 14px; font-weight: 600;
    color: rgba(255, 255, 255, 0.90);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .mob-auth-login-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 10px 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.80), rgba(109, 40, 217, 0.70));
    border: 1px solid rgba(99, 179, 250, 0.25);
    border-radius: 10px;
    color: #ffffff; font-size: 14px; font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
  }
  .mob-auth-login-btn:hover,
  .mob-auth-login-btn:focus-visible {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(109, 40, 217, 0.85));
    outline: none;
  }

  
  .mob-auth-dashboard-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 10px 14px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 10px;
    color: rgba(99, 179, 250, 0.95);
    font-size: 14px; font-weight: 600;
    text-decoration: none;
    margin-bottom: 8px;
    transition: all 0.15s;
  }
  .mob-auth-dashboard-btn:hover,
  .mob-auth-dashboard-btn:focus-visible {
    background: rgba(59, 130, 246, 0.20);
    outline: none;
  }
  .mob-auth-logout-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 8px 12px;
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.20);
    border-radius: 8px;
    color: rgba(252, 165, 165, 0.95);
    font-size: 13px; font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
  }
  .mob-auth-logout-btn:hover,
  .mob-auth-logout-btn:focus-visible {
    background: rgba(239, 68, 68, 0.18);
    outline: none;
  }

  
  .mob-menu-overlay {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 10, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .mob-menu-overlay.visible {
    opacity: 1;
    pointer-events: auto;
  }

  
  .header-nav-inner {
    padding-left:  max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}


@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .nav-center,
  .mob-menu-overlay { transition: none !important; }
}


@media (max-width: 768px) {
  [data-theme="light"] .nav-center {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-left-color: rgba(37, 99, 235, 0.12);
    box-shadow: -8px 0 32px rgba(37, 99, 235, 0.10);
  }
  [data-theme="light"] .nav-center .nav-link {
    color: rgba(15, 20, 40, 0.80);
  }
  [data-theme="light"] .nav-center .nav-link:hover,
  [data-theme="light"] .nav-center .nav-dd-btn:hover {
    background: rgba(37, 99, 235, 0.06);
    color: rgba(15, 20, 40, 0.95);
  }
  [data-theme="light"] .nav-dd {
    background: rgba(15, 20, 40, 0.04);
  }
  [data-theme="light"] .mob-close-btn {
    background: rgba(15, 20, 40, 0.08);
    color: rgba(15, 20, 40, 0.55);
  }
  [data-theme="light"] .mob-close-btn:hover {
    background: rgba(15, 20, 40, 0.14);
    color: rgba(15, 20, 40, 0.90);
  }
  [data-theme="light"] .mob-auth-dashboard-btn {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.20);
    color: rgba(29, 78, 216, 0.90);
  }
  [data-theme="light"] .mob-auth-dashboard-btn:hover {
    background: rgba(37, 99, 235, 0.14);
  }
  [data-theme="light"] .mob-menu-auth {
    border-top-color: rgba(15, 20, 40, 0.10);
  }
  [data-theme="light"] .mob-auth-name {
    color: rgba(15, 20, 40, 0.90);
  }
  [data-theme="light"] .mob-auth-logout-btn {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.20);
    color: rgba(185, 28, 28, 0.90);
  }
  [data-theme="light"] .mob-auth-logout-btn:hover {
    background: rgba(220, 38, 38, 0.14);
  }
  [data-theme="light"] .mob-menu-overlay {
    background: rgba(15, 20, 40, 0.30);
  }
}


.home-section {
  padding: 0 !important;
  max-width: none !important;
  overflow: hidden;
}

body.home-active .main { max-width: none; padding: 0; }
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px;
  overflow: hidden;
}
.hero-title {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #34d399);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 4s ease infinite;
  margin-bottom: 18px;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,.8);
  margin-bottom: 14px;
  min-height: 1.8em;
}
.hero-caret {
  display: inline-block; color: var(--accent);
  font-weight: 300; margin-left: 2px;
}
.hero-caret-blink { animation: caretBlink 1s steps(2) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
.hero-desc {
  font-size: 1rem; color: rgba(255,255,255,.55);
  max-width: 720px; line-height: 1.6;
  margin-bottom: 32px;
  opacity: 0; animation: fadeInUp .9s ease 2.2s forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-cta {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border: none; color: #fff;
  padding: 14px 32px; border-radius: 12px;
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(59,130,246,.4);
  transition: transform .2s ease, box-shadow .2s ease;
  opacity: 0; animation: fadeInUp .9s ease 2.6s forwards;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(59,130,246,.55); }
.hero-cta:active { transform: scale(.97); }


.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .35;
  pointer-events: none; z-index: -1;
}
.orb-1 { width: 340px; height: 340px; background: #3b82f6; top: 10%; left: 8%;
         animation: float1 18s ease-in-out infinite; }
.orb-2 { width: 260px; height: 260px; background: #a78bfa; top: 60%; right: 12%;
         animation: float2 22s ease-in-out infinite; }
.orb-3 { width: 200px; height: 200px; background: #34d399; bottom: 10%; left: 25%;
         animation: float3 16s ease-in-out infinite; }
.orb-4 { width: 280px; height: 280px; background: #ec4899; top: 20%; right: 28%;
         animation: float1 24s ease-in-out infinite reverse; opacity: .2; }
@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(40px, -40px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-50px, 30px); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(60px, 20px); }
}


.features-section {
  max-width: 1200px; margin: 0 auto;
  padding: 60px 24px 80px;
}
.features-title {
  text-align: center; font-size: 1.75rem; font-weight: 700;
  color: var(--text); margin-bottom: 32px;
}
.features-grid {
  display: grid;
  
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.features-grid .feature-card { grid-column: span 4; }

@media (max-width: 900px) {
  .features-grid .feature-card { grid-column: span 6; }
}
@media (max-width: 480px) {
  .features-grid .feature-card { grid-column: span 12; }
}
.feature-card {
  position: relative;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 28px 24px;
  cursor: pointer; text-align: left;
  color: var(--text);
  font-family: var(--font);
  opacity: 0; transform: translateY(30px);
  
  transition: opacity .25s ease, transform .25s ease,
              border-color .2s ease, background .2s ease;
}
.feature-card.is-visible { opacity: 1; transform: translateY(0); }
.feature-card:hover {
  border-color: rgba(59,130,246,.4);
  background: rgba(59,130,246,.05);
  transform: translateY(-4px) !important;
}
.feature-ic {
  margin-bottom: 12px;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  
}
.feature-ic img {
  width: 40px; height: 40px; display: block;
  filter: drop-shadow(0 0 4px rgba(99,179,250,.3));
  transition: filter .2s ease;
}
.feature-card:hover .feature-ic img {
  filter: drop-shadow(0 0 8px rgba(99,179,250,.6))
          drop-shadow(0 0 16px rgba(167,139,250,.3));
}
.feature-name {
  font-size: 1.15rem; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}
.feature-desc {
  font-size: .875rem; color: rgba(255,255,255,.55);
  line-height: 1.5;
}


.section.active { animation: sectionIn .25s ease; }
@keyframes sectionIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


.params-bar {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: 16px; padding: 14px 18px;
}
.params-bar-title {
  font-weight: 600; color: var(--text);
  font-size: .9rem; margin-right: 8px;
}
.form-label.inline {
  flex-direction: column; gap: 4px; margin-bottom: 0;
}
.form-input.sm { padding: 6px 10px; font-size: .85rem; }
.color-input.sm { width: 40px; height: 34px; padding: 2px; }


.codes-template-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin: 12px 0;
}


.codes-template-row.needs-attention {
  animation: tpl-attention 0.4s ease 3;
  border-color: rgba(234, 179, 8, 0.6) !important;
}
@keyframes tpl-attention {
  0%, 100% { transform: translateX(0);   border-color: rgba(234, 179, 8, 0.6); }
  25%      { transform: translateX(-4px); border-color: rgba(234, 179, 8, 0.9); }
  75%      { transform: translateX(4px);  border-color: rgba(234, 179, 8, 0.9); }
}
[data-theme="light"] .codes-template-row.needs-attention {
  border-color: rgba(202, 138, 4, 0.7) !important;
}
.codes-template-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.codes-template-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.codes-template-goto {
  font-size: 12px;
  color: rgba(99, 179, 250, 0.90);
  text-decoration: none;
  transition: color 0.15s;
}
.codes-template-goto:hover { color: #fff; }

.codes-template-select-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.codes-template-select option.tpl-opt-incompatible {
  color: rgba(160, 160, 160, 0.85);
}
[data-theme="light"] .codes-template-select option.tpl-opt-incompatible {
  color: rgba(120, 120, 120, 0.85);
}

.codes-template-select {
  flex: 1;
  min-width: 180px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  padding: 7px 10px;
  cursor: pointer;
  font-family: var(--font);
}
.codes-template-select:focus {
  border-color: rgba(59, 130, 246, 0.5);
  outline: none;
}


.tpl-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.tpl-status-icon { font-weight: 700; font-size: 11px; }
.tpl-status-ok {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: rgba(134, 239, 172, 0.95);
}
.tpl-status-warn {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.25);
  color: rgba(253, 224, 71, 0.95);
}
.tpl-status-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: rgba(252, 165, 165, 0.95);
}


.codes-template-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}
#codes-template-canvas {
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
}
.codes-template-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.tpl-meta-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
}
.tpl-meta-size   { font-size: 11px; color: var(--text-muted); }
.tpl-meta-types  { font-size: 11px; color: rgba(99, 179, 250, 0.90); }


[data-theme="light"] .codes-template-select {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(37, 99, 235, 0.20) !important;
  color: rgba(15, 20, 40, 0.90) !important;
}
[data-theme="light"] .codes-template-goto {
  color: rgba(29, 78, 216, 0.90) !important;
}
[data-theme="light"] .codes-template-goto:hover {
  color: rgba(29, 78, 216, 1) !important;
}
[data-theme="light"] .tpl-status-ok {
  background: rgba(22, 163, 74, 0.10) !important;
  border-color: rgba(22, 163, 74, 0.25) !important;
  color: rgba(21, 128, 61, 0.95) !important;
}
[data-theme="light"] .tpl-status-warn {
  background: rgba(202, 138, 4, 0.10) !important;
  border-color: rgba(202, 138, 4, 0.25) !important;
  color: rgba(161, 98, 7, 0.95) !important;
}
[data-theme="light"] .tpl-status-error {
  background: rgba(220, 38, 38, 0.10) !important;
  border-color: rgba(220, 38, 38, 0.25) !important;
  color: rgba(185, 28, 28, 0.95) !important;
}
[data-theme="light"] .codes-template-preview {
  background: rgba(255, 255, 255, 0.70) !important;
  border-color: rgba(37, 99, 235, 0.12) !important;
}
[data-theme="light"] .tpl-meta-types {
  color: rgba(29, 78, 216, 0.90) !important;
}


.barcode-type-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.bts-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: rgba(147, 197, 253, 0.95);
}
.bts-chip-error {
  background:   rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.28) !important;
  color:        rgba(252, 165, 165, 0.95) !important;
}
[data-theme="light"] .bts-chip {
  background:   rgba(37, 99, 235, 0.10) !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
  color:        rgba(29, 78, 216, 0.95) !important;
}
[data-theme="light"] .bts-chip-error {
  background:   rgba(220, 38, 38, 0.08) !important;
  border-color: rgba(220, 38, 38, 0.22) !important;
  color:        rgba(185, 28, 28, 0.95) !important;
}


.ean-errors-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 10px;
}
.ean-errors-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ean-errors-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(252, 165, 165, 0.95);
}
.ean-errors-toggle {
  padding: 3px 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 5px;
  color: rgba(252, 165, 165, 0.85);
  font-size: 11px;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.ean-errors-toggle:hover {
  background: rgba(239, 68, 68, 0.22);
}

.ean-errors-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 2px;
}
.ean-error-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 6px 8px;
  background: rgba(239, 68, 68, 0.06);
  border-radius: 5px;
  font-size: 11px;
  align-items: flex-start;   
}
.ean-err-line {
  color: rgba(252, 165, 165, 0.75);
  font-weight: 600;
  font-size: 10.5px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 56px;
}

.ean-err-code {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.62);
  word-break: break-all;
  white-space: normal;
  flex: 1 1 200px;           
  min-width: 0;
}

.ean-err-reason {
  color: rgba(252, 165, 165, 0.88);
  white-space: normal;
  word-break: break-word;
  flex: 1 1 100%;            
  min-width: 0;
}
.ean-err-more {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  padding: 4px;
}

.ean-errors-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ean-err-btn-skip,
.ean-err-btn-clean {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.ean-err-btn-skip {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.30);
  color: rgba(147, 197, 253, 0.95);
}
.ean-err-btn-skip:hover  { background: rgba(59, 130, 246, 0.25); }
.ean-err-btn-clean {
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: rgba(252, 165, 165, 0.90);
}
.ean-err-btn-clean:hover { background: rgba(239, 68, 68, 0.22); }


[data-theme="light"] .ean-errors-panel {
  background:   rgba(220, 38, 38, 0.07) !important;
  border-color: rgba(220, 38, 38, 0.22) !important;
}
[data-theme="light"] .ean-errors-title   { color: rgba(153, 27, 27, 0.95) !important; }
[data-theme="light"] .ean-errors-toggle  {
  background:   rgba(220, 38, 38, 0.08) !important;
  border-color: rgba(220, 38, 38, 0.22) !important;
  color:        rgba(153, 27, 27, 0.90) !important;
}
[data-theme="light"] .ean-err-line       { color: rgba(153, 27, 27, 0.75) !important; }
[data-theme="light"] .ean-err-code       { color: rgba(71, 85, 105, 0.85) !important; }
[data-theme="light"] .ean-err-reason     { color: rgba(153, 27, 27, 0.88) !important; }
[data-theme="light"] .ean-err-btn-skip   {
  background:   rgba(37, 99, 235, 0.10) !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
  color:        rgba(29, 78, 216, 0.95) !important;
}
[data-theme="light"] .ean-err-btn-clean  {
  background:   rgba(220, 38, 38, 0.08) !important;
  border-color: rgba(220, 38, 38, 0.22) !important;
  color:        rgba(153, 27, 27, 0.95) !important;
}


.sscc-dup-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  margin-top: 6px;
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s;
  flex-wrap: wrap;
}

.sscc-dup-panel.no-dups {
  background: rgba(34, 197, 94, 0.07);
  border-color: rgba(34, 197, 94, 0.22);
}

.sscc-dup-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}
.sscc-stat-total  { color: var(--text-muted); }
.sscc-stat-unique { color: rgba(134, 239, 172, 0.95); font-weight: 600; }
.sscc-stat-dups {
  color: rgba(252, 211, 77, 0.95);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.sscc-stat-dups::before { content: '⚠'; font-size: 11px; }
.sscc-stat-ok {
  color: rgba(134, 239, 172, 0.95);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.sscc-stat-ok::before { content: '✓'; font-size: 11px; }

.sscc-dup-remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.38);
  border-radius: 6px;
  color: rgba(253, 224, 71, 0.95);
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sscc-dup-remove:hover {
  background: rgba(234, 179, 8, 0.25);
  border-color: rgba(234, 179, 8, 0.55);
  color: #fff;
}


[data-theme="light"] .sscc-dup-panel {
  background: rgba(202, 138, 4, 0.10) !important;
  border-color: rgba(202, 138, 4, 0.28) !important;
}
[data-theme="light"] .sscc-dup-panel.no-dups {
  background: rgba(22, 163, 74, 0.08) !important;
  border-color: rgba(22, 163, 74, 0.25) !important;
}
[data-theme="light"] .sscc-stat-unique { color: rgba(21, 128, 61, 0.95) !important; }
[data-theme="light"] .sscc-stat-dups   { color: rgba(161, 98, 7, 0.95)  !important; }
[data-theme="light"] .sscc-stat-ok     { color: rgba(21, 128, 61, 0.95) !important; }
[data-theme="light"] .sscc-dup-remove {
  background: rgba(202, 138, 4, 0.14) !important;
  border-color: rgba(202, 138, 4, 0.38) !important;
  color: rgba(120, 53, 15, 0.95) !important;
}
[data-theme="light"] .sscc-dup-remove:hover {
  background: rgba(202, 138, 4, 0.24) !important;
  color: rgba(67, 20, 7, 1) !important;
}


.csv-validation-result {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(234, 179, 8, 0.30);
  background: rgba(234, 179, 8, 0.08);
  transition: background 0.2s, border-color 0.2s;
}
.csv-validation-result.is-ok {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.28);
}
.csv-validation-result.has-errors {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.32);
}

.csv-val-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.csv-val-stat-ok {
  color: rgba(134, 239, 172, 0.95);
  font-weight: 600;
}
.csv-val-stat-warn {
  color: rgba(252, 165, 165, 0.95);
  font-weight: 600;
}
.csv-val-stat-num {
  color: var(--text-muted);
  font-size: 12px;
}

.csv-val-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.csv-val-actions-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.csv-val-details {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  max-height: 260px;
  overflow: auto;
}
.csv-val-details-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
}

.csv-val-errors-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 11.5px;
}
.csv-val-error-row {
  display: grid;
  grid-template-columns: 68px 1fr 280px;
  align-items: baseline;
  gap: 10px;
  padding: 4px 6px;
  border-radius: 4px;
}
.csv-val-error-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
.csv-val-err-line {
  color: rgba(252, 211, 77, 0.95);
  font-weight: 600;
  white-space: nowrap;
}
.csv-val-err-reason {
  color: rgba(252, 165, 165, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.csv-val-err-code {
  color: rgba(148, 163, 184, 0.88);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.csv-val-error-more {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}


[data-theme="light"] .csv-validation-result {
  background: rgba(202, 138, 4, 0.10) !important;
  border-color: rgba(202, 138, 4, 0.32) !important;
}
[data-theme="light"] .csv-validation-result.is-ok {
  background: rgba(22, 163, 74, 0.10) !important;
  border-color: rgba(22, 163, 74, 0.32) !important;
}
[data-theme="light"] .csv-validation-result.has-errors {
  background: rgba(220, 38, 38, 0.09) !important;
  border-color: rgba(220, 38, 38, 0.32) !important;
}
[data-theme="light"] .csv-val-stat-ok   { color: rgba(21, 128, 61, 0.95) !important; }
[data-theme="light"] .csv-val-stat-warn { color: rgba(153, 27, 27, 0.95) !important; }
[data-theme="light"] .csv-val-details {
  background: rgba(255, 255, 255, 0.60) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .csv-val-error-row:hover {
  background: rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .csv-val-err-line   { color: rgba(161, 98, 7, 0.95)  !important; }
[data-theme="light"] .csv-val-err-reason { color: rgba(153, 27, 27, 0.90) !important; }
[data-theme="light"] .csv-val-err-code   { color: rgba(71, 85, 105, 0.85) !important; }


.codes-box-size-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.codes-box-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  flex-shrink: 0;
}
.codes-box-hint {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
}
.codes-box-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}
.codes-box-input {
  width: 120px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  padding: 6px 10px;
  text-align: center;
  font-family: var(--font);
}
.codes-box-input:focus {
  border-color: rgba(59, 130, 246, 0.5);
  outline: none;
}
.codes-box-preview {
  font-size: 12px;
  color: var(--text-muted);
}
.codes-box-preview strong {
  color: var(--text);
  font-weight: 600;
}
[data-theme="light"] .codes-box-input {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(37, 99, 235, 0.20) !important;
  color: rgba(15, 20, 40, 0.90) !important;
}
[data-theme="light"] .codes-box-input:focus {
  border-color: rgba(37, 99, 235, 0.55) !important;
}

.gen-bar {
  margin-top: 16px; padding: 16px 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.gen-bar-info { color: var(--text-muted); font-size: .9rem; }
.gen-bar-info strong { color: var(--accent); font-weight: 700; }


#generate-labels-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
#generate-labels-btn:hover svg {
  transform: translateY(1px);
}


.card-subtitle {
  font-size: .95rem; font-weight: 600;
  color: var(--text); margin-bottom: 10px;
}
.stub-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  max-width: 500px; margin: 60px auto;
}


.scan-btn-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(99,179,250,.5));
  transition: filter .2s ease;
}
#scan-btn:hover .scan-btn-icon {
  filter: drop-shadow(0 0 8px rgba(99,179,250,.8))
          drop-shadow(0 0 16px rgba(167,139,250,.4));
}


.reader-quality-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(52,211,153,.12);
  border: 1px solid rgba(52,211,153,.3);
  border-radius: 6px;
  font-size: 12px;
  color: rgba(52,211,153,.9);
  margin-top: 8px;
}
.reader-badge-icon {
  width: 14px; height: 14px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 3px rgba(52,211,153,.6));
}


.reader-files-list {
  margin-top: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  overflow: hidden;
}
.reader-files-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.reader-files-items {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
.reader-files-items::-webkit-scrollbar       { width: 6px; }
.reader-files-items::-webkit-scrollbar-track { background: transparent; }
.reader-files-items::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }
.reader-files-items::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.3); }
.reader-file-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 13px;
  transition: background .15s ease;
}
.reader-file-item:last-child { border-bottom: none; }
.reader-file-item:hover { background: rgba(255,255,255,.03); }
.reader-file-icon {
  width: 20px; height: 20px;
  flex-shrink: 0; opacity: .7;
}


.reader-file-preview {
  width: 48px; height: 62px;
  flex-shrink: 0;
  background: rgba(0,0,0,0.20);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.reader-preview-skeleton {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(90deg,
              rgba(255,255,255,0.03) 25%,
              rgba(255,255,255,0.10) 50%,
              rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: preview-shimmer 1.5s infinite linear;
}
@keyframes preview-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.reader-preview-placeholder {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.40);
}
.reader-preview-img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #ffffff;
  animation: preview-fadein 0.25s ease;
}
@keyframes preview-fadein {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1);    }
}


.reader-file-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: 3px;
}

.reader-file-info .reader-file-name  { flex: 0 1 auto; }
.reader-file-info .reader-file-size  { flex: 0 0 auto; }
.reader-file-info .reader-file-status{ flex: 0 0 auto; align-self: flex-start; }

.reader-file-name {
  flex: 1;
  color: rgba(255,255,255,.8);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.reader-file-size {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  flex-shrink: 0;
}
.reader-file-status {
  font-size: 11px;
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 4px;
}
.reader-file-status.pending  { color: rgba(255,255,255,.4); }
.reader-file-status.scanning { color: rgba(59,130,246,.9); background: rgba(59,130,246,.1); }
.reader-file-status.done     { color: rgba(52,211,153,.9); background: rgba(52,211,153,.1); }
.reader-file-status.error    { color: rgba(239,68,68,.9);  background: rgba(239,68,68,.1); }
.reader-file-remove {
  width: 22px; height: 22px;
  flex-shrink: 0;
  background: none; border: none;
  color: rgba(255,255,255,.25);
  cursor: pointer;
  font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  transition: all .15s ease;
}
.reader-file-remove:hover {
  color: rgba(239,68,68,.85);
  background: rgba(239,68,68,.1);
}

.reader-file-remove.is-locked {
  opacity: 0.3;
  cursor: not-allowed;
}
.reader-file-remove.is-locked:hover {
  background: transparent;
  color: rgba(255,255,255,.25);
}


.reader-summary {
  margin-top: 18px;
  padding: 18px 20px;
  background: rgba(34,197,94,.06);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 14px;
}
.reader-summary-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 1rem; font-weight: 600;
  color: rgba(255,255,255,.92);
  margin-bottom: 14px;
}
.reader-summary-icon { font-size: 1.25rem; }
.reader-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.reader-summary-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
}
.reader-summary-num {
  font-size: 1.5rem; font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.reader-summary-lbl {
  margin-top: 4px;
  font-size: .75rem; color: var(--text-muted);
  text-align: center;
}
@media (max-width: 600px) {
  .reader-summary-grid { grid-template-columns: repeat(2, 1fr); }
}


.reader-scan-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}


.reader-scan-blocked-msg {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(234, 179, 8, .10);
  border: 1px solid rgba(234, 179, 8, .20);
  border-radius: 8px;
  font-size: 12px;
  color: rgba(253, 224, 71, .85);
  margin-bottom: 8px;
}
[data-theme="light"] .reader-scan-blocked-msg {
  background: rgba(202, 138, 4, .08);
  border-color: rgba(202, 138, 4, .20);
  color: rgba(161, 98, 7, .90);
}


.reader-scan-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-top: 8px;
  background: rgba(234, 179, 8, 0.10);
  border: 1px solid rgba(234, 179, 8, 0.28);
  border-radius: 8px;
  font-size: 12px;
  color: rgba(253, 224, 71, 0.92);
  animation: reader-warning-pulse 2s ease-in-out infinite;
}
.reader-warn-icon {
  font-size: 14px;
  flex-shrink: 0;
}
@keyframes reader-warning-pulse {
  0%, 100% { opacity: 1;   }
  50%      { opacity: 0.7; }
}
[data-theme="light"] .reader-scan-warning {
  background:   rgba(202, 138, 4, 0.09) !important;
  border-color: rgba(202, 138, 4, 0.30) !important;
  color:        rgba(120, 53, 15, 0.95) !important;
}


.reader-disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}


.reader-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: reader-spin 0.8s linear infinite;
  flex-shrink: 0;
  vertical-align: middle;
}
@keyframes reader-spin {
  to { transform: rotate(360deg); }
}


.reader-cancel-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  color: rgba(239,68,68,0.9);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.reader-cancel-btn:hover {
  background: rgba(239,68,68,0.22);
  color: #fff;
  border-color: rgba(239,68,68,0.5);
}
.reader-cancel-btn:active {
  transform: translateY(1px);
}


.reader-export-progress {
  width: 100%;
  margin-top: 10px;
}
.rep-bar-wrap {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}
.rep-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.rep-label {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-align: center;
}


.reader-rejected-block {
  margin-top: 12px;
  padding: 14px 16px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reader-rejected-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(245,158,11,0.9);
}
.reader-rejected-body p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin: 0;
  line-height: 1.5;
}
.reader-rejected-note {
  font-size: 12px;
  color: rgba(255,255,255,0.35) !important;
  font-style: italic;
}


.reader-export-panel {
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.reader-export-title {
  font-size: 14px;
  color: rgba(255,255,255,.6);
}
.reader-export-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reader-export-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 14px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 8px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
  transition: background 0.15s ease, border-color 0.15s ease,
              color 0.15s ease, transform 0.1s ease !important;
}
.reader-export-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: rgba(255, 255, 255, 0.95) !important;
}
.reader-export-btn:active:not(:disabled) {
  transform: translateY(1px) !important;
}
.reader-export-btn:disabled {
  opacity: 0.45 !important;
  cursor: default !important;
}
.reader-export-btn svg,
.reader-export-btn img {
  flex-shrink: 0 !important;
  display: block !important;
}

.reader-export-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 20px !important;
  height: 20px !important;
}
.reader-export-icon img {
  width: 20px !important;
  height: 20px !important;
  filter: drop-shadow(0 0 3px rgba(99, 179, 250, 0.20)) !important;
  transition: filter 0.2s ease !important;
}
.reader-export-btn:hover:not(:disabled) .reader-export-icon img {
  filter: drop-shadow(0 0 6px rgba(99, 179, 250, 0.55))
          drop-shadow(0 0 12px rgba(167, 139, 250, 0.25)) !important;
}

.reader-export-btn--nk {
  background: rgba(59, 130, 246, 0.10) !important;
  border-color: rgba(59, 130, 246, 0.24) !important;
  color: rgba(99, 179, 250, 0.92) !important;
}
.reader-export-btn--nk:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.18) !important;
  border-color: rgba(59, 130, 246, 0.38) !important;
  color: rgba(140, 200, 255, 1) !important;
}
@media (max-width: 640px) {
  .reader-export-btn {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }
}


input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
input[type="number"] { -moz-appearance: textfield; }

.num-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.num-input-wrap input[type="number"] {
  padding-right: 28px !important;
  width: 100%;
}

.num-spin-btns {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1px;
  pointer-events: none;    
}
.num-spin-btn {
  pointer-events: auto;
  width: 18px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; user-select: none;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.5);
  font-size: 9px; line-height: 1;
  padding: 0;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.num-spin-btn:hover {
  background: rgba(59,130,246,.2);
  border-color: rgba(59,130,246,.4);
  color: rgba(255,255,255,.9);
}
.num-spin-btn:active {
  background: rgba(59,130,246,.35);
  transform: scale(.92);
}


[data-theme="light"] .num-spin-btn {
  background:   rgba(15, 20, 40, 0.05) !important;
  border-color: rgba(15, 20, 40, 0.15) !important;
  color:        rgba(15, 20, 40, 0.65) !important;
}
[data-theme="light"] .num-spin-btn:hover {
  background:   rgba(37, 99, 235, 0.15) !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
  color:        rgba(15, 20, 40, 0.95) !important;
}
[data-theme="light"] .num-spin-btn:active {
  background:   rgba(37, 99, 235, 0.28) !important;
}
.num-spin-up::before {
  content: ''; display: block; width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid currentColor;
}
.num-spin-down::before {
  content: ''; display: block; width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}




#section-sscc {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}



#section-sscc > .card,
#section-sscc > .card-grid,
#section-sscc > .section-header,
#section-sscc > div:not(canvas) {
  position: relative;
  z-index: 1;
}


.sscc-validator-wrap { margin-top: 4px; }
.sscc-val-textarea {
  height: 160px !important;
  min-height: 160px !important;
  max-height: 160px !important;
}
.sscc-validator-wrap .codes-line-nums { height: 160px; }


.sscc-val-results-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.sscc-val-filter-panel {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
}
.sscc-val-search-wrap {
  display: flex; align-items: center; gap: 8px;
  flex: 1; min-width: 200px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 6px 12px;
}
.sscc-val-search-input {
  background: none; border: none; outline: none;
  color: rgba(255,255,255,.9);
  font-size: 13px; width: 100%;
  font-family: var(--font);
}
.sscc-val-toggles { display: flex; gap: 6px; }
.sscc-val-toggle {
  padding: 6px 14px; border-radius: 8px;
  font-size: 12px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.6);
  transition: all .2s ease;
  font-family: var(--font);
}
.sscc-val-toggle:hover { background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); }
.sscc-val-toggle.active {
  background: rgba(59,130,246,.2);
  border-color: rgba(59,130,246,.4);
  color: rgba(255,255,255,.95);
}


.sscc-val-table-container {
  height: 400px;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
.sscc-val-table-container::-webkit-scrollbar        { width: 6px; }
.sscc-val-table-container::-webkit-scrollbar-track  { background: transparent; }
.sscc-val-table-container::-webkit-scrollbar-thumb  { background: rgba(255,255,255,.2); border-radius: 3px; }
.sscc-val-table-container::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.35); }

.sscc-val-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.sscc-val-table th,
.sscc-val-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: var(--text);
}

.sscc-val-table thead th {
  position: sticky; top: 0; z-index: 2;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(15,15,40,.95);
  backdrop-filter: blur(10px);
}
.sscc-val-table tbody tr:last-child td { border-bottom: none; }
.sscc-val-ok  { background: rgba(34,197,94,.07); }
.sscc-val-err { background: rgba(239,68,68,.07); }
.sscc-val-code {
  font-family: 'Courier New', monospace;
  font-size: .82rem;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
}

.sscc-val-stats {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  padding: 0 4px;
}


.sscc-val-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; flex-wrap: wrap;
  padding: 8px 0;
}
.sscc-val-page-btn {
  min-width: 32px; height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 13px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.7);
  transition: all .15s ease;
  font-family: var(--font);
}
.sscc-val-page-btn.active {
  background: rgba(59,130,246,.25);
  border-color: rgba(59,130,246,.5);
  color: #fff;
}
.sscc-val-page-btn:hover:not(.active):not(:disabled) {
  background: rgba(255,255,255,.1);
}
.sscc-val-page-btn:disabled { opacity: .35; cursor: not-allowed; }
.sscc-val-page-ellipsis { padding: 0 4px; color: rgba(255,255,255,.3); }
.stub-ic { font-size: 64px; margin-bottom: 20px; line-height: 1; }
.stub-title {
  font-size: 1.5rem; font-weight: 700;
  color: var(--text); margin-bottom: 14px;
}
.stub-desc {
  color: rgba(255,255,255,.55);
  line-height: 1.6; margin-bottom: 20px;
}





.theme-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-ghost-bg);
  border: 1px solid var(--btn-ghost-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.3s ease;
}
.theme-toggle:hover {
  background: var(--btn-ghost-hover-bg);
  transform: rotate(15deg);
}
[data-theme="light"] .theme-toggle:hover {
  transform: rotate(30deg);
}
.theme-toggle img {
  display: block;
  pointer-events: none;
}





[data-theme="light"] .hero-title {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed, #059669);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
[data-theme="light"] .hero-desc,
[data-theme="light"] .hero-tagline {
  color: rgba(15, 20, 40, 0.70);
}
[data-theme="light"] .hero-orb { mix-blend-mode: multiply; }


[data-theme="light"] .header-logo-icon {
  filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.35));
}
[data-theme="light"] .header-logo-text {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}


[data-theme="light"] .nav-link {
  color: rgba(15, 20, 40, 0.70);
}
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link-pricing:hover {
  color: rgba(15, 20, 40, 0.95);
  background: rgba(59, 130, 246, 0.08);
}
[data-theme="light"] .nav-link.active,
[data-theme="light"] .nav-btn.active {
  background: rgba(59, 130, 246, 0.12);
  color: rgba(15, 20, 40, 0.95);
}
[data-theme="light"] .nav-link-pricing {
  color: rgba(15, 20, 40, 0.70);
}


[data-theme="light"] .nav-dd {
  background: var(--dropdown-bg);
  border-color: var(--glass-border);
  box-shadow: 0 12px 48px rgba(15, 20, 40, 0.18);
}
[data-theme="light"] .nav-dd-item {
  color: rgba(15, 20, 40, 0.85);
}
[data-theme="light"] .nav-dd-item:hover {
  background: var(--dropdown-item-hover);
}
[data-theme="light"] .nav-dd-title { color: rgba(15, 20, 40, 0.92); }
[data-theme="light"] .nav-dd-desc  { color: rgba(15, 20, 40, 0.55); }


[data-theme="light"] .feature-card {
  background: rgba(255, 255, 255, 0.70);
  border-color: rgba(59, 130, 246, 0.15);
}
[data-theme="light"] .feature-card:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(59, 130, 246, 0.30);
}
[data-theme="light"] .feature-name { color: rgba(15, 20, 40, 0.90); }
[data-theme="light"] .feature-desc { color: rgba(15, 20, 40, 0.60); }


[data-theme="light"] .card      { color: rgba(15, 20, 40, 0.90); }
[data-theme="light"] .card-title,
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3 {
  color: rgba(15, 20, 40, 0.92);
}
[data-theme="light"] .section-desc,
[data-theme="light"] .hint {
  color: rgba(15, 20, 40, 0.60);
}


[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="number"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="search"],
[data-theme="light"] input:not([type]),
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: var(--input-bg);
  border-color: var(--input-border);
  color: var(--input-text);
}
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: var(--input-placeholder);
}


[data-theme="light"] .codes-editor-wrap {
  background: rgba(255, 255, 255, 0.80);
  border-color: rgba(59, 130, 246, 0.15);
}
[data-theme="light"] .codes-line-nums {
  background: rgba(230, 238, 255, 0.80);
  color: rgba(15, 20, 40, 0.40);
}
[data-theme="light"] .codes-textarea {
  background: transparent;
  color: rgba(15, 20, 40, 0.90);
}


[data-theme="light"] .btn-ghost,
[data-theme="light"] .btn-secondary {
  background: var(--btn-ghost-bg);
  border-color: var(--btn-ghost-border);
  color: var(--btn-ghost-text);
}
[data-theme="light"] .btn-ghost:hover,
[data-theme="light"] .btn-secondary:hover {
  background: var(--btn-ghost-hover-bg);
  color: rgba(15, 20, 40, 0.95);
}
[data-theme="light"] .btn-login {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
  color: rgba(15, 20, 40, 0.90);
}


[data-theme="light"] .modal-box,
[data-theme="light"] .tpl-modal-box,
[data-theme="light"] .tpl-save-box {
  background: var(--modal-bg);
  color: rgba(15, 20, 40, 0.90);
  box-shadow: 0 24px 64px rgba(15, 20, 40, 0.25);
}
[data-theme="light"] #modal-overlay,
[data-theme="light"] .tpl-modal-overlay {
  background: var(--modal-backdrop);
}


[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
}
[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}


[data-theme="light"] .pdf-progress-modal {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(59, 130, 246, 0.20);
  color: rgba(15, 20, 40, 0.90);
}
[data-theme="light"] .pdf-progress-track {
  background: rgba(59, 130, 246, 0.10);
}
[data-theme="light"] .pdf-progress-status,
[data-theme="light"] .pdf-progress-title {
  color: rgba(15, 20, 40, 0.85);
}
[data-theme="light"] .pdf-progress-substatus {
  color: rgba(15, 20, 40, 0.50);
}

[data-theme="light"] .pdf-progress-counter {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(37, 99, 235, 0.40) !important;
  color: rgba(29, 78, 216, 0.95) !important;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.20) !important;
}

[data-theme="light"] .pdf-progress-label-start,
[data-theme="light"] .pdf-progress-label-end {
  color: rgba(15, 20, 40, 0.65) !important;
}


[data-theme="light"] .b64-results-table,
[data-theme="light"] .sscc-val-table {
  background: rgba(255, 255, 255, 0.80);
  color: rgba(15, 20, 40, 0.88);
}
[data-theme="light"] .b64-results-table th,
[data-theme="light"] .sscc-val-table th {
  background: rgba(37, 99, 235, 0.10);
  color: rgba(15, 20, 40, 0.85);
  border-color: rgba(59, 130, 246, 0.15);
}
[data-theme="light"] .b64-results-table td,
[data-theme="light"] .sscc-val-table td {
  border-color: rgba(59, 130, 246, 0.10);
  color: rgba(15, 20, 40, 0.80);
}
[data-theme="light"] .sscc-val-page-btn {
  background: rgba(15, 20, 40, 0.05);
  border-color: rgba(15, 20, 40, 0.10);
  color: rgba(15, 20, 40, 0.75);
}
[data-theme="light"] .sscc-val-page-btn.active {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.40);
  color: rgba(15, 20, 40, 0.95);
}
[data-theme="light"] .sscc-val-page-btn:hover:not(.active):not(:disabled) {
  background: rgba(59, 130, 246, 0.10);
}


.sscc-val-search-icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, .40);
  transition: color .15s;
}
.sscc-val-search-wrap:focus-within .sscc-val-search-icon {
  color: rgba(99, 179, 250, .85);
}


[data-theme="light"] .sscc-val-filter-panel {
  background: rgba(255, 255, 255, .60);
  border-color: rgba(37, 99, 235, .12);
}
[data-theme="light"] .sscc-val-search-wrap {
  background: rgba(255, 255, 255, .80);
  border-color: rgba(37, 99, 235, .15);
}
[data-theme="light"] .sscc-val-search-wrap:focus-within {
  border-color: rgba(37, 99, 235, .35);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}
[data-theme="light"] .sscc-val-search-input {
  color: rgba(15, 20, 40, .90);
}
[data-theme="light"] .sscc-val-search-input::placeholder {
  color: rgba(15, 20, 40, .35);
}
[data-theme="light"] .sscc-val-search-icon {
  color: rgba(37, 99, 235, .45);
}
[data-theme="light"] .sscc-val-search-wrap:focus-within .sscc-val-search-icon {
  color: rgba(29, 78, 216, .80);
}


[data-theme="light"] .sscc-val-toggle {
  background: rgba(255, 255, 255, .70);
  border-color: rgba(37, 99, 235, .12);
  color: rgba(15, 20, 40, .65);
}
[data-theme="light"] .sscc-val-toggle:hover {
  background: rgba(255, 255, 255, .92);
  color: rgba(15, 20, 40, .88);
}
[data-theme="light"] .sscc-val-toggle.active {
  background: rgba(37, 99, 235, .12);
  border-color: rgba(37, 99, 235, .35);
  color: rgba(29, 78, 216, .95);
}

[data-theme="light"] .sscc-val-toggle.active[data-filter="valid"] {
  background: rgba(34, 197, 94, .10);
  border-color: rgba(34, 197, 94, .30);
  color: rgba(21, 128, 61, .95);
}

[data-theme="light"] .sscc-val-toggle.active[data-filter="invalid"] {
  background: rgba(220, 38, 38, .08);
  border-color: rgba(220, 38, 38, .25);
  color: rgba(185, 28, 28, .95);
}


[data-theme="light"] .sscc-val-stats {
  color: rgba(15, 20, 40, .55);
}
[data-theme="light"] .sscc-val-stats strong,
[data-theme="light"] .sscc-val-stats b {
  color: rgba(15, 20, 40, .85);
}


.ds-gtin-help {
  display: flex; align-items: flex-start;
  gap: 5px;
  margin-top: 4px;
  padding: 0 2px;
}
.ds-gtin-help-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: rgba(99, 179, 250, .55);
}
.ds-gtin-help-text {
  font-size: 10.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .42);
}
[data-theme="light"] .ds-gtin-help-icon {
  color: rgba(37, 99, 235, .50);
}
[data-theme="light"] .ds-gtin-help-text {
  color: rgba(15, 20, 40, .50);
}


[data-theme="light"] .reader-rejected-block {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}
[data-theme="light"] .reader-rejected-body p {
  color: rgba(15, 20, 40, 0.70);
}
[data-theme="light"] .reader-rejected-note {
  color: rgba(15, 20, 40, 0.50) !important;
}


[data-theme="light"] .reader-summary {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.30);
}
[data-theme="light"] .reader-summary-head { color: rgba(15, 20, 40, 0.92); }
[data-theme="light"] .reader-summary-item {
  background: rgba(255, 255, 255, 0.70);
  border-color: rgba(59, 130, 246, 0.12);
}
[data-theme="light"] .reader-summary-lbl { color: rgba(15, 20, 40, 0.55); }
[data-theme="light"] .reader-file-item {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(59, 130, 246, 0.12);
}

[data-theme="light"] .gen-bar {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(37, 99, 235, 0.18) !important;
  box-shadow:
    0 4px 20px rgba(37, 99, 235, 0.10),
    0 1px 4px rgba(37, 99, 235, 0.06) !important;
}
[data-theme="light"] .gen-bar-info {
  color: rgba(15, 20, 40, 0.75) !important;
}
[data-theme="light"] .gen-bar-info strong {
  color: rgba(29, 78, 216, 0.95) !important;
}

[data-theme="light"] .reader-file-name   { color: rgba(15, 20, 40, 0.90); }
[data-theme="light"] .reader-file-size   { color: rgba(15, 20, 40, 0.55); }
[data-theme="light"] .reader-file-remove { color: rgba(15, 20, 40, 0.45); }
[data-theme="light"] .reader-file-remove:hover {
  color: rgba(185, 28, 28, 0.90) !important;
  background: rgba(220, 38, 38, 0.10) !important;
}


[data-theme="light"] .reader-summary-num {
  color: rgba(29, 78, 216, 0.95) !important;
}


[data-theme="light"] .reader-file-status.pending {
  color: rgba(15, 20, 40, 0.50) !important;
}
[data-theme="light"] .reader-file-status.scanning {
  color: rgba(29, 78, 216, 0.95) !important;
  background: rgba(37, 99, 235, 0.10) !important;
}
[data-theme="light"] .reader-file-status.done {
  color: rgba(21, 128, 61, 0.95) !important;
  background: rgba(22, 163, 74, 0.10) !important;
}
[data-theme="light"] .reader-file-status.error {
  color: rgba(185, 28, 28, 0.95) !important;
  background: rgba(220, 38, 38, 0.10) !important;
}


[data-theme="light"] .reader-export-panel {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(37, 99, 235, 0.15) !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08) !important;
}
[data-theme="light"] .reader-export-title {
  color: rgba(15, 20, 40, 0.92) !important;
}


[data-theme="light"] .rep-bar-wrap {
  background: rgba(37, 99, 235, 0.10) !important;
}
[data-theme="light"] .rep-label {
  color: rgba(15, 20, 40, 0.62) !important;
}


[data-theme="light"] .reader-export-btn {
  background: rgba(255, 255, 255, 0.90) !important;
  border-color: rgba(37, 99, 235, 0.16) !important;
  color: rgba(15, 20, 40, 0.72) !important;
}
[data-theme="light"] .reader-export-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.99) !important;
  border-color: rgba(37, 99, 235, 0.30) !important;
  color: rgba(15, 20, 40, 0.92) !important;
}
[data-theme="light"] .reader-export-btn--nk {
  background: rgba(37, 99, 235, 0.07) !important;
  border-color: rgba(37, 99, 235, 0.22) !important;
  color: rgba(29, 78, 216, 0.88) !important;
}
[data-theme="light"] .reader-export-btn--nk:hover:not(:disabled) {
  background: rgba(37, 99, 235, 0.14) !important;
  border-color: rgba(37, 99, 235, 0.40) !important;
  color: rgba(29, 78, 216, 1) !important;
}


[data-theme="light"] .reader-files-list {
  background: rgba(255, 255, 255, 0.65) !important;
  border-color: rgba(37, 99, 235, 0.15) !important;
}
[data-theme="light"] .reader-files-header {
  color: rgba(15, 20, 40, 0.70) !important;
  border-bottom-color: rgba(37, 99, 235, 0.10) !important;
}
[data-theme="light"] .reader-file-item {
  border-bottom-color: rgba(37, 99, 235, 0.08) !important;
}


[data-theme="light"] .reader-files-items::-webkit-scrollbar-track {
  background: rgba(37, 99, 235, 0.06) !important;
}
[data-theme="light"] .reader-files-items::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.28) !important;
}
[data-theme="light"] .reader-files-items::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.45) !important;
}
[data-theme="light"] .reader-files-items {
  scrollbar-color: rgba(37, 99, 235, 0.28) rgba(37, 99, 235, 0.06);
  scrollbar-width: thin;
}


[data-theme="light"] .stub-desc { color: rgba(15, 20, 40, 0.60); }
[data-theme="light"] .stub-title { color: rgba(15, 20, 40, 0.90); }


[data-theme="light"] .toast {
  background: rgba(255, 255, 255, 0.95);
  color: rgba(15, 20, 40, 0.90);
  box-shadow: 0 12px 32px rgba(15, 20, 40, 0.20);
  border-color: rgba(59, 130, 246, 0.18);
}

[data-theme="light"] .toast-icon--success { color: rgba(22, 163, 74,  0.90); }
[data-theme="light"] .toast-icon--error   { color: rgba(220, 38, 38,  0.90); }
[data-theme="light"] .toast-icon--warning { color: rgba(202, 138, 4,  0.90); }
[data-theme="light"] .toast-icon--info    { color: rgba(37, 99, 235,  0.90); }


[data-theme="light"] .badge-soon {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
}


[data-theme="light"] .burger { color: rgba(15, 20, 40, 0.80); }




[data-theme="light"] .nav-dd {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(37, 99, 235, 0.15) !important;
  box-shadow:
    0 20px 60px rgba(37, 99, 235, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .nav-dd-item {
  color: rgba(15, 20, 40, 0.80) !important;
}
[data-theme="light"] .nav-dd-item:hover {
  background: rgba(37, 99, 235, 0.08) !important;
  color: rgba(15, 20, 40, 0.95) !important;
}
[data-theme="light"] .nav-dd-title {
  color: rgba(15, 20, 40, 0.90) !important;
}
[data-theme="light"] .nav-dd-desc {
  color: rgba(15, 20, 40, 0.55) !important;
}


[data-theme="light"] .badge-soon {
  background: rgba(124, 58, 237, 0.12) !important;
  border-color: rgba(124, 58, 237, 0.25) !important;
  color: rgba(109, 40, 217, 0.90) !important;
}


[data-theme="light"] .nav-link,
[data-theme="light"] .nav-btn,
[data-theme="light"] .nav-link-pricing {
  color: rgba(15, 20, 40, 0.70) !important;
}
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link-pricing:hover {
  background: rgba(37, 99, 235, 0.08) !important;
  color: rgba(15, 20, 40, 0.95) !important;
}
[data-theme="light"] .nav-btn.active,
[data-theme="light"] .nav-btn:hover,
[data-theme="light"] .nav-link.active {
  background: rgba(37, 99, 235, 0.12) !important;
  color: rgba(15, 20, 40, 0.95) !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
}





[data-theme="light"] .auth-card {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(37, 99, 235, 0.15) !important;
  box-shadow:
    0 20px 60px rgba(37, 99, 235, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.90) !important;
}
[data-theme="light"] .auth-logo-text {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed) !important;
  -webkit-background-clip: text !important;
          background-clip: text !important;
  color: transparent !important;
}
[data-theme="light"] .auth-title {
  color: rgba(15, 20, 40, 0.92) !important;
}
[data-theme="light"] .auth-sub {
  color: rgba(15, 20, 40, 0.60) !important;
}
[data-theme="light"] .auth-divider {
  color: rgba(15, 20, 40, 0.45) !important;
}
[data-theme="light"] .auth-divider::before,
[data-theme="light"] .auth-divider::after {
  background: rgba(15, 20, 40, 0.12) !important;
}
[data-theme="light"] .btn-google {
  background: rgba(15, 20, 40, 0.04) !important;
  border-color: rgba(15, 20, 40, 0.15) !important;
  color: rgba(15, 20, 40, 0.90) !important;
}
[data-theme="light"] .btn-google:hover {
  background: rgba(37, 99, 235, 0.10) !important;
  border-color: rgba(37, 99, 235, 0.30) !important;
}
[data-theme="light"] .auth-hint {
  border-top-color: rgba(15, 20, 40, 0.08) !important;
  color: rgba(15, 20, 40, 0.55) !important;
}
[data-theme="light"] .auth-warn {
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(245, 158, 11, 0.40) !important;
  color: rgba(180, 83, 9, 0.95) !important;
}


[data-theme="light"] .dh {
  background: rgba(255, 255, 255, 0.80) !important;
  border-bottom-color: rgba(37, 99, 235, 0.12) !important;
}
[data-theme="light"] .dh-logo-txt {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed) !important;
  -webkit-background-clip: text !important;
          background-clip: text !important;
  color: transparent !important;
}
[data-theme="light"] .dh-tab {
  color: rgba(15, 20, 40, 0.70) !important;
}
[data-theme="light"] .dh-tab:hover {
  background: rgba(37, 99, 235, 0.08) !important;
  color: rgba(15, 20, 40, 0.95) !important;
}
[data-theme="light"] .dh-tab.active {
  background: rgba(37, 99, 235, 0.12) !important;
  border-color: rgba(37, 99, 235, 0.30) !important;
  color: rgba(15, 20, 40, 0.95) !important;
}
[data-theme="light"] .dh-user-name {
  color: rgba(15, 20, 40, 0.90) !important;
}
[data-theme="light"] .dh-avatar {
  border-color: rgba(37, 99, 235, 0.20) !important;
}
[data-theme="light"] .dh-logout {
  background: rgba(239, 68, 68, 0.10) !important;
  border-color: rgba(239, 68, 68, 0.30) !important;
  color: rgba(185, 28, 28, 0.95) !important;
}
[data-theme="light"] .dh-logout:hover {
  background: rgba(239, 68, 68, 0.18) !important;
}

[data-theme="light"] .plan-free {
  background: rgba(15, 20, 40, 0.06) !important;
  color: rgba(15, 20, 40, 0.80) !important;
  border-color: rgba(15, 20, 40, 0.15) !important;
}

[data-theme="light"] .dash-stat-card,
[data-theme="light"] .dh-card,
[data-theme="light"] .dh-stat {
  background: rgba(255, 255, 255, 0.70) !important;
  border-color: rgba(37, 99, 235, 0.15) !important;
  color: rgba(15, 20, 40, 0.88) !important;
}
[data-theme="light"] .dash-stat-num,
[data-theme="light"] .dh-stat-num {
  color: rgba(15, 20, 40, 0.92) !important;
}
[data-theme="light"] .dash-stat-lbl,
[data-theme="light"] .dh-stat-lbl {
  color: rgba(15, 20, 40, 0.55) !important;
}


[data-theme="light"] .dh-hello {
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(37, 99, 235, 0.15) !important;
}
[data-theme="light"] .dh-hello-title {
  color: rgba(15, 20, 40, 0.92) !important;
}
[data-theme="light"] .dh-hello-sub {
  color: rgba(15, 20, 40, 0.55) !important;
}


[data-theme="light"] .dh-stat-val {
  background: linear-gradient(135deg, #1d4ed8, #6d28d9) !important;
  -webkit-background-clip: text !important;
          background-clip: text !important;
  color: transparent !important;
}
[data-theme="light"] .dh-stat-sub {
  color: rgba(15, 20, 40, 0.50) !important;
}
[data-theme="light"] .dh-progress {
  background: rgba(15, 20, 40, 0.08) !important;
}


[data-theme="light"] .dh-section-title {
  color: rgba(15, 20, 40, 0.85) !important;
}


[data-theme="light"] .dh-chart-empty {
  color: rgba(15, 20, 40, 0.40) !important;
}


[data-theme="light"] .dh-table th {
  color: rgba(15, 20, 40, 0.55) !important;
  border-bottom-color: rgba(15, 20, 40, 0.10) !important;
}
[data-theme="light"] .dh-table td {
  color: rgba(15, 20, 40, 0.85) !important;
  border-bottom-color: rgba(15, 20, 40, 0.05) !important;
}
[data-theme="light"] .dh-table tr:hover td {
  background: rgba(37, 99, 235, 0.04) !important;
}


[data-theme="light"] .dh-type.datamatrix {
  background: rgba(37, 99, 235, 0.10) !important;
  color: rgba(29, 78, 216, 0.95) !important;
}
[data-theme="light"] .dh-type.sscc {
  background: rgba(124, 58, 237, 0.10) !important;
  color: rgba(109, 40, 217, 0.95) !important;
}
[data-theme="light"] .dh-type.reader {
  background: rgba(5, 150, 105, 0.10) !important;
  color: rgba(4, 120, 87, 0.95) !important;
}
[data-theme="light"] .dh-type.base64 {
  background: rgba(217, 119, 6, 0.10) !important;
  color: rgba(180, 83, 9, 0.95) !important;
}


[data-theme="light"] .dh-empty {
  background: rgba(15, 20, 40, 0.02) !important;
  border-color: rgba(15, 20, 40, 0.10) !important;
  color: rgba(15, 20, 40, 0.55) !important;
}
[data-theme="light"] .dh-empty-btn {
  background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
  color: #fff !important;
}


[data-theme="light"] .dh-quick-btn {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(37, 99, 235, 0.12) !important;
  color: rgba(15, 20, 40, 0.85) !important;
}
[data-theme="light"] .dh-quick-btn:hover {
  background: rgba(37, 99, 235, 0.08) !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
}


[data-theme="light"] .dh-filter-btn {
  background: rgba(255, 255, 255, 0.65) !important;
  border-color: rgba(15, 20, 40, 0.10) !important;
  color: rgba(15, 20, 40, 0.65) !important;
}
[data-theme="light"] .dh-filter-btn.active {
  background: rgba(37, 99, 235, 0.12) !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
  color: rgba(29, 78, 216, 0.95) !important;
}


[data-theme="light"] .dh-pager-btn {
  background: rgba(255, 255, 255, 0.65) !important;
  border-color: rgba(15, 20, 40, 0.10) !important;
  color: rgba(15, 20, 40, 0.70) !important;
}
[data-theme="light"] .dh-pager-btn.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
}


[data-theme="light"] .dh-tpl-card {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(37, 99, 235, 0.12) !important;
}
[data-theme="light"] .dh-tpl-name {
  color: rgba(15, 20, 40, 0.92) !important;
}
[data-theme="light"] .dh-tpl-meta {
  color: rgba(15, 20, 40, 0.50) !important;
}
[data-theme="light"] .dh-tpl-btn {
  background: rgba(37, 99, 235, 0.10) !important;
  border-color: rgba(37, 99, 235, 0.30) !important;
  color: rgba(29, 78, 216, 0.95) !important;
}
[data-theme="light"] .dh-tpl-btn.danger {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.30) !important;
  color: rgba(185, 28, 28, 0.95) !important;
}


[data-theme="light"] .dh-field label {
  color: rgba(15, 20, 40, 0.55) !important;
}
[data-theme="light"] .dh-field input {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(15, 20, 40, 0.12) !important;
  color: rgba(15, 20, 40, 0.92) !important;
}
[data-theme="light"] .dh-field input:focus {
  border-color: #2563eb !important;
  background: #fff !important;
}


[data-theme="light"] .dh-comp-item {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(37, 99, 235, 0.12) !important;
}
[data-theme="light"] .dh-comp-name {
  color: rgba(15, 20, 40, 0.92) !important;
}
[data-theme="light"] .dh-comp-gln {
  color: rgba(15, 20, 40, 0.55) !important;
}
[data-theme="light"] .dh-comp-default {
  background: rgba(5, 150, 105, 0.10) !important;
  border-color: rgba(5, 150, 105, 0.30) !important;
  color: rgba(4, 120, 87, 0.95) !important;
}


[data-theme="light"] .plan-starter {
  background: rgba(37, 99, 235, 0.10) !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
  color: rgba(29, 78, 216, 0.95) !important;
}
[data-theme="light"] .plan-pro {
  background: rgba(124, 58, 237, 0.10) !important;
  border-color: rgba(124, 58, 237, 0.35) !important;
  color: rgba(109, 40, 217, 0.95) !important;
}
[data-theme="light"] .plan-business {
  background: rgba(217, 119, 6, 0.10) !important;
  border-color: rgba(217, 119, 6, 0.35) !important;
  color: rgba(180, 83, 9, 0.95) !important;
}
[data-theme="light"] .plan-payg {
  background: rgba(5, 150, 105, 0.10) !important;
  border-color: rgba(5, 150, 105, 0.35) !important;
  color: rgba(4, 120, 87, 0.95) !important;
}


.sscc-gln-manage {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}
.sscc-gln-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(99, 179, 250, 0.78);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.sscc-gln-link:hover {
  color: rgba(99, 179, 250, 1);
}
.sscc-gln-link svg {
  flex-shrink: 0;
  opacity: 0.85;
}
[data-theme="light"] .sscc-gln-manage {
  border-top-color: rgba(37, 99, 235, 0.15) !important;
}
[data-theme="light"] .sscc-gln-link {
  color: rgba(29, 78, 216, 0.75) !important;
}
[data-theme="light"] .sscc-gln-link:hover {
  color: rgba(29, 78, 216, 0.95) !important;
}




[data-theme="light"] .dh-stat-val span[style*="color"],
[data-theme="light"] .dh-stat-val span {
  color: rgba(15, 20, 40, 0.45) !important;
}


[data-theme="light"] .dh-table td[style*="color"],
[data-theme="light"] .dh-table td span[style*="color"] {
  color: rgba(15, 20, 40, 0.55) !important;
}
[data-theme="light"] .dh-pager span[style*="color"] {
  color: rgba(15, 20, 40, 0.40) !important;
}


[data-theme="light"] #pane-companies label[style*="color"] {
  color: rgba(15, 20, 40, 0.65) !important;
}


[data-theme="light"] .dh-pane a[style*="color"],
[data-theme="light"] .dh-card a[style*="color"] {
  color: #2563eb !important;
}


[data-theme="light"] .dh-empty-icon {
  filter: none !important;
  opacity: 0.85;
}


[data-theme="light"] .dh-table tbody tr:hover td,
[data-theme="light"] .dh-table tbody tr:hover td span {
  background: rgba(37, 99, 235, 0.04) !important;
}


[data-theme="light"] .dh-pane label,
[data-theme="light"] main.dh-main label {
  color: rgba(15, 20, 40, 0.65) !important;
}


[data-theme="light"] .dh-quick-btn span {
  color: inherit !important;
}


[data-theme="light"] .dh-section-title a {
  color: #2563eb !important;
}


[data-theme="light"] .dh-avatar:not([src]),
[data-theme="light"] .dh-avatar[src=""] {
  background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
}


[data-theme="light"] main.dh-main {
  color: rgba(15, 20, 40, 0.85);
}


[data-theme="light"] .dh-stat-icon {
  color: rgba(29, 78, 216, 0.85) !important;
}
[data-theme="light"] .dh-quick-ic {
  color: rgba(29, 78, 216, 0.85) !important;
}
[data-theme="light"] .dh-quick-btn:hover .dh-quick-ic {
  color: rgba(29, 78, 216, 1) !important;
}
[data-theme="light"] .dh-empty-icon {
  color: rgba(15, 20, 40, 0.40) !important;
}
[data-theme="light"] .dh-tpl-icon {
  color: rgba(29, 78, 216, 0.80) !important;
}
[data-theme="light"] .dh-comp-icon {
  color: rgba(29, 78, 216, 0.80) !important;
}

[data-theme="light"] .dh-stat-suffix {
  color: rgba(15, 20, 40, 0.40) !important;
}


.dh-stat-icon  { color: rgba(99, 179, 250, 0.90); }
.dh-quick-ic   { color: rgba(99, 179, 250, 0.90); }
.dh-quick-btn:hover .dh-quick-ic { color: rgba(99, 179, 250, 1); }
.dh-empty-icon { color: rgba(255, 255, 255, 0.30); }
.dh-tpl-icon   { color: rgba(99, 179, 250, 0.90); }
.dh-comp-icon  { color: rgba(99, 179, 250, 0.90); }


html.pricing-hidden .pricing-element,
html.pricing-hidden a[href="/pricing"] {
  display: none !important;
}


.ki-status-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
  max-width: 1200px;
  margin: 0 auto;
}


.ki-token-card,
.ki-input-card,
.ki-progress-wrap {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 20px 24px;
}


.ki-token-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ki-token-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 10px;
  color: rgba(99, 179, 250, 0.90);
  flex-shrink: 0;
}
.ki-token-meta { flex: 1; }
.ki-token-title {
  font-size: 15px; font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 2px;
}
.ki-token-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}
.ki-token-status {
  margin-left: auto;
  font-size: 12px; font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}
.ki-token-status.active {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.30);
  color: rgba(134, 239, 172, 0.95);
}
.ki-token-toggle {
  margin-top: 12px;
  background: none; border: none;
  color: rgba(99, 179, 250, 0.75);
  font-size: 12px; cursor: pointer; padding: 0;
  font-family: var(--font);
}
.ki-token-toggle:hover { color: rgba(99, 179, 250, 1); }

.ki-token-form { margin-top: 16px; }


.ki-hint-block {
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.ki-hint-title {
  font-size: 11px; font-weight: 700;
  color: rgba(99, 179, 250, 0.95);
  margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.ki-hint-steps {
  margin: 0; padding-left: 18px;
  font-size: 13px; line-height: 1.7;
  color: rgba(255, 255, 255, 0.70);
}
.ki-hint-steps a { color: rgba(99, 179, 250, 0.90); text-decoration: none; }
.ki-hint-steps a:hover { text-decoration: underline; }
.ki-hint-inline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.60);
  background: rgba(59, 130, 246, 0.05);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  line-height: 1.5;
}


.ki-field-row { display: flex; gap: 10px; align-items: stretch; }
.ki-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px; font-family: var(--font);
  box-sizing: border-box;
}
.ki-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.10);
}

.ki-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 12px; font-family: 'Courier New', monospace;
  resize: vertical;
  box-sizing: border-box;
  min-height: 140px;
}
.ki-textarea::placeholder { color: rgba(255, 255, 255, 0.25); }
.ki-textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.40);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}
.ki-textarea-stats {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-align: right;
  margin-top: 4px;
}


.ki-input-tabs {
  display: flex; gap: 4px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 3px;
  width: fit-content;
}
.ki-tab {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  background: none; border: none;
  color: rgba(255, 255, 255, 0.60);
  cursor: pointer; font-family: var(--font);
  transition: background .15s ease, color .15s ease;
}
.ki-tab:hover { color: rgba(255, 255, 255, 0.90); }
.ki-tab.active {
  background: rgba(59, 130, 246, 0.20);
  color: rgba(99, 179, 250, 0.98);
}


.ki-upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.ki-upload-zone:hover,
.ki-upload-zone.drag-over {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.05);
}
.ki-upload-icon {
  display: flex; justify-content: center;
  color: rgba(99, 179, 250, 0.75);
  margin-bottom: 10px;
}
.ki-upload-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 4px;
}
.ki-upload-link {
  color: rgba(99, 179, 250, 0.90);
  cursor: pointer; text-decoration: underline;
}
.ki-upload-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.40);
  margin: 0;
}

.ki-upload-formats {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}
.ki-format-badge {
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: rgba(255, 255, 255, 0.50);
}
.ki-file-loaded {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
#ki-file-name { font-weight: 600; }
#ki-file-count { color: rgba(255, 255, 255, 0.55); }
#ki-file-clear {
  margin-left: auto;
  background: none; border: none;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer; font-size: 14px;
  padding: 4px 8px;
}
#ki-file-clear:hover { color: rgba(239, 68, 68, 0.9); }


.ki-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(109, 40, 217, 0.75));
  border: 1px solid rgba(99, 179, 250, 0.30);
  border-radius: 10px;
  color: #fff;
  font-size: 14px; font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: transform .1s ease, box-shadow .15s ease;
}
.ki-btn-primary:hover  { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35); }
.ki-btn-primary:active { transform: translateY(0); }
.ki-btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.ki-btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 10px;
  color: rgba(134, 239, 172, 0.95);
  font-size: 13px; font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
}
.ki-btn-secondary:hover { background: rgba(34, 197, 94, 0.20); }

.ki-btn-ghost {
  padding: 8px 16px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.60);
  font-size: 13px; cursor: pointer;
  font-family: var(--font);
}
.ki-btn-ghost:hover { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.90); }

.ki-actions {
  display: flex; align-items: center; gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.ki-limit-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}


.ki-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
}
.ki-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.85), rgba(109, 40, 217, 0.85));
  border-radius: 3px;
  width: 30%;
  animation: ki-progress-anim 1.5s ease-in-out infinite;
}
@keyframes ki-progress-anim {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}
.ki-progress-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  margin: 0;
}


.ki-summary-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 700px) { .ki-summary-row { grid-template-columns: repeat(2, 1fr); } }
.ki-summary-card {
  padding: 14px 16px;
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.ki-summary-card.ki-summary-total { border-color: rgba(99, 179, 250, 0.20); }
.ki-summary-card.ki-summary-ok    { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.25); }
.ki-summary-card.ki-summary-warn  { background: rgba(234, 179, 8, 0.08); border-color: rgba(234, 179, 8, 0.25); }
.ki-summary-card.ki-summary-err   { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.20); }
.ki-summary-num {
  display: block;
  font-size: 28px; font-weight: 800; line-height: 1;
  color: rgba(255, 255, 255, 0.95);
}
.ki-summary-lbl {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.ki-export-row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }


.ki-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.ki-table {
  width: 100%; border-collapse: collapse;
  font-size: 12px;
}
.ki-table thead th {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  font-size: 10px; letter-spacing: 0.4px;
}
.ki-table tbody td {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}
.ki-table tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
.ki-row-even td { background: rgba(255, 255, 255, 0.015); }
.ki-num { color: rgba(255, 255, 255, 0.40) !important; width: 36px; text-align: center; }
.ki-code-text {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: rgba(99, 179, 250, 0.85);
}


.ki-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px; font-weight: 600;
  white-space: nowrap;
}
.ki-status-ok    { background: rgba(34, 197, 94, 0.15);  color: rgba(134, 239, 172, 0.95); border: 1px solid rgba(34, 197, 94, 0.28); }
.ki-status-warn  { background: rgba(234, 179, 8, 0.15);  color: rgba(253, 224, 71, 0.95); border: 1px solid rgba(234, 179, 8, 0.28); }
.ki-status-info  { background: rgba(59, 130, 246, 0.15); color: rgba(99, 179, 250, 0.95); border: 1px solid rgba(59, 130, 246, 0.28); }
.ki-status-muted { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.10); }
.ki-status-err   { background: rgba(239, 68, 68, 0.15);  color: rgba(252, 165, 165, 0.95); border: 1px solid rgba(239, 68, 68, 0.28); }


[data-theme="light"] .ki-token-card,
[data-theme="light"] .ki-input-card,
[data-theme="light"] .ki-progress-wrap,
[data-theme="light"] .ki-summary-card,
[data-theme="light"] .ki-table-wrap {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(37, 99, 235, 0.12) !important;
}
[data-theme="light"] .ki-token-title       { color: rgba(15, 20, 40, 0.92) !important; }
[data-theme="light"] .ki-token-sub,
[data-theme="light"] .ki-summary-lbl,
[data-theme="light"] .ki-limit-hint,
[data-theme="light"] .ki-textarea-stats,
[data-theme="light"] .ki-progress-text     { color: rgba(15, 20, 40, 0.55) !important; }
[data-theme="light"] .ki-summary-num       { color: rgba(15, 20, 40, 0.92) !important; }
[data-theme="light"] .ki-hint-block        { background: rgba(37, 99, 235, 0.06) !important; border-color: rgba(37, 99, 235, 0.18) !important; }
[data-theme="light"] .ki-hint-title        { color: rgba(29, 78, 216, 0.90) !important; }
[data-theme="light"] .ki-hint-steps        { color: rgba(15, 20, 40, 0.65) !important; }
[data-theme="light"] .ki-hint-steps a      { color: rgba(29, 78, 216, 0.85) !important; }
[data-theme="light"] .ki-hint-inline       { background: rgba(37, 99, 235, 0.05) !important; color: rgba(15, 20, 40, 0.65) !important; }
[data-theme="light"] .ki-textarea,
[data-theme="light"] .ki-input {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(37, 99, 235, 0.18) !important;
  color: rgba(15, 20, 40, 0.92) !important;
}
[data-theme="light"] .ki-textarea::placeholder,
[data-theme="light"] .ki-input::placeholder { color: rgba(15, 20, 40, 0.30) !important; }
[data-theme="light"] .ki-tab               { color: rgba(15, 20, 40, 0.55) !important; }
[data-theme="light"] .ki-tab:hover         { color: rgba(15, 20, 40, 0.90) !important; }
[data-theme="light"] .ki-tab.active        { background: rgba(37, 99, 235, 0.12) !important; color: rgba(29, 78, 216, 0.95) !important; }
[data-theme="light"] .ki-input-tabs        { background: rgba(15, 20, 40, 0.04) !important; }
[data-theme="light"] .ki-upload-zone       { border-color: rgba(37, 99, 235, 0.20) !important; }
[data-theme="light"] .ki-upload-zone:hover,
[data-theme="light"] .ki-upload-zone.drag-over { background: rgba(37, 99, 235, 0.05) !important; border-color: rgba(37, 99, 235, 0.40) !important; }
[data-theme="light"] .ki-upload-text       { color: rgba(15, 20, 40, 0.75) !important; }
[data-theme="light"] .ki-upload-sub        { color: rgba(15, 20, 40, 0.45) !important; }
[data-theme="light"] .ki-format-badge {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.15);
  color: rgba(15, 20, 40, 0.50);
}
[data-theme="light"] .ki-upload-link       { color: rgba(29, 78, 216, 0.90) !important; }
[data-theme="light"] .ki-upload-icon       { color: rgba(29, 78, 216, 0.80) !important; }
[data-theme="light"] .ki-table thead th    { background: rgba(37, 99, 235, 0.06) !important; color: rgba(15, 20, 40, 0.60) !important; border-bottom-color: rgba(37, 99, 235, 0.10) !important; }
[data-theme="light"] .ki-table tbody td    { color: rgba(15, 20, 40, 0.85) !important; border-bottom-color: rgba(37, 99, 235, 0.06) !important; }
[data-theme="light"] .ki-table tbody tr:hover td { background: rgba(37, 99, 235, 0.04) !important; }
[data-theme="light"] .ki-code-text         { color: rgba(29, 78, 216, 0.85) !important; }
[data-theme="light"] .ki-num               { color: rgba(15, 20, 40, 0.40) !important; }
[data-theme="light"] .ki-status-ok         { background: rgba(22, 163, 74, 0.10) !important; color: rgba(21, 128, 61, 0.95) !important; border-color: rgba(22, 163, 74, 0.25) !important; }
[data-theme="light"] .ki-status-warn       { background: rgba(161, 98, 7, 0.10) !important; color: rgba(133, 77, 14, 0.95) !important; border-color: rgba(161, 98, 7, 0.25) !important; }
[data-theme="light"] .ki-status-info       { background: rgba(37, 99, 235, 0.10) !important; color: rgba(29, 78, 216, 0.90) !important; border-color: rgba(37, 99, 235, 0.25) !important; }
[data-theme="light"] .ki-status-muted      { background: rgba(15, 20, 40, 0.05) !important; color: rgba(15, 20, 40, 0.55) !important; border-color: rgba(15, 20, 40, 0.12) !important; }
[data-theme="light"] .ki-status-err        { background: rgba(220, 38, 38, 0.10) !important; color: rgba(185, 28, 28, 0.95) !important; border-color: rgba(220, 38, 38, 0.25) !important; }
[data-theme="light"] .ki-btn-ghost         { border-color: rgba(15, 20, 40, 0.12) !important; color: rgba(15, 20, 40, 0.60) !important; }
[data-theme="light"] .ki-btn-ghost:hover   { background: rgba(15, 20, 40, 0.06) !important; color: rgba(15, 20, 40, 0.90) !important; }
[data-theme="light"] .ki-token-toggle      { color: rgba(29, 78, 216, 0.75) !important; }
[data-theme="light"] .ki-token-status      { background: rgba(15, 20, 40, 0.05) !important; border-color: rgba(15, 20, 40, 0.12) !important; color: rgba(15, 20, 40, 0.60) !important; }
[data-theme="light"] .ki-token-status.active { background: rgba(22, 163, 74, 0.10) !important; border-color: rgba(22, 163, 74, 0.30) !important; color: rgba(21, 128, 61, 0.95) !important; }
[data-theme="light"] .ki-summary-card.ki-summary-ok    { background: rgba(22, 163, 74, 0.08) !important; border-color: rgba(22, 163, 74, 0.25) !important; }
[data-theme="light"] .ki-summary-card.ki-summary-warn  { background: rgba(161, 98, 7, 0.08) !important; border-color: rgba(161, 98, 7, 0.22) !important; }
[data-theme="light"] .ki-summary-card.ki-summary-err   { background: rgba(220, 38, 38, 0.06) !important; border-color: rgba(220, 38, 38, 0.18) !important; }


.beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: rgba(252, 165, 165, 0.85);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: default;
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  user-select: none;
  flex-shrink: 0;
  margin-left: -4px;   
}
.beta-badge:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.40);
  color: rgba(252, 165, 165, 1);
}


.beta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.90);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.60);
  animation: beta-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes beta-pulse {
  0%, 100% { opacity: 1;    box-shadow: 0 0 6px rgba(239, 68, 68, 0.60); }
  50%      { opacity: 0.35; box-shadow: 0 0 2px rgba(239, 68, 68, 0.20); }
}




[data-theme="light"] .beta-badge {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.20) !important;
  color: rgba(185, 28, 28, 0.85) !important;
}
[data-theme="light"] .beta-dot {
  background: rgba(220, 38, 38, 0.85) !important;
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.40) !important;
}


@media (prefers-reduced-motion: reduce) {
  .beta-dot { animation: none !important; opacity: 0.80; }
}


@media (max-width: 480px) {
  .beta-badge { padding: 4px; }
  .beta-badge .beta-text { display: none; }
}


.feedback-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  flex-shrink: 0;
}
.feedback-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.18);
}
.feedback-trigger-btn svg { flex-shrink: 0; opacity: 0.85; }

[data-theme="light"] .feedback-trigger-btn {
  background: rgba(15, 20, 40, 0.04) !important;
  border-color: rgba(15, 20, 40, 0.10) !important;
  color: rgba(15, 20, 40, 0.75) !important;
}
[data-theme="light"] .feedback-trigger-btn:hover {
  background: rgba(37, 99, 235, 0.08) !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
  color: rgba(29, 78, 216, 0.95) !important;
}


@media (max-width: 768px) {
  .feedback-trigger-btn .feedback-btn-label { display: none; }
  .feedback-trigger-btn { padding: 7px 9px; }
}


.feedback-modal-box {
  max-width: 460px !important;
  text-align: left !important;
  padding: 24px !important;
}

.feedback-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.feedback-modal-title {
  font-size: 18px; font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}
.feedback-modal-close {
  background: none; border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 16px; cursor: pointer;
  padding: 4px 8px; border-radius: 6px;
  transition: background .15s ease, color .15s ease;
  font-family: var(--font);
}
.feedback-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}
.feedback-modal-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 20px;
  line-height: 1.5;
}

.feedback-field { margin-bottom: 14px; }
.feedback-label {
  display: block;
  font-size: 11px; font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.feedback-required { color: rgba(239, 68, 68, 0.85); margin-left: 2px; }
.feedback-optional {
  color: rgba(255, 255, 255, 0.40);
  font-weight: 400; text-transform: none; letter-spacing: 0;
  margin-left: 4px;
}

.feedback-type-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.feedback-type-btn {
  padding: 6px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.70);
  font-family: var(--font);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.feedback-type-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.95);
}
.feedback-type-btn.active {
  background: rgba(37, 99, 235, 0.20);
  border-color: rgba(37, 99, 235, 0.40);
  color: rgba(99, 179, 250, 0.98);
}

.feedback-textarea,
.feedback-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px; font-family: var(--font);
  color: rgba(255, 255, 255, 0.92);
  resize: vertical;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.feedback-textarea { min-height: 96px; }
.feedback-textarea::placeholder,
.feedback-input::placeholder {
  color: rgba(255, 255, 255, 0.30);
}
.feedback-textarea:focus,
.feedback-input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.50);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.feedback-error {
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: rgba(252, 165, 165, 0.95);
  margin-bottom: 12px;
}

.feedback-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 8px;
}
.feedback-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.30);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  vertical-align: middle;
}


.feedback-success {
  text-align: center;
  padding: 12px 0 4px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.feedback-success-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.30);
  color: rgba(134, 239, 172, 0.98);
  font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.feedback-success-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.5;
  margin: 0;
}


[data-theme="light"] .feedback-modal-title { color: rgba(15, 20, 40, 0.92) !important; }
[data-theme="light"] .feedback-modal-sub   { color: rgba(15, 20, 40, 0.60) !important; }
[data-theme="light"] .feedback-label       { color: rgba(15, 20, 40, 0.65) !important; }
[data-theme="light"] .feedback-optional    { color: rgba(15, 20, 40, 0.40) !important; }
[data-theme="light"] .feedback-modal-close {
  color: rgba(15, 20, 40, 0.50) !important;
}
[data-theme="light"] .feedback-modal-close:hover {
  background: rgba(15, 20, 40, 0.06) !important;
  color: rgba(15, 20, 40, 0.85) !important;
}
[data-theme="light"] .feedback-type-btn {
  background: rgba(255, 255, 255, 0.65) !important;
  border-color: rgba(15, 20, 40, 0.12) !important;
  color: rgba(15, 20, 40, 0.70) !important;
}
[data-theme="light"] .feedback-type-btn:hover {
  background: rgba(37, 99, 235, 0.06) !important;
  color: rgba(15, 20, 40, 0.95) !important;
}
[data-theme="light"] .feedback-type-btn.active {
  background: rgba(37, 99, 235, 0.12) !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
  color: rgba(29, 78, 216, 0.95) !important;
}
[data-theme="light"] .feedback-textarea,
[data-theme="light"] .feedback-input {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(15, 20, 40, 0.12) !important;
  color: rgba(15, 20, 40, 0.92) !important;
}
[data-theme="light"] .feedback-textarea::placeholder,
[data-theme="light"] .feedback-input::placeholder {
  color: rgba(15, 20, 40, 0.32) !important;
}
[data-theme="light"] .feedback-textarea:focus,
[data-theme="light"] .feedback-input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10) !important;
  background: #fff !important;
}
[data-theme="light"] .feedback-success-text { color: rgba(15, 20, 40, 0.80) !important; }
[data-theme="light"] .feedback-success-icon {
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: rgba(34, 197, 94, 0.35) !important;
  color: rgba(5, 150, 105, 0.95) !important;
}


[data-theme="light"] .pr-title {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed, #059669) !important;
  -webkit-background-clip: text !important;
          background-clip: text !important;
  color: transparent !important;
}
[data-theme="light"] .pr-sub {
  color: rgba(15, 20, 40, 0.60) !important;
}
[data-theme="light"] .pr-back {
  color: #1d4ed8 !important;
}
[data-theme="light"] .pr-toggle {
  background: rgba(255, 255, 255, 0.60) !important;
  border-color: rgba(37, 99, 235, 0.15) !important;
}
[data-theme="light"] .pr-toggle-btn {
  color: rgba(15, 20, 40, 0.65) !important;
}
[data-theme="light"] .pr-toggle-btn.active {
  background: rgba(37, 99, 235, 0.14) !important;
  color: rgba(15, 20, 40, 0.95) !important;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35) !important;
}
[data-theme="light"] .pr-card {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(37, 99, 235, 0.15) !important;
  color: rgba(15, 20, 40, 0.90) !important;
}
[data-theme="light"] .pr-card.featured {
  background: rgba(37, 99, 235, 0.08) !important;
  border-color: rgba(37, 99, 235, 0.40) !important;
}
[data-theme="light"] .pr-card-name {
  color: rgba(15, 20, 40, 0.90) !important;
}
[data-theme="light"] .pr-card-price {
  color: rgba(15, 20, 40, 0.95) !important;
}
[data-theme="light"] .pr-card-period {
  color: rgba(15, 20, 40, 0.50) !important;
}
[data-theme="light"] .pr-list,
[data-theme="light"] .pr-list li {
  color: rgba(15, 20, 40, 0.72) !important;
}
[data-theme="light"] .pr-btn {
  background: rgba(15, 20, 40, 0.06) !important;
  border-color: rgba(15, 20, 40, 0.12) !important;
  color: rgba(15, 20, 40, 0.85) !important;
}
[data-theme="light"] .pr-btn.primary {
  background: rgba(37, 99, 235, 0.85) !important;
  border-color: rgba(37, 99, 235, 1) !important;
  color: #fff !important;
}
[data-theme="light"] .pr-btn.primary:hover {
  background: rgba(37, 99, 235, 1) !important;
}
[data-theme="light"] .pr-badge.pop {
  background: rgba(37, 99, 235, 0.18) !important;
  border-color: rgba(37, 99, 235, 0.50) !important;
  color: #1d4ed8 !important;
}





[data-theme="light"] .hero-title {
  background: linear-gradient(135deg, #1e3a8a 0%, #4338ca 40%, #0369a1 100%) !important;
  -webkit-background-clip: text !important;
          background-clip: text !important;
  color: transparent !important;
}

[data-theme="light"] .hero-sub,
[data-theme="light"] .hero-subtitle,
[data-theme="light"] .typewriter,
[data-theme="light"] .typewriter-text {
  color: rgba(15, 20, 40, 0.85) !important;
}
[data-theme="light"] .hero-desc {
  color: rgba(15, 20, 40, 0.70) !important;
}
[data-theme="light"] .hero-caret {
  color: rgba(37, 99, 235, 0.90) !important;
}


[data-theme="light"] .features-title,
[data-theme="light"] .section-title {
  color: rgba(15, 20, 40, 0.92) !important;
}
[data-theme="light"] .features-subtitle,
[data-theme="light"] .section-subtitle {
  color: rgba(15, 20, 40, 0.60) !important;
}


[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 {
  color: rgba(15, 20, 40, 0.92) !important;
}


[data-theme="light"] .section-header h1,
[data-theme="light"] .section-header h2 {
  color: rgba(15, 20, 40, 0.92) !important;
}
[data-theme="light"] .section-header p,
[data-theme="light"] .section-desc,
[data-theme="light"] .subsection-desc {
  color: rgba(15, 20, 40, 0.60) !important;
}





[data-theme="light"] .btn-primary,
[data-theme="light"] button.btn-primary,
[data-theme="light"] .generate-btn,
[data-theme="light"] #generate-labels-btn,
[data-theme="light"] #scan-btn,
[data-theme="light"] #sscc-gen-btn,
[data-theme="light"] #sscc-export-btn,
[data-theme="light"] #sscc-validate-btn,
[data-theme="light"] [class*="btn-primary"] {
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow:
    0 4px 12px rgba(37, 99, 235, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}
[data-theme="light"] .btn-primary:hover,
[data-theme="light"] #generate-labels-btn:hover,
[data-theme="light"] #scan-btn:hover,
[data-theme="light"] #sscc-gen-btn:hover,
[data-theme="light"] #sscc-export-btn:hover {
  background: linear-gradient(135deg, #1e40af, #1d4ed8) !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.40) !important;
}


[data-theme="light"] .btn-secondary,
[data-theme="light"] .btn-outline,
[data-theme="light"] button[class*="ghost"] {
  background: rgba(255, 255, 255, 0.80) !important;
  color: rgba(15, 20, 40, 0.80) !important;
  border-color: rgba(37, 99, 235, 0.20) !important;
}
[data-theme="light"] .btn-secondary:hover,
[data-theme="light"] .btn-outline:hover,
[data-theme="light"] button[class*="ghost"]:hover {
  background: rgba(37, 99, 235, 0.08) !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
  color: rgba(15, 20, 40, 0.95) !important;
}


[data-theme="light"] .source-btn,
[data-theme="light"] .tab-btn,
[data-theme="light"] [class*="source-btn"] {
  background: rgba(255, 255, 255, 0.70) !important;
  color: rgba(15, 20, 40, 0.70) !important;
  border-color: rgba(37, 99, 235, 0.15) !important;
}
[data-theme="light"] .source-btn.active,
[data-theme="light"] .tab-btn.active,
[data-theme="light"] [class*="source-btn"].active {
  background: rgba(37, 99, 235, 0.12) !important;
  color: rgba(15, 20, 40, 0.95) !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
}


[data-theme="light"] .export-btn,
[data-theme="light"] [class*="export-btn"],
[data-theme="light"] #base64-export-excel-btn {
  background: rgba(255, 255, 255, 0.75) !important;
  color: rgba(15, 20, 40, 0.80) !important;
  border-color: rgba(37, 99, 235, 0.20) !important;
}
[data-theme="light"] .export-btn:hover {
  background: rgba(37, 99, 235, 0.10) !important;
  color: rgba(15, 20, 40, 0.95) !important;
}


[data-theme="light"] .clear-btn,
[data-theme="light"] [id*="clear"],
[data-theme="light"] [id*="reset"] {
  background: rgba(255, 255, 255, 0.70) !important;
  color: rgba(15, 20, 40, 0.70) !important;
  border-color: rgba(15, 20, 40, 0.15) !important;
}


[data-theme="light"] .btn-danger,
[data-theme="light"] [class*="btn-danger"] {
  background: rgba(239, 68, 68, 0.12) !important;
  color: rgba(185, 28, 28, 0.90) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
}


[data-theme="light"] .header-auth-btn,
[data-theme="light"] .btn-login,
[data-theme="light"] #btn-login {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(12px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(150%) !important;
  border: 1px solid rgba(37, 99, 235, 0.25) !important;
  color: rgba(29, 78, 216, 0.95) !important;
  box-shadow:
    0 2px 12px rgba(37, 99, 235, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.80) !important;
  font-weight: 600 !important;
  transition: background .15s ease, border-color .15s ease,
              box-shadow .15s ease, transform .12s ease !important;
}
[data-theme="light"] .header-auth-btn:hover,
[data-theme="light"] .btn-login:hover,
[data-theme="light"] #btn-login:hover {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(37, 99, 235, 0.40) !important;
  color: rgba(29, 78, 216, 1) !important;
  box-shadow:
    0 4px 16px rgba(37, 99, 235, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.90) !important;
  transform: translateY(-1px) !important;
}
[data-theme="light"] .header-auth-btn:active,
[data-theme="light"] .btn-login:active,
[data-theme="light"] #btn-login:active {
  transform: translateY(0) !important;
  box-shadow:
    0 2px 8px rgba(37, 99, 235, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.70) !important;
}


[data-theme="light"] .page-btn,
[data-theme="light"] [class*="page-btn"] {
  background: rgba(255, 255, 255, 0.75) !important;
  color: rgba(15, 20, 40, 0.75) !important;
  border-color: rgba(37, 99, 235, 0.15) !important;
}
[data-theme="light"] .page-btn.active {
  background: rgba(37, 99, 235, 0.15) !important;
  color: rgba(15, 20, 40, 0.95) !important;
  border-color: rgba(37, 99, 235, 0.40) !important;
}





[data-theme="light"] .pdf-progress-fill {
  background: linear-gradient(90deg, #1d4ed8, #2563eb, #4f46e5) !important;
}
[data-theme="light"] .pdf-progress-label,
[data-theme="light"] .pdf-progress-status-text {
  color: rgba(15, 20, 40, 0.85) !important;
}


[data-theme="light"] .textarea,
[data-theme="light"] .codes-editor-wrap {
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 99, 235, 0.30) rgba(37, 99, 235, 0.06);
}
[data-theme="light"] .textarea::-webkit-scrollbar-track,
[data-theme="light"] .codes-editor-wrap::-webkit-scrollbar-track {
  background: rgba(37, 99, 235, 0.06) !important;
}
[data-theme="light"] .textarea::-webkit-scrollbar-thumb,
[data-theme="light"] .codes-editor-wrap::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.30) !important;
}
[data-theme="light"] .textarea::-webkit-scrollbar-thumb:hover,
[data-theme="light"] .codes-editor-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.50) !important;
}


[data-theme="light"] .pdf-progress-icon,
[data-theme="light"] #pdf-progress-icon,
[data-theme="light"] .pdf-progress-dm-icon {
  
  filter: invert(1) hue-rotate(180deg)
          drop-shadow(0 2px 12px rgba(37, 99, 235, 0.25)) !important;
}


[data-theme="light"] .header-logo-icon,
[data-theme="light"] .auth-logo img,
[data-theme="light"] .dh-logo img {
  filter: brightness(0.40) sepia(1) hue-rotate(190deg) saturate(4)
          drop-shadow(0 0 6px rgba(37, 99, 235, 0.35)) !important;
}



[data-theme="light"] .reader-file-preview {
  background: rgba(15, 20, 40, 0.04);
  border-color: rgba(37, 99, 235, 0.15);
}
[data-theme="light"] .reader-preview-skeleton {
  background: linear-gradient(90deg,
              rgba(37, 99, 235, 0.04) 25%,
              rgba(37, 99, 235, 0.12) 50%,
              rgba(37, 99, 235, 0.04) 75%);
  background-size: 200% 100%;
}
[data-theme="light"] .reader-preview-placeholder {
  color: rgba(15, 20, 40, 0.50);
}





.reader-hotkeys-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--btn-ghost-bg);
  border: 1px solid var(--btn-ghost-border);
  border-radius: 8px;
  color: var(--btn-ghost-text);
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s ease;
}
.reader-hotkeys-btn:hover {
  background: var(--btn-ghost-hover-bg);
  color: var(--text);
}
.reader-hotkeys-btn .kbd-hint { white-space: nowrap; }


.reader-hotkeys-popup {
  position: fixed;
  inset: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}


.reader-hotkeys-box {
  background: var(--modal-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  box-shadow: var(--glass-shadow);
}
.reader-hotkeys-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.reader-hotkeys-close {
  width: 26px; height: 26px;
  background: var(--btn-ghost-bg);
  border: 1px solid var(--btn-ghost-border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.reader-hotkeys-close:hover {
  background: var(--btn-ghost-hover-bg);
  color: var(--text);
}
.reader-hotkeys-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reader-hotkeys-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.reader-hotkeys-row > span:first-child {
  flex: 1;
  color: var(--text);
}
.kbd-plus {
  color: var(--text-dim);
  font-size: 11px;
  margin: 0 1px;
}
kbd {
  display: inline-block;
  padding: 2px 8px;
  background: var(--btn-ghost-bg);
  border: 1px solid var(--btn-ghost-border);
  border-radius: 5px;
  font-family: 'SF Mono', Consolas, Monaco, monospace;
  font-size: 11px;
  color: var(--text);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.20),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  min-width: 22px;
  text-align: center;
  line-height: 1.4;
}


[data-theme="light"] kbd {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(37, 99, 235, 0.22) !important;
  color: rgba(15, 20, 40, 0.92) !important;
  box-shadow:
    0 1px 0 rgba(37, 99, 235, 0.15),
    inset 0 -1px 0 rgba(255, 255, 255, 0.50) !important;
}
[data-theme="light"] .kbd-plus {
  color: rgba(15, 20, 40, 0.40);
}





.reader-file-preview {
  cursor: zoom-in;
  transition: transform 0.15s ease;
}
.reader-file-preview:hover {
  transform: scale(1.03);
}


.reader-zoom-popover {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.92) translateY(4px);
  transition:
    opacity 0.18s ease,
    transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: min(480px, 70vw);
  max-height: min(640px, 80vh);
}
.reader-zoom-popover.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}


.reader-zoom-inner {
  position: relative;
  background: rgba(15, 15, 40, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 8px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  min-width: 260px;
  min-height: 200px;
}


.reader-zoom-img {
  display: block;
  max-width: 100%;
  max-height: calc(80vh - 70px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #ffffff;     
  border-radius: 8px;
}


.reader-zoom-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 40, 0.90);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  transition: opacity 0.2s ease;
}
.reader-zoom-loading.hidden {
  opacity: 0;
  pointer-events: none;
}
.reader-zoom-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(99, 179, 250, 0.85);
  border-radius: 50%;
  animation: zoom-spin 0.8s linear infinite;
}
@keyframes zoom-spin {
  to { transform: rotate(360deg); }
}


.reader-zoom-label {
  margin-top: 6px;
  padding: 5px 10px;
  background: rgba(15, 15, 40, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.70);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


[data-theme="light"] .reader-zoom-inner {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(37, 99, 235, 0.18) !important;
  box-shadow:
    0 20px 60px rgba(37, 99, 235, 0.22),
    0 8px 24px rgba(37, 99, 235, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.70) !important;
}
[data-theme="light"] .reader-zoom-loading {
  background: rgba(255, 255, 255, 0.88) !important;
}
[data-theme="light"] .reader-zoom-spinner {
  border-color: rgba(37, 99, 235, 0.12) !important;
  border-top-color: rgba(37, 99, 235, 0.85) !important;
}
[data-theme="light"] .reader-zoom-label {
  background: rgba(255, 255, 255, 0.90) !important;
  border-color: rgba(37, 99, 235, 0.15) !important;
  color: rgba(15, 20, 40, 0.80) !important;
}




.home-section-header {
  text-align: center;
  margin-bottom: 48px;
}
.home-section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}
.home-section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}


.home-how-section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.home-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
}

.home-steps::before {
  content: '';
  position: absolute;
  left: 27px;       
  top: 56px;        
  bottom: 56px;     
  width: 2px;
  background: linear-gradient(180deg,
    rgba(59, 130, 246, 0.40) 0%,
    rgba(139, 92, 246, 0.40) 100%);
  z-index: 0;
}

.home-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px 28px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.home-step-num {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.25),
    rgba(139, 92, 246, 0.25));
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: rgba(99, 179, 250, 0.95);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 2;
}
.home-step-content {
  grid-column: 2;
  grid-row: 1;
  padding-top: 8px;
  min-width: 0;
}

.home-step-media {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  aspect-ratio: 1186 / 907;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-step-media-gif {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  display: block !important;
}

.home-step-media:has(img) .home-step-media-placeholder {
  display: none !important;
}
.home-step-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .25);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
[data-theme="light"] .home-step-media {
  background: rgba(37, 99, 235, .04);
  border-color: rgba(37, 99, 235, .12);
}
[data-theme="light"] .home-step-media-placeholder {
  color: rgba(15, 20, 40, .30);
}

@media (max-width: 768px) {
  .home-step { grid-template-columns: 48px 1fr; gap: 10px 14px; }
  .home-step-num { width: 48px; height: 48px; font-size: 13px; }
  .home-steps::before { left: 23px; }
}
.home-step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.home-step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.home-step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.home-tag {
  padding: 3px 10px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(99, 179, 250, 0.90);
}


.home-cases-section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.home-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.home-case-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.home-case-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.15),
    rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(99, 179, 250, 0.90);
  transition: background 0.2s ease, border-color 0.2s ease,
              transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.home-case-card:hover .home-case-icon {
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.25),
    rgba(139, 92, 246, 0.25));
  border-color: rgba(59, 130, 246, 0.40);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.20);
}
.home-case-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.home-case-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}



[data-theme="light"] .home-step-num {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
  color: rgba(29, 78, 216, 0.95) !important;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.15) !important;
}
[data-theme="light"] .home-steps::before {
  background: linear-gradient(180deg,
    rgba(37, 99, 235, 0.25) 0%,
    rgba(109, 40, 217, 0.25) 100%) !important;
}
[data-theme="light"] .home-case-icon {
  background: linear-gradient(135deg,
    rgba(37, 99, 235, 0.10),
    rgba(109, 40, 217, 0.10)) !important;
  border-color: rgba(37, 99, 235, 0.22) !important;
  color: rgba(29, 78, 216, 0.85) !important;
}
[data-theme="light"] .home-case-card:hover .home-case-icon {
  background: linear-gradient(135deg,
    rgba(37, 99, 235, 0.18),
    rgba(109, 40, 217, 0.18)) !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15) !important;
}
[data-theme="light"] .home-tag {
  background: rgba(37, 99, 235, 0.10) !important;
  border-color: rgba(37, 99, 235, 0.22) !important;
  color: rgba(29, 78, 216, 0.90) !important;
}
[data-theme="light"] .home-case-card {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(37, 99, 235, 0.12) !important;
}
[data-theme="light"] .home-case-card:hover {
  border-color: rgba(37, 99, 235, 0.30) !important;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15) !important;
}


@media (max-width: 768px) {
  .home-how-section,
  .home-cases-section {
    padding: 48px 16px;
  }
  .home-steps::before { display: none; }
  .home-cases-grid    { grid-template-columns: 1fr; }
  .home-section-title { font-size: 22px; }
}




#section-status .ki-token-card,
#section-status .ki-input-card,
#section-status .ki-progress-wrap,
#section-status .ki-results-wrap {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 16px !important;
  padding: 20px 24px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.20),
              inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}


#section-status .ki-token-icon {
  width: 40px !important; height: 40px !important; min-width: 40px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  background: rgba(59, 130, 246, 0.15) !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
  border-radius: 10px !important;
  color: rgba(99, 179, 250, 0.90) !important;
}


#section-status .ki-token-title {
  font-size: 15px !important; font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  margin: 0 !important;
}
#section-status .ki-token-sub {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.55) !important;
  margin: 0 !important;
}
#section-status .ki-token-status {
  margin-left: auto !important;
  font-size: 12px !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: rgba(255, 255, 255, 0.55) !important;
  white-space: nowrap !important;
}
#section-status .ki-token-status.active {
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: rgba(34, 197, 94, 0.30) !important;
  color: rgba(134, 239, 172, 0.95) !important;
}
#section-status .ki-token-toggle {
  margin-top: 12px !important;
  background: none !important; border: none !important;
  color: rgba(99, 179, 250, 0.75) !important;
  font-size: 12px !important; cursor: pointer !important; padding: 0 !important;
}


#section-status .ki-cert-info {
  margin-top: 14px !important;
  padding: 12px 16px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(12px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(150%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 10px !important;
  
  opacity: 0 !important;
  transition: opacity 0.5s ease-out !important;
}
#section-status .ki-cert-info.visible {
  opacity: 1 !important;
}
#section-status .ki-cert-greeting {
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.35) !important;
  margin-bottom: 6px !important;
}
#section-status .ki-cert-name {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.90) !important;
  line-height: 1.3 !important;
  
  transition-delay: 0.05s !important;
}
#section-status .ki-cert-org {
  font-size: 12px !important;
  color: rgba(99, 179, 250, 0.75) !important;
  margin-top: 4px !important;
  transition-delay: 0.10s !important;
}

[data-theme="light"] #section-status .ki-cert-info {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(37, 99, 235, 0.12) !important;
  box-shadow:
    0 2px 12px rgba(37, 99, 235, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.80) !important;
}
[data-theme="light"] #section-status .ki-cert-greeting { color: rgba(15, 20, 40, 0.40) !important; }
[data-theme="light"] #section-status .ki-cert-name     { color: rgba(15, 20, 40, 0.90) !important; }
[data-theme="light"] #section-status .ki-cert-org      { color: rgba(29, 78, 216, 0.70) !important; }

@media (prefers-reduced-motion: reduce) {
  #section-status .ki-cert-info {
    transition: none !important;
  }
  #section-status .ki-cert-name,
  #section-status .ki-cert-org {
    transition-delay: 0s !important;
  }
}


#section-status .ki-hint-block {
  background: rgba(59, 130, 246, 0.08) !important;
  border: 1px solid rgba(59, 130, 246, 0.18) !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  margin-bottom: 14px !important;
}
#section-status .ki-hint-inline {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  background: rgba(59, 130, 246, 0.06) !important;
  border: 1px solid rgba(59, 130, 246, 0.14) !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  margin-bottom: 12px !important;
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.65) !important;
  line-height: 1.5 !important;
}
#section-status .ki-hint-icon {
  display: inline-flex !important;
  flex-shrink: 0 !important;
  margin-top: 1px !important;
  color: rgba(99, 179, 250, 0.85) !important;
}


#section-status .ki-textarea {
  width: 100% !important;
  background: rgba(0, 0, 0, 0.20) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 12px !important;
  font-family: 'Courier New', monospace !important;
  resize: vertical !important;
  box-sizing: border-box !important;
  line-height: 1.6 !important;
}
#section-status .ki-textarea::placeholder { color: rgba(255, 255, 255, 0.22) !important; }
#section-status .ki-textarea:focus {
  outline: none !important;
  border-color: rgba(59, 130, 246, 0.42) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.10) !important;
}
#section-status .ki-textarea-stats {
  text-align: right !important;
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.40) !important;
  margin-top: 4px !important;
}
#section-status .ki-input {
  flex: 1 !important;
  background: rgba(0, 0, 0, 0.20) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 13px !important;
}
#section-status .ki-field-row {
  display: flex !important; gap: 10px !important; align-items: center !important;
}


#section-status .ki-input-tabs {
  display: flex !important; gap: 4px !important;
  margin-bottom: 16px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-radius: 10px !important;
  padding: 3px !important;
  width: fit-content !important;
}
#section-status .ki-tab {
  padding: 6px 16px !important;
  border-radius: 8px !important;
  font-size: 13px !important; font-weight: 500 !important;
  background: none !important; border: none !important;
  color: rgba(255, 255, 255, 0.50) !important;
  cursor: pointer !important;
}
#section-status .ki-tab.active {
  background: rgba(59, 130, 246, 0.20) !important;
  color: rgba(99, 179, 250, 0.95) !important;
}


#section-status .ki-upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important;
  padding: 36px 20px !important;
  text-align: center !important;
  cursor: pointer !important;
  color: rgba(255, 255, 255, 0.50) !important;
}
#section-status .ki-upload-zone:hover,
#section-status .ki-upload-zone.drag-over {
  border-color: rgba(59, 130, 246, 0.45) !important;
  background: rgba(59, 130, 246, 0.05) !important;
}
#section-status .ki-upload-icon {
  display: flex !important;
  justify-content: center !important;
  color: rgba(99, 179, 250, 0.75) !important;
  margin-bottom: 10px !important;
}
#section-status .ki-upload-text {
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.65) !important;
  margin: 8px 0 4px !important;
}
#section-status .ki-upload-link {
  color: rgba(99, 179, 250, 0.90) !important;
  cursor: pointer !important; text-decoration: underline !important;
}
#section-status .ki-upload-sub {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.35) !important;
  margin: 0 !important;
}


#section-status .ki-btn-primary {
  display: inline-flex !important; align-items: center !important; gap: 8px !important;
  padding: 10px 20px !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(109, 40, 217, 0.75)) !important;
  border: 1px solid rgba(99, 179, 250, 0.30) !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-size: 14px !important; font-weight: 600 !important;
  cursor: pointer !important;
  transition: transform .1s ease, box-shadow .15s ease !important;
}
#section-status .ki-btn-primary:hover { transform: translateY(-1px) !important; box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35) !important; }
#section-status .ki-btn-primary:disabled { opacity: 0.5 !important; cursor: not-allowed !important; transform: none !important; }
#section-status .ki-btn-secondary {
  display: inline-flex !important; align-items: center !important; gap: 8px !important;
  padding: 8px 16px !important;
  background: rgba(34, 197, 94, 0.12) !important;
  border: 1px solid rgba(34, 197, 94, 0.28) !important;
  border-radius: 10px !important;
  color: rgba(134, 239, 172, 0.95) !important;
  font-size: 13px !important; font-weight: 600 !important;
  cursor: pointer !important;
}
#section-status .ki-btn-ghost {
  padding: 8px 16px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 10px !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 13px !important; cursor: pointer !important;
}
#section-status .ki-btn-ghost:hover { background: rgba(255, 255, 255, 0.08) !important; color: rgba(255, 255, 255, 0.85) !important; }
#section-status .ki-actions {
  display: flex !important; align-items: center !important; gap: 16px !important;
  margin-top: 16px !important; flex-wrap: wrap !important;
}
#section-status .ki-limit-hint {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.40) !important;
}


#section-status .ki-summary-card {
  padding: 16px !important;
  border-radius: 12px !important;
  text-align: center !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
#section-status .ki-summary-card.ki-summary-ok    { background: rgba(34, 197, 94, 0.08) !important; border-color: rgba(34, 197, 94, 0.22) !important; }
#section-status .ki-summary-card.ki-summary-warn  { background: rgba(234, 179, 8, 0.08) !important; border-color: rgba(234, 179, 8, 0.22) !important; }
#section-status .ki-summary-card.ki-summary-err   { background: rgba(239, 68, 68, 0.08) !important; border-color: rgba(239, 68, 68, 0.20) !important; }
#section-status .ki-summary-num {
  display: block !important;
  font-size: 28px !important; font-weight: 800 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  line-height: 1 !important;
}
#section-status .ki-summary-lbl {
  display: block !important;
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.50) !important;
  margin-top: 6px !important;
  text-transform: uppercase !important; letter-spacing: 0.4px !important;
}


#section-status .ki-table thead th {
  padding: 10px 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(255, 255, 255, 0.50) !important;
  font-weight: 600 !important; text-align: left !important;
  white-space: nowrap !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  text-transform: uppercase !important; font-size: 10px !important; letter-spacing: 0.4px !important;
}
#section-status .ki-table tbody td {
  padding: 10px 12px !important;
  color: rgba(255, 255, 255, 0.82) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  vertical-align: middle !important;
}
#section-status .ki-table tbody tr:hover td { background: rgba(255, 255, 255, 0.03) !important; }
#section-status .ki-code-text {
  font-family: 'Courier New', monospace !important;
  font-size: 11px !important;
  color: rgba(99, 179, 250, 0.80) !important;
}


#section-status .ki-status-badge {
  display: inline-block !important;
  padding: 3px 10px !important;
  border-radius: 20px !important;
  font-size: 11px !important; font-weight: 600 !important;
  white-space: nowrap !important;
}
#section-status .ki-status-ok    { background: rgba(34, 197, 94, 0.15) !important; color: rgba(134, 239, 172, 0.95) !important; border: 1px solid rgba(34, 197, 94, 0.28) !important; }
#section-status .ki-status-warn  { background: rgba(234, 179, 8, 0.15) !important; color: rgba(253, 224, 71, 0.95) !important; border: 1px solid rgba(234, 179, 8, 0.28) !important; }
#section-status .ki-status-info  { background: rgba(59, 130, 246, 0.15) !important; color: rgba(99, 179, 250, 0.95) !important; border: 1px solid rgba(59, 130, 246, 0.28) !important; }
#section-status .ki-status-muted { background: rgba(255, 255, 255, 0.06) !important; color: rgba(255, 255, 255, 0.50) !important; border: 1px solid rgba(255, 255, 255, 0.10) !important; }
#section-status .ki-status-err   { background: rgba(239, 68, 68, 0.15) !important; color: rgba(252, 165, 165, 0.95) !important; border: 1px solid rgba(239, 68, 68, 0.28) !important; }


[data-theme="light"] #section-status .ki-token-card,
[data-theme="light"] #section-status .ki-input-card,
[data-theme="light"] #section-status .ki-progress-wrap,
[data-theme="light"] #section-status .ki-results-wrap {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(37, 99, 235, 0.12) !important;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08) !important;
}
[data-theme="light"] #section-status .ki-token-title    { color: rgba(15, 20, 40, 0.92) !important; }
[data-theme="light"] #section-status .ki-token-sub,
[data-theme="light"] #section-status .ki-textarea-stats,
[data-theme="light"] #section-status .ki-limit-hint,
[data-theme="light"] #section-status .ki-upload-text,
[data-theme="light"] #section-status .ki-upload-sub,
[data-theme="light"] #section-status .ki-progress-text  { color: rgba(15, 20, 40, 0.55) !important; }
[data-theme="light"] #section-status .ki-textarea,
[data-theme="light"] #section-status .ki-input          { background: #ffffff !important; border-color: rgba(37, 99, 235, 0.18) !important; color: rgba(15, 20, 40, 0.92) !important; }
[data-theme="light"] #section-status .ki-textarea::placeholder { color: rgba(15, 20, 40, 0.28) !important; }
[data-theme="light"] #section-status .ki-tab           { color: rgba(15, 20, 40, 0.55) !important; }
[data-theme="light"] #section-status .ki-tab.active    { background: rgba(37, 99, 235, 0.12) !important; color: rgba(29, 78, 216, 0.92) !important; }
[data-theme="light"] #section-status .ki-input-tabs    { background: rgba(15, 20, 40, 0.04) !important; }
[data-theme="light"] #section-status .ki-hint-block    { background: rgba(37, 99, 235, 0.06) !important; border-color: rgba(37, 99, 235, 0.14) !important; }
[data-theme="light"] #section-status .ki-hint-inline   { background: rgba(37, 99, 235, 0.05) !important; border-color: rgba(37, 99, 235, 0.10) !important; color: rgba(15, 20, 40, 0.65) !important; }
[data-theme="light"] #section-status .ki-hint-title    { color: rgba(29, 78, 216, 0.85) !important; }
[data-theme="light"] #section-status .ki-hint-steps    { color: rgba(15, 20, 40, 0.65) !important; }
[data-theme="light"] #section-status .ki-hint-icon     { color: rgba(29, 78, 216, 0.85) !important; }
[data-theme="light"] #section-status .ki-upload-zone   { border-color: rgba(37, 99, 235, 0.20) !important; }
[data-theme="light"] #section-status .ki-upload-zone:hover,
[data-theme="light"] #section-status .ki-upload-zone.drag-over { background: rgba(37, 99, 235, 0.05) !important; border-color: rgba(37, 99, 235, 0.40) !important; }
[data-theme="light"] #section-status .ki-upload-icon   { color: rgba(29, 78, 216, 0.80) !important; }
[data-theme="light"] #section-status .ki-upload-link   { color: rgba(29, 78, 216, 0.85) !important; }
[data-theme="light"] #section-status .ki-table thead th { background: rgba(37, 99, 235, 0.06) !important; color: rgba(15, 20, 40, 0.55) !important; border-bottom-color: rgba(37, 99, 235, 0.10) !important; }
[data-theme="light"] #section-status .ki-table tbody td { color: rgba(15, 20, 40, 0.85) !important; border-bottom-color: rgba(37, 99, 235, 0.06) !important; }
[data-theme="light"] #section-status .ki-table tbody tr:hover td { background: rgba(37, 99, 235, 0.04) !important; }
[data-theme="light"] #section-status .ki-code-text     { color: rgba(29, 78, 216, 0.80) !important; }
[data-theme="light"] #section-status .ki-summary-card  { background: rgba(255, 255, 255, 0.80) !important; border-color: rgba(37, 99, 235, 0.10) !important; }
[data-theme="light"] #section-status .ki-summary-num   { color: rgba(15, 20, 40, 0.92) !important; }
[data-theme="light"] #section-status .ki-summary-lbl   { color: rgba(15, 20, 40, 0.55) !important; }
[data-theme="light"] #section-status .ki-summary-card.ki-summary-ok   { background: rgba(22, 163, 74, 0.07) !important; border-color: rgba(22, 163, 74, 0.20) !important; }
[data-theme="light"] #section-status .ki-summary-card.ki-summary-warn { background: rgba(161, 98, 7, 0.07) !important; border-color: rgba(161, 98, 7, 0.18) !important; }
[data-theme="light"] #section-status .ki-summary-card.ki-summary-err  { background: rgba(220, 38, 38, 0.06) !important; border-color: rgba(220, 38, 38, 0.15) !important; }
[data-theme="light"] #section-status .ki-status-ok    { background: rgba(22, 163, 74, 0.10) !important; color: rgba(21, 128, 61, 0.95) !important; border-color: rgba(22, 163, 74, 0.22) !important; }
[data-theme="light"] #section-status .ki-status-warn  { background: rgba(161, 98, 7, 0.10) !important; color: rgba(133, 77, 14, 0.95) !important; border-color: rgba(161, 98, 7, 0.22) !important; }
[data-theme="light"] #section-status .ki-status-info  { background: rgba(37, 99, 235, 0.10) !important; color: rgba(29, 78, 216, 0.92) !important; border-color: rgba(37, 99, 235, 0.22) !important; }
[data-theme="light"] #section-status .ki-status-muted { background: rgba(15, 20, 40, 0.05) !important; color: rgba(15, 20, 40, 0.55) !important; border-color: rgba(15, 20, 40, 0.10) !important; }
[data-theme="light"] #section-status .ki-status-err   { background: rgba(220, 38, 38, 0.10) !important; color: rgba(185, 28, 28, 0.95) !important; border-color: rgba(220, 38, 38, 0.22) !important; }
[data-theme="light"] #section-status .ki-btn-ghost    { border-color: rgba(15, 20, 40, 0.12) !important; color: rgba(15, 20, 40, 0.60) !important; }
[data-theme="light"] #section-status .ki-btn-ghost:hover { background: rgba(15, 20, 40, 0.06) !important; color: rgba(15, 20, 40, 0.90) !important; }
[data-theme="light"] #section-status .ki-token-toggle { color: rgba(29, 78, 216, 0.70) !important; }
[data-theme="light"] #section-status .ki-token-status { background: rgba(15, 20, 40, 0.06) !important; border-color: rgba(15, 20, 40, 0.12) !important; color: rgba(15, 20, 40, 0.55) !important; }
[data-theme="light"] #section-status .ki-token-status.active { background: rgba(22, 163, 74, 0.10) !important; border-color: rgba(22, 163, 74, 0.25) !important; color: rgba(21, 128, 61, 0.95) !important; }
[data-theme="light"] #section-status .ki-num          { color: rgba(15, 20, 40, 0.32) !important; }


#section-status .ki-plugin-status {
  margin: 12px 0 !important;
  font-size: 12px !important;
}
#section-status .ki-plugin-ok,
#section-status .ki-plugin-err,
#section-status .ki-plugin-checking {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
}
#section-status .ki-plugin-ok       { color: rgba(134, 239, 172, 0.95) !important; background: rgba(34, 197, 94, 0.10) !important; border: 1px solid rgba(34, 197, 94, 0.22) !important; }
#section-status .ki-plugin-err      { color: rgba(252, 165, 165, 0.90) !important; background: rgba(239, 68, 68, 0.08) !important; border: 1px solid rgba(239, 68, 68, 0.22) !important; }
#section-status .ki-plugin-checking { color: rgba(255, 255, 255, 0.45) !important; background: rgba(255, 255, 255, 0.04) !important; border: 1px solid rgba(255, 255, 255, 0.08) !important; }
#section-status .ki-plugin-link     { color: rgba(99, 179, 250, 0.90) !important; text-decoration: underline !important; margin-left: 4px !important; }


#section-status .ki-inn-field { margin-top: 12px !important; }


#section-status .ki-auth-actions { margin-top: 10px !important; }


#section-status .ki-divider {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 20px 0 !important;
}
#section-status .ki-divider::before,
#section-status .ki-divider::after {
  content: '' !important;
  flex: 1 !important;
  height: 1px !important;
  background: rgba(255, 255, 255, 0.08) !important;
}
#section-status .ki-divider span {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.40) !important;
  white-space: nowrap !important;
}
#section-status .ki-manual-hint {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.40) !important;
  margin-top: 6px !important;
  margin-bottom: 0 !important;
}


[data-theme="light"] #section-status .ki-plugin-ok       { color: rgba(21, 128, 61, 0.95) !important; background: rgba(22, 163, 74, 0.08) !important; border-color: rgba(22, 163, 74, 0.22) !important; }
[data-theme="light"] #section-status .ki-plugin-err      { color: rgba(185, 28, 28, 0.90) !important; background: rgba(220, 38, 38, 0.06) !important; border-color: rgba(220, 38, 38, 0.20) !important; }
[data-theme="light"] #section-status .ki-plugin-checking { color: rgba(15, 20, 40, 0.55) !important; background: rgba(15, 20, 40, 0.04) !important; border-color: rgba(15, 20, 40, 0.10) !important; }
[data-theme="light"] #section-status .ki-plugin-link     { color: rgba(29, 78, 216, 0.90) !important; }
[data-theme="light"] #section-status .ki-divider::before,
[data-theme="light"] #section-status .ki-divider::after  { background: rgba(15, 20, 40, 0.10) !important; }
[data-theme="light"] #section-status .ki-divider span    { color: rgba(15, 20, 40, 0.50) !important; }
[data-theme="light"] #section-status .ki-manual-hint     { color: rgba(15, 20, 40, 0.50) !important; }


#section-status .ki-auth-hint {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.40) !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  line-height: 1.5 !important;
}
#section-status .ki-auth-hint a {
  color: rgba(99, 179, 250, 0.85) !important;
  text-decoration: underline !important;
}


#section-status .ki-company-select-wrap {
  margin-top: 14px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
#section-status .ki-company-label {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.65) !important;
  margin-bottom: 8px !important;
  font-weight: 600 !important;
}
#section-status .ki-company-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
#section-status .ki-company-msg {
  font-size: 12px !important;
  color: rgba(253, 224, 71, 0.90) !important;
  background: rgba(234, 179, 8, 0.08) !important;
  border: 1px solid rgba(234, 179, 8, 0.22) !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
}
#section-status .ki-company-form {
  display: flex !important;
  gap: 10px !important;
  align-items: stretch !important;
}
#section-status .ki-company-form .ki-input {
  flex: 1 !important;
}
#section-status .ki-company-btn {
  padding: 12px 16px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: all 0.15s !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
#section-status .ki-company-btn:hover {
  background: rgba(59, 130, 246, 0.15) !important;
  border-color: rgba(59, 130, 246, 0.30) !important;
}
#section-status .ki-company-name {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.85) !important;
}
#section-status .ki-company-inn {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.40) !important;
}


[data-theme="light"] #section-status .ki-auth-hint   { color: rgba(15, 20, 40, 0.55) !important; }
[data-theme="light"] #section-status .ki-auth-hint a { color: rgba(29, 78, 216, 0.90) !important; }
[data-theme="light"] #section-status .ki-company-select-wrap { border-top-color: rgba(15, 20, 40, 0.08) !important; }
[data-theme="light"] #section-status .ki-company-label { color: rgba(15, 20, 40, 0.70) !important; }
[data-theme="light"] #section-status .ki-company-msg   { color: rgba(133, 77, 14, 0.95) !important; background: rgba(234, 179, 8, 0.10) !important; border-color: rgba(161, 98, 7, 0.25) !important; }
[data-theme="light"] #section-status .ki-company-btn   { background: rgba(255, 255, 255, 0.80) !important; border-color: rgba(37, 99, 235, 0.12) !important; }
[data-theme="light"] #section-status .ki-company-btn:hover { background: rgba(37, 99, 235, 0.08) !important; border-color: rgba(37, 99, 235, 0.25) !important; }
[data-theme="light"] #section-status .ki-company-name  { color: rgba(15, 20, 40, 0.90) !important; }
[data-theme="light"] #section-status .ki-company-inn   { color: rgba(15, 20, 40, 0.45) !important; }


.ki-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.ki-btn-ghost:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.30);
  color: rgba(252, 165, 165, 0.95);
}
[data-theme="light"] .ki-btn-ghost {
  border-color: rgba(15, 20, 40, 0.14) !important;
  color: rgba(15, 20, 40, 0.60) !important;
}
[data-theme="light"] .ki-btn-ghost:hover {
  background: rgba(220, 38, 38, 0.08) !important;
  border-color: rgba(220, 38, 38, 0.28) !important;
  color: rgba(185, 28, 28, 0.95) !important;
}


#section-status .ki-cert-header {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}
#section-status .ki-cert-btn-full {
  width: 100% !important;
  justify-content: center !important;
  margin-top: 4px !important;
}
#section-status .ki-cert-status-row {
  display: flex !important;
  justify-content: center !important;
  margin-top: 10px !important;
}


[data-theme="light"] #section-status .ki-file-loaded {
  background: rgba(22, 163, 74, 0.07) !important;
  border-color: rgba(22, 163, 74, 0.18) !important;
  color: rgba(15, 20, 40, 0.85) !important;
}
[data-theme="light"] #section-status #ki-file-name  { color: rgba(15, 20, 40, 0.90) !important; font-weight: 600 !important; }
[data-theme="light"] #section-status #ki-file-count { color: rgba(15, 20, 40, 0.60) !important; }
[data-theme="light"] #section-status #ki-file-clear { color: rgba(15, 20, 40, 0.40) !important; }
[data-theme="light"] #section-status #ki-file-clear:hover { color: rgba(185, 28, 28, 0.75) !important; }


[data-theme="light"] #section-status .ki-btn-secondary {
  background: rgba(22, 163, 74, 0.08) !important;
  border-color: rgba(22, 163, 74, 0.18) !important;
  color: rgba(21, 128, 61, 0.85) !important;
}
[data-theme="light"] #section-status .ki-btn-secondary:hover {
  background: rgba(22, 163, 74, 0.14) !important;
  border-color: rgba(22, 163, 74, 0.28) !important;
  color: rgba(21, 128, 61, 0.95) !important;
}


[data-theme="light"] #section-status .ki-cert-status-row { border-top: none !important; }
[data-theme="light"] #section-status .ki-token-status:not(.active) {
  background: rgba(15, 20, 40, 0.05) !important;
  border-color: rgba(15, 20, 40, 0.12) !important;
  color: rgba(15, 20, 40, 0.55) !important;
}


.ki-cert-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 10, 0.65) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
}
.ki-cert-modal {
  background: rgba(15, 15, 40, 0.96) !important;
  border: 1px solid rgba(99, 179, 250, 0.22) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  width: 420px !important;
  max-width: 100% !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55) !important;
}
.ki-cert-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  margin: 0 0 16px !important;
}
.ki-cert-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
  max-height: 50vh !important;
  overflow-y: auto !important;
}
.ki-cert-item {
  padding: 12px 16px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: background .15s ease, border-color .15s ease !important;
  font-family: inherit !important;
}
.ki-cert-item:hover {
  background: rgba(59, 130, 246, 0.15) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
}
.ki-cert-name {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.90) !important;
  margin-bottom: 4px !important;
}
.ki-cert-date {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.50) !important;
}
.ki-cert-cancel {
  width: 100% !important;
  padding: 10px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 10px !important;
  color: rgba(255, 255, 255, 0.65) !important;
  cursor: pointer !important;
  font-size: 13px !important;
  font-family: inherit !important;
}
.ki-cert-cancel:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.90) !important;
}


[data-theme="light"] .ki-cert-modal       { background: rgba(255, 255, 255, 0.97) !important; border-color: rgba(37, 99, 235, 0.20) !important; }
[data-theme="light"] .ki-cert-title       { color: rgba(15, 20, 40, 0.92) !important; }
[data-theme="light"] .ki-cert-item        { background: rgba(15, 20, 40, 0.04) !important; border-color: rgba(15, 20, 40, 0.10) !important; }
[data-theme="light"] .ki-cert-item:hover  { background: rgba(37, 99, 235, 0.06) !important; border-color: rgba(37, 99, 235, 0.30) !important; }
[data-theme="light"] .ki-cert-name        { color: rgba(15, 20, 40, 0.90) !important; }
[data-theme="light"] .ki-cert-date        { color: rgba(15, 20, 40, 0.55) !important; }
[data-theme="light"] .ki-cert-cancel      { background: rgba(15, 20, 40, 0.05) !important; border-color: rgba(15, 20, 40, 0.12) !important; color: rgba(15, 20, 40, 0.70) !important; }
[data-theme="light"] .ki-cert-cancel:hover { background: rgba(15, 20, 40, 0.10) !important; color: rgba(15, 20, 40, 0.92) !important; }





.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-danger,
.ki-btn-primary,
.ki-btn-secondary,
.ki-btn-ghost,
.dh-tpl-btn,
.dh-comp-add-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: var(--font) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  user-select: none !important;
  border: 1px solid transparent !important;
  line-height: 1 !important;
  transition: transform .15s ease, box-shadow .15s ease,
              background .15s ease, border-color .15s ease,
              color .15s ease !important;
}


.btn-primary:disabled,
.btn-secondary:disabled,
.btn-ghost:disabled,
.btn-danger:disabled,
.ki-btn-primary:disabled,
.ki-btn-secondary:disabled,
.ki-btn-ghost:disabled {
  opacity: .45 !important;
  cursor: not-allowed !important;
  transform: none !important;
  pointer-events: none !important;
  box-shadow: none !important;
}


.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-ghost:focus-visible,
.btn-danger:focus-visible,
.ki-btn-primary:focus-visible,
.ki-btn-secondary:focus-visible,
.ki-btn-ghost:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .35) !important;
}


.btn-primary,
.ki-btn-primary {
  padding: 10px 20px !important;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, .80),
    rgba(109, 40, 217, .70)
  ) !important;
  border-color: rgba(99, 179, 250, .25) !important;
  color: rgba(255, 255, 255, .96) !important;
  box-shadow:
    0 2px 12px rgba(37, 99, 235, .20),
    inset 0 1px 0 rgba(255, 255, 255, .10)
    !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}
.btn-primary:hover:not(:disabled),
.ki-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px) !important;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, .90),
    rgba(109, 40, 217, .80)
  ) !important;
  box-shadow:
    0 6px 20px rgba(37, 99, 235, .30),
    inset 0 1px 0 rgba(255, 255, 255, .15)
    !important;
}
.btn-primary:active:not(:disabled),
.ki-btn-primary:active:not(:disabled) {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .15) !important;
}


.btn-secondary,
.ki-btn-secondary,
.dh-comp-add-btn {
  padding: 9px 18px !important;
  background: rgba(255, 255, 255, .07) !important;
  border-color: rgba(255, 255, 255, .14) !important;
  color: rgba(255, 255, 255, .85) !important;
  box-shadow:
    0 1px 6px rgba(0, 0, 0, .12),
    inset 0 1px 0 rgba(255, 255, 255, .06)
    !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}
.btn-secondary:hover:not(:disabled),
.ki-btn-secondary:hover:not(:disabled),
.dh-comp-add-btn:hover:not(:disabled) {
  transform: translateY(-1px) !important;
  background: rgba(255, 255, 255, .12) !important;
  border-color: rgba(255, 255, 255, .22) !important;
  color: rgba(255, 255, 255, .98) !important;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .10)
    !important;
}


.btn-ghost,
.ki-btn-ghost {
  padding: 8px 16px !important;
  background: rgba(255, 255, 255, .04) !important;
  border-color: rgba(255, 255, 255, .09) !important;
  color: rgba(255, 255, 255, .55) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}
.btn-ghost:hover:not(:disabled),
.ki-btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(255, 255, 255, .14) !important;
  color: rgba(255, 255, 255, .85) !important;
}


.btn-danger {
  padding: 8px 16px !important;
  background: rgba(239, 68, 68, .12) !important;
  border-color: rgba(239, 68, 68, .25) !important;
  color: rgba(252, 165, 165, .95) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04)
    !important;
}
.btn-danger:hover:not(:disabled) {
  transform: translateY(-1px) !important;
  background: rgba(239, 68, 68, .20) !important;
  border-color: rgba(239, 68, 68, .38) !important;
  color: rgba(252, 165, 165, 1) !important;
  box-shadow:
    0 4px 14px rgba(239, 68, 68, .22),
    inset 0 1px 0 rgba(255, 255, 255, .06)
    !important;
}




[data-theme="light"] .btn-primary,
[data-theme="light"] .ki-btn-primary {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, .92),
    rgba(124, 58, 237, .82)
  ) !important;
  border-color: rgba(37, 99, 235, .35) !important;
  color: #ffffff !important;
  box-shadow:
    0 2px 12px rgba(37, 99, 235, .25),
    inset 0 1px 0 rgba(255, 255, 255, .22)
    !important;
}
[data-theme="light"] .btn-primary:hover:not(:disabled),
[data-theme="light"] .ki-btn-primary:hover:not(:disabled) {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 1),
    rgba(124, 58, 237, .92)
  ) !important;
  box-shadow:
    0 6px 22px rgba(37, 99, 235, .35),
    inset 0 1px 0 rgba(255, 255, 255, .25)
    !important;
}


[data-theme="light"] .btn-secondary,
[data-theme="light"] .ki-btn-secondary,
[data-theme="light"] .dh-comp-add-btn {
  background: rgba(255, 255, 255, .85) !important;
  border-color: rgba(37, 99, 235, .20) !important;
  color: rgba(29, 78, 216, .88) !important;
  box-shadow:
    0 1px 8px rgba(37, 99, 235, .10),
    inset 0 1px 0 rgba(255, 255, 255, .90)
    !important;
}
[data-theme="light"] .btn-secondary:hover:not(:disabled),
[data-theme="light"] .ki-btn-secondary:hover:not(:disabled),
[data-theme="light"] .dh-comp-add-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, .98) !important;
  border-color: rgba(37, 99, 235, .35) !important;
  color: rgba(29, 78, 216, 1) !important;
  box-shadow:
    0 4px 16px rgba(37, 99, 235, .18),
    inset 0 1px 0 rgba(255, 255, 255, .95)
    !important;
}


[data-theme="light"] .btn-ghost,
[data-theme="light"] .ki-btn-ghost {
  background: rgba(15, 20, 40, .04) !important;
  border-color: rgba(15, 20, 40, .12) !important;
  color: rgba(15, 20, 40, .55) !important;
}
[data-theme="light"] .btn-ghost:hover:not(:disabled),
[data-theme="light"] .ki-btn-ghost:hover:not(:disabled) {
  background: rgba(15, 20, 40, .08) !important;
  border-color: rgba(15, 20, 40, .18) !important;
  color: rgba(15, 20, 40, .85) !important;
}


[data-theme="light"] .btn-danger {
  background: rgba(220, 38, 38, .08) !important;
  border-color: rgba(220, 38, 38, .22) !important;
  color: rgba(185, 28, 28, .92) !important;
}
[data-theme="light"] .btn-danger:hover:not(:disabled) {
  background: rgba(220, 38, 38, .16) !important;
  border-color: rgba(220, 38, 38, .35) !important;
  color: rgba(185, 28, 28, 1) !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, .20) !important;
}



.analytics-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  gap: 16px;
  color: rgba(255, 255, 255, .30);
}
.analytics-cs-title {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, .55);
  margin: 0;
}
.analytics-cs-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, .40);
  max-width: 380px;
  line-height: 1.6;
  margin: 0;
}
[data-theme="light"] .analytics-coming-soon { color: rgba(15, 20, 40, .20); }
[data-theme="light"] .analytics-cs-title    { color: rgba(15, 20, 40, .55); }
[data-theme="light"] .analytics-cs-desc     { color: rgba(15, 20, 40, .40); }




.an-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  padding-bottom: 0;
}
.an-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, .45);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  margin-bottom: -1px;
  border-radius: 8px 8px 0 0;
}
.an-tab:hover {
  color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .04);
}
.an-tab.active {
  color: rgba(99, 179, 250, .95);
  border-bottom-color: rgba(99, 179, 250, .80);
  background: rgba(59, 130, 246, .06);
}
.an-tab-soon {
  font-size: 10px;
  padding: 1px 6px;
  background: rgba(234, 179, 8, .12);
  border: 1px solid rgba(234, 179, 8, .20);
  border-radius: 10px;
  color: rgba(253, 224, 71, .75);
}


.an-pane {
  min-height: 300px;
}


.an-no-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 24px;
  text-align: center;
  color: rgba(255, 255, 255, .40);
}
.an-no-auth p {
  font-size: 14px;
  margin: 0;
  max-width: 320px;
  line-height: 1.6;
}
.an-auth-link { margin-top: 4px; }


.an-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.an-toolbar-left { flex: 1; min-width: 0; }
.an-section-title {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, .90);
  margin: 0 0 4px;
}
.an-section-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, .35);
  margin: 0;
}
.an-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.an-refresh-btn.loading #an-refresh-icon {
  animation: an-spin .8s linear infinite;
}


.an-skeleton {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.an-skeleton-row {
  height: 52px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, .05) 0%,
    rgba(255, 255, 255, .09) 50%,
    rgba(255, 255, 255, .05) 100%
  );
  background-size: 200% 100%;
  animation: an-shimmer 1.5s ease-in-out infinite;
  border-radius: 10px;
}

@keyframes an-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes an-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


.an-balance-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(59, 130, 246, .08);
  border: 1px solid rgba(59, 130, 246, .15);
  border-radius: 12px;
  margin-bottom: 12px;
}
.an-total-label {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  font-weight: 500;
}
.an-total-value {
  font-size: 20px;
  font-weight: 800;
  color: rgba(255, 255, 255, .85);
  font-variant-numeric: tabular-nums;
}
.an-total-value.positive { color: rgba(134, 239, 172, .95); }


.an-balance-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.an-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  transition: background .15s;
}
.an-balance-row:hover { background: rgba(255, 255, 255, .07); }
.an-balance-row--warn {
  border-color: rgba(234, 179, 8, .20);
  background: rgba(234, 179, 8, .05);
}
.an-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.an-row-group {
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
  font-weight: 500;
}
.an-row-warn { font-size: 14px; flex-shrink: 0; }
.an-row-amount {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, .85);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}
.an-row-amount.positive { color: rgba(134, 239, 172, .90); }
.an-row-amount.zero     { color: rgba(255, 255, 255, .35); }


.an-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
  color: rgba(255, 255, 255, .40);
}
.an-error p { margin: 0; font-size: 14px; }


.an-empty-balance {
  padding: 32px;
  text-align: center;
  color: rgba(255, 255, 255, .35);
  font-size: 13px;
}


.an-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 24px;
  text-align: center;
  color: rgba(255, 255, 255, .30);
}
.an-coming-soon h3 {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, .55);
  margin: 0;
}
.an-coming-soon p {
  font-size: 13px;
  color: rgba(255, 255, 255, .40);
  max-width: 340px;
  line-height: 1.6;
  margin: 0;
}


[data-theme="light"] .an-tabs { border-bottom-color: rgba(37, 99, 235, .10); }
[data-theme="light"] .an-tab  { color: rgba(15, 20, 40, .45); }
[data-theme="light"] .an-tab:hover {
  color: rgba(15, 20, 40, .75);
  background: rgba(37, 99, 235, .04);
}
[data-theme="light"] .an-tab.active {
  color: rgba(29, 78, 216, .90);
  border-bottom-color: rgba(37, 99, 235, .70);
  background: rgba(37, 99, 235, .05);
}
[data-theme="light"] .an-section-title { color: rgba(15, 20, 40, .90); }
[data-theme="light"] .an-section-sub   { color: rgba(15, 20, 40, .40); }
[data-theme="light"] .an-no-auth       { color: rgba(15, 20, 40, .40); }
[data-theme="light"] .an-balance-total {
  background: rgba(37, 99, 235, .06);
  border-color: rgba(37, 99, 235, .14);
}
[data-theme="light"] .an-total-label { color: rgba(15, 20, 40, .55); }
[data-theme="light"] .an-total-value { color: rgba(15, 20, 40, .90); }
[data-theme="light"] .an-total-value.positive { color: rgba(21, 128, 61, .95); }
[data-theme="light"] .an-balance-row {
  background: rgba(255, 255, 255, .80);
  border-color: rgba(37, 99, 235, .09);
}
[data-theme="light"] .an-balance-row:hover {
  background: rgba(255, 255, 255, .95);
  border-color: rgba(37, 99, 235, .16);
}
[data-theme="light"] .an-balance-row--warn {
  background: rgba(161, 98, 7, .05);
  border-color: rgba(161, 98, 7, .18);
}
[data-theme="light"] .an-row-group         { color: rgba(15, 20, 40, .80); }
[data-theme="light"] .an-row-amount        { color: rgba(15, 20, 40, .90); }
[data-theme="light"] .an-row-amount.positive { color: rgba(21, 128, 61, .90); }
[data-theme="light"] .an-row-amount.zero   { color: rgba(15, 20, 40, .35); }
[data-theme="light"] .an-error             { color: rgba(15, 20, 40, .40); }
[data-theme="light"] .an-empty-balance     { color: rgba(15, 20, 40, .35); }
[data-theme="light"] .an-coming-soon       { color: rgba(15, 20, 40, .25); }
[data-theme="light"] .an-coming-soon h3    { color: rgba(15, 20, 40, .55); }
[data-theme="light"] .an-coming-soon p     { color: rgba(15, 20, 40, .40); }
[data-theme="light"] .an-skeleton-row {
  background: linear-gradient(
    90deg,
    rgba(37, 99, 235, .04) 0%,
    rgba(37, 99, 235, .09) 50%,
    rgba(37, 99, 235, .04) 100%
  );
  background-size: 200% 100%;
}


.an-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.an-row-contract {
  font-size: 11px;
  color: rgba(255, 255, 255, .35);
  font-variant-numeric: tabular-nums;
}


.an-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}


.an-invoice-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(59, 130, 246, .10);
  border: 1px solid rgba(59, 130, 246, .18);
  border-radius: 6px;
  color: rgba(99, 179, 250, .80);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.an-invoice-btn:hover {
  background: rgba(59, 130, 246, .18);
  color: rgba(99, 179, 250, 1);
  border-color: rgba(59, 130, 246, .30);
}


.an-row-warn-icon { font-size: 14px; flex-shrink: 0; }


[data-theme="light"] .an-row-contract { color: rgba(15, 20, 40, .40); }
[data-theme="light"] .an-invoice-btn {
  background: rgba(37, 99, 235, .07);
  border-color: rgba(37, 99, 235, .16);
  color: rgba(29, 78, 216, .80);
}
[data-theme="light"] .an-invoice-btn:hover {
  background: rgba(37, 99, 235, .14);
  color: rgba(29, 78, 216, 1);
}


@media (max-width: 640px) {
  .an-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .an-balance-total { padding: 12px 14px; }
  .an-total-value   { font-size: 16px; }
  .an-balance-row   { padding: 12px 14px; }
  .an-invoice-btn   { padding: 3px 7px; font-size: 10px; }
  .an-row-contract  { font-size: 10px; }
}


#section-status .ki-cert-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(59, 130, 246, .08);
  border: 1px solid rgba(59, 130, 246, .15);
  border-radius: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 20px;
}
#section-status .ki-cert-notice a {
  color: rgba(99, 179, 250, .85);
  text-decoration: underline;
}
[data-theme="light"] #section-status .ki-cert-notice {
  background: rgba(37, 99, 235, .06);
  border-color: rgba(37, 99, 235, .14);
  color: rgba(15, 20, 40, .65);
}
[data-theme="light"] #section-status .ki-cert-notice a {
  color: rgba(29, 78, 216, .80);
}


.ki-cert-mchd-msg {
  font-size: 13px;
  color: rgba(255, 255, 255, .65);
  margin: 0 0 12px;
  line-height: 1.4;
}
.ki-cert-mchd-input {
  width: 100%;
  margin-bottom: 4px;
}
.ki-cert-mchd-input.ki-input-error {
  border-color: rgba(239, 68, 68, .50) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .15) !important;
}

.ki-cert-mchd-box {
  width: 360px !important;
  max-width: 92vw !important;
  box-sizing: border-box !important;
}
.ki-cert-mchd-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
  box-sizing: border-box;
}

.ki-cert-mchd-actions .ki-cert-cancel,
.ki-cert-mchd-actions .ki-btn-primary {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
[data-theme="light"] .ki-cert-mchd-msg {
  color: rgba(15, 20, 40, .65);
}


.an-invoice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 10, .60);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  z-index: 99997;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .25s ease;
}
.an-invoice-overlay.visible { opacity: 1; }

.an-invoice-box {
  background: rgba(12, 15, 40, .97);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(99, 179, 250, .15);
  border-radius: 16px;
  padding: 24px;
  width: 400px;
  max-width: 94vw;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.an-invoice-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.an-invoice-title {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, .92);
  margin: 0 0 4px;
}
.an-invoice-group {
  font-size: 12px;
  color: rgba(99, 179, 250, .75);
  margin: 0;
}
.an-invoice-close {
  background: rgba(255, 255, 255, .08);
  border: none;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, .50);
  flex-shrink: 0;
  transition: all .15s;
}
.an-invoice-close:hover {
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .85);
}

.an-invoice-contract-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 8px;
  margin-bottom: 16px;
}
.an-inv-label {
  font-size: 12px;
  color: rgba(255, 255, 255, .40);
}
.an-inv-value {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, .75);
  font-variant-numeric: tabular-nums;
}

.an-invoice-field { margin-bottom: 14px; }
.an-inv-field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, .45);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 7px;
}
.an-inv-input {
  width: 100%;
  padding: 9px 13px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 9px;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  box-sizing: border-box;
  transition: border-color .15s;
}
.an-inv-input::placeholder { color: rgba(255, 255, 255, .25); }
.an-inv-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, .45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}
.an-inv-input.an-input-error {
  border-color: rgba(239, 68, 68, .50);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}
.an-inv-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, .30);
  margin: 6px 0 0;
  line-height: 1.5;
}

.an-invoice-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.an-inv-cancel { flex: 0 0 auto; }
.an-inv-submit  { flex: 1; justify-content: center; display: inline-flex; align-items: center; gap: 6px; }


[data-theme="light"] .an-invoice-overlay { background: rgba(15, 20, 40, .35); }
[data-theme="light"] .an-invoice-box {
  background: rgba(255, 255, 255, .97);
  border-color: rgba(37, 99, 235, .14);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .90);
}
[data-theme="light"] .an-invoice-title { color: rgba(15, 20, 40, .92); }
[data-theme="light"] .an-invoice-group { color: rgba(29, 78, 216, .75); }
[data-theme="light"] .an-invoice-close {
  background: rgba(15, 20, 40, .06);
  color: rgba(15, 20, 40, .45);
}
[data-theme="light"] .an-invoice-close:hover {
  background: rgba(15, 20, 40, .10);
  color: rgba(15, 20, 40, .80);
}
[data-theme="light"] .an-invoice-contract-info {
  background: rgba(37, 99, 235, .05);
  border-color: rgba(37, 99, 235, .12);
}
[data-theme="light"] .an-inv-label      { color: rgba(15, 20, 40, .45); }
[data-theme="light"] .an-inv-value      { color: rgba(15, 20, 40, .80); }
[data-theme="light"] .an-inv-field-label { color: rgba(15, 20, 40, .50); }
[data-theme="light"] .an-inv-input {
  background: #ffffff;
  border-color: rgba(37, 99, 235, .18);
  color: rgba(15, 20, 40, .90);
}
[data-theme="light"] .an-inv-input::placeholder { color: rgba(15, 20, 40, .28); }
[data-theme="light"] .an-inv-hint { color: rgba(15, 20, 40, .38); }
[data-theme="light"] .an-invoice-actions { border-top-color: rgba(15, 20, 40, .07); }




.ki-mchd-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 10, 0.65) !important;
  backdrop-filter: blur(10px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(150%) !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  opacity: 0 !important;
  transition: opacity 0.25s ease !important;
}
.ki-mchd-overlay.visible { opacity: 1 !important; }

.ki-mchd-box {
  background: rgba(12, 15, 40, 0.97) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(99, 179, 250, 0.15) !important;
  border-radius: 16px !important;
  width: 420px !important;
  max-width: 95vw !important;
  max-height: 85vh !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55),
              inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  overflow: hidden !important;
}

.ki-mchd-header {
  padding: 20px 20px 0 !important;
  flex-shrink: 0 !important;
}
.ki-mchd-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: rgba(99, 179, 250, 0.80) !important;
}
.ki-mchd-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  margin: 0 !important;
}

.ki-mchd-body {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 16px 20px !important;
  scrollbar-width: thin !important;
}

.ki-mchd-hint {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.50) !important;
  margin: 0 0 14px !important;
  line-height: 1.5 !important;
}
.ki-mchd-hint strong {
  color: rgba(99, 179, 250, 0.85) !important;
  font-weight: 700 !important;
}

.ki-mchd-org-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.ki-mchd-org-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
  position: relative !important;
}
.ki-mchd-org-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(99, 179, 250, 0.20) !important;
}
.ki-mchd-org-item.selected {
  background: rgba(59, 130, 246, 0.10) !important;
  border-color: rgba(99, 179, 250, 0.40) !important;
}

.ki-mchd-radio {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

.ki-mchd-org-info {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}
.ki-mchd-org-name {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.ki-mchd-org-inn {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.45) !important;
  font-variant-numeric: tabular-nums !important;
}
.ki-mchd-org-date {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.30) !important;
}

.ki-mchd-org-check {
  flex-shrink: 0 !important;
  color: rgba(99, 179, 250, 0.50) !important;
  transition: color 0.15s ease !important;
}
.ki-mchd-org-item.selected .ki-mchd-org-check {
  color: rgba(99, 179, 250, 0.90) !important;
}

.ki-mchd-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 20px 20px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  flex-shrink: 0 !important;
  gap: 10px !important;
}
.ki-mchd-footer-right {
  display: flex !important;
  gap: 8px !important;
}
.ki-mchd-manual-link {
  background: none !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.30) !important;
  font-size: 12px !important;
  cursor: pointer !important;
  padding: 0 !important;
  text-decoration: underline !important;
  font-family: inherit !important;
  transition: color 0.15s ease !important;
}
.ki-mchd-manual-link:hover {
  color: rgba(255, 255, 255, 0.55) !important;
}

@keyframes ki-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


[data-theme="light"] .ki-mchd-overlay { background: rgba(15, 20, 40, 0.40) !important; }
[data-theme="light"] .ki-mchd-box {
  background: rgba(255, 255, 255, 0.97) !important;
  border-color: rgba(37, 99, 235, 0.14) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.90) !important;
}
[data-theme="light"] .ki-mchd-title-wrap { color: rgba(29, 78, 216, 0.75) !important; }
[data-theme="light"] .ki-mchd-title      { color: rgba(15, 20, 40, 0.92) !important; }
[data-theme="light"] .ki-mchd-hint       { color: rgba(15, 20, 40, 0.55) !important; }
[data-theme="light"] .ki-mchd-hint strong { color: rgba(29, 78, 216, 0.85) !important; }

[data-theme="light"] .ki-mchd-org-item {
  background: rgba(255, 255, 255, 0.80) !important;
  border-color: rgba(37, 99, 235, 0.10) !important;
}
[data-theme="light"] .ki-mchd-org-item:hover {
  background: rgba(255, 255, 255, 0.97) !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
}
[data-theme="light"] .ki-mchd-org-item.selected {
  background: rgba(37, 99, 235, 0.07) !important;
  border-color: rgba(37, 99, 235, 0.40) !important;
}
[data-theme="light"] .ki-mchd-org-name { color: rgba(15, 20, 40, 0.90) !important; }
[data-theme="light"] .ki-mchd-org-inn  { color: rgba(15, 20, 40, 0.50) !important; }
[data-theme="light"] .ki-mchd-org-date { color: rgba(15, 20, 40, 0.35) !important; }
[data-theme="light"] .ki-mchd-org-check { color: rgba(29, 78, 216, 0.45) !important; }
[data-theme="light"] .ki-mchd-org-item.selected .ki-mchd-org-check {
  color: rgba(29, 78, 216, 0.90) !important;
}
[data-theme="light"] .ki-mchd-footer { border-top-color: rgba(15, 20, 40, 0.07) !important; }
[data-theme="light"] .ki-mchd-manual-link { color: rgba(15, 20, 40, 0.30) !important; }
[data-theme="light"] .ki-mchd-manual-link:hover { color: rgba(15, 20, 40, 0.55) !important; }


@media (max-width: 640px) {
  .ki-mchd-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .ki-mchd-box {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px 16px 0 0 !important;
    max-height: 80vh !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ki-mchd-overlay,
  .ki-mchd-org-item,
  .ki-mchd-org-check,
  .ki-mchd-manual-link {
    transition: none !important;
  }
}





#section-catalog .section-header {
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}
#section-catalog .section-header h1 {
  white-space: nowrap !important;
  overflow: visible !important;
  min-width: max-content !important;
}


#nav-catalog-wrap .nav-link,
#nav-catalog-wrap .nav-dd-btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  min-width: max-content !important;
}


body.catalog-open .main {
  max-width: 100% !important;
  width: 100% !important;
  padding: 24px 12px !important;
}
body.catalog-open #section-catalog {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
  box-sizing: border-box !important;
}

#section-catalog {
  width: 100% !important;
  box-sizing: border-box !important;
}
#section-catalog .cat-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(99, 179, 250, 0.40) rgba(255, 255, 255, 0.05) !important;
}
#section-catalog .cat-table-wrap::-webkit-scrollbar       { height: 6px !important; }
#section-catalog .cat-table-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04) !important;
  border-radius: 3px !important;
}
#section-catalog .cat-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(99, 179, 250, 0.35) !important;
  border-radius: 3px !important;
}
#section-catalog .cat-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 179, 250, 0.55) !important;
}
[data-theme="light"] #section-catalog .cat-table-wrap {
  scrollbar-color: rgba(37, 99, 235, 0.30) rgba(15, 20, 40, 0.04) !important;
}
[data-theme="light"] #section-catalog .cat-table-wrap::-webkit-scrollbar-track {
  background: rgba(15, 20, 40, 0.04) !important;
}
[data-theme="light"] #section-catalog .cat-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.30) !important;
}
[data-theme="light"] #section-catalog .cat-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.50) !important;
}

#section-catalog .cat-table {
  width: max-content !important;
  min-width: 100% !important;
}
#section-catalog .cat-th,
#section-catalog .cat-td {
  min-width: 140px !important;
  max-width: 350px !important;
  padding: 8px 10px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
#section-catalog .cat-filter-th {
  padding: 3px 6px !important;
}
#section-catalog .cat-toolbar {
  padding-left: 4px !important;
  padding-right: 4px !important;
}
#section-catalog .cat-click-hint {
  padding-left: 4px !important;
}
#section-catalog .cat-gtin {
  display: inline-block !important;
  min-width: 155px !important;
  font-size: 12px !important;
}


#section-catalog .cat-th[data-cat-key="Наименование товара"],
#section-catalog .cat-td.cat-td-name {
  min-width: 300px !important;
  max-width: 500px !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.35 !important;
}


.cat-th.cat-sticky,
.cat-td.cat-sticky {
  position: sticky !important;
  z-index: 2 !important;
  background: rgba(12, 15, 40, 0.98) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.10) !important;
}
.cat-filter-th.cat-sticky {
  position: sticky !important;
  z-index: 3 !important;
  background: rgba(10, 13, 35, 0.98) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.cat-tr:hover .cat-td.cat-sticky {
  background: rgba(20, 26, 56, 0.98) !important;
}
[data-theme="light"] .cat-th.cat-sticky,
[data-theme="light"] .cat-td.cat-sticky {
  background: rgba(248, 250, 255, 0.98) !important;
  border-right-color: rgba(37, 99, 235, 0.10) !important;
}
[data-theme="light"] .cat-filter-th.cat-sticky {
  background: rgba(245, 248, 255, 0.98) !important;
  border-right-color: rgba(37, 99, 235, 0.08) !important;
}
[data-theme="light"] .cat-tr:hover .cat-td.cat-sticky {
  background: rgba(237, 242, 255, 0.99) !important;
}


.cat-sticky-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 16px !important;
  height: 16px !important;
  margin-left: 4px !important;
  opacity: 0.35 !important;
  cursor: pointer !important;
  transition: opacity 0.15s ease, color 0.15s ease !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  color: inherit !important;
}
.cat-sticky-btn:hover { opacity: 0.75 !important; }
.cat-sticky-btn.active {
  opacity: 1 !important;
  color: rgba(99, 179, 250, 0.92) !important;
}
[data-theme="light"] .cat-sticky-btn.active {
  color: rgba(29, 78, 216, 0.92) !important;
}


.cat-click-hint {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 14px !important;
  margin: 0 0 12px !important;
  background: rgba(59, 130, 246, 0.06) !important;
  border: 1px solid rgba(59, 130, 246, 0.18) !important;
  border-radius: 8px !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 12px !important;
}
.cat-click-hint svg {
  flex-shrink: 0 !important;
  color: rgba(99, 179, 250, 0.72) !important;
}
[data-theme="light"] .cat-click-hint {
  background: rgba(37, 99, 235, 0.05) !important;
  border-color: rgba(37, 99, 235, 0.18) !important;
  color: rgba(15, 20, 40, 0.62) !important;
}
[data-theme="light"] .cat-click-hint svg { color: rgba(29, 78, 216, 0.72) !important; }


.cat-col-select {
  width: 100% !important;
  padding: 4px 22px 4px 8px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 5px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 11px !important;
  outline: none !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.45)' stroke-width='1.3' fill='none' stroke-linecap='round'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 6px center !important;
  background-size: 9px !important;
}
.cat-col-select:focus {
  border-color: rgba(59, 130, 246, 0.42) !important;
  background-color: rgba(255, 255, 255, 0.09) !important;
}
.cat-col-select option {
  background: rgba(15, 17, 36, 0.98) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}
[data-theme="light"] .cat-col-select {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(37, 99, 235, 0.15) !important;
  color: rgba(15, 20, 40, 0.88) !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='rgba(15,20,40,0.50)' stroke-width='1.3' fill='none' stroke-linecap='round'/></svg>") !important;
}
[data-theme="light"] .cat-col-select option {
  background: rgba(255, 255, 255, 0.99) !important;
  color: rgba(15, 20, 40, 0.88) !important;
}


@keyframes cat-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


.cat-status-error {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.28) !important;
  color: rgba(252, 165, 165, 0.92) !important;
  font-size: 11px !important;
  padding: 2px 8px !important;
  border-radius: 20px !important;
}
.cat-status-pending {
  background: rgba(249, 115, 22, 0.12) !important;
  border: 1px solid rgba(249, 115, 22, 0.28) !important;
  color: rgba(253, 186, 116, 0.92) !important;
  font-size: 11px !important;
  padding: 2px 8px !important;
  border-radius: 20px !important;
}
[data-theme="light"] .cat-status-error {
  background: rgba(220, 38, 38, 0.08) !important;
  border-color: rgba(220, 38, 38, 0.22) !important;
  color: rgba(185, 28, 28, 0.92) !important;
}
[data-theme="light"] .cat-status-pending {
  background: rgba(194, 65, 12, 0.07) !important;
  border-color: rgba(194, 65, 12, 0.22) !important;
  color: rgba(154, 52, 18, 0.92) !important;
}


.cat-tr-clickable { cursor: pointer !important; }
.cat-tr-clickable:hover { background: rgba(59, 130, 246, 0.06) !important; }
[data-theme="light"] .cat-tr-clickable:hover { background: rgba(37, 99, 235, 0.04) !important; }


.cat-link {
  color: rgba(99, 179, 250, 0.88) !important;
  text-decoration: none !important;
  font-size: 12px !important;
  border-bottom: 1px dashed rgba(99, 179, 250, 0.45) !important;
}
.cat-link:hover { color: rgba(99, 179, 250, 1) !important; border-bottom-style: solid !important; }
[data-theme="light"] .cat-link {
  color: rgba(29, 78, 216, 0.88) !important;
  border-bottom-color: rgba(29, 78, 216, 0.40) !important;
}


.cat-card-overlay {
  position: fixed !important; inset: 0 !important;
  background: rgba(0, 0, 10, 0.65) !important;
  backdrop-filter: blur(8px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(140%) !important;
  z-index: 999999 !important;
  display: none; align-items: center; justify-content: center;
  padding: 20px !important;
}
.cat-card-box {
  background: rgba(15, 17, 36, 0.98) !important;
  border: 1px solid rgba(99, 179, 250, 0.18) !important;
  border-radius: 16px !important;
  width: 100% !important;
  max-width: 720px !important;
  max-height: 90vh !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55) !important;
  overflow: hidden !important;
}
.cat-card-header {
  padding: 20px 24px 14px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}
.cat-card-title-wrap { flex: 1 !important; min-width: 0 !important; }
.cat-card-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  margin: 0 0 6px !important;
  line-height: 1.4 !important;
}
.cat-card-close {
  background: rgba(255, 255, 255, 0.06) !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.65) !important;
  width: 32px !important; height: 32px !important;
  border-radius: 8px !important;
  font-size: 22px !important; line-height: 1 !important;
  cursor: pointer !important;
  font-family: inherit !important;
  flex-shrink: 0 !important;
}
.cat-card-close:hover {
  background: rgba(239, 68, 68, 0.18) !important;
  color: rgba(252, 165, 165, 0.95) !important;
}
.cat-card-meta {
  padding: 12px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.cat-card-meta-item { display: flex !important; align-items: center !important; gap: 8px !important; flex-wrap: wrap !important; }
.cat-card-meta-label { color: rgba(255, 255, 255, 0.45) !important; min-width: 110px !important; font-size: 11px !important; }
.cat-card-attrs {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 8px 24px !important;
}
.cat-card-attr-table { width: 100% !important; border-collapse: collapse !important; }
.cat-card-attr-table tr { border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important; }
.cat-card-attr-key {
  padding: 8px 8px 8px 0 !important;
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.55) !important;
  width: 40% !important;
  vertical-align: top !important;
  font-weight: 500 !important;
}
.cat-card-attr-val {
  padding: 8px 0 !important;
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.88) !important;
  word-break: break-word !important;
}
.cat-card-footer {
  padding: 14px 24px 18px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
}
.cat-card-nk-link {
  display: inline-block !important;
  padding: 8px 14px !important;
  background: rgba(59, 130, 246, 0.14) !important;
  border: 1px solid rgba(99, 179, 250, 0.30) !important;
  border-radius: 8px !important;
  color: rgba(99, 179, 250, 0.95) !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}
.cat-card-nk-link:hover {
  background: rgba(59, 130, 246, 0.22) !important;
  color: #fff !important;
}
[data-theme="light"] .cat-card-box {
  background: rgba(255, 255, 255, 0.97) !important;
  border-color: rgba(37, 99, 235, 0.16) !important;
}
[data-theme="light"] .cat-card-title { color: rgba(15, 20, 40, 0.92) !important; }
[data-theme="light"] .cat-card-close {
  background: rgba(15, 20, 40, 0.05) !important; color: rgba(15, 20, 40, 0.70) !important;
}
[data-theme="light"] .cat-card-meta { color: rgba(15, 20, 40, 0.78) !important; border-bottom-color: rgba(15, 20, 40, 0.06) !important; }
[data-theme="light"] .cat-card-meta-label { color: rgba(15, 20, 40, 0.50) !important; }
[data-theme="light"] .cat-card-header { border-bottom-color: rgba(15, 20, 40, 0.07) !important; }
[data-theme="light"] .cat-card-attr-table tr { border-bottom-color: rgba(15, 20, 40, 0.04) !important; }
[data-theme="light"] .cat-card-attr-key { color: rgba(15, 20, 40, 0.55) !important; }
[data-theme="light"] .cat-card-attr-val { color: rgba(15, 20, 40, 0.88) !important; }
[data-theme="light"] .cat-card-footer { border-top-color: rgba(15, 20, 40, 0.07) !important; }
[data-theme="light"] .cat-card-nk-link {
  background: rgba(37, 99, 235, 0.08) !important;
  border-color: rgba(37, 99, 235, 0.30) !important;
  color: rgba(29, 78, 216, 0.95) !important;
}
[data-theme="light"] .cat-card-nk-link:hover { background: rgba(37, 99, 235, 0.14) !important; }


.cat-partial-banner {
  
  display: flex;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 14px !important;
  margin-bottom: 12px !important;
  background: rgba(234, 179, 8, 0.08) !important;
  border: 1px solid rgba(234, 179, 8, 0.18) !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  color: rgba(253, 224, 71, 0.85) !important;
}
[data-theme="light"] .cat-partial-banner {
  background: rgba(161, 98, 7, 0.06) !important;
  border-color: rgba(161, 98, 7, 0.18) !important;
  color: rgba(133, 77, 14, 0.88) !important;
}


.cat-no-auth {
  
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 60px 24px !important;
  text-align: center !important;
  color: rgba(255, 255, 255, 0.45) !important;
}
.cat-no-auth p {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  max-width: 360px !important;
}
.cat-no-auth .cat-auth-link { margin-top: 6px !important; }


.cat-pg-header { margin-bottom: 22px !important; }
.cat-pg-title  {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  margin: 0 0 6px !important;
}
.cat-pg-sub {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.45) !important;
  margin: 0 !important;
}

.cat-pg-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 12px !important;
}
.cat-pg-loading {
  grid-column: 1 / -1 !important;
  padding: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 13px !important;
}

.cat-pg-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 20px 14px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease, color 0.18s ease !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-family: inherit !important;
  text-align: center !important;
}
.cat-pg-card:hover {
  background: rgba(59, 130, 246, 0.10) !important;
  border-color: rgba(59, 130, 246, 0.32) !important;
  color: rgba(99, 179, 250, 0.95) !important;
  transform: translateY(-2px) !important;
}
.cat-pg-icon {
  width: 44px !important; height: 44px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  background: rgba(59, 130, 246, 0.10) !important;
  border: 1px solid rgba(59, 130, 246, 0.18) !important;
  border-radius: 12px !important;
}
.cat-pg-name {
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}


.cat-loading {
  max-width: 540px !important;
  margin: 32px auto !important;
  
  display: flex;
  flex-direction: column !important;
  gap: 18px !important;
}
.cat-loading-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
.cat-loading-pg {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.90) !important;
}
.cat-loading-status {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.50) !important;
}
.cat-progress-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.cat-progress-bar {
  flex: 1 !important;
  height: 6px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 3px !important;
  overflow: hidden !important;
}
.cat-progress-fill {
  height: 100% !important;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.92), rgba(99, 179, 250, 0.92)) !important;
  border-radius: 3px !important;
  transition: width 0.5s ease !important;
}
.cat-progress-pct {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: rgba(99, 179, 250, 0.85) !important;
  min-width: 42px !important;
  text-align: right !important;
}
.cat-loading-steps {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
.cat-step {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.35) !important;
  transition: color 0.3s ease !important;
}
.cat-step.active { color: rgba(255, 255, 255, 0.75) !important; }
.cat-step.done   { color: rgba(134, 239, 172, 0.85) !important; }
.cat-step-dot {
  width: 8px !important; height: 8px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.20) !important;
  flex-shrink: 0 !important;
  transition: background 0.3s ease !important;
}
.cat-step.active .cat-step-dot {
  background: rgba(59, 130, 246, 0.85) !important;
  animation: cat-pulse 1.5s ease-in-out infinite !important;
}
.cat-step.done .cat-step-dot {
  background: rgba(34, 197, 94, 0.85) !important;
  animation: none !important;
}
@keyframes cat-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.cat-cancel-btn { align-self: flex-start !important; }


.cat-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
  flex-wrap: wrap !important;
}
.cat-toolbar-left  { display: flex !important; align-items: center !important; gap: 10px !important; flex-wrap: wrap !important; }
.cat-toolbar-right { display: flex !important; align-items: center !important; gap: 8px !important; flex-wrap: wrap !important; }
.cat-back-btn      { display: inline-flex !important; align-items: center !important; gap: 6px !important; font-size: 13px !important; }

.cat-pg-badge {
  font-size: 12px !important;
  padding: 4px 10px !important;
  background: rgba(59, 130, 246, 0.12) !important;
  border: 1px solid rgba(59, 130, 246, 0.22) !important;
  border-radius: 20px !important;
  color: rgba(99, 179, 250, 0.88) !important;
  font-weight: 600 !important;
}
.cat-count-badge {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.42) !important;
}

.cat-search-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 7px 12px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 8px !important;
  color: rgba(255, 255, 255, 0.42) !important;
}
.cat-search-input {
  background: none !important;
  border: none !important;
  outline: none !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 13px !important;
  width: 200px !important;
  font-family: inherit !important;
}
.cat-search-input::placeholder { color: rgba(255, 255, 255, 0.30) !important; }
.cat-export-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
}


.cat-table-wrap {
  overflow-x: auto !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}
.cat-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 13px !important;
}
.cat-th {
  padding: 10px 14px !important;
  text-align: left !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.48) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: color 0.15s ease !important;
}
.cat-th:hover  { color: rgba(255, 255, 255, 0.78) !important; }
.cat-th.sorted { color: rgba(99, 179, 250, 0.88) !important; }
.cat-sort-icon { margin-left: 4px !important; opacity: 0.55 !important; font-size: 10px !important; }

.cat-tr { border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; transition: background 0.12s ease !important; }
.cat-tr:hover { background: rgba(255, 255, 255, 0.03) !important; }
.cat-td {
  padding: 10px 14px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  vertical-align: middle !important;
  max-width: 320px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.cat-gtin {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 12px !important;
  color: rgba(99, 179, 250, 0.85) !important;
  background: rgba(59, 130, 246, 0.08) !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  display: inline-block !important;
  text-align: center !important;
}

.cat-td:has(.cat-gtin) {
  text-align: center !important;
}
.cat-empty-val { color: rgba(255, 255, 255, 0.22) !important; }
.cat-empty {
  text-align: center !important;
  padding: 40px !important;
  color: rgba(255, 255, 255, 0.32) !important;
}


.cat-pagination {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  padding: 16px 0 !important;
}
.cat-page-btn {
  padding: 6px 14px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 8px !important;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 13px !important;
  cursor: pointer !important;
  font-family: inherit !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}
.cat-page-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.10) !important;
  color: rgba(255, 255, 255, 0.92) !important;
}
.cat-page-btn:disabled { opacity: 0.32 !important; cursor: default !important; }
.cat-page-info { font-size: 13px !important; color: rgba(255, 255, 255, 0.48) !important; }


[data-theme="light"] .cat-no-auth          { color: rgba(15, 20, 40, 0.45) !important; }
[data-theme="light"] .cat-pg-title         { color: rgba(15, 20, 40, 0.92) !important; }
[data-theme="light"] .cat-pg-sub           { color: rgba(15, 20, 40, 0.55) !important; }
[data-theme="light"] .cat-pg-loading       { color: rgba(15, 20, 40, 0.45) !important; }
[data-theme="light"] .cat-pg-card {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(37, 99, 235, 0.12) !important;
  color: rgba(15, 20, 40, 0.78) !important;
}
[data-theme="light"] .cat-pg-card:hover {
  background: rgba(37, 99, 235, 0.07) !important;
  border-color: rgba(37, 99, 235, 0.30) !important;
  color: rgba(29, 78, 216, 0.92) !important;
}
[data-theme="light"] .cat-pg-icon {
  background: rgba(37, 99, 235, 0.08) !important;
  border-color: rgba(37, 99, 235, 0.18) !important;
}
[data-theme="light"] .cat-loading-pg       { color: rgba(15, 20, 40, 0.92) !important; }
[data-theme="light"] .cat-loading-status   { color: rgba(15, 20, 40, 0.55) !important; }
[data-theme="light"] .cat-progress-bar     { background: rgba(37, 99, 235, 0.10) !important; }
[data-theme="light"] .cat-step             { color: rgba(15, 20, 40, 0.38) !important; }
[data-theme="light"] .cat-step.active      { color: rgba(15, 20, 40, 0.78) !important; }
[data-theme="light"] .cat-step.done        { color: rgba(21, 128, 61, 0.88) !important; }
[data-theme="light"] .cat-pg-badge {
  background: rgba(37, 99, 235, 0.07) !important;
  border-color: rgba(37, 99, 235, 0.18) !important;
  color: rgba(29, 78, 216, 0.88) !important;
}
[data-theme="light"] .cat-count-badge      { color: rgba(15, 20, 40, 0.42) !important; }
[data-theme="light"] .cat-search-wrap {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(37, 99, 235, 0.16) !important;
  color: rgba(15, 20, 40, 0.42) !important;
}
[data-theme="light"] .cat-search-input               { color: rgba(15, 20, 40, 0.92) !important; }
[data-theme="light"] .cat-search-input::placeholder  { color: rgba(15, 20, 40, 0.32) !important; }
[data-theme="light"] .cat-table-wrap {
  border-color: rgba(37, 99, 235, 0.10) !important;
  background: rgba(255, 255, 255, 0.50) !important;
}
[data-theme="light"] .cat-th {
  background: rgba(37, 99, 235, 0.04) !important;
  border-bottom-color: rgba(37, 99, 235, 0.10) !important;
  color: rgba(15, 20, 40, 0.55) !important;
}
[data-theme="light"] .cat-th:hover         { color: rgba(15, 20, 40, 0.85) !important; }
[data-theme="light"] .cat-th.sorted        { color: rgba(29, 78, 216, 0.88) !important; }
[data-theme="light"] .cat-tr               { border-bottom-color: rgba(37, 99, 235, 0.07) !important; }
[data-theme="light"] .cat-tr:hover         { background: rgba(37, 99, 235, 0.03) !important; }
[data-theme="light"] .cat-td               { color: rgba(15, 20, 40, 0.85) !important; }
[data-theme="light"] .cat-gtin {
  color: rgba(29, 78, 216, 0.85) !important;
  background: rgba(37, 99, 235, 0.07) !important;
}
[data-theme="light"] .cat-empty-val        { color: rgba(15, 20, 40, 0.22) !important; }
[data-theme="light"] .cat-empty            { color: rgba(15, 20, 40, 0.40) !important; }
[data-theme="light"] .cat-page-btn {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(37, 99, 235, 0.14) !important;
  color: rgba(15, 20, 40, 0.68) !important;
}
[data-theme="light"] .cat-page-btn:hover:not(:disabled) {
  background: rgba(37, 99, 235, 0.06) !important;
  color: rgba(15, 20, 40, 0.92) !important;
}
[data-theme="light"] .cat-page-info        { color: rgba(15, 20, 40, 0.48) !important; }


@media (max-width: 768px) {
  .cat-pg-grid       { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; }
  .cat-toolbar       { flex-direction: column !important; align-items: flex-start !important; }
  .cat-search-input  { width: 140px !important; }
  .cat-td, .cat-th   { padding: 8px 10px !important; font-size: 12px !important; }
  .cat-loading       { margin: 20px auto !important; padding: 0 12px !important; }
}


.cat-filter-row .cat-filter-th {
  padding: 4px 8px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  cursor: default !important;
}
.cat-col-filter {
  width: 100% !important;
  padding: 4px 8px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 5px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 11px !important;
  outline: none !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  transition: border-color 0.15s ease, background 0.15s ease !important;
}
.cat-col-filter:focus {
  border-color: rgba(59, 130, 246, 0.42) !important;
  background: rgba(255, 255, 255, 0.09) !important;
}
.cat-col-filter::placeholder {
  color: rgba(255, 255, 255, 0.22) !important;
  font-size: 10px !important;
}


[data-theme="light"] .cat-filter-row .cat-filter-th {
  background: rgba(37, 99, 235, 0.03) !important;
  border-bottom-color: rgba(37, 99, 235, 0.08) !important;
}
[data-theme="light"] .cat-col-filter {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(37, 99, 235, 0.15) !important;
  color: rgba(15, 20, 40, 0.88) !important;
}
[data-theme="light"] .cat-col-filter::placeholder {
  color: rgba(15, 20, 40, 0.28) !important;
}


.cat-status-warn {
  background: rgba(234, 179, 8, 0.12) !important;
  border: 1px solid rgba(234, 179, 8, 0.25) !important;
  color: rgba(253, 224, 71, 0.88) !important;
  font-size: 11px !important;
  padding: 2px 8px !important;
  border-radius: 20px !important;
}
.cat-status-unknown {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: rgba(255, 255, 255, 0.50) !important;
  font-size: 11px !important;
  padding: 2px 8px !important;
  border-radius: 20px !important;
}
.cat-bool-yes { color: rgba(134, 239, 172, 0.92) !important; font-weight: 700 !important; }
.cat-bool-no  { color: rgba(252, 165, 165, 0.85) !important; font-weight: 700 !important; }
.cat-bool-na  { color: rgba(255, 255, 255, 0.40) !important; font-size: 11px !important; }

[data-theme="light"] .cat-status-warn {
  background: rgba(161, 98, 7, 0.08) !important;
  border-color: rgba(161, 98, 7, 0.20) !important;
  color: rgba(133, 77, 14, 0.92) !important;
}
[data-theme="light"] .cat-status-unknown {
  background: rgba(15, 20, 40, 0.04) !important;
  border-color: rgba(15, 20, 40, 0.10) !important;
  color: rgba(15, 20, 40, 0.55) !important;
}
[data-theme="light"] .cat-bool-yes { color: rgba(21, 128, 61, 0.92) !important; }
[data-theme="light"] .cat-bool-no  { color: rgba(185, 28, 28, 0.88) !important; }
[data-theme="light"] .cat-bool-na  { color: rgba(15, 20, 40, 0.42) !important; }

@media (prefers-reduced-motion: reduce) {
  .cat-pg-card,
  .cat-progress-fill,
  .cat-step, .cat-step-dot,
  .cat-tr, .cat-th,
  .cat-page-btn,
  .cat-col-filter { transition: none !important; }
  .cat-step-dot { animation: none !important; }
}



.nk-warn-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.55) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  backdrop-filter: blur(4px) !important;
  animation: nk-warn-fade 0.15s ease !important;
}

@keyframes nk-warn-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.nk-warn-modal {
  max-width: 440px !important;
  width: calc(100% - 32px) !important;
  padding: 28px 28px 22px !important;
  background: rgba(18, 22, 48, 0.97) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 16px !important;
  -webkit-backdrop-filter: blur(20px) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.50) !important;
  animation: nk-warn-slide 0.18s ease !important;
}

@keyframes nk-warn-slide {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.nk-warn-icon {
  width: 44px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(234, 179, 8, 0.10) !important;
  border: 1px solid rgba(234, 179, 8, 0.22) !important;
  border-radius: 12px !important;
  color: rgba(253, 224, 71, 0.90) !important;
  margin-bottom: 14px !important;
}

.nk-warn-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.94) !important;
  margin: 0 0 10px !important;
  line-height: 1.35 !important;
}

.nk-warn-message {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.68) !important;
  line-height: 1.55 !important;
  margin: 0 0 12px !important;
}

.nk-warn-hint {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.50) !important;
  line-height: 1.5 !important;
  margin: 0 0 22px !important;
  padding: 10px 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-radius: 8px !important;
  border-left: 3px solid rgba(234, 179, 8, 0.35) !important;
}

.nk-warn-actions {
  display: flex !important;
  gap: 10px !important;
  justify-content: flex-end !important;
}

.nk-warn-cancel,
.nk-warn-confirm {
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: background 0.15s ease, border-color 0.15s ease,
              color 0.15s ease !important;
}

.nk-warn-cancel {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: rgba(255, 255, 255, 0.66) !important;
}
.nk-warn-cancel:hover {
  background: rgba(255, 255, 255, 0.10) !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

.nk-warn-confirm {
  background: rgba(59, 130, 246, 0.16) !important;
  border: 1px solid rgba(59, 130, 246, 0.32) !important;
  color: rgba(140, 200, 255, 0.95) !important;
  font-weight: 500 !important;
}
.nk-warn-confirm:hover {
  background: rgba(59, 130, 246, 0.26) !important;
  border-color: rgba(59, 130, 246, 0.50) !important;
  color: rgba(180, 220, 255, 1) !important;
}
.nk-warn-cancel:focus-visible,
.nk-warn-confirm:focus-visible {
  outline: 2px solid rgba(99, 179, 250, 0.55) !important;
  outline-offset: 2px !important;
}


[data-theme="light"] .nk-warn-modal {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(37, 99, 235, 0.14) !important;
  box-shadow: 0 24px 64px rgba(15, 20, 40, 0.18) !important;
}
[data-theme="light"] .nk-warn-icon {
  background: rgba(217, 119, 6, 0.10) !important;
  border-color: rgba(217, 119, 6, 0.25) !important;
  color: rgba(180, 83, 9, 0.95) !important;
}
[data-theme="light"] .nk-warn-title    { color: rgba(15, 20, 40, 0.92) !important; }
[data-theme="light"] .nk-warn-message  { color: rgba(15, 20, 40, 0.68) !important; }
[data-theme="light"] .nk-warn-hint {
  color: rgba(15, 20, 40, 0.55) !important;
  background: rgba(37, 99, 235, 0.04) !important;
  border-left-color: rgba(217, 119, 6, 0.40) !important;
}
[data-theme="light"] .nk-warn-cancel {
  background: rgba(15, 20, 40, 0.05) !important;
  border-color: rgba(15, 20, 40, 0.14) !important;
  color: rgba(15, 20, 40, 0.62) !important;
}
[data-theme="light"] .nk-warn-cancel:hover {
  background: rgba(15, 20, 40, 0.10) !important;
  color: rgba(15, 20, 40, 0.92) !important;
}
[data-theme="light"] .nk-warn-confirm {
  background: rgba(37, 99, 235, 0.10) !important;
  border-color: rgba(37, 99, 235, 0.28) !important;
  color: rgba(29, 78, 216, 0.92) !important;
}
[data-theme="light"] .nk-warn-confirm:hover {
  background: rgba(37, 99, 235, 0.18) !important;
  border-color: rgba(37, 99, 235, 0.45) !important;
  color: rgba(29, 78, 216, 1) !important;
}

@media (max-width: 480px) {
  .nk-warn-modal { padding: 22px 18px 18px !important; }
  .nk-warn-actions { flex-direction: column-reverse !important; }
  .nk-warn-cancel,
  .nk-warn-confirm { width: 100% !important; text-align: center !important; }
}




.hero-title-accent {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hero-cta-primary {
  
}
.hero-cta-secondary {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .85);
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
  opacity: 0;
  animation: fadeInUp .9s ease 2.7s forwards;
}
.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .25);
  transform: translateY(-1px);
}
.hero-cta-secondary:active { transform: scale(.97); }
[data-theme="light"] .hero-cta-secondary {
  background: rgba(255, 255, 255, .80);
  border-color: rgba(37, 99, 235, .15);
  color: rgba(15, 20, 40, .85);
}
[data-theme="light"] .hero-cta-secondary:hover {
  background: rgba(255, 255, 255, .95);
  border-color: rgba(37, 99, 235, .35);
}


.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
  margin-top: 18px;
  opacity: 0;
  animation: fadeInUp .9s ease 2.9s forwards;
}
.hero-trust-sep { color: rgba(255, 255, 255, .25); }
[data-theme="light"] .hero-trust { color: rgba(15, 20, 40, .55); }
[data-theme="light"] .hero-trust-sep { color: rgba(15, 20, 40, .25); }


.landing-faq {
  padding: 80px 0;
  max-width: 1200px;
  margin: 0 auto;
}
.faq-list {
  max-width: 720px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 24px;
}
.faq-item {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s, background .15s;
}
.faq-item:hover { border-color: rgba(255, 255, 255, .14); }
.faq-item.open {
  border-color: rgba(99, 179, 250, .25);
  background: rgba(99, 179, 250, .04);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  font-family: var(--font);
}
.faq-question span {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  line-height: 1.4;
}
.faq-chevron {
  flex-shrink: 0;
  color: rgba(255, 255, 255, .35);
  transition: transform .25s ease;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-answer p {
  padding: 0 20px 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, .60);
  line-height: 1.6;
  margin: 0;
}

.faq-answer p:not(:last-child) { padding-bottom: 8px; }
.faq-answer ul {
  padding: 0 20px 18px 40px;
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .60);
  line-height: 1.6;
  list-style: disc;
}
.faq-answer ul li { margin-bottom: 4px; }
.faq-answer ul li:last-child { margin-bottom: 0; }
[data-theme="light"] .faq-answer ul { color: rgba(15, 20, 40, .65); }
[data-theme="light"] .faq-item {
  background: rgba(255, 255, 255, .80);
  border-color: rgba(37, 99, 235, .10);
}
[data-theme="light"] .faq-item:hover { border-color: rgba(37, 99, 235, .25); }
[data-theme="light"] .faq-item.open {
  background: rgba(37, 99, 235, .04);
  border-color: rgba(37, 99, 235, .35);
}
[data-theme="light"] .faq-question span { color: rgba(15, 20, 40, .85); }
[data-theme="light"] .faq-chevron { color: rgba(15, 20, 40, .45); }
[data-theme="light"] .faq-answer p { color: rgba(15, 20, 40, .65); }

@media (max-width: 640px) {
  .landing-faq { padding: 50px 0; }
  .faq-question { padding: 14px 16px; }
  .faq-question span { font-size: 13px; }
  .faq-answer p { padding: 0 16px 14px; font-size: 12px; }
}


.landing-footer {
  padding: 40px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  margin-top: 40px;
}
.landing-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.landing-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.landing-footer-logo {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, .90);
  letter-spacing: -0.3px;
}
.landing-footer-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}
.landing-footer-email {
  font-size: 13px;
  color: rgba(99, 179, 250, .80);
  text-decoration: none;
  transition: color .15s;
  width: max-content;
}
.landing-footer-email:hover { color: rgba(99, 179, 250, 1); }
.landing-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .05);
}
.landing-footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, .30);
}
.landing-footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, .25);
}
.landing-footer-link {
  color: rgba(255, 255, 255, .45);
  text-decoration: none;
  transition: color .15s;
}
.landing-footer-link:hover { color: rgba(255, 255, 255, .80); }

[data-theme="light"] .landing-footer { border-top-color: rgba(37, 99, 235, .08); }
[data-theme="light"] .landing-footer-logo { color: rgba(15, 20, 40, .90); }
[data-theme="light"] .landing-footer-desc { color: rgba(15, 20, 40, .55); }
[data-theme="light"] .landing-footer-email { color: rgba(29, 78, 216, .85); }
[data-theme="light"] .landing-footer-bottom { border-top-color: rgba(15, 20, 40, .07); }
[data-theme="light"] .landing-footer-copy { color: rgba(15, 20, 40, .35); }
[data-theme="light"] .landing-footer-link { color: rgba(15, 20, 40, .55); }
[data-theme="light"] .landing-footer-link:hover { color: rgba(29, 78, 216, .85); }
[data-theme="light"] .landing-footer-links { color: rgba(15, 20, 40, .30); }

@media (max-width: 640px) {
  .landing-footer-bottom { flex-direction: column; align-items: flex-start; }
}


.reader-anon-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin: 16px 0;
  background: linear-gradient(135deg, rgba(99, 179, 250, .08), rgba(167, 139, 250, .06));
  border: 1px solid rgba(99, 179, 250, .25);
  border-radius: 12px;
  flex-wrap: wrap;
}
.reader-anon-banner-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99, 179, 250, .14);
  border-radius: 50%;
  color: rgba(147, 197, 253, .95);
}
.reader-anon-banner-text {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.reader-anon-banner-text strong {
  font-size: 14px; font-weight: 600;
  color: rgba(255, 255, 255, .92);
}
.reader-anon-banner-text span {
  font-size: 12px;
  color: rgba(255, 255, 255, .60);
  line-height: 1.45;
}
.reader-anon-banner-cta {
  flex-shrink: 0;
  padding: 9px 18px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  border-radius: 9px;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(59, 130, 246, .30);
  white-space: nowrap;
}
.reader-anon-banner-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, .45);
}
[data-theme="light"] .reader-anon-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, .04), rgba(139, 92, 246, .04));
  border-color: rgba(37, 99, 235, .20);
}
[data-theme="light"] .reader-anon-banner-icon {
  background: rgba(37, 99, 235, .10);
  color: rgba(29, 78, 216, .85);
}
[data-theme="light"] .reader-anon-banner-text strong {
  color: rgba(15, 20, 40, .90);
}
[data-theme="light"] .reader-anon-banner-text span {
  color: rgba(15, 20, 40, .55);
}
@media (max-width: 640px) {
  .reader-anon-banner { flex-direction: column; align-items: flex-start; }
  .reader-anon-banner-cta { width: 100%; text-align: center; }
}


.feature-card-badge {
  position: absolute;
  top: 10px; right: 10px;
  padding: 3px 9px;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .2px;
  color: rgba(134, 239, 172, .95);
  background: rgba(34, 197, 94, .14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 197, 94, .28);
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
}
[data-theme="light"] .feature-card-badge {
  color: rgba(21, 128, 61, .92);
  background: rgba(34, 197, 94, .10);
  border-color: rgba(34, 197, 94, .32);
}


.reader-guest-hint {
  max-width: 720px;
  margin: 0 auto 16px;
}
.reader-guest-hint-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .22);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .82);
}
.reader-guest-hint-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  color: rgba(134, 239, 172, .98);
  background: rgba(34, 197, 94, .18);
  border-radius: 50%;
}
.reader-guest-hint-text { flex: 1; min-width: 0; }
.reader-guest-hint-link {
  color: rgba(110, 231, 183, .98);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  margin: 0 2px;
}
.reader-guest-hint-link:hover { color: #86efac; }
.reader-guest-hint-suffix { color: rgba(255, 255, 255, .60); }
[data-theme="light"] .reader-guest-hint-inner {
  background: rgba(34, 197, 94, .07);
  border-color: rgba(34, 197, 94, .28);
  color: rgba(15, 20, 40, .80);
}
[data-theme="light"] .reader-guest-hint-icon {
  color: rgba(21, 128, 61, .95);
  background: rgba(34, 197, 94, .14);
}
[data-theme="light"] .reader-guest-hint-link { color: rgba(21, 128, 61, .95); }
[data-theme="light"] .reader-guest-hint-link:hover { color: rgba(20, 83, 45, 1); }
[data-theme="light"] .reader-guest-hint-suffix { color: rgba(15, 20, 40, .55); }
@media (max-width: 480px) {
  .reader-guest-hint-inner { padding: 9px 12px; font-size: 12.5px; }
  .reader-guest-hint-suffix { display: none; }
}


.anon-banner-main {
  display: block !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, .85) !important;
  line-height: 1.4 !important;
  margin-bottom: 4px !important;
}
.anon-banner-sub {
  display: block !important;
  font-size: 12px !important;
  color: rgba(255, 255, 255, .55) !important;
  line-height: 1.45 !important;
}
.anon-banner-main strong {
  font-weight: 700 !important;
  color: rgba(147, 197, 253, .98) !important;
}
[data-theme="light"] .anon-banner-main {
  color: rgba(15, 20, 40, .85) !important;
}
[data-theme="light"] .anon-banner-sub {
  color: rgba(15, 20, 40, .55) !important;
}
[data-theme="light"] .anon-banner-main strong {
  color: rgba(29, 78, 216, .92) !important;
}
