:root {
  --bg-primary: #0a0e17;
  --bg-card: rgba(18, 26, 43, 0.7);
  --bg-card-hover: rgba(28, 40, 65, 0.85);
  --border-color: rgba(99, 133, 255, 0.2);
  --border-hover: rgba(99, 133, 255, 0.5);
  --accent-cyan: #00f2fe;
  --accent-purple: #4facfe;
  --text-main: #f0f4f8;
  --text-muted: #8e9db2;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="light"] {
  --bg-primary: #f4f6fa;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --border-color: rgba(99, 133, 255, 0.25);
  --border-hover: rgba(99, 133, 255, 0.6);
  --text-main: #111827;
  --text-muted: #4b5563;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at 50% 0%, #152238 0%, var(--bg-primary) 70%);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logout-btn {
  background: rgba(255, 82, 82, 0.15);
  color: #ff5252;
  border: 1px solid rgba(255, 82, 82, 0.3);
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: rgba(255, 82, 82, 0.3);
  border-color: #ff5252;
}

.theme-btn {
  background: rgba(99, 133, 255, 0.15);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.theme-btn:hover {
  background: rgba(99, 133, 255, 0.3);
  border-color: var(--accent-cyan);
}

.tile-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.health-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #3fb950;
  background: rgba(63, 185, 80, 0.1);
  border: 1px solid rgba(63, 185, 80, 0.25);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.health-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3fb950;
  box-shadow: 0 0 6px #3fb950;
}

main {
  flex: 1;
  padding: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero {
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.app-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.app-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-tile:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.15);
}

.app-tile:hover::before {
  opacity: 1;
}

.tile-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.tile-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tile-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

.tile-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

/* Login container */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 100px);
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.login-card h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.login-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(10, 14, 23, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.2);
}

.submit-btn {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #0a0e17;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.submit-btn:hover {
  opacity: 0.9;
}

/* Session Warning Modal */
.session-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.25s ease;
}

.session-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  padding: 2rem;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.session-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.session-modal-icon {
  font-size: 1.5rem;
}

.session-modal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.session-modal-desc strong {
  color: var(--accent-cyan);
}

.session-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.extend-session-btn {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #0a0e17;
  border: none;
  border-radius: 6px;
  padding: 0.7rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.extend-session-btn:hover {
  opacity: 0.9;
}

.dismiss-session-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.7rem 1.1rem;
  font-weight: 500;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Announcement Banners */
.announcements-area {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  width: 100%;
}

.announcement-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border-radius: 8px;
  background: rgba(18, 26, 43, 0.85);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
  transition: all 0.2s ease;
}

.announcement-banner.info {
  border-color: rgba(0, 242, 254, 0.4);
  background: rgba(0, 242, 254, 0.06);
}

.announcement-banner.warning {
  border-color: rgba(240, 136, 62, 0.4);
  background: rgba(240, 136, 62, 0.08);
}

.announcement-banner.critical {
  border-color: rgba(255, 82, 82, 0.5);
  background: rgba(255, 82, 82, 0.1);
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.announcement-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.announcement-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.announcement-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.announcement-msg {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.announcement-dismiss-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.announcement-dismiss-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Google Account Sign-In & Central SSO Login Page
   ========================================================================== */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 10%, #152238 0%, var(--bg-primary) 80%);
  padding: 1.5rem;
}

.login-container {
  width: 100%;
  max-width: 440px;
  margin: auto;
}

.login-card {
  background: rgba(18, 26, 43, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.05);
  backdrop-filter: blur(16px);
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.brand-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
  letter-spacing: 0.5px;
}

.google-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.google-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.google-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.google-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.auth-notice {
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: #bfdbfe;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.4;
}

.notice-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.highlight-email {
  font-family: monospace;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: #60a5fa;
  font-size: 0.85em;
}

.error-toast {
  background: rgba(255, 82, 82, 0.15);
  border: 1px solid rgba(255, 82, 82, 0.4);
  color: #ff6b6b;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-align: center;
}

/* 1-Tap Google Account Chooser Card */
.google-account-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.15rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.2s ease;
}

.google-account-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(66, 133, 244, 0.4);
}

.google-account-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.google-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.google-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.google-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-chip {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(52, 168, 83, 0.2);
  color: #4ade80;
  border: 1px solid rgba(52, 168, 83, 0.4);
}

.google-email {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
}

.google-continue-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.google-continue-btn:hover {
  background: #f8fafd;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
  transform: translateY(-1px);
}

.google-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.google-divider::before,
.google-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.google-divider span {
  padding: 0 0.75rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(10, 14, 23, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.submit-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.google-custom-btn {
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.3);
}

.google-custom-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(66, 133, 244, 0.45);
}

/* Legacy & MFA Collapsible Accordion */
.legacy-accordion {
  margin-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.legacy-accordion summary {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.legacy-accordion summary:hover {
  color: var(--text-main);
}

.legacy-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.legacy-submit-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.legacy-submit-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-cyan);
}

.gsi-target-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ==============================================================================
   Unified Global Command Palette (Cmd+K / Ctrl+K)
   ============================================================================== */

.cmd-palette-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(30, 41, 59, 0.7);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.cmd-palette-trigger:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-purple);
  color: var(--text-main);
  box-shadow: 0 0 12px rgba(99, 133, 255, 0.25);
}

.kbd-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  font-size: 0.72rem;
  font-family: monospace;
  font-weight: 700;
  line-height: 1;
}

.cmd-palette-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 23, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  padding-left: 1rem;
  padding-right: 1rem;
  animation: fadeIn 0.15s ease-out;
}

.cmd-palette-modal {
  width: 100%;
  max-width: 620px;
  background: #0f172a;
  border: 1px solid rgba(99, 133, 255, 0.35);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(79, 172, 254, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: scaleUp 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.96) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cmd-palette-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.95);
}

.cmd-search-icon {
  font-size: 1.25rem;
  opacity: 0.8;
}

.cmd-palette-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 1.05rem;
  font-family: var(--font-family);
}

.cmd-palette-input::placeholder {
  color: #64748b;
}

.cmd-kbd-esc {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-family: monospace;
}

.cmd-palette-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cmd-category-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 0.6rem 0.75rem 0.3rem 0.75rem;
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
  border: 1px solid transparent;
}

.cmd-item:hover, .cmd-item.selected {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(99, 133, 255, 0.4);
}

.cmd-item-icon {
  font-size: 1.25rem;
  width: 1.8rem;
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  flex-shrink: 0;
}

.cmd-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cmd-item-title {
  font-size: 0.925rem;
  font-weight: 600;
  color: #f1f5f9;
}

.cmd-item.selected .cmd-item-title {
  color: #60a5fa;
}

.cmd-item-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmd-item-shortcut {
  font-size: 0.7rem;
  font-family: monospace;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.cmd-palette-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

.cmd-palette-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: #64748b;
}

.cmd-palette-footer kbd {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  padding: 0.1rem 0.3rem;
  font-family: monospace;
  font-size: 0.68rem;
  margin: 0 0.15rem;
}

.cmd-palette-fab {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  color: #0f172a;
  border: none;
  font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.4);
  cursor: pointer;
  z-index: 999;
}

@media (max-width: 768px) {
  .cmd-palette-fab {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cmd-palette-trigger .btn-label {
    display: none;
  }
}

/* Setup Advisory Card for Unconfigured OAuth Client */
.setup-advisory-card {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  margin: 1.25rem 0;
  text-align: left;
}

.advisory-badge-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.advisory-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.advisory-status {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: monospace;
}

.advisory-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fef3c7;
  margin-bottom: 0.4rem;
}

.advisory-desc {
  font-size: 0.8rem;
  color: #d1d5db;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.advisory-desc code {
  font-family: monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  color: #fb7185;
}

.advisory-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.advisory-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8rem;
}

.advisory-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.advisory-step-title {
  font-weight: 600;
  color: #f3f4f6;
  margin-bottom: 0.2rem;
}

.advisory-step-sub {
  color: #9ca3af;
  font-size: 0.75rem;
}

.advisory-gcp-link {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-family: monospace;
  color: var(--accent-cyan);
  text-decoration: underline;
  word-break: break-all;
}

.advisory-gcp-link:hover {
  color: #38bdf8;
}

.code-box-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  margin-top: 0.25rem;
}

.code-box-row code {
  font-family: monospace;
  font-size: 0.72rem;
  color: #38bdf8;
  word-break: break-all;
}

.btn-copy-code {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-size: 0.68rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-copy-code:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

.advisory-footer-hint {
  font-size: 0.72rem;
  color: #9ca3af;
  line-height: 1.4;
  border-top: 1px dashed rgba(245, 158, 11, 0.3);
  padding-top: 0.65rem;
}

.advisory-footer-hint code {
  font-family: monospace;
  color: #fbbf24;
}

/* PWA Install Banner */
.pwa-install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(79, 172, 254, 0.1));
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease;
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pwa-banner-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn-install-pwa {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #0a0e17;
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.3);
}

.btn-install-pwa:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 242, 254, 0.4);
}

.btn-dismiss-pwa {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-dismiss-pwa:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.3);
}



