body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; margin: 0; background: #f4f6fb; color: #0f172a; }
main { max-width: 1100px; margin: 24px auto; background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
h1 { margin-top: 0; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tab { border: 1px solid #cbd5e1; background: #f8fafc; color: #0f172a; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.tab.active { background: #0f172a; color: #fff; }
.panel { display: none; border-top: 1px solid #e2e8f0; padding-top: 14px; }
.panel.active { display: block; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
input, select, button { padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; }
button { cursor: pointer; background: #0f172a; color: #fff; }
#rows .item-row { display: flex; gap: 8px; margin-bottom: 6px; }
#rows .item-row select, #rows .item-row input { min-width: 140px; }
pre { background: #0b1020; color: #d1fae5; padding: 10px; border-radius: 8px; min-height: 50px; white-space: pre-wrap; }
table { width: 100%; border-collapse: collapse; margin-top: 8px; }
th, td { border: 1px solid #e2e8f0; padding: 8px; font-size: 14px; }
th { background: #f8fafc; text-align: left; }
#rawSheets .sheet { margin-top: 12px; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px; }
#rawSheets .sheet h4 { margin: 0 0 8px; }
#rawSheets .sheet .table-wrap { overflow: auto; max-height: 420px; }
#rawSheets .sheet td { white-space: nowrap; }
