/**
 * Field / jobsite photo app demo skin — loosely inspired by common
 * construction photo-app patterns (teal accent, cards, bottom nav).
 * Not affiliated with any third-party product.
 */

:root {
  --fc-bg: #f4f6f5;
  --fc-surface: #ffffff;
  --fc-text: #1a1d1c;
  --fc-text-muted: #5c6562;
  --fc-border: #e2e8e5;
  --fc-teal: #00a884;
  --fc-teal-dark: #008f6f;
  --fc-teal-soft: rgba(0, 168, 132, 0.12);
  --fc-danger: #e53935;
  --fc-nav-h: 56px;
  --fc-header-h: 52px;
  --fc-radius: 12px;
  --fc-radius-sm: 8px;
  --fc-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --fc-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body.fieldtracker-demo {
  margin: 0;
  min-height: 100vh;
  font-family: var(--fc-font);
  background: var(--fc-bg);
  color: var(--fc-text);
  padding-bottom: calc(var(--fc-nav-h) + env(safe-area-inset-bottom, 0));
}

/* Demo banner */
.fc-demo-banner {
  background: #fff8e6;
  color: #7a5a00;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-bottom: 1px solid #f0e0b8;
}

/* Header */
.fc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--fc-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: var(--fc-surface);
  border-bottom: 1px solid var(--fc-border);
  box-shadow: var(--fc-shadow);
}

.fc-header__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fc-header__actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.fc-icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--fc-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.fc-icon-btn:active {
  background: var(--fc-teal-soft);
  color: var(--fc-teal-dark);
}

/* Main scroll area */
.fc-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 14px 20px;
}

/* Search strip (projects) */
.fc-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 10px 14px;
  margin-bottom: 16px;
  box-shadow: var(--fc-shadow);
}

.fc-search i {
  color: var(--fc-text-muted);
}

.fc-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  background: transparent;
  color: var(--fc-text);
}

.fc-search input::placeholder {
  color: var(--fc-text-muted);
}

/* Section label */
.fc-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fc-text-muted);
  margin: 0 0 10px 4px;
}

/* Project cards */
.fc-project-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fc-project-card {
  display: flex;
  align-items: stretch;
  gap: 12px;
  background: var(--fc-surface);
  border-radius: var(--fc-radius);
  border: 1px solid var(--fc-border);
  padding: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--fc-shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.fc-project-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fc-project-card:active {
  transform: scale(0.99);
}

.fc-project-card__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--fc-radius-sm);
  object-fit: cover;
  background: linear-gradient(135deg, #d0ddd8 0%, #b8c9c2 100%);
  flex-shrink: 0;
}

.fc-project-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fc-project-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 4px;
  line-height: 1.25;
}

.fc-project-card__addr {
  font-size: 0.8rem;
  color: var(--fc-text-muted);
  margin: 0;
  line-height: 1.3;
}

.fc-project-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--fc-text-muted);
}

.fc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--fc-teal-soft);
  color: var(--fc-teal-dark);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Project detail — photo grid */
.fc-job-bar {
  background: var(--fc-surface);
  border-radius: var(--fc-radius);
  border: 1px solid var(--fc-border);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--fc-shadow);
}

.fc-job-bar h1 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
}

.fc-job-bar p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--fc-text-muted);
}

.fc-job-bar__geo {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px solid var(--fc-border);
  font-size: 0.78rem !important;
  line-height: 1.4;
  color: var(--fc-text-muted) !important;
}

.fc-job-bar__geo i {
  color: var(--fc-teal);
  margin-right: 4px;
}

.fc-example-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 420px) {
  .fc-example-links {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.fc-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

@media (min-width: 480px) {
  .fc-photo-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
}

.fc-photo-tile {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(145deg, #dfe8e4, #c5d1cc);
  position: relative;
}

.fc-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fc-photo-tile__tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.fc-photo-tile--add {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--fc-border);
  background: var(--fc-surface);
  color: var(--fc-teal);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Login */
.fc-login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #e8f5f1 0%, var(--fc-bg) 45%, var(--fc-bg) 100%);
  padding: 24px 20px env(safe-area-inset-bottom, 20px);
}

.fc-login-brand {
  text-align: center;
  margin: 32px 0 28px;
}

.fc-login-brand__logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--fc-teal);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0, 168, 132, 0.35);
}

.fc-login-brand h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.fc-login-brand p {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--fc-text-muted);
}

.fc-login-card {
  background: var(--fc-surface);
  border-radius: var(--fc-radius);
  border: 1px solid var(--fc-border);
  padding: 22px;
  box-shadow: var(--fc-shadow);
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.fc-field {
  margin-bottom: 16px;
}

.fc-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fc-text-muted);
  margin-bottom: 6px;
}

.fc-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-sm);
  font-size: 1rem;
  outline: none;
}

.fc-field input:focus {
  border-color: var(--fc-teal);
  box-shadow: 0 0 0 3px var(--fc-teal-soft);
}

.fc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: var(--fc-radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.fc-btn--primary {
  background: var(--fc-teal);
  color: #fff;
}

.fc-btn--primary:hover {
  background: var(--fc-teal-dark);
}

.fc-btn--ghost {
  background: transparent;
  color: var(--fc-teal-dark);
  border: 2px solid var(--fc-teal);
  margin-top: 12px;
}

.fc-login-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--fc-text-muted);
  margin-top: 18px;
  line-height: 1.45;
}

.fc-login-hint a {
  color: var(--fc-teal-dark);
  font-weight: 600;
}

/* Bottom nav */
.fc-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  height: var(--fc-nav-h);
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: var(--fc-surface);
  border-top: 1px solid var(--fc-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding-top: 6px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

.fc-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--fc-text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 4px 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.fc-nav-item i {
  font-size: 1.15rem;
}

.fc-nav-item--active {
  color: var(--fc-teal);
}

.fc-nav-item--fab {
  position: relative;
  top: -18px;
}

.fc-nav-fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--fc-teal);
  color: #fff;
  border: 4px solid var(--fc-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 14px rgba(0, 168, 132, 0.45);
  text-decoration: none;
}

/* Placeholder pages */
.fc-placeholder {
  text-align: center;
  padding: 48px 20px;
  color: var(--fc-text-muted);
}

.fc-placeholder i {
  font-size: 2.5rem;
  color: var(--fc-teal);
  margin-bottom: 12px;
  opacity: 0.6;
}

/* Checklists */
.fc-flash {
  background: var(--fc-teal-soft);
  border: 1px solid var(--fc-teal);
  color: var(--fc-teal-dark);
  padding: 10px 14px;
  border-radius: var(--fc-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.fc-check-empty {
  background: var(--fc-surface);
  border: 1px dashed var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 24px;
  text-align: center;
  color: var(--fc-text-muted);
}

.fc-check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fc-check-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 10px;
}

.fc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--fc-text-muted);
  cursor: pointer;
  user-select: none;
}

.fc-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.fc-toggle__ui {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #cfd8dc;
  position: relative;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.fc-toggle__ui::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease;
}

.fc-toggle input:checked + .fc-toggle__ui {
  background: var(--fc-teal);
}

.fc-toggle input:checked + .fc-toggle__ui::after {
  transform: translateX(16px);
}

.fc-check-card__thumb {
  margin: 0 0 10px;
  border-radius: 8px;
  overflow: hidden;
  max-height: 140px;
  border: 1px solid var(--fc-border);
}

.fc-check-card__thumb img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.fc-check-card {
  display: block;
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--fc-shadow);
}

.fc-check-card:active {
  transform: scale(0.995);
}

.fc-check-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.fc-check-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.fc-check-card__project {
  margin: 8px 0 6px;
  font-size: 0.8rem;
  color: var(--fc-text-muted);
}

.fc-check-card__preview {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--fc-text);
  line-height: 1.35;
}

.fc-check-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--fc-text-muted);
}

.fc-status {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.fc-status--open {
  background: #e3f2fd;
  color: #1565c0;
}

.fc-status--in_progress {
  background: #fff8e1;
  color: #f57f17;
}

.fc-status--done {
  background: #e8f5e9;
  color: #2e7d32;
}

.fc-form-card {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--fc-shadow);
}

.fc-form .fc-field select,
.fc-form .fc-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-sm);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  background: var(--fc-surface);
}

.fc-form .fc-field textarea {
  resize: vertical;
  min-height: 100px;
}

.fc-form .fc-field select:focus,
.fc-form .fc-field textarea:focus {
  border-color: var(--fc-teal);
  box-shadow: 0 0 0 3px var(--fc-teal-soft);
}

.fc-muted {
  color: var(--fc-text-muted);
}

.fc-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.fc-btn--secondary {
  background: var(--fc-surface);
  color: var(--fc-teal-dark);
  border: 2px solid var(--fc-border);
  width: auto;
  flex: 1;
  min-width: 140px;
  text-decoration: none;
}

.fc-btn--secondary:hover {
  border-color: var(--fc-teal);
  background: var(--fc-teal-soft);
}

.fc-photo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fc-photo-strip__item {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: var(--fc-radius-sm);
  overflow: hidden;
  border: 1px solid var(--fc-border);
}

.fc-photo-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fc-photo-strip__cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 0.6rem;
  padding: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.fc-comment-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.fc-comment-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--fc-border);
}

.fc-comment-list li:last-child {
  border-bottom: none;
}

.fc-comment-body {
  margin: 0 0 6px;
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.fc-comment-meta {
  font-size: 0.72rem;
  color: var(--fc-text-muted);
}

.fc-comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
}

.fc-task-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fc-task-lines li {
  padding: 10px 0;
  border-bottom: 1px solid var(--fc-border);
}

.fc-task-lines li:last-child {
  border-bottom: none;
}

.fc-check-toggle {
  border: none;
  background: none;
  padding: 0;
  color: var(--fc-teal);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.fc-check-toggle.is-done {
  color: var(--fc-teal-dark);
}

.fc-task-text {
  font-size: 0.9rem;
  flex: 1;
}

.fc-task-text.is-done {
  text-decoration: line-through;
  color: var(--fc-text-muted);
}

/* Google dev notes callout */
.fc-google-notes {
  margin-top: 28px;
  padding: 14px 16px;
  background: #f8f9fa;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  border-left: 4px solid #4285f4;
}

.fc-google-notes__title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fc-google-notes__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  color: var(--fc-text);
  line-height: 1.45;
}

.fc-google-notes__list li {
  margin-bottom: 6px;
}

.fc-google-notes__hint {
  margin: 12px 0 0;
  font-size: 0.72rem;
  color: var(--fc-text-muted);
}

.fc-google-notes__hint code {
  font-size: 0.65rem;
  background: #eee;
  padding: 2px 4px;
  border-radius: 4px;
}

/* ——— Manager project feed (desktop-style) ——— */
.fc-mgr-body.fieldtracker-demo {
  padding-bottom: 0;
}

.fc-mgr {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 32px);
}

@media (max-width: 900px) {
  .fc-mgr {
    grid-template-columns: 1fr;
  }
  .fc-mgr-sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .fc-mgr-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding-bottom: 12px;
  }
  .fc-mgr-nav__link {
    flex: 0 0 auto;
    font-size: 0.75rem;
  }
  .fc-mgr-sidebar__starred,
  .fc-mgr-sidebar__footer {
    display: none;
  }
}

.fc-mgr-sidebar {
  background: #1a2b3d;
  color: rgba(255, 255, 255, 0.88);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.fc-mgr-sidebar__search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.fc-mgr-sidebar__account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
}

.fc-mgr-sidebar__avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #00a884;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.fc-mgr-sidebar__acct-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.fc-mgr-sidebar__acct-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.fc-mgr-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fc-mgr-nav__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  margin: 12px 0 6px 10px;
}

.fc-mgr-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.fc-mgr-nav__link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.fc-mgr-nav__link.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.fc-mgr-nav__link--muted {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}

.fc-mgr-sidebar__starred {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fc-mgr-starred__item {
  display: block;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-radius: 6px;
}

.fc-mgr-starred__item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.fc-mgr-sidebar__footer {
  margin-top: auto;
  padding-top: 16px;
}

.fc-mgr-sidebar__exit {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fc-mgr-sidebar__exit:hover {
  background: rgba(255, 255, 255, 0.08);
}

.fc-mgr-main {
  background: #f4f7f9;
  padding: 20px 24px 40px;
  overflow-x: auto;
}

.fc-mgr-toolbar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.fc-mgr-toolbar__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1a1d1c;
}

.fc-mgr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}

.fc-mgr-btn--primary {
  background: #2f6fed;
  color: #fff;
}

.fc-mgr-btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.fc-mgr-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.fc-mgr-find {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #dde4ea;
  border-radius: 10px;
  padding: 0 14px;
  height: 42px;
  color: #5c6562;
}

.fc-mgr-find__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.9rem;
  background: transparent;
}

.fc-mgr-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fc-mgr-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #dde4ea;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5c6562;
  cursor: pointer;
  font-family: inherit;
}

.fc-mgr-pill:hover {
  border-color: #2f6fed;
  color: #2f6fed;
}

.fc-mgr-pill.is-active {
  border-color: #1a1d1c;
  color: #1a1d1c;
  background: #fff;
}

.fc-mgr-toolbar__icons {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.fc-mgr-icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #dde4ea;
  border-radius: 8px;
  background: #fff;
  color: #5c6562;
  cursor: pointer;
}

.fc-mgr-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fc-mgr-card {
  display: grid;
  grid-template-columns: 120px 1fr minmax(200px, 340px);
  gap: 18px;
  align-items: stretch;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8e5;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.15s ease;
}

.fc-mgr-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1100px) {
  .fc-mgr-card {
    grid-template-columns: 100px 1fr;
  }
  .fc-mgr-card__gallery {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

.fc-mgr-card__hero img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.fc-mgr-card__hero-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  background: #e8ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa5ad;
  font-size: 2rem;
}

.fc-mgr-card__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.fc-mgr-card__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fc-mgr-card__star {
  color: #f5a623;
  font-size: 0.9rem;
}

.fc-mgr-card__addr {
  margin: 6px 0 4px;
  font-size: 0.88rem;
  color: #5c6562;
}

.fc-mgr-card__updated {
  margin: 0 0 10px;
  font-size: 0.75rem;
  color: #8a9399;
}

.fc-mgr-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.fc-mgr-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}

.fc-mgr-tag--green {
  background: #e8f5e9;
  color: #2e7d32;
}

.fc-mgr-tag--purple {
  background: #f3e5f5;
  color: #7b1fa2;
}

.fc-mgr-tag--blue {
  background: #e3f2fd;
  color: #1565c0;
}

.fc-mgr-tag--orange {
  background: #fff3e0;
  color: #e65100;
}

.fc-mgr-tag--yellow {
  background: #fffde7;
  color: #f57f17;
}

.fc-mgr-tag--slate {
  background: #eceff1;
  color: #455a64;
}

.fc-mgr-card__metrics {
  font-size: 0.8rem;
  color: #5c6562;
  margin-bottom: 8px;
}

.fc-mgr-card__metrics strong {
  color: #1a1d1c;
}

.fc-mgr-card__dot {
  margin: 0 6px;
  opacity: 0.5;
}

.fc-mgr-card__team {
  display: flex;
  gap: 6px;
}

.fc-mgr-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #00a884;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fc-mgr-card__gallery {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.fc-mgr-card__thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.fc-mgr-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fc-mgr-card__gallery-empty {
  font-size: 0.8rem;
  color: #8a9399;
  text-align: right;
  line-height: 1.4;
  padding: 12px;
  background: #f4f7f9;
  border-radius: 8px;
  border: 1px dashed #dde4ea;
}

@media (max-width: 1100px) {
  .fc-mgr-card__gallery-empty {
    text-align: left;
  }
}

/* ——— Company dashboard ——— */
.fc-cdash {
  max-width: 1200px;
}

.fc-cdash__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.fc-cdash__title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1a1d1c;
}

.fc-cdash__range {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fc-cdash__range-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #5c6562;
}

.fc-cdash__select {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #dde4ea;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1d1c;
  min-width: 140px;
}

.fc-cdash__select--sm {
  min-width: 120px;
  padding: 6px 12px;
  font-size: 0.82rem;
}

.fc-cdash__alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #fff8e6;
  border: 1px solid #f0e0b8;
  border-radius: 10px;
  color: #7a5a00;
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 24px;
}

.fc-cdash__alert i {
  margin-top: 2px;
  flex-shrink: 0;
}

.fc-cdash__section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8a9399;
  margin: 0 0 12px;
}

.fc-cdash__cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

@media (max-width: 1100px) {
  .fc-cdash__cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .fc-cdash__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fc-cdash-card {
  background: #fff;
  border: 1px solid #e2e8e5;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.fc-cdash-card__icon {
  color: #2f6fed;
  font-size: 1rem;
  margin-bottom: 8px;
  opacity: 0.85;
}

.fc-cdash-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8a9399;
  margin-bottom: 6px;
}

.fc-cdash-card__value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #1a1d1c;
  line-height: 1.1;
}

.fc-cdash-card__sub {
  font-size: 0.75rem;
  color: #5c6562;
  margin-top: 6px;
}

.fc-cdash-users__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.fc-cdash-users__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.fc-cdash-find {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #dde4ea;
  border-radius: 8px;
  padding: 0 12px;
  height: 38px;
  min-width: 200px;
  color: #8a9399;
}

.fc-cdash-find__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.88rem;
  min-width: 0;
}

.fc-cdash-table-wrap {
  background: #fff;
  border: 1px solid #e2e8e5;
  border-radius: 12px;
  overflow: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.fc-cdash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.fc-cdash-table th {
  text-align: left;
  padding: 12px 14px;
  background: #f4f7f9;
  color: #5c6562;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e2e8e5;
  white-space: nowrap;
}

.fc-cdash-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f3f5;
  vertical-align: middle;
}

.fc-cdash-table tbody tr:hover {
  background: #fafbfc;
}

.fc-cdash-table__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.fc-cdash-table__muted {
  color: #5c6562;
  white-space: nowrap;
}

.fc-cdash-usercell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fc-cdash-usercell__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #00a884;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fc-cdash-usercell__name {
  font-weight: 700;
  color: #1a1d1c;
}

.fc-cdash-role {
  font-size: 0.82rem;
  color: #5c6562;
}

