* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f1f3f5;
  color: #212529;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Minimal Top Bar */
.toolbar {
  height: 44px;
  background-color: #ffffff;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon {
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 137, 123, 0.25));
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-code {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #00897B;
}

.brand-name {
  font-size: 13px;
  font-weight: 600;
  color: #212529;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid #ced4da;
  background-color: #ffffff;
  color: #495057;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.btn:hover {
  background-color: #e9ecef;
  color: #212529;
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  color: #ffffff;
}

/* Pop-up blocker warning banner */
.popup-banner {
  display: none;
  background-color: #fff3cd;
  color: #664d03;
  border-bottom: 1px solid #ffecb5;
  padding: 8px 16px;
  font-size: 12px;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 12px;
}

.popup-banner.visible {
  display: flex;
}

/* Instructions Section */
.instructions-wrapper {
  background-color: #ffffff;
  border-bottom: 1px solid #dee2e6;
  padding: 8px 16px;
  flex-shrink: 0;
  font-size: 12px;
}

.instructions-details summary {
  font-weight: 600;
  color: #343a40;
  cursor: pointer;
  outline: none;
  user-select: none;
}

.instructions-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f1f3f5;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
  color: #495057;
}

.step-num {
  background-color: #e9ecef;
  color: #212529;
  font-weight: 700;
  font-size: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step code {
  background-color: #e9ecef;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 11px;
}

/* Side by Side Grid */
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  flex: 1;
  gap: 8px;
  padding: 8px;
  background-color: #e9ecef;
  min-height: 0;
}

.pane {
  background-color: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.pane-header {
  height: 38px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #343a40;
  flex-shrink: 0;
}

.pane-iframe {
  width: 100%;
  flex: 1;
  border: none;
  background-color: #ffffff;
}
