/* Broadcast Utility — tool theme (glass shell + editor overrides) */
@import url('/bu-shell.css');
@import url('/bu-flat-shell.css');

/* Header slot — flat bar */
#bu-header-slot {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 52px;
  pointer-events: none;
}

#bu-header-slot .bu-app-header,
#bu-header-slot .bu-site-header {
  pointer-events: auto;
}

.bu-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

#bu-user-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  font-family: var(--h-font);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--h-r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s var(--h-ease), box-shadow 0.3s;
}

.bu-btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(230, 57, 70, 0.2);
}

.bu-btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--h-ink);
  border-color: var(--h-glass-border);
}

.bu-user-pill {
  font-size: 13px;
  color: var(--h-muted);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--h-glass-border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

/* Account menu (shared with bu-home.css patterns) */
body.bu-app .bu-account-panel,
body.bu-app #bu-account-panel {
  position: fixed;
  overflow: hidden;
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(17, 24, 39, 0.1) !important;
  border-radius: 14px !important;
  color: var(--h-ink) !important;
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.16), 0 2px 8px rgba(17, 24, 39, 0.08) !important;
}

body.bu-app .bu-account-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

body.bu-app .bu-account-meta {
  min-width: 0;
  flex: 1;
}

body.bu-app .bu-account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(180deg, #2a3140 0%, #0a0c12 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 2px 8px rgba(10, 15, 30, 0.12);
}

body.bu-app .bu-account-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--h-ink) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.bu-app .bu-account-email {
  font-size: 11px;
  color: var(--h-muted) !important;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.bu-app .bu-account-menu,
body.bu-app .bu-account-footer { padding: 6px; }

body.bu-app .bu-account-footer {
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  padding-top: 6px;
}

body.bu-app .bu-account-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: var(--h-font);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--h-ink-soft) !important;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

body.bu-app .bu-account-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  opacity: 0.55;
}

body.bu-app .bu-account-item:hover {
  background: rgba(17, 24, 39, 0.05) !important;
  color: var(--h-ink) !important;
}

body.bu-app .bu-account-item:hover .bu-account-icon {
  opacity: 0.85;
}

body.bu-app .bu-account-item--active {
  background: rgba(17, 24, 39, 0.06) !important;
  color: var(--h-ink) !important;
}

body.bu-app .bu-account-item--danger {
  color: #c0392b !important;
}

body.bu-app .bu-account-item--danger:hover {
  background: rgba(192, 57, 43, 0.08) !important;
  color: #a93226 !important;
}

body.bu-app.bu-at-home .wrap {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Proposal builder — editor chrome */
body.bu-app:not(.bu-at-home) .wrap {
  padding: 0 clamp(12px, 2vw, 20px) 40px;
}

body.bu-app .tabs {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  border: 1px solid var(--h-glass-border);
  border-radius: var(--h-r-pill);
  padding: 4px;
  margin-bottom: 16px;
}

body.bu-app .tab {
  color: var(--h-muted);
  border-radius: var(--h-r-pill);
}

body.bu-app .tab.on {
  background: #fff;
  color: var(--h-ink);
  box-shadow: 0 2px 8px rgba(10, 15, 30, 0.08);
}

body.bu-app .card:not(#preview .card):not(.p):not(.editor) {
  background: var(--h-glass-tint-strong) !important;
  border: 1px solid var(--h-glass-border) !important;
  box-shadow: var(--h-glass-shadow) !important;
}

body.bu-app .title {
  color: var(--h-ink);
}

/* Project tracker / AV support — in-project workspace */
body.bu-app .app:not(.bu-hub-page .app) .card,
body.bu-app #main .card:not(.bu-hub-stage .card) {
  background: var(--h-glass-tint-strong) !important;
  border: 1px solid var(--h-glass-border) !important;
}

body.bu-app .admin-card {
  background: var(--h-glass-tint-strong) !important;
  border: 1px solid var(--h-glass-border) !important;
  border-radius: var(--h-r-lg) !important;
  box-shadow: var(--h-glass-shadow) !important;
}

/* Calendar tiles in hub grid */
.bu-hub-grid .cal-proj {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  min-height: 132px;
  padding: 22px;
  margin: 0 !important;
  border: 1px solid var(--h-glass-border);
  border-radius: var(--h-r-lg);
  background: var(--h-glass-tint);
  backdrop-filter: blur(var(--h-blur)) saturate(180%);
  box-shadow: var(--h-glass-shadow);
  cursor: pointer;
  color: inherit;
  transition: transform 0.45s var(--h-ease), box-shadow 0.45s var(--h-ease);
}

.bu-hub-grid .cal-proj:hover,
.bu-hub-grid .cal-proj.active {
  transform: translateY(-4px);
  background: var(--h-glass-tint-strong);
  box-shadow: var(--h-glass-shadow-lift);
  border-color: rgba(0, 102, 255, 0.25);
}

.bu-hub-grid .cal-proj .t {
  font-size: 17px;
  font-weight: 600;
  color: var(--h-ink);
}

.bu-hub-grid .cal-proj .m {
  font-size: 13px;
  color: var(--h-muted);
  margin-top: 6px;
}
