:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1d1d1f;
  background: #f5f5f7;
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 32px 20px 56px; }
h1 { margin: 0 0 6px; font-size: clamp(2rem, 5vw, 3.2rem); }
.lead { margin: 0 0 24px; color: #555; }
.status { border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: .95rem; }
.status.neutral { background: #e9eef6; }
.status.ok { background: #e6f4ea; }
.status.error { background: #fce8e6; }
.dropzone {
  min-height: 210px; border: 3px dashed #777; border-radius: 16px; background: white;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; cursor: pointer; text-align: center; padding: 30px;
}
.dropzone strong { font-size: 1.45rem; }
.dropzone span { color: #666; }
.dropzone.drag { border-style: solid; transform: scale(1.005); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
button, .dbFallback { border: 0; border-radius: 9px; padding: 10px 14px; font: inherit; }
button { background: #1d1d1f; color: white; cursor: pointer; }
button:disabled { opacity: .4; cursor: not-allowed; }
button.secondary { background: #dedee3; color: #1d1d1f; }
.dbFallback { background: #fff; border: 1px solid #ccc; display: inline-flex; gap: 10px; align-items: center; }
.summary { margin: 12px 0; font-weight: 600; }
.tablewrap { overflow-x: auto; background: white; border-radius: 12px; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 10px 12px; border-bottom: 1px solid #e5e5e5; text-align: left; vertical-align: middle; }
th { background: #f0f0f2; position: sticky; top: 0; }
input.titleEdit { width: min(520px, 55vw); min-width: 260px; padding: 6px 8px; border: 1px solid #bbb; border-radius: 6px; font: inherit; }
.badge { display: inline-block; border-radius: 999px; padding: 3px 8px; font-size: .85rem; white-space: nowrap; }
.badge.ok { background: #e6f4ea; }
.badge.spoken { background: #e8f0fe; }
.badge.error { background: #fce8e6; }
.privacy { margin-top: 20px; color: #666; font-size: .9rem; }
@media (max-width: 700px) { .wrap { padding: 20px 10px 40px; } th, td { padding: 8px; } }
