#tb-app {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: 100vh;
  min-height: 0;
  background: #e8f4fc;
  color: #0c4a6e;
  font-family: 'Inter', system-ui, sans-serif;
}
#tb-side {
  background: #f0f9ff;
  border-right: 1px solid #bae6fd;
  padding: 16px;
  overflow-y: auto;
}
#tb-side h1 { font-size: 1.2rem; margin: 8px 0 4px; }
#tb-side .tag { font-size: 0.78rem; margin-bottom: 14px; color: #0369a1; }
#tb-side label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; margin-top: 10px; }
#tb-side select, #tb-side textarea {
  width: 100%; margin-top: 4px; padding: 8px; border: 1px solid #bae6fd; border-radius: 6px;
}
#tb-side .btn {
  width: 100%; margin-top: 12px; padding: 10px; border: none; border-radius: 8px;
  background: #0284c7; color: #fff; font-weight: 700; cursor: pointer;
}
#tb-side .btn.secondary { background: #e0f2fe; color: #0c4a6e; border: 1px solid #bae6fd; }
#tb-side .hint { font-size: 0.75rem; color: #0369a1; margin-top: 8px; }
#tb-main { overflow: auto; padding: 24px; }
.tb-out { max-width: 720px; background: #fff; padding: 24px; border-radius: 12px; box-shadow: 0 8px 24px rgba(3,105,161,0.12); }
.tb-out h2 { margin-bottom: 8px; }
.tb-total { font-size: 2rem; font-weight: 800; color: #0369a1; margin: 12px 0; }
.tb-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e0f2fe; }
.tb-src { font-size: 0.75rem; color: #0369a1; }
.tb-src a { color: #0284c7; }
.tb-q { background: #f0f9ff; padding: 12px; border-radius: 8px; margin-top: 16px; font-weight: 600; }
.tb-warn { color: #b45309; font-size: 0.85rem; }
@media print {
  body * { visibility: hidden !important; }
  #tbOut, #tbOut * { visibility: visible !important; }
  #tbOut { position: absolute; left: 0; top: 0; box-shadow: none !important; }
}
