:root{
  --bg: #fbf8f4; --panel: #ffffff; --panel-2: #f4efe6; --line: #e7ddca;
  --accent: #9d7125; --accent-soft: #e9ddc9; --accent-dim: #f8f5f0;
  --text: #292114; --muted: #806d4d; --muted-2: #b8ab94;
  --good: #259d5b; --bad: #b3402f;
}

.dropzone{ border: 2px dashed var(--line); border-radius: 10px; padding: 16px; text-align: center; cursor: pointer; margin-bottom: 12px; transition: border-color .15s ease, background .15s ease; }
.dropzone:hover, .dropzone.dragover{ border-color: var(--accent); background: var(--accent-dim); }
.dropzone .main{ font-size: 12.5px; font-weight: 600; }
.dropzone .sub{ font-size: 11px; color: var(--muted); margin-top: 3px; }
input[type=file]{ display: none; }

textarea#input{ width: 100%; min-height: 180px; max-height: 400px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.6; background: var(--panel-2); color: var(--text); overflow: auto; }
textarea#input:focus{ outline: none; border-color: var(--accent); }

.section-title{ font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; }

.preview-card{ max-width: 420px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.preview-card .img{ width: 100%; height: 200px; background: var(--panel-2); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: var(--muted-2); font-size: 12px; }
.preview-card .body{ padding: 12px 14px; }
.preview-card .site{ font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; }
.preview-card .title{ font-size: 14.5px; font-weight: 700; margin-top: 4px; line-height: 1.3; }
.preview-card .desc{ font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.preview-card.placeholder .title, .preview-card.placeholder .desc, .preview-card.placeholder .site{ color: var(--muted-2); font-style: italic; }

.tags-table{ border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 10px; }
.tag-row{ display: grid; grid-template-columns: 160px 1fr 60px; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel); align-items: center; }
.tag-row:last-child{ border-bottom: none; }
.tag-row:nth-child(even){ background: var(--accent-dim); }
.tag-row .k{ font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; color: var(--accent); }
.tag-row .v{ font-family: 'JetBrains Mono', monospace; font-size: 12px; word-break: break-word; }
.tag-row .v.missing{ color: var(--muted-2); font-style: italic; }
.tag-row .status{ font-size: 11px; font-weight: 700; text-align: right; }
.tag-row .status.pass{ color: var(--good); }
.tag-row .status.fail{ color: var(--bad); }
.table-empty-msg{ padding: 16px; text-align: center; font-size: 13px; color: var(--muted-2); font-style: italic; }

.btns{ display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.app{ padding: 11px 20px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13.5px; font-family: 'Inter', sans-serif; color: #fff; background: var(--accent); transition: filter .15s ease; }
.app:hover{ filter: brightness(1.08); }
.gray{ background: var(--line); color: var(--text); }

.note{ margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.6; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
