/* Chrome-style browser frame, replacing the canvas' ChromeWindow React component.
   Also holds the generic horizontal scroller used by wide diagrams. */

.browser {
  border-radius: 10px;
  overflow: hidden;
  background: #35363a;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.browser__bar {
  display: flex;
  align-items: center;
  height: 44px;
  background: #202124;
}

.browser__lights { display: flex; gap: 8px; padding-inline: 14px; }
.browser__lights span { width: 12px; height: 12px; border-radius: 50%; }

.browser__tab {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding-inline: 12px;
  min-width: 120px;
  max-width: 220px;
  background: #35363a;
  border-radius: 8px 8px 0 0;
  font-size: var(--fs-2xs);
  color: #e8eaed;
  white-space: nowrap;
  overflow: hidden;
}

.browser__favicon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #5f6368;
  flex-shrink: 0;
}

.browser__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding-inline: 14px;
  background: #35363a;
}

.browser__url {
  flex: 1;
  height: 30px;
  display: flex;
  align-items: center;
  padding-inline: 14px;
  border-radius: 15px;
  background: #282a2d;
  color: #e8eaed;
  font-size: var(--fs-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser__view {
  background: #fff;
  overflow: hidden;
  height: var(--browser-h, 340px);
}

.browser__view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Wide diagrams stay scrollable rather than shrinking to illegibility */
.scroller {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.scroller > * { min-width: var(--scroll-min, 900px); }
