/**
 * Tubular UI Badges Stylesheet
 * Method badges, provenance indicators, and rating line styling
 */

/* Badge base styles */
.tub-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Method badges - cyan accent */
.tub-badge-method {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Clickable badge styling */
.tub-badge-clickable {
  cursor: pointer;
  transition: all 0.15s ease;
}

.tub-badge-clickable:hover {
  background: rgba(6, 182, 212, 0.3);
  border-color: rgba(6, 182, 212, 0.5);
  transform: translateY(-1px);
}

/* Provenance badges */
.tub-badge-prov {
  font-size: 9px;
  padding: 2px 6px;
}

.tub-prov-computed {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.tub-prov-verified {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.tub-prov-manual {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.tub-prov-imported {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Rating line grid layout */
.tub-rating-line {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 12px;
  padding: 6px 0;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tub-rating-line:last-child {
  border-bottom: none;
}

.tub-rating-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tub-rating-value {
  font-size: 14px;
  font-weight: 600;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-variant-numeric: tabular-nums;
  color: #f0f0f5;
}

.tub-rating-badges {
  display: flex;
  gap: 4px;
  align-items: center;
}

.tub-unit {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.6;
  margin-left: 4px;
}

/* Ratings panel container */
.tub-ratings-panel {
  background: rgba(22, 22, 31, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 8px 0;
}

/* Connection panel */
.tub-connection-panel {
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 8px 0;
}

/* Provenance box */
.tub-provenance-box {
  background: rgba(22, 22, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 12px;
}

.tub-prov-line {
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.7);
}

.tub-prov-line strong {
  color: #ff6b00;
  margin-right: 8px;
}

/* =====================================================
   TRUST AGGREGATOR
   ===================================================== */

/* Trust panel container */
.tub-trust-panel {
  background: rgba(22, 22, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
}

.tub-trust-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

/* Trust bar */
.tub-trust-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
}

.tub-trust-bar-verified {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.tub-trust-bar-computed {
  background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.tub-trust-bar-manual {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

/* Trust summary text */
.tub-trust-summary {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

.tub-trust-verified {
  color: #22c55e;
}

.tub-trust-computed {
  color: #a78bfa;
}

.tub-trust-manual {
  color: #f59e0b;
}

.tub-trust-count {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.tub-trust-compact {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.tub-trust-empty {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

/* Build info */
.tub-build-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  padding: 8px 12px;
  background: rgba(22, 22, 31, 0.6);
  border-radius: 6px;
  margin-top: 8px;
}

.tub-build-version {
  font-family: 'JetBrains Mono', monospace;
  color: #ff6b00;
  font-weight: 600;
}

.tub-build-date {
  color: rgba(255, 255, 255, 0.6);
}

.tub-build-size {
  color: rgba(255, 255, 255, 0.4);
}

/* =====================================================
   DATA INTEGRITY WARNINGS
   ===================================================== */

/* Integrity panel container */
.tub-integrity-panel {
  background: rgba(22, 22, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 12px;
}

.tub-integrity-panel.tub-integrity-ok {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #22c55e;
}

/* Integrity header */
.tub-integrity-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Individual warning line */
.tub-integrity-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.7);
}

/* Warning severity colors */
.tub-warn-error {
  color: #ef4444;
}

.tub-warn-error .tub-integrity-icon {
  color: #ef4444;
}

.tub-warn-warning {
  color: #f59e0b;
}

.tub-warn-warning .tub-integrity-icon {
  color: #f59e0b;
}

.tub-warn-info {
  color: rgba(255, 255, 255, 0.6);
}

.tub-warn-info .tub-integrity-icon {
  color: #3b82f6;
}

/* Icon styling */
.tub-integrity-icon {
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1.4;
}

.tub-integrity-msg {
  flex: 1;
  line-height: 1.4;
}

/* More indicator */
.tub-integrity-more {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  text-align: center;
}

/* Table status indicators */
.tub-integrity-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}

.tub-integrity-status.tub-integrity-ok {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.tub-integrity-status.tub-integrity-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.tub-integrity-status.tub-integrity-error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.tub-integrity-status.tub-integrity-info {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

/* =====================================================
   METHOD DETAILS MODAL
   ===================================================== */

/* Modal overlay */
.tub-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  backdrop-filter: blur(4px);
}

/* Modal container */
.tub-modal {
  background: #16161f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.tub-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(22, 22, 31, 0.8);
  font-weight: 600;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.tub-modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}

.tub-modal-close:hover {
  color: #ff6b00;
}

.tub-modal-content {
  padding: 18px;
  overflow-y: auto;
}

/* Method details styling */
.tub-method-details {
  color: rgba(255, 255, 255, 0.85);
}

.tub-method-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tub-method-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tub-method-version {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.tub-method-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #ff6b00;
}

.tub-method-desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 16px 0;
}

.tub-method-formula {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.tub-method-formula-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.tub-method-formula code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #06b6d4;
}

.tub-method-standards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tub-method-standard {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.tub-method-section {
  margin-bottom: 14px;
}

.tub-method-section h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 8px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tub-method-section ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.6;
}

.tub-method-section li {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.75);
}

.tub-method-section code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 4px;
  border-radius: 3px;
  color: #a78bfa;
}

.tub-method-limitations {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 8px;
  padding: 12px 14px;
}

.tub-method-limitations h4 {
  color: #f59e0b;
  border-bottom-color: rgba(245, 158, 11, 0.2);
}

.tub-method-notes {
  background: rgba(59, 130, 246, 0.08);
  border-left: 3px solid #3b82f6;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.tub-method-notes strong {
  color: #3b82f6;
}

.tub-method-meta {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.tub-method-deprecated {
  color: #ef4444;
}

.tub-method-unknown {
  text-align: center;
  padding: 30px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* =====================================================
   DESIGN BASIS SELECTOR
   ===================================================== */

.tub-design-basis {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(22, 22, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.tub-design-basis-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.tub-design-basis select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: #f0f0f5;
  cursor: pointer;
}

.tub-design-basis select:hover {
  border-color: rgba(255, 107, 0, 0.5);
}

.tub-design-basis select:focus {
  outline: none;
  border-color: #ff6b00;
}

.tub-design-basis-info {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  max-width: 200px;
}

/* =====================================================
   HISTORY PANEL
   ===================================================== */

.tub-history-panel h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: #ff6b00;
}

.tub-history-current,
.tub-history-resolved {
  background: rgba(22, 22, 31, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.tub-history-resolved {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.2);
}

.tub-history-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.tub-history-value {
  font-size: 24px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #f0f0f5;
  margin-bottom: 4px;
}

.tub-history-method {
  margin-top: 8px;
}

.tub-history-date,
.tub-history-source {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.tub-history-warning {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 6px;
  font-size: 11px;
  color: #f59e0b;
}

.tub-history-list {
  margin-top: 16px;
}

.tub-history-entry {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tub-history-entry:last-child {
  border-bottom: none;
}

.tub-history-entry-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.tub-history-entry-method {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.tub-history-entry-date {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-align: right;
}

.tub-history-empty {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

/* History icon button */
.tub-history-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  cursor: pointer;
  opacity: 0.5;
  font-size: 12px;
  vertical-align: middle;
  transition: opacity 0.15s;
}

.tub-history-icon:hover {
  opacity: 1;
}

/* =====================================================
   EXPORT BUTTON
   ===================================================== */

.tub-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 8px;
  color: #06b6d4;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tub-export-btn:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(6, 182, 212, 0.1));
  border-color: rgba(6, 182, 212, 0.5);
  transform: translateY(-1px);
}

.tub-export-icon {
  font-size: 14px;
}

/* =====================================================
   COMPARE MODE
   ===================================================== */

/* Compare bar (fixed at bottom) */
.tub-compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(22, 22, 31, 0.95);
  border-top: 1px solid rgba(255, 107, 0, 0.3);
  backdrop-filter: blur(8px);
  z-index: 9000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.tub-compare-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tub-compare-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #ff6b00;
}

.tub-compare-item button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  line-height: 1;
}

.tub-compare-item button:hover {
  color: #ef4444;
}

.tub-compare-go {
  margin-left: auto;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ff6b00, #e05a00);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tub-compare-go:hover:not(.disabled) {
  background: linear-gradient(135deg, #ff8533, #ff6b00);
  transform: translateY(-1px);
}

.tub-compare-go.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tub-compare-clear {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tub-compare-clear:hover {
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

/* Pin button */
.tub-pin-btn {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  opacity: 0.5;
  transition: all 0.15s ease;
}

.tub-pin-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.tub-pin-btn.pinned {
  opacity: 1;
}

/* Compare modal (wider) */
.tub-compare-modal {
  max-width: 720px;
}

/* Compare table */
.tub-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tub-compare-table th,
.tub-compare-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tub-compare-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.tub-compare-table th:first-child {
  width: 120px;
}

.tub-compare-section td {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ff6b00;
  font-weight: 700;
  padding-top: 16px;
  border-bottom: none;
}

.tub-compare-label {
  color: rgba(255, 255, 255, 0.6);
}

.tub-compare-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

.tub-compare-better {
  color: #22c55e;
}

.tub-compare-worse {
  color: rgba(255, 255, 255, 0.4);
}

.tub-compare-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.tub-compare-actions button {
  padding: 8px 16px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 6px;
  color: #06b6d4;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tub-compare-actions button:hover {
  background: rgba(6, 182, 212, 0.25);
}

/* =====================================================
   OFFLINE INDICATOR
   ===================================================== */

.tub-offline-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(22, 22, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 11px;
}

.tub-offline-indicator.ready {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.08);
}

.tub-offline-indicator.not-ready {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

.tub-offline-icon {
  font-size: 13px;
}

.tub-offline-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.tub-offline-indicator.ready .tub-offline-label {
  color: #22c55e;
}

.tub-offline-indicator.not-ready .tub-offline-label {
  color: #f59e0b;
}

.tub-offline-detail {
  color: rgba(255, 255, 255, 0.5);
}

.tub-offline-compact {
  display: inline-block;
  font-size: 14px;
  cursor: help;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .tub-rating-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .tub-rating-badges {
    margin-top: 4px;
  }

  .tub-badge {
    font-size: 9px;
    padding: 2px 5px;
  }

  .tub-modal {
    max-height: 90vh;
    margin: 10px;
  }

  .tub-method-formula code {
    font-size: 12px;
  }

  .tub-compare-bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
  }

  .tub-compare-go {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .tub-compare-table {
    font-size: 11px;
  }

  .tub-compare-table th,
  .tub-compare-table td {
    padding: 6px 8px;
  }
}
