html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* PLAN-1082 BUG-0063: body-level density classes for all pages (not just list views) */
body.cesivi-density-compact { --cesivi-spacing-unit: 0.75rem; }
body.cesivi-density-spacious { --cesivi-spacing-unit: 1.25rem; }
body.cesivi-density-compact .ms-webpart-zone { padding: 4px; }
body.cesivi-density-spacious .ms-webpart-zone { padding: 16px; }
body.cesivi-density-compact .ms-webpart-titleText,
body.cesivi-density-compact .ms-rtestate-field { font-size: 13px; }
body.cesivi-density-spacious .ms-webpart-titleText,
body.cesivi-density-spacious .ms-rtestate-field { font-size: 15px; }

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Phase 80: Searchable picker selects */
.spm-picker-search-wrapper {
    position: relative;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.spm-picker-search-input {
    flex: 1;
    font-size: 13px;
    padding: 3px 8px;
    height: 30px;
}
.spm-picker-search-clear {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 16px;
    line-height: 1;
    padding: 0 4px;
    flex-shrink: 0;
}
.spm-picker-search-clear:hover { color: #333; }

/* ── Phase 82: Toast notification system ──────────────────────────────── */
#sp-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.sp-toast {
    pointer-events: all;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 14px;
    min-width: 240px;
    max-width: 380px;
    background: white;
    border-left: 4px solid #0072c6;
    color: #333;
    animation: sp-toast-in 0.2s ease;
}
.sp-toast.success { border-left-color: #107c10; }
.sp-toast.error   { border-left-color: #d13438; }
.sp-toast.warning { border-left-color: #c7a500; }
.sp-toast.info    { border-left-color: #0072c6; }
.sp-toast-icon {
    flex-shrink: 0;
    font-size: 16px;
    margin-top: 1px;
}
.sp-toast.success .sp-toast-icon { color: #107c10; }
.sp-toast.error   .sp-toast-icon { color: #d13438; }
.sp-toast.warning .sp-toast-icon { color: #c7a500; }
.sp-toast.info    .sp-toast-icon { color: #0072c6; }
.sp-toast-body { flex: 1; }
.sp-toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    margin-left: 4px;
    flex-shrink: 0;
}
.sp-toast-close:hover { color: #333; }
@keyframes sp-toast-in {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Phase 83: Unsaved changes indicator ─────────────────────────────── */
.sp-unsaved-indicator {
    font-size: 12px;
    font-weight: 500;
}

/* ── BUG-1443: FollowedContent page styles ───────────────────────────── */
.fc-container { max-width: 860px; margin: 0 auto; padding: 16px 0; }

.fc-tab-bar { display: flex; gap: 4px; border-bottom: 2px solid #e0e0e0; margin-bottom: 16px; }
/* specificity bump: .fc-tab-bar .fc-tab (0,2,0) beats tokens.css body[…] button (0,1,1) */
.fc-tab-bar .fc-tab {
    background: none; border: none; padding: 8px 16px; font-size: 14px; font-weight: 500;
    color: #555; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
    display: inline-flex; align-items: center; gap: 6px;
    transition: color .15s, border-color .15s;
}
.fc-tab-bar .fc-tab:hover { color: var(--accent, #0078d4); }
.fc-tab-bar .fc-tab.fc-active { color: var(--accent, #0078d4); border-bottom-color: var(--accent, #0078d4); }

.fc-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--accent-soft, #deecf9); color: var(--accent, #0078d4);
    border-radius: 9px; font-size: 11px; font-weight: 600;
}
.fc-tab-bar .fc-tab.fc-active .fc-badge { background: var(--accent, #0078d4); color: #fff; }

.fc-loading, .fc-error, .fc-empty {
    padding: 24px 0; text-align: center; color: #666; font-size: 14px;
}
.fc-error { color: #a4262c; }
.fc-empty-glyph { font-size: 36px; opacity: .4; display: block; margin-bottom: 8px; }

.fc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.fc-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 4px;
    transition: background .12s;
}
.fc-item:hover { background: var(--accent-soft, #deecf9); }

.fc-item-icon {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 4px;
    background: #f3f2f1; display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--accent, #0078d4);
}
.fc-item-icon.fc-person-photo { border-radius: 50%; overflow: hidden; }
.fc-item-icon.fc-person-photo img { width: 100%; height: 100%; object-fit: cover; }
.fc-person-initials {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: var(--accent, #0078d4); color: #fff; font-weight: 700; font-size: 15px;
    border-radius: 50%;
}

.fc-item-info { flex: 1; min-width: 0; }
.fc-item-name { font-size: 14px; font-weight: 600; color: var(--accent, #0078d4); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-item-name:hover { text-decoration: underline; }
.fc-item-uri, .fc-item-title { font-size: 12px; color: #666; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-item-date { font-size: 12px; color: #999; flex-shrink: 0; }

.fc-unfollow-btn {
    flex-shrink: 0; padding: 3px 10px; font-size: 12px; border: 1px solid #ccc;
    border-radius: 3px; background: #fff; cursor: pointer; color: #555;
    opacity: 0; transition: opacity .15s;
}
.fc-item:hover .fc-unfollow-btn { opacity: 1; }
.fc-unfollow-btn:hover { background: #fde7e9; border-color: #a4262c; color: #a4262c; }