:root { --glass-bg: var(--surface); --glass-border: var(--line); --accent-glow: var(--overlay); --text-dim: var(--muted); }
html[data-theme="light"] {
      --glass-bg: rgba(0, 0, 0, 0.03);
      --glass-border: rgba(0, 0, 0, 0.1);
      --accent-glow: rgba(0, 120, 255, 0.15);
      --text-dim: #666;
    }
.tool-content {
      position: relative;
      min-height: calc(100vh - 160px);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      padding: var(--space-lg);
    }
.glass-container {
      width: 100%;
      max-width: 600px;
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      border-radius: 24px;
      padding: 40px;
      text-align: center;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      display: flex;
      flex-direction: column;
      gap: 24px;
      position: relative;
    }
p.subtitle {
      color: var(--text-dim);
      font-size: 0.9rem;
      margin-top: -10px;
    }
.drop-zone {
      border: 2px dashed var(--glass-border);
      border-radius: 16px;
      padding: 50px 20px;
      cursor: pointer;
      position: relative;
    }
.drop-zone:hover, .drop-zone.dragover {
      border-color: var(--primary-color);
      background: var(--hover-bg);
    }
.icon-upload {
      font-size: 2.5rem;
      margin-bottom: 16px;
      display: block;
      opacity: 0.7;
    }
input[type="file"] {
      display: none;
    }
.file-list {
      text-align: left;
      max-height: 120px;
      overflow-y: auto;
      font-family: var(--f-mono);
      font-size: 0.85rem;
      padding-right: 10px;
    }
.file-item {
      display: flex;
      justify-content: space-between;
      padding: 6px 0;
      border-bottom: 1px solid var(--glass-border);
    }
.status-ready {
      color: var(--ok);
    }
html[data-theme="dark"] .status-ready {
      color: #8aff80;
    }
.btn-convert {
      background: var(--primary-color);
      border: none;
      color: var(--accent-ink);
      padding: 16px;
      border-radius: 12px;
      font-size: 1rem;
      cursor: pointer;
      font-weight: 600;
      letter-spacing: 1px;
      transition: filter 0.2s;
    }
.btn-convert:hover {
      filter: brightness(1.1);
    }
.btn-convert:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      filter: none;
    }
.footer-links {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin-top: 10px;
    }
.text-link {
      color: var(--text-dim);
      font-size: 0.75rem;
      text-decoration: none;
      cursor: pointer;
      border-bottom: 1px dotted var(--text-dim);
      transition: color 0.2s;
    }
.text-link:hover {
      color: var(--primary-color);
      border-bottom-color: var(--primary-color);
    }
.modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(5px);
      display: none;
      justify-content: center;
      align-items: center;
      padding: 20px;
      z-index: 3000;
      opacity: 0;
      transition: opacity 0.3s;
    }
.modal-overlay.show {
      display: flex;
      opacity: 1;
    }
.modal {
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      padding: 30px;
      border-radius: 20px;
      max-width: 500px;
      width: 100%;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
      max-height: 80vh;
      display: flex;
      flex-direction: column;
    }
.modal h3 {
      margin-top: 0;
      font-weight: 300;
      margin-bottom: 15px;
    }
.modal-content {
      overflow-y: auto;
      padding-right: 10px;
      font-size: 0.9rem;
      line-height: 1.6;
    }
.modal-content ul {
      padding-left: 20px;
    }
.license-text {
      font-family: var(--f-mono);
      font-size: 0.75rem;
      white-space: pre-wrap;
      background: var(--bg-color);
      padding: 15px;
      border-radius: 8px;
      opacity: 0.8;
      border: 1px solid var(--border-color);
    }
.close-modal {
      background: var(--bg-color);
      border: 1px solid var(--border-color);
      color: var(--text-color);
      padding: 8px 24px;
      border-radius: 8px;
      cursor: pointer;
      align-self: flex-end;
      margin-top: 20px;
    }
.close-modal:hover {
      background: var(--border-color);
    }
