
/* Team Hub authentication screen */
.frg-team-hub-login-page {
  min-height: calc(100vh - 110px);
  padding: clamp(48px, 8vw, 96px) 20px;
  background:
    radial-gradient(circle at 15% 10%, rgba(185,154,95,.12), transparent 30%),
    linear-gradient(180deg, var(--frg-paper, #fffdf9), var(--frg-stone, #f4f1ec));
}

.frg-team-hub-login-wrap {
  width: min(100%, 500px);
  margin: 0 auto;
}

.frg-team-hub-login-card {
  padding: clamp(30px, 6vw, 48px);
  border: 1px solid var(--frg-line, #e6e1da);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(37,38,42,.11);
}

.frg-team-hub-login-brand {
  margin-bottom: 28px;
  text-align: center;
}

.frg-team-hub-login-brand h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.05;
}

.frg-team-hub-login-brand p:last-child {
  margin: 14px auto 0;
  color: var(--frg-muted, #74757a);
  line-height: 1.65;
}

.frg-team-hub-login-form {
  display: grid;
  gap: 18px;
}

.frg-team-hub-login-form label span {
  display: block;
  margin-bottom: 7px;
  color: var(--frg-ink, #25262a);
  font-size: .82rem;
  font-weight: 800;
}

.frg-team-hub-login-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid #d8d3cd;
  border-radius: 13px;
  background: #fff;
  color: var(--frg-ink, #25262a);
  font: inherit;
  outline: none;
}

.frg-team-hub-login-form input:focus {
  border-color: var(--frg-primary, #6f4e37);
  box-shadow: 0 0 0 4px rgba(111,78,55,.10);
}

.frg-team-hub-login-form button {
  min-height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius: 13px;
  background: var(--frg-primary, #6f4e37);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.frg-team-hub-login-form button:disabled {
  opacity: .65;
  cursor: wait;
}

.frg-team-hub-login-error {
  min-height: 20px;
  color: #9b2c2c;
  font-size: .86rem;
  font-weight: 700;
  text-align: center;
}

.frg-team-hub-login-security {
  margin: 20px 0 0;
  color: var(--frg-muted, #74757a);
  font-size: .76rem;
  text-align: center;
}

.frg-hub-signout-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.55);
  font: inherit;
  font-size: .72rem;
  cursor: pointer;
}

/* Existing Team Hub app styles */
.frg-team-hub {
  --hub-sidebar: #273027;
  --hub-canvas: #f4f1ec;
  --hub-card: #fffdf9;
  --hub-border: #e6e1da;
  --hub-text: #25262a;
  --hub-muted: #74757a;
  --hub-olive: var(--frg-olive, #5f6d4a);
  --hub-brown: var(--frg-primary, #6f4e37);
  --hub-gold: var(--frg-gold, #b99a5f);
  --hub-accent: var(--hub-gold);
  --hub-ink: var(--hub-text);
  --hub-soft: #f4f1ec;
  min-height: calc(100vh - 110px);
  background: var(--hub-canvas);
  color: var(--hub-text);
}

.frg-team-hub button,
.frg-team-hub input { font: inherit; }

.frg-hub-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: calc(100vh - 110px);
}

.frg-hub-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 26px 18px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 5%, rgba(185,154,95,.16), transparent 34%),
    linear-gradient(180deg, #273027, #202720);
}

.frg-hub-sidebar-heading { padding: 4px 12px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.frg-hub-kicker { display:block; margin-bottom:3px; color:rgba(255,255,255,.6); font-size:.69rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.frg-hub-sidebar-heading strong { font-family:"Playfair Display",Georgia,serif; font-size:1.55rem; }
.frg-hub-nav { flex:1; padding:19px 0 24px; }
.frg-hub-nav-label { margin:20px 12px 7px; color:rgba(255,255,255,.42); font-size:.65rem; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.frg-hub-nav a { display:flex; align-items:center; gap:11px; min-height:42px; margin:2px 0; padding:8px 12px; border-radius:12px; color:rgba(255,255,255,.78); font-size:.91rem; font-weight:600; text-decoration:none; }
.frg-hub-nav a:hover { color:#fff; background:rgba(255,255,255,.07); }
.frg-hub-nav a.is-active { color:#fff; background:rgba(185,154,95,.2); box-shadow:inset 3px 0 0 var(--hub-gold); }
.frg-hub-nav-icon { display:inline-grid; width:25px; height:25px; place-items:center; border-radius:8px; background:rgba(255,255,255,.07); }
.frg-hub-sidebar-footer { display:flex; align-items:center; gap:10px; padding:15px 11px 4px; border-top:1px solid rgba(255,255,255,.1); }
.frg-hub-sidebar-footer strong { display:block; color:#fff; font-size:.83rem; }
.frg-hub-avatar { display:inline-grid; flex:0 0 auto; width:38px; height:38px; place-items:center; border:1px solid rgba(185,154,95,.45); border-radius:50%; background:rgba(185,154,95,.18); color:#fff; font-weight:800; }
.frg-hub-avatar-small { width:34px; height:34px; background:#485638; }
.frg-hub-workspace { min-width:0; }
.frg-hub-appbar { position:sticky; top:0; z-index:20; display:flex; align-items:center; min-height:72px; padding:11px clamp(20px,3vw,40px); border-bottom:1px solid var(--hub-border); background:rgba(255,253,249,.94); backdrop-filter:blur(14px); }
.frg-hub-appbar-label { display:block; color:var(--hub-muted); font-size:.67rem; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
.frg-hub-appbar-actions { display:flex; align-items:center; gap:10px; margin-left:auto; }
.frg-hub-search-button { display:flex; align-items:center; gap:34px; min-width:205px; padding:9px 11px 9px 14px; border:1px solid var(--hub-border); border-radius:11px; background:#fff; color:var(--hub-muted); cursor:pointer; }
.frg-hub-search-button kbd { margin-left:auto; }
.frg-hub-menu-button { display:none; width:40px; height:40px; margin-right:12px; padding:10px; border:1px solid var(--hub-border); border-radius:10px; background:#fff; }
.frg-hub-menu-button span { display:block; height:2px; margin:4px 0; background:currentColor; }
.frg-hub-content { padding:clamp(25px,3.4vw,46px); }
.frg-hub-welcome { display:flex; align-items:flex-end; justify-content:space-between; gap:28px; margin-bottom:30px; }
.frg-hub-eyebrow { margin:0 0 6px; color:var(--hub-brown); font-size:.7rem; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }
.frg-hub-welcome h1,.frg-hub-page-heading h1 { margin:0; font-family:"Playfair Display",Georgia,serif; font-size:clamp(2rem,3.1vw,3rem); line-height:1.08; }
.frg-hub-welcome p:last-child,.frg-hub-page-heading p:last-child { color:var(--hub-muted); }
.frg-hub-quick-actions { display:flex; flex-wrap:wrap; gap:9px; }
.frg-hub-quick-actions button,.frg-hub-ava-button { padding:10px 15px; border:1px solid var(--hub-border); border-radius:11px; background:#fff; font-weight:700; cursor:pointer; }
.frg-hub-quick-actions button.is-primary { border-color:var(--hub-brown); background:var(--hub-brown); color:#fff; }
.frg-hub-stat-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:13px; margin-bottom:18px; }
.frg-hub-stat-card,.frg-hub-card { border:1px solid var(--hub-border); background:var(--hub-card); box-shadow:0 10px 32px rgba(37,38,42,.045); }
.frg-hub-stat-card { padding:18px; border-radius:17px; }
.frg-hub-stat-top { display:flex; justify-content:space-between; color:var(--hub-muted); font-size:.73rem; font-weight:700; }
.frg-hub-status-dot { width:7px; height:7px; border-radius:50%; background:#c9c1b8; }
.frg-hub-stat-card strong { display:block; margin:7px 0 1px; font-family:"Playfair Display",Georgia,serif; font-size:1.8rem; }
.frg-hub-stat-card small { color:#9a948d; font-size:.67rem; }
.frg-hub-dashboard-grid { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(300px,.85fr); gap:18px; }
.frg-hub-card { padding:clamp(20px,2.4vw,28px); border-radius:21px; }
.frg-hub-card-large { min-height:320px; }
.frg-hub-card-header { display:flex; justify-content:space-between; gap:20px; padding-bottom:17px; border-bottom:1px solid var(--hub-border); }
.frg-hub-card-header h2,.frg-hub-ava-card h2,.frg-hub-coming-soon h2 { margin:0; font-family:"Playfair Display",Georgia,serif; font-size:1.35rem; }
.frg-hub-text-button { padding:3px 0; border:0; background:transparent; color:var(--hub-brown); font-size:.76rem; font-weight:800; cursor:pointer; }
.frg-hub-empty-state { display:grid; max-width:400px; margin:42px auto 18px; justify-items:center; text-align:center; }
.frg-hub-empty-compact { margin-top:33px; }
.frg-hub-empty-icon { display:grid; width:43px; height:43px; margin-bottom:12px; place-items:center; border-radius:13px; background:#f4f1ec; color:var(--hub-olive); }
.frg-hub-empty-state p { max-width:340px; margin:5px 0 0; color:var(--hub-muted); font-size:.78rem; line-height:1.55; }
.frg-hub-ava-card { color:#fff; background:radial-gradient(circle at 92% 10%, rgba(185,154,95,.33), transparent 32%),linear-gradient(140deg,#394737,#263126); }
.frg-hub-ava-card .frg-hub-eyebrow { color:#d5bd8c; }
.frg-hub-ava-mark { display:inline-grid; margin-bottom:22px; padding:8px 11px; border:1px solid rgba(255,255,255,.17); border-radius:9px; color:#e1cc9f; font-size:.75rem; font-weight:900; }
.frg-hub-ava-card > p:not(.frg-hub-eyebrow) { color:rgba(255,255,255,.68); font-size:.82rem; }
.frg-hub-ava-button { border-color:rgba(255,255,255,.12); background:rgba(255,255,255,.1); color:#fff; }
.frg-hub-page-heading { max-width:780px; margin-bottom:28px; }
.frg-hub-coming-soon { min-height:260px; display:grid; align-content:center; justify-items:center; text-align:center; }
.frg-hub-coming-soon > span { margin-bottom:9px; color:var(--hub-brown); font-size:.7rem; font-weight:900; text-transform:uppercase; }
.frg-hub-coming-soon p { max-width:540px; color:var(--hub-muted); }
.frg-hub-overlay { position:fixed; inset:0; z-index:79; background:rgba(20,24,20,.42); }
.frg-hub-command { position:fixed; inset:0; z-index:100; display:grid; padding:14vh 18px 18px; place-items:start center; background:rgba(25,29,25,.45); backdrop-filter:blur(6px); }
.frg-hub-command[hidden],.frg-hub-overlay[hidden] { display:none!important; }
.frg-hub-command-box { width:min(680px,100%); overflow:hidden; border:1px solid var(--hub-border); border-radius:18px; background:#fff; box-shadow:0 28px 90px rgba(20,24,20,.22); }
.frg-hub-command-input-row { display:flex; align-items:center; gap:12px; padding:15px 17px; border-bottom:1px solid var(--hub-border); }
.frg-hub-command-input-row input { flex:1; border:0; outline:0; font-size:1rem; }
.frg-hub-command-help { padding:19px; color:var(--hub-muted); font-size:.82rem; }
.frg-hub-workspace-tools { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:18px; }
.frg-hub-workspace-tools label { flex:1 1 260px; }
.frg-hub-workspace-tools input,.frg-hub-workspace-tools select {
  width:100%; min-height:42px; padding:9px 12px; border:1px solid var(--hub-border);
  border-radius:10px; background:#fff; color:var(--hub-text);
}
.frg-hub-workspace-tools select { width:auto; }
.frg-hub-workspace-tools button { min-height:42px; padding:9px 14px; border:1px solid var(--hub-border); border-radius:10px; background:#fff; font-weight:800; cursor:pointer; }
.frg-hub-record-list { display:grid; gap:9px; }
.frg-hub-record { display:flex; width:100%; align-items:center; justify-content:space-between; gap:16px; padding:14px 15px; border:1px solid var(--hub-border); border-radius:13px; background:#fff; color:inherit; text-align:left; }
.frg-hub-record strong,.frg-hub-record span,.frg-hub-record small { display:block; }
.frg-hub-record span,.frg-hub-record small { margin-top:3px; color:var(--hub-muted); font-size:.72rem; }
.frg-hub-record-open { cursor:pointer; font:inherit; transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease; }
.frg-hub-record-open:hover { border-color:var(--hub-accent); box-shadow:0 7px 20px rgba(27,47,39,.09); transform:translateY(-1px); }
.frg-hub-record-open:focus-visible { outline:3px solid rgba(183,139,79,.35); outline-offset:2px; }
.frg-hub-record-open .frg-hub-record-open-label { flex:0 0 auto; margin:0; color:var(--hub-accent); font-weight:700; }
.frg-hub-record-detail { position:fixed; inset:0; z-index:10020; display:flex; justify-content:flex-end; background:rgba(13,27,23,.46); padding:18px; }
.frg-hub-record-detail[hidden] { display:none; }
.frg-hub-record-detail-panel { width:min(100%,520px); height:100%; overflow:auto; border-radius:18px; background:#fff; box-shadow:0 24px 70px rgba(0,0,0,.24); padding:24px; }
.frg-hub-detail-back { border:0; border-radius:999px; background:var(--hub-soft); color:var(--hub-ink); padding:10px 14px; cursor:pointer; font-weight:700; }
.frg-hub-detail-back:focus-visible { outline:3px solid rgba(183,139,79,.35); outline-offset:2px; }
.frg-hub-record-detail h2 { margin:24px 0 2px; font-size:clamp(1.55rem,3vw,2.15rem); color:var(--hub-ink); }
.frg-hub-detail-kind { margin:0 0 20px; color:var(--hub-muted); }
.frg-hub-detail-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:0; }
.frg-hub-detail-field { min-width:0; border:1px solid var(--hub-border); border-radius:12px; padding:12px; }
.frg-hub-detail-field dt { color:var(--hub-muted); font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.frg-hub-detail-field dd { overflow-wrap:anywhere; margin:5px 0 0; color:var(--hub-ink); }
.frg-hub-detail-state { padding:36px 4px; }
.frg-hub-detail-state strong { display:block; color:var(--hub-ink); font-size:1.25rem; }
.frg-hub-detail-state p { color:var(--hub-muted); }
.frg-hub-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:16px; }
.frg-hub-pagination span { color:var(--hub-muted); font-size:.8rem; font-weight:700; text-align:center; }
.frg-hub-pagination button { min-width:92px; border:1px solid var(--hub-border); border-radius:10px; background:#fff; color:var(--hub-ink); padding:9px 13px; cursor:pointer; font-weight:700; }
.frg-hub-pagination button:hover:not(:disabled) { border-color:var(--hub-accent); }
.frg-hub-pagination button:focus-visible { outline:3px solid rgba(183,139,79,.35); outline-offset:2px; }
.frg-hub-pagination button:disabled { cursor:not-allowed; opacity:.45; }
@media (max-width:640px) {
  .frg-hub-record-detail { padding:0; align-items:flex-end; }
  .frg-hub-record-detail-panel { width:100%; height:min(88vh,760px); border-radius:18px 18px 0 0; padding:18px; }
  .frg-hub-detail-fields { grid-template-columns:1fr; }
  .frg-hub-record { align-items:flex-start; }
  .frg-hub-pagination { display:grid; grid-template-columns:1fr 1fr; }
  .frg-hub-pagination span { grid-column:1 / -1; grid-row:1; }
}
.frg-hub-search-result { display:block; width:100%; padding:10px 12px; border:0; border-radius:9px; background:transparent; text-align:left; cursor:pointer; }
.frg-hub-search-result:hover { background:#f4f1ec; }
.frg-hub-search-result strong,.frg-hub-search-result span { display:block; }
.frg-hub-search-result span { margin-top:2px; color:var(--hub-muted); font-size:.7rem; }

@media (max-width:1180px) {
  .frg-hub-stat-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:920px) {
  .frg-hub-shell { grid-template-columns:1fr; }
  .frg-hub-sidebar { position:fixed; inset:0 auto 0 0; z-index:90; width:270px; transform:translateX(-102%); transition:transform .22s ease; }
  .frg-team-hub.is-menu-open .frg-hub-sidebar { transform:translateX(0); }
  .frg-hub-menu-button { display:inline-block; }
  .frg-hub-dashboard-grid { grid-template-columns:1fr; }
}
@media (max-width:680px) {
  .frg-hub-content { padding:24px 16px 36px; }
  .frg-hub-appbar { padding-inline:14px; }
  .frg-hub-search-button { min-width:auto; width:38px; height:38px; padding:0; overflow:hidden; color:transparent; }
  .frg-hub-search-button::before { content:"⌕"; color:var(--hub-text); }
  .frg-hub-search-button kbd { display:none; }
  .frg-hub-welcome { align-items:flex-start; flex-direction:column; }
  .frg-hub-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Lead Pipeline */
.frg-hub-pipeline {
  padding-top: 22px;
}

.frg-hub-pipeline-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.frg-hub-pipeline-summary span {
  color: var(--hub-muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.frg-hub-pipeline-summary strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.frg-hub-pipeline-stages {
  display: grid;
  gap: 12px;
}

.frg-hub-pipeline-stage {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--hub-border);
  border-radius: 14px;
  background: #fff;
  color: var(--hub-text);
  text-align: left;
  cursor: pointer;
  transition:
    transform .15s ease,
    border-color .15s ease,
    box-shadow .15s ease;
}

.frg-hub-pipeline-stage:hover {
  transform: translateY(-1px);
  border-color: rgba(111,78,55,.28);
  box-shadow: 0 8px 22px rgba(37,38,42,.06);
}

.frg-hub-pipeline-stage-name {
  font-weight: 800;
}

.frg-hub-pipeline-stage-count {
  min-width: 32px;
  text-align: right;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 800;
}

.frg-hub-pipeline-track {
  grid-column: 1 / -1;
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee9e4;
}

.frg-hub-pipeline-fill {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--hub-brown),
    var(--hub-gold)
  );
}

@media (max-width:680px) {
  .frg-hub-pipeline-stage {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* Recent Website Activity */
.frg-hub-activity { padding-top: 8px; }

.frg-hub-activity-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--hub-border);
}

.frg-hub-activity-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.frg-hub-activity-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: #f4f1ec;
  color: var(--hub-olive);
  font-weight: 900;
}

.frg-hub-activity-copy { min-width: 0; }

.frg-hub-activity-type {
  display: block;
  margin-bottom: 2px;
  color: var(--hub-brown);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.frg-hub-activity-copy strong {
  display: block;
  overflow: hidden;
  color: var(--hub-text);
  font-size: .84rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frg-hub-activity-copy small {
  display: block;
  margin-top: 3px;
  color: var(--hub-muted);
  font-size: .69rem;
  line-height: 1.4;
}

.frg-hub-activity-item.is-clickable {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border-radius: 12px;
  transition:
    background .15s ease,
    transform .15s ease;
}

.frg-hub-activity-item.is-clickable:hover {
  background: rgba(111,78,55,.045);
  transform: translateX(2px);
}

.frg-hub-activity-item.is-clickable:focus-visible {
  outline: 2px solid var(--hub-gold);
  outline-offset: 3px;
}

/* Visitor First Website Activity */
.frg-hub-visitor-group {
  border-bottom: 1px solid var(--hub-border);
}

.frg-hub-visitor-group:last-child {
  border-bottom: 0;
}

.frg-hub-visitor-summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 15px 0;
  border: 0;
  background: transparent;
  color: var(--hub-text);
  text-align: left;
  cursor: pointer;
}

.frg-hub-visitor-summary:hover .frg-hub-visitor-summary-copy strong {
  color: var(--hub-brown);
}

.frg-hub-visitor-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #f4f1ec;
  color: var(--hub-olive);
  font-size: .86rem;
  font-weight: 900;
}

.frg-hub-visitor-summary-copy {
  min-width: 0;
}

.frg-hub-visitor-summary-copy strong {
  display: block;
  overflow: hidden;
  font-size: .84rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .15s ease;
}

.frg-hub-visitor-summary-copy small {
  display: block;
  margin-top: 3px;
  color: var(--hub-muted);
  font-size: .68rem;
  line-height: 1.45;
}

.frg-hub-visitor-chevron {
  color: var(--hub-muted);
  font-size: 1rem;
  transition: transform .18s ease;
}

.frg-hub-visitor-summary[aria-expanded="true"]
.frg-hub-visitor-chevron {
  transform: rotate(180deg);
}

.frg-hub-visitor-details {
  margin: 0 0 14px 50px;
  padding: 4px 0 4px 14px;
  border-left: 2px solid #eee9e4;
}

.frg-hub-visitor-details[hidden] {
  display: none;
}

.frg-hub-visitor-session + .frg-hub-visitor-session {
  margin-top: 14px;
}

.frg-hub-visitor-session-title {
  margin-bottom: 7px;
  color: var(--hub-muted);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.frg-hub-visitor-event {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 7px 8px;
  border-radius: 9px;
  color: inherit;
  text-decoration: none;
}

.frg-hub-visitor-event.is-clickable:hover {
  background: rgba(111,78,55,.045);
}

.frg-hub-visitor-event-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--hub-gold);
}

.frg-hub-visitor-event-copy {
  min-width: 0;
}

.frg-hub-visitor-event-copy > span {
  display: block;
  color: var(--hub-brown);
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.frg-hub-visitor-event-copy strong {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  font-size: .76rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frg-hub-visitor-event-copy small {
  display: block;
  margin-top: 2px;
  color: var(--hub-muted);
  font-size: .64rem;
}

@media (max-width:680px) {
  .frg-hub-visitor-details {
    margin-left: 18px;
  }
}

/* Team Hub Lead Editor */
.frg-hub-lead-editor-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-top:22px;
}

.frg-hub-lead-editor-heading h2 {
  margin:2px 0 0;
}

.frg-hub-lead-editor-status {
  flex:0 0 auto;
  padding:6px 9px;
  border-radius:999px;
  background:var(--hub-soft);
  color:var(--hub-accent);
  font-size:.7rem;
  font-weight:800;
}

.frg-hub-lead-edit-form {
  margin-top:22px;
}

.frg-hub-lead-form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px;
}

.frg-hub-lead-form-grid label {
  display:block;
}

.frg-hub-lead-form-grid label > span {
  display:block;
  margin-bottom:6px;
  color:var(--hub-muted);
  font-size:.72rem;
  font-weight:800;
}

.frg-hub-lead-form-grid input,
.frg-hub-lead-form-grid select {
  width:100%;
  min-height:44px;
  padding:10px 11px;
  border:1px solid var(--hub-border);
  border-radius:10px;
  background:#fff;
  color:var(--hub-ink);
  font:inherit;
}

.frg-hub-lead-form-grid input:focus,
.frg-hub-lead-form-grid select:focus {
  outline:3px solid rgba(183,139,79,.22);
  border-color:var(--hub-accent);
}

.frg-hub-lead-form-wide {
  grid-column:1 / -1;
}

.frg-hub-lead-assignment {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:15px;
  padding:12px 13px;
  border-radius:11px;
  background:var(--hub-soft);
}

.frg-hub-lead-assignment span {
  color:var(--hub-muted);
  font-size:.76rem;
}

.frg-hub-lead-assignment strong {
  color:var(--hub-ink);
  font-size:.8rem;
}

.frg-hub-lead-edit-message {
  min-height:22px;
  margin-top:14px;
  font-size:.8rem;
  font-weight:700;
}

.frg-hub-lead-edit-message.is-success {
  color:#2f6846;
}

.frg-hub-lead-edit-message.is-error {
  color:#a43b3b;
}

.frg-hub-lead-form-actions {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:10px;
  padding-top:16px;
  border-top:1px solid var(--hub-border);
}

.frg-hub-lead-form-actions button {
  min-height:44px;
  padding:10px 16px;
  border-radius:10px;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.frg-hub-lead-form-actions button:first-child {
  border:1px solid var(--hub-border);
  background:#fff;
  color:var(--hub-ink);
}

.frg-hub-lead-form-actions button:last-child {
  border:1px solid var(--hub-accent);
  background:var(--hub-accent);
  color:#fff;
}

.frg-hub-lead-form-actions button:disabled {
  opacity:.6;
  cursor:wait;
}

@media (max-width:640px) {
  .frg-hub-lead-form-grid {
    grid-template-columns:1fr;
  }

  .frg-hub-lead-form-wide {
    grid-column:auto;
  }

  .frg-hub-lead-form-actions {
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .frg-hub-lead-form-actions button {
    width:100%;
  }
}
