/* Live topbar. Scoped rules replace earlier decorative search styles. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.app-body .live-topbar { display: flex; gap: 16px; min-height: 72px; height: auto; padding-top: 10px; padding-bottom: 10px; }
.live-topbar .breadcrumbs { min-width: 0; max-width: 32%; gap: 8px; font-size: 15px; }
.live-topbar .breadcrumbs a { color: #64748b; flex: none; }
.live-topbar .breadcrumbs strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-topbar .topbar-search { display: flex; align-items: center; flex: 1; min-width: 140px; margin: 0; border: 1px solid #dce4ef; border-radius: 12px; background: #f8fafc; }
.live-topbar .topbar-search:focus-within { outline: 2px solid #2663eb; outline-offset: 2px; }
.live-topbar .topbar-search input[type=search] { width: 100%; min-width: 0; height: 44px; background: transparent; border: 0; box-shadow: none; font-size: 16px; padding: 10px 12px; outline: none; }
.live-topbar .topbar-actions { display: flex; flex: none; align-items: center; gap: 12px; }
.live-topbar .icon-button { display: inline-flex !important; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; color: #52627b; }
.live-topbar .icon-button:after { content: none !important; }
.live-topbar .icon-button:hover { background: #eef4ff; color: #2454cf; }
.live-topbar .profile-menu { display: flex; gap: 8px; padding-left: 12px; }
.live-topbar .profile-link { display: flex; align-items: center; gap: 10px; min-height: 44px; border-radius: 10px; }
.live-topbar .profile-copy { max-width: 130px; }
.live-topbar .profile-copy strong,.live-topbar .profile-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-topbar .profile-copy strong { font-size: 16px; }.live-topbar .profile-copy small { font-size: 14px; }
.live-topbar .notification { position: relative; }
.live-topbar .notification-count { position: absolute; top: 0; right: -4px; min-width: 19px; height: 19px; padding: 0 4px; border: 2px solid #fff; border-radius: 10px; color: #fff; background: #c82c41; font-size: 11px; font-weight: 700; line-height: 15px; text-align: center; }
.topbar-logout { display: flex; margin: 0; }
.live-topbar a:focus-visible,.live-topbar button:focus-visible { outline: 2px solid #2663eb; outline-offset: 2px; }
.workspace-page { min-width: 0; font-size: 16px; }.workspace-page > .card { margin-bottom: 20px; }
.workspace-query { display: flex; align-items: center; gap: 12px; padding: 20px; flex-wrap: wrap; }
.workspace-query label { font-weight: 650; }.workspace-query input { flex: 1; min-width: 180px; }
.workspace-query input,.workspace-query select { font-size: 16px; min-height: 46px; padding: 10px 12px; border: 1px solid #dce4ef; border-radius: 10px; background: #fff; }
.workspace-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.workspace-filters a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; color: #52627b; background: #fff; border: 1px solid #dce4ef; border-radius: 10px; }
.workspace-filters a.is-current { background: #edf3ff; border-color: #2454cf; color: #2454cf; font-weight: 650; }
.workspace-count { color: #52627b; margin: 18px 0; }.workspace-results { display: grid; gap: 14px; }
.workspace-result { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; min-width: 0; }
.workspace-result > div:first-child { min-width: 0; flex: 1; }.workspace-result h2 { font-size: 20px; line-height: 1.5; margin: 8px 0; overflow-wrap: anywhere; }
.workspace-result p { color: #52627b; font-size: 16px; line-height: 1.7; margin: 0; overflow-wrap: anywhere; }
.workspace-kind { color: #52627b; font-size: 15px; overflow-wrap: anywhere; }
.workspace-result-actions,.workspace-alert-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.workspace-alert-meta { margin-top: 14px; color: #52627b; font-size: 15px; }.workspace-alert { border-left: 4px solid #dc9931; }
.workspace-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 24px 0; }
.workspace-empty { text-align: center; padding: 40px 24px; }.workspace-empty h2 { font-size: 23px; margin-bottom: 12px; }.workspace-empty p { font-size: 16px; color: #52627b; line-height: 1.8; }
.workspace-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin: 0; padding: 26px; }
.workspace-details dt { color: #63728b; font-size: 15px; margin-bottom: 8px; }.workspace-details dd { font-size: 17px; line-height: 1.7; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.workspace-permissions { display: flex; flex-wrap: wrap; gap: 12px; padding: 24px; }.workspace-permissions span { display: inline-flex; align-items: center; gap: 6px; background: #f3f6fb; padding: 10px 14px; border-radius: 10px; }
.workspace-logout { margin: 20px 0; }
@media (max-width: 1200px) { .live-topbar .breadcrumbs > a,.live-topbar .breadcrumbs > b { display: none; } .live-topbar .profile-copy { display: none; } }
@media (max-width: 1023px) {
  .app-body .live-topbar { gap: 4px; min-height: 64px; padding: max(8px,env(safe-area-inset-top)) 12px 8px; }
  .live-topbar .breadcrumbs { flex: 1; max-width: none; font-size: 16px; }
  .live-topbar .topbar-search { min-width: 44px; width: 44px; flex: none; border: 0; background: transparent; }
  .live-topbar .topbar-search input[type=search] { display: none; }
  .app-body .live-topbar .topbar-actions,.app-body .live-topbar .profile-menu { gap: 2px; padding-left: 0; border: 0; }
  .live-topbar .profile-link { width: 44px; justify-content: center; }
  .app-body .live-topbar .mobile-menu { margin: 0; width: 44px; min-width: 44px; }
}

/* Embed code stays inside its card on phones and desktop. */
.embed-copy-field{display:block;width:100%;max-width:100%;min-height:100px;padding:14px;border:1px solid #bdcad8;border-radius:10px;font:16px/1.6 ui-monospace,monospace;resize:vertical;overflow-wrap:anywhere;word-break:break-all;margin:12px 0}.key-values dd{overflow-wrap:anywhere}
@media (max-width: 600px) {
  .workspace-query { display: grid; grid-template-columns: minmax(0,1fr); padding: 16px; }
  .workspace-query input,.workspace-query select { min-width: 0; width: 100%; }
  .workspace-result { flex-direction: column; align-items: stretch; padding: 18px; }
  .workspace-result-actions { width: 100%; }.workspace-result-actions .button { flex: 1; }
  .workspace-details { grid-template-columns: minmax(0,1fr); padding: 20px; }
  .workspace-page .page-heading h1 { overflow-wrap: anywhere; }
}
