/* Office Pulse — integrated into FirmPortal. Inherits --green, --gray, --taupe, --silver, --off-white from index.html :root. */

:root {
  --op-bg: #1a1d23;
  --op-panel: #232730;
  --op-panel-2: #2c313c;
  --op-fg: #e7eaf0;
  --op-muted: #8a93a6;
  --op-green: #34c759;
  --op-yellow: #ffd60a;
  --op-red: #ff453a;
  --op-blue: #0a84ff;
  --op-purple: #af52de;
  --op-grey: #6e7480;
  --op-border: #3a3f4b;
}

/* ── Dashboard wrapper ── */
#dashboardView {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px); /* subtract header height */
  overflow: hidden;
  background: var(--op-bg);
}

/* ── Consent banner ── */
.op-consent-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: #1c3a5e;
  border-bottom: 1px solid #2a5080;
  font-size: 13px;
  color: #c8dcf0;
}
.op-consent-banner.hidden { display: none !important; }
.op-consent-msg { flex: 1; }
.op-consent-connect-btn {
  padding: 3px 12px;
  border-radius: 4px;
  border: 1px solid #4a90d9;
  background: #1a5fa0;
  color: #e4f0fa;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.op-consent-connect-btn:hover { background: #2070b8; }
.op-consent-dismiss-btn {
  background: none;
  border: none;
  color: var(--op-muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}
.op-consent-dismiss-btn:hover { color: var(--op-fg); }

/* ── Tally bar ── */
.op-tally-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  background: var(--op-panel);
  border-bottom: 1px solid var(--op-border);
  flex-shrink: 0;
}
.op-tally {
  display: flex;
  gap: 10px;
  margin-right: auto;
}
.op-t {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: var(--op-panel-2);
  border-radius: 14px;
  font-size: 12px;
  color: var(--op-fg);
}
.op-t .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.op-t-available .dot { background: var(--op-green); }
.op-t-call      .dot { background: var(--op-red); }
.op-t-meeting   .dot { background: var(--op-blue); }
.op-t-away      .dot { background: var(--op-yellow); }
.op-t-offline   .dot { background: var(--op-grey); }

.op-connection {
  font-size: 11px;
  color: var(--op-muted);
  padding: 3px 8px;
  background: var(--op-panel-2);
  border-radius: 4px;
}
.op-connection.live { color: var(--op-green); }
.op-connection.lost { color: var(--op-red); }

/* ── Main layout ── */
.op-main {
  flex: 1;
  display: flex;
  min-height: 0;
}
.op-floor-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0; min-height: 0;
}
.op-floor {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: auto;
  min-height: 0;
}

/* ── Floor inner (maintains floorplan aspect ratio) ── */
.op-floor-inner {
  position: relative;
  aspect-ratio: 2750 / 1536;
  width: min(100%, calc((100vh - 200px) * 2750 / 1536));
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
  container-type: inline-size;
}
:root { --op-avatar-size: 3.2cqw; }
#op-bg {
  display: block; width: 100%; height: 100%;
}

/* ── Logo overlay ── */
.op-lobby-logo {
  position: absolute;
  width: 6cqw;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
  opacity: 0.85;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

/* ── Seats ── */
.op-seat {
  position: absolute;
  width: var(--op-avatar-size); height: var(--op-avatar-size);
  transform: translate(-50%, -50%);
}
.op-seat.empty { display: none; }
.op-seat .photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  background-size: cover; background-position: center;
  background-color: var(--op-panel-2);
  border: 2px solid #ffffff;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.55);
  position: relative;
  transition: filter .3s, box-shadow .3s;
}
.op-seat .photo.no-photo::after {
  content: attr(data-initials);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7cqw; font-weight: 700; color: var(--op-fg);
}
.op-seat .label {
  position: absolute; top: calc(100% + 2px); left: 50%;
  transform: translateX(-50%);
  font-size: 10px; white-space: pre-line; text-align: center; color: var(--op-fg);
  text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 6px rgba(0,0,0,.8);
  pointer-events: none; line-height: 1.2;
}
.op-seat .badge {
  position: absolute; top: -4%; right: -4%;
  width: 38%; height: 38%;
  border-radius: 50%; background: var(--op-grey);
  border: 2px solid var(--op-panel);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2cqw; font-style: normal; line-height: 1;
}
.op-seat.at-idle-spot {
  width: calc(var(--op-avatar-size) * 0.6);
  height: calc(var(--op-avatar-size) * 0.6);
}
.op-seat.at-idle-spot .label {
  font-size: 7px;
}
.op-seat.at-idle-spot .photo.no-photo::after {
  font-size: 1.0cqw;
}
.op-seat.at-idle-spot .photo {
  box-shadow: 0 0 0 2px rgba(255,255,255,.3), 0 0 8px rgba(255,255,255,.2), 0 2px 8px rgba(0,0,0,.55);
}
.op-seat.at-flower-center {
  width:  calc(var(--op-avatar-size) * 0.8);
  height: calc(var(--op-avatar-size) * 0.8);
}
.op-seat.at-flower-center .label { font-size: 9px; }
.op-seat.at-flower-center .photo.no-photo::after { font-size: 1.35cqw; }
.op-seat.at-flower-petal {
  width:  calc(var(--op-avatar-size) * 0.6);
  height: calc(var(--op-avatar-size) * 0.6);
}
.op-seat.at-flower-petal .label { font-size: 7px; }
.op-seat.at-flower-petal .photo.no-photo::after { font-size: 1.0cqw; }
.op-seat.at-flower-center .photo,
.op-seat.at-flower-petal  .photo {
  box-shadow: 0 0 0 2px rgba(255,255,255,.35), 0 0 10px rgba(255,255,255,.25), 0 2px 8px rgba(0,0,0,.55);
}
.op-seat.at-meeting-spot {
  width:  calc(var(--op-avatar-size) * 0.8);
  height: calc(var(--op-avatar-size) * 0.8);
}
.op-seat.at-meeting-spot .label { font-size: 9px; }
.op-seat.at-meeting-spot .photo.no-photo::after { font-size: 1.35cqw; }
.op-seat.at-meeting-spot .photo {
  box-shadow: 0 0 0 2px rgba(255,255,255,.35), 0 0 10px rgba(255,255,255,.25), 0 2px 8px rgba(0,0,0,.55);
}
.op-seat.conf-crowded { width: calc(var(--op-avatar-size)*.70); height: calc(var(--op-avatar-size)*.70); }
.op-seat.conf-jammed  { width: calc(var(--op-avatar-size)*.50); height: calc(var(--op-avatar-size)*.50); }

/* Activity classes */
.op-seat.activity-Available .badge   { background: var(--op-green); }
.op-seat.activity-Away .badge,
.op-seat.activity-BeRightBack .badge,
.op-seat.activity-Inactive .badge,
.op-seat.activity-BusyIdle .badge,
.op-seat.activity-AvailableIdle .badge { background: var(--op-yellow); }
.op-seat.activity-Busy .badge        { background: var(--op-red); }
.op-seat.activity-DoNotDisturb .photo { box-shadow: 0 0 0 3px var(--op-red), 0 2px 8px rgba(0,0,0,.55); }
.op-seat.activity-DoNotDisturb .badge { background: var(--op-red); }
.op-seat.activity-InACall .badge,
.op-seat.activity-InAConferenceCall .badge { background: var(--op-red); animation: op-pulse 1.2s ease-in-out infinite; }
.op-seat.activity-InACall .badge::after { content: "📞"; font-size: 1.1cqw; }
.op-seat.activity-InAConferenceCall .badge::after { content: "☎"; font-size: 1.2cqw; }
.op-seat.activity-InAMeeting .badge { background: var(--op-blue); animation: op-pulse-meeting 1.2s ease-in-out infinite; }
.op-seat.activity-InAMeeting .badge::after { content: "👥"; font-size: 1.1cqw; }
.op-seat.activity-Presenting .photo { box-shadow: 0 0 18px var(--op-purple), 0 2px 8px rgba(0,0,0,.55); }
.op-seat.activity-Presenting .badge { background: var(--op-purple); }
.op-seat.activity-Presenting .badge::after { content: "🖥"; font-size: 1.1cqw; }
.op-seat.activity-Offline .photo,
.op-seat.activity-OffWork .photo { filter: grayscale(1) brightness(.5); }
.op-seat.activity-Offline .badge,
.op-seat.activity-OffWork .badge { background: var(--op-grey); }
.op-seat.activity-OutOfOffice .badge { background: var(--op-yellow); }
.op-seat.activity-OutOfOffice .badge::after { content: "✈"; font-size: 1.2cqw; }
.op-seat.in-meeting-group .photo {
  box-shadow: 0 0 0 3px var(--meeting-color, var(--op-blue)), 0 2px 8px rgba(0,0,0,.55);
}

@keyframes op-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); box-shadow: 0 0 8px var(--op-red); }
}
@keyframes op-pulse-meeting {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); box-shadow: 0 0 8px var(--op-blue); }
}

/* ── Overflow strip (OOO + unseated) ── */
/* ── Admin mode ── */
.op-admin-banner {
  display: none;
  position: fixed; top: 60px; left: 50%; transform: translateX(-50%);
  background: var(--op-blue); color: #fff;
  padding: 7px 16px; border-radius: 6px; font-size: 13px; font-weight: 600;
  z-index: 200; box-shadow: 0 4px 12px rgba(0,0,0,0.5); pointer-events: none;
}
.op-admin-banner span { font-weight: 400; margin-left: 8px; opacity: 0.9; }
body.op-admin .op-admin-banner { display: block; }
body.op-admin .op-seat, body.op-admin .op-tile { cursor: context-menu; }
body.op-placing .op-floor-inner { cursor: crosshair; }
body.op-placing .op-seat { cursor: crosshair !important; }
body.op-rest-spots .op-floor-inner { cursor: crosshair; }
body.op-admin.op-edit-desks .op-seat.empty,
body.op-admin.op-edit-seats .op-seat.empty { display: block; }
body.op-admin.op-edit-desks .op-seat.empty .photo,
body.op-admin.op-edit-seats .op-seat.empty .photo {
  border: 2px dashed var(--op-muted); background: rgba(255,255,255,.04);
  box-shadow: none; opacity: 0.6;
}
body.op-admin.op-edit-desks .op-seat.empty .badge,
body.op-admin.op-edit-seats .op-seat.empty .badge { display: none; }
.op-front-door-marker {
  display: none; position: absolute;
  width: 2.8cqw; height: 2.8cqw; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(10,132,255,.85); border: 2px solid #fff;
  box-shadow: 0 0 12px rgba(10,132,255,.7); z-index: 60; pointer-events: none;
  transition: left .25s ease, top .25s ease;
}
.op-front-door-marker::after {
  content: "🚪"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.4cqw;
}
body.op-admin .op-front-door-marker { display: block; }
.op-idle-marker {
  display: none; position: absolute;
  width: 2cqw; height: 2cqw; transform: translate(-50%,-50%);
  border-radius: 50%; background: rgba(175,82,222,.6); border: 2px solid rgba(175,82,222,.9);
  box-shadow: 0 0 8px rgba(175,82,222,.5); z-index: 55;
  cursor: context-menu; transition: background .15s, transform .15s;
}
.op-idle-marker:hover { background: rgba(175,82,222,.9); transform: translate(-50%,-50%) scale(1.3); }
body.op-admin.op-rest-spots .op-idle-marker { display: block; }

.op-desk-marker {
  display: none; position: absolute;
  width: 2.2cqw; height: 2.2cqw; transform: translate(-50%,-50%);
  border-radius: 4px; background: rgba(255,159,10,.55); border: 2px solid rgba(255,159,10,.9);
  box-shadow: 0 0 8px rgba(255,159,10,.4); z-index: 54;
  cursor: context-menu; transition: background .15s, transform .15s;
}
.op-desk-marker:hover { background: rgba(255,159,10,.9); transform: translate(-50%,-50%) scale(1.3); }
body.op-admin.op-edit-desks .op-desk-marker { display: block; }
body.op-admin.op-edit-desks .op-floor-inner { cursor: crosshair; }
body.op-admin.op-edit-seats .op-seat,
body.op-admin.op-edit-seats .op-tile { cursor: context-menu; }

.op-conf-marker {
  display: none; position: absolute;
  width: 2.2cqw; height: 2.2cqw; border-radius: 50%; transform: translate(-50%,-50%);
  background: rgba(27,48,34,.6); border: 2px solid rgba(181,166,146,.9);
  box-shadow: 0 0 8px rgba(181,166,146,.4); z-index: 54;
  cursor: context-menu; transition: background .15s, transform .15s;
}
.op-conf-marker:hover { background: rgba(27,48,34,.95); transform: translate(-50%,-50%) scale(1.3); }
body.op-admin.op-edit-conf-rooms .op-conf-marker { display: block; }
body.op-admin.op-edit-conf-rooms .op-floor-inner { cursor: crosshair; }

#op-conf-rooms-panel {
  position: fixed; top: 80px; right: 16px; width: 210px;
  background: #1c2f3e; border: 1px solid #3a5068; border-radius: 8px;
  padding: 10px; z-index: 200; color: #e0e4e8; font-size: 13px;
}
.conf-rooms-panel-title { font-weight: 600; margin-bottom: 8px; color: #B5A692; }
.conf-room-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.conf-room-row.selected .conf-room-name { color: #B5A692; font-weight: 600; }
.conf-room-name { flex: 1; cursor: pointer; }
.conf-room-name:hover { text-decoration: underline; }
.conf-room-delete { background: none; border: none; color: #8E9191; cursor: pointer; font-size: 14px; padding: 0 2px; }
.conf-room-delete:hover { color: #ff453a; }
.conf-room-add-btn {
  width: 100%; margin-top: 8px; padding: 5px 0; background: #2a4a6a; border: none;
  border-radius: 4px; color: #e0e4e8; cursor: pointer; font-size: 13px;
}
.conf-room-add-btn:hover { background: #3a5a7a; }

.op-context-menu {
  position: fixed; z-index: 300; background: var(--op-panel);
  border: 1px solid var(--op-border); border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.6); padding: 4px 0; min-width: 160px; font-size: 13px;
}
.op-context-menu .ctx-header {
  padding: 6px 14px 4px; color: var(--op-muted); font-size: 11px;
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid var(--op-border); margin-bottom: 4px;
}
.op-context-menu button {
  display: block; width: 100%; text-align: left;
  background: transparent; border: 0; color: var(--op-fg);
  padding: 7px 14px; font: inherit; cursor: pointer;
}
.op-context-menu button:hover { background: var(--op-panel-2); }
.op-context-menu .ctx-danger { color: var(--op-red); }
.op-ctx-sep { margin: 4px 10px; border: 0; border-top: 1px solid var(--op-border); }

.op-overflow {
  background: var(--op-panel);
  border-top: 1px solid var(--op-border);
  padding: 8px 14px 10px;
  display: flex; flex-direction: row; gap: 0;
  flex-shrink: 0; max-height: 28vh;
}
.op-overflow-pane {
  display: flex; flex-direction: column; gap: 6px;
  flex: 0 0 50%; min-width: 0; overflow: visible;
}
.op-overflow-ooo { padding-right: 10px; border-right: 1px solid var(--op-border); }
.op-overflow-unseated { padding-left: 14px; }
.op-overflow-title {
  margin: 0; font-size: 11px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--op-muted);
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.op-overflow-count {
  background: var(--op-panel-2); color: var(--op-fg);
  padding: 1px 8px; border-radius: 10px; font-size: 10px; font-weight: 600;
}
.op-overflow-list {
  display: flex; flex-wrap: wrap; gap: 10px;
  overflow-y: auto; overflow-x: hidden;
  padding: 2px 2px 6px; scrollbar-width: thin;
  align-content: flex-start;
}

/* Tiles (OOO / unseated) */
.op-tile {
  flex-shrink: 0; display: flex; flex-direction: column;
  align-items: center; gap: 4px; width: 60px;
}
.op-tile .photo {
  position: relative; width: 40px; height: 40px;
  border-radius: 50%; background-size: cover; background-position: center;
  background-color: var(--op-panel-2);
  border: 2px solid #fff; box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0,0,0,.5);
  transition: filter .3s, box-shadow .3s;
}
.op-tile .photo.no-photo::after {
  content: attr(data-initials);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--op-fg);
}
.op-tile .badge {
  position: absolute; top: -3px; right: -3px;
  width: 13px; height: 13px;
  border-radius: 50%; background: var(--op-grey);
  border: 2px solid var(--op-panel);
}
.op-tile .label {
  font-size: 10px; text-align: center; color: var(--op-fg);
  max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.op-tile.activity-Available .badge   { background: var(--op-green); }
.op-tile.activity-Away .badge,
.op-tile.activity-BeRightBack .badge { background: var(--op-yellow); }
.op-tile.activity-Inactive .photo    { filter: grayscale(.6) brightness(.7); }
.op-tile.activity-Busy .badge        { background: var(--op-red); }
.op-tile.activity-InACall .badge,
.op-tile.activity-InAConferenceCall .badge { background: var(--op-red); animation: op-pulse 1.2s ease-in-out infinite; }
.op-tile.activity-InAMeeting .badge  { background: var(--op-blue); animation: op-pulse-meeting 1.2s ease-in-out infinite; }
.op-tile.activity-Presenting .photo  { box-shadow: 0 0 10px var(--op-purple), 0 2px 6px rgba(0,0,0,.5); }
.op-tile.activity-Presenting .badge  { background: var(--op-purple); }
.op-tile.activity-Offline .photo,
.op-tile.activity-OffWork .photo     { filter: grayscale(1) brightness(.5); }
.op-tile.activity-Offline .badge,
.op-tile.activity-OffWork .badge     { background: var(--op-grey); }
.op-tile.activity-OutOfOffice .badge { background: var(--op-yellow); }
.op-tile.in-meeting-group .photo {
  box-shadow: 0 0 0 2px var(--meeting-color, var(--op-blue)), 0 2px 6px rgba(0,0,0,.5);
}

/* ── Notes indicator — amber badge mirroring the status dot, top-left of photo ── */
.op-tile { position: relative; }
.op-notes-indicator {
  position: absolute;
  top: -4%; left: -4%;
  width: 38%; height: 38%;
  border-radius: 50%;
  background: #F5A623;
  border: 2px solid var(--op-panel);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1cqw;
  line-height: 1;
  z-index: 20;
  pointer-events: none;
}
.op-tile .op-notes-indicator {
  top: -3px; left: -3px;
  width: 13px; height: 13px;
  font-size: 8px;
}

/* ── Notes modal (Briefcase Architect brand theme) ── */
.op-notes-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.op-notes-modal {
  background: #F9F9F9;
  border: 1px solid #C0C0C0;
  border-radius: 10px;
  width: min(540px, 90vw);
  max-height: 72vh;
  display: flex; flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  overflow: hidden;
}
.op-notes-header {
  background: #1B3022;
  color: #F9F9F9;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.op-notes-title { font-weight: 600; font-size: 15px; }
.op-notes-close {
  background: none; border: none; color: #F9F9F9;
  font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px;
  opacity: 0.65;
}
.op-notes-close:hover { opacity: 1; }
.op-notes-body {
  flex: 1; overflow-y: auto;
  padding: 14px 18px 6px;
  min-height: 60px;
}
.op-notes-empty {
  color: #8E9191; font-size: 13px; text-align: center;
  padding: 24px 0; margin: 0;
}
.op-note-card {
  background: #fff;
  border: 1px solid #C0C0C0;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
  position: relative;
}
.op-note-text {
  color: #1B3022; font-size: 14px; line-height: 1.55;
  white-space: pre-wrap; padding-right: 52px;
}
.op-note-meta { color: #8E9191; font-size: 11px; margin-top: 5px; }
.op-note-actions {
  position: absolute; top: 8px; right: 8px;
  display: flex; gap: 4px;
  opacity: 0; transition: opacity .15s;
}
.op-note-card:hover .op-note-actions { opacity: 1; }
.op-note-action-btn {
  background: none; border: 1px solid #C0C0C0; border-radius: 4px;
  color: #B5A692; font-size: 13px; cursor: pointer; padding: 2px 7px;
  line-height: 1.4;
}
.op-note-action-btn:hover { background: #B5A692; color: #fff; border-color: #B5A692; }
.op-note-delete-btn:hover { background: #b94040; border-color: #b94040; }
.op-note-edit-area {
  width: 100%; box-sizing: border-box;
  border: 1px solid #C0C0C0; border-radius: 4px;
  padding: 8px; font-size: 14px; line-height: 1.5;
  resize: vertical; color: #1B3022; font-family: inherit;
}
.op-note-edit-area:focus { outline: none; border-color: #1B3022; }
.op-note-edit-actions { display: flex; gap: 8px; margin-top: 7px; }
.op-note-cancel-btn {
  background: none; border: 1px solid #C0C0C0; border-radius: 4px;
  padding: 6px 14px; cursor: pointer; color: #8E9191; font-size: 13px;
}
.op-note-cancel-btn:hover { background: #e8e8e8; color: #1B3022; }
.op-notes-add {
  border-top: 1px solid #C0C0C0;
  padding: 12px 18px 14px;
  display: flex; flex-direction: column; gap: 8px;
  flex-shrink: 0;
}
.op-notes-add textarea {
  width: 100%; box-sizing: border-box;
  border: 1px solid #C0C0C0; border-radius: 4px;
  padding: 8px; font-size: 14px; line-height: 1.5;
  resize: vertical; color: #1B3022; font-family: inherit;
}
.op-notes-add textarea:focus { outline: none; border-color: #1B3022; }
.op-notes-save-btn {
  align-self: flex-end;
  background: #1B3022; color: #F9F9F9;
  border: none; border-radius: 5px;
  padding: 7px 22px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.op-notes-save-btn:hover { background: #2c4d36; }
.op-notes-save-btn:disabled { opacity: 0.45; cursor: default; }

/* ── Info badge ── */
.op-info-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--op-panel-2);
  border: 1px solid var(--op-border);
  color: var(--op-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: default;
  flex-shrink: 0;
  user-select: none;
}
.op-info-badge:hover { color: var(--op-fg); border-color: var(--op-muted); }
.op-info-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--op-panel);
  border: 1px solid var(--op-border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 400;
  color: var(--op-muted);
  line-height: 1.5;
  white-space: normal;
  text-transform: none;
  letter-spacing: normal;
  z-index: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.op-info-badge:hover .op-info-tooltip { display: block; }

/* Status tally badges — hoverable with tooltip */
.op-t { position: relative; cursor: default; }
.op-t:hover .op-info-tooltip { display: block; }
.op-t .op-info-tooltip { left: 50%; transform: translateX(-50%); right: auto; width: 220px; }
.op-t-available .op-info-tooltip { left: 0; transform: none; }

.op-panel-help {
  width: 14px; height: 14px;
  font-size: 10px;
  margin-left: 5px;
  vertical-align: middle;
}
.op-panel-help .op-info-tooltip {
  top: auto;
  bottom: calc(100% + 6px);
  width: 260px;
}
.op-overflow-ooo .op-panel-help .op-info-tooltip {
  left: 0; right: auto;
}
.op-overflow-unseated .op-panel-help .op-info-tooltip {
  right: 0; left: auto;
}

/* ── Embed code button ── */
.op-embed-btn {
  background: none;
  border: 1px solid var(--op-border);
  color: var(--op-muted);
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 11px;
  font-family: monospace;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.6;
  transition: color .15s, border-color .15s;
}
.op-embed-btn:hover { color: var(--op-fg); border-color: var(--op-muted); }

/* ── Embed code popover ── */
.op-embed-popover {
  display: none;
  position: fixed;
  top: 50px;
  right: 16px;
  width: 360px;
  background: var(--op-panel);
  border: 1px solid var(--op-border);
  border-radius: 8px;
  padding: 16px;
  z-index: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.op-embed-popover--open { display: block; }
.op-embed-popover-title {
  font-size: 13px; font-weight: 600; color: var(--op-fg); margin-bottom: 6px;
}
.op-embed-popover-desc {
  font-size: 12px; color: var(--op-muted); line-height: 1.5; margin-bottom: 10px;
}
.op-embed-snippet {
  background: var(--op-bg);
  border: 1px solid var(--op-border);
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 11px;
  color: #a8d8a8;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: monospace;
  margin-bottom: 10px;
}
.op-embed-copy-btn {
  background: var(--op-panel-2);
  border: 1px solid var(--op-border);
  color: var(--op-fg);
  border-radius: 5px;
  padding: 5px 16px;
  font-size: 12px;
  cursor: pointer;
  float: right;
  transition: background .15s;
}
.op-embed-copy-btn:hover { background: #3a3f4b; }

/* ── Briefcase Architect watermark — anchored inside .op-floor-inner ── */
.op-ba-watermark {
  position: absolute;
  bottom: 1.2%;
  right: 1.2%;
  display: flex;
  align-items: center;
  gap: 0.4cqw;
  padding: 0.3cqw 0.6cqw;
  background: rgba(0,0,0,0.52);
  border-radius: 0.4cqw;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity .2s;
  z-index: 100;
  pointer-events: auto;
}
.op-ba-watermark:hover { opacity: 1; }
.op-ba-watermark img { height: 1.5cqw; width: auto; filter: brightness(0) invert(1); }
.op-ba-watermark span {
  font-size: 0.85cqw;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
