/* .wrap 宽度见 brand-theme.css 流体自适应 */

header {
  text-align: left;
  margin-bottom: 18px;
}

header h1 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--accent);
}

header.site-head {
  --site-head-h: 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--site-head-h);
  text-align: left;
  margin-bottom: 18px;
}

header.site-head .brand h1 {
  margin: 0;
  padding: 0;
  min-height: var(--site-head-h);
  display: flex;
  align-items: center;
  font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  line-height: 1.15;
}

header.site-head .head-tools-floating {
  position: relative;
  top: auto;
  right: auto;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: center;
  height: var(--site-head-h);
  gap: 6px;
  margin: 0;
  padding: 0;
}

header.site-head .head-help-wrap,
header.site-head .head-menu-wrap {
  display: flex;
  align-items: center;
  height: var(--site-head-h);
}

/* ── 会员 / 激活码 ── */
.license-zone {
  padding: 10px 14px;
  margin-bottom: 12px;
}

.license-zone.hidden {
  display: none;
}

.license-zone.lz-collapsed {
  padding: 8px 14px;
}

.lz-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}

.lz-label {
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
}

.license-preview {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.license-zone.lz-collapsed .license-key-row {
  display: none;
}

.license-zone:not(.lz-collapsed) .license-key-row .license-preview {
  display: none;
}

.license-key-row {
  margin-top: 8px;
}

.device-code-display {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 0;
  background: transparent;
  border: none;
}

.license-key-row #licenseKey {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 6px 8px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.lz-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lz-action-btn {
  font-size: 0.88rem;
  line-height: 1.35;
  padding: 4px 0;
  white-space: nowrap;
}

.license-auto-hint {
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
}

.license-auto-hint.hidden {
  display: none;
}

.license-zone.lz-collapsed .lz-extra {
  display: none;
}

.license-zone.lz-collapsed.lz-pin-extra .lz-extra {
  display: block;
  margin-top: 8px;
}

.license-zone.lz-pin-extra .hint.lz-extra {
  color: var(--lock-text, #be123c);
  font-weight: 600;
}

.license-zone.lz-pin-extra .lz-extra {
  color: var(--lock-text, #be123c);
}

.license-zone .hint.lz-extra {
  margin: 10px 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

.lock-banner.hidden {
  display: none;
}

/* ── 转换工作区 ── */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tab {
  flex: 1;
  padding: 0.65rem;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}

.card h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.upload-zone {
  position: relative;
  border: 2px dashed rgba(14, 165, 233, 0.35);
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.empty-hint {
  margin-top: 0.75rem;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.file-row.hidden {
  display: none;
}

.file-name {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  word-break: break-all;
  text-align: left;
  flex: 1;
}

.btn-clear {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.15);
  color: var(--fail);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.btn-clear:hover {
  background: rgba(244, 63, 94, 0.25);
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
}

.btn.primary {
  margin-top: 4px;
}

.status.error {
  color: var(--fail);
}

.quota-shop-hint {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--lock-text, #be123c);
}
.quota-shop-hint.hidden { display: none; }
.quota-shop-hint a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field {
  margin-top: 0.75rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
}

.card.disabled {
  opacity: 0.65;
  pointer-events: none;
}

@media (max-width: 560px) {
  .lz-row {
    flex-wrap: wrap;
  }
  .lz-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .license-preview {
  width: 100%;
  }
  .lz-action-btn {
    min-height: 44px;
    padding: 8px 0;
  }
}
