/* ═══════════════════════════════════════════════════
   IRAKLI.UK — SHARED WINDOW CHROME
   Linux-style titlebar: title on the left, controls on the right.
   Load after the page stylesheet so it wins over older titlebar rules.
   ═══════════════════════════════════════════════════ */

.mac-titlebar {
  height: var(--titlebar-h, 34px);
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 0 .55rem 0 .9rem;
  background: #151a23;
  border-bottom: 1px solid #1d2430;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  flex-shrink: 0;
  -webkit-user-select: none;
  user-select: none;
}

.mac-title {
  position: static;
  transform: none;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0;
  color: #8a93a3;
  pointer-events: none;
}
.mac-title b { font-weight: 500; color: #e6e9ef; }

.mac-buttons { display: flex; gap: 5px; flex-shrink: 0; }

.mac-button {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  color: #535c6b;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.mac-button svg { display: block; width: 8px; height: 8px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.mac-button:hover { background: rgba(255,255,255,.1); color: #e6e9ef; }
.mac-button.close:hover { background: #c0392b; color: #fff; }
.mac-button:focus-visible { outline: 2px solid #3fb0ea; outline-offset: 1px; }
