/* FacilityJobs Reels tracker — builds on styles.css variables */
.reels-page [hidden] { display: none !important; }
.rt-badge {
  font-size: .8rem; font-weight: 700; color: var(--green-dark);
  background: var(--green-soft); border: 1px solid var(--line);
  padding: .3rem .7rem; border-radius: 999px;
}
.rt-main { padding: 1.5rem 0 3rem; }
.rt-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1rem; }
.rt-head h1 { font-size: clamp(1.4rem, 3.5vw, 2rem); line-height: 1.2; }
.rt-sub { color: var(--muted); font-size: .92rem; }
.rt-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.rt-user { font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.rt-btn {
  border: 0; cursor: pointer; font-weight: 700; color: var(--white); background: var(--green);
  padding: .6rem 1rem; border-radius: 12px;
}
a.rt-btn { display: inline-block; text-decoration: none; text-align: center; line-height: 1.2; }
.rt-btn:hover { background: var(--green-dark); }
.rt-btn--ghost { background: transparent; color: var(--green-dark); border: 1px solid var(--line); }
.rt-btn--ghost:hover { background: var(--paper-2); }
.rt-btn[disabled] { opacity: .6; cursor: wait; }
.rt-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.rt-login { padding: 1.2rem; max-width: 460px; display: grid; gap: .6rem; }
.rt-login__title { margin: 0; font-size: 1.15rem; }
.rt-login__hint { margin: 0; color: var(--muted); font-size: .92rem; }
.rt-gsi { min-height: 44px; }
.rt-err { color: #a1301e; font-size: .9rem; margin: 0; background: #fbeae6; border-radius: 10px; padding: .55rem .75rem; }
.rt-status { color: var(--muted); font-size: .85rem; margin: .4rem 0 1rem; min-height: 1.2em; }
.rt-status.is-warn { color: #8a4b0f; }

.rt-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.rt-tot { padding: 1rem 1.1rem; }
.rt-tot h2 { font-size: 1rem; display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; }
.rt-tot h2 small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.rt-tot--all { background: var(--green); color: var(--white); border-color: var(--green-dark); }
.rt-tot--all h2 small, .rt-tot--all .rt-kv span { color: #d6e8dc; }
.rt-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem .6rem; }
.rt-kv div { display: flex; flex-direction: column; }
.rt-kv b { font-size: 1.15rem; line-height: 1.2; }
.rt-kv span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.rt-reelh { margin: .75rem 0 .2rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.rt-tot--all .rt-reelh { color: #d6e8dc; }
.rt-reelviews { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; max-height: 14rem; overflow: auto; }
.rt-reelviews li { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; font-size: .8rem; padding-top: .2rem; border-top: 1px solid rgba(0,0,0,.06); }
.rt-tot--all .rt-reelviews li { border-top-color: rgba(255,255,255,.22); }
.rt-reelviews span { overflow-wrap: anywhere; text-align: left; }
.rt-reelviews b { font-variant-numeric: tabular-nums; text-align: right; flex: none; }
.rt-reelviews small { display: block; font-weight: 600; font-size: .62rem; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.rt-tot--all .rt-reelviews small { color: #d6e8dc; }
.rt-alert { border-color: #e0b4a4; background: #fdf6f4; grid-column: 1 / -1; }
.rt-alert h2 { color: #8a3b2a; }
.rt-alert p { margin: 0; font-size: .92rem; line-height: 1.45; }
.rt-pills { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .75rem; }
.rt-pills span { background: rgba(255,255,255,.18); padding: .1rem .5rem; border-radius: 999px; }
.rt-tot:not(.rt-tot--all) .rt-pills span { background: var(--paper-2); }

.rt-tablecard { padding: .8rem; overflow-x: auto; }
.rt-filters { display: flex; gap: .4rem; margin-bottom: .6rem; flex-wrap: wrap; }
.rt-filters button {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft);
  padding: .35rem .8rem; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .85rem;
}
.rt-filters button.is-active { background: var(--green); color: var(--white); border-color: var(--green); }
.rt-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rt-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: .5rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rt-table td { padding: .55rem .5rem; border-bottom: 1px solid var(--paper-2); vertical-align: top; }
.rt-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rt-table tr.is-today td { background: #fbf4e6; }
.rt-chip { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; }
.rt-chip--not_sent { background: #ece7dc; color: #5c6d63; }
.rt-chip--awaiting { background: var(--marigold-soft); color: #8a4b0f; }
.rt-chip--approved { background: var(--green-soft); color: var(--green-dark); }
.rt-chip--rejected { background: #f6dcd6; color: #a1301e; }
.rt-chip--scheduled { background: #e5ecf5; color: #2f4f7a; }
.rt-chip--posted { background: var(--green); color: var(--white); }
.rt-chip--failed { background: #a1301e; color: var(--white); }
.rt-link { display: block; font-size: .78rem; margin-top: .2rem; color: var(--green-dark); font-weight: 600; }
.rt-note { display: block; font-size: .75rem; color: var(--muted); margin-top: .2rem; max-width: 22rem; }
.rt-lang { font-weight: 700; }
.rt-empty { text-align: center; color: var(--muted); padding: 1.5rem; }

@media (max-width: 760px) {
  .rt-table thead { display: none; }
  .rt-table, .rt-table tbody, .rt-table tr, .rt-table td { display: block; width: 100%; }
  .rt-table tr { border: 1px solid var(--line); border-radius: 14px; margin-bottom: .6rem; padding: .5rem .7rem; background: var(--white); }
  .rt-table tr.is-today { background: #fbf4e6; }
  .rt-table tr.is-today td { background: transparent; }
  .rt-table td { border: 0; padding: .2rem 0; display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
  .rt-table td::before { content: attr(data-label); color: var(--muted); font-size: .75rem; text-transform: uppercase; text-align: left; flex: none; }
  .rt-table td > div { text-align: right; }
  .rt-table .num { text-align: right; }
  .rt-tablecard { padding: .5rem; background: transparent; border: 0; box-shadow: none; }
  .rt-note { max-width: none; }
}

/* Account tabs (FacilityJobs / Association360) */
.rt-tabs { display: flex; gap: .4rem; margin: 0 0 .4rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.rt-tabs button {
  border: 0; background: transparent; cursor: pointer; font-weight: 700; font-size: .95rem;
  color: var(--muted); padding: .6rem 1rem; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.rt-tabs button:hover { color: var(--green-dark); }
.rt-tabs button.is-active { color: var(--green-dark); border-bottom-color: var(--green); }
.rt-tabs button[data-brand="association360"].is-active { color: #1f3a68; border-bottom-color: #1f3a68; }

/* Association360 account insights */
.rt-insights { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(280px, 2fr); gap: .8rem; margin-bottom: 1rem; }
.rt-ins { padding: 1rem 1.1rem; }
.rt-ins h2 { font-size: 1rem; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .5rem; }
.rt-ins h2 small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.rt-best { margin-top: .8rem; padding: .6rem .75rem; border-radius: 12px; background: #e8eef8; display: flex; flex-direction: column; gap: .1rem; }
.rt-best span { font-size: .72rem; color: #2f4f7a; text-transform: uppercase; letter-spacing: .03em; font-weight: 700; }
.rt-best b { font-size: 1.15rem; color: #1f3a68; }
.rt-best small { color: var(--muted); font-size: .8rem; }
.rt-summary { margin: 0 0 .5rem; white-space: pre-line; font-size: .92rem; line-height: 1.5; }
.rt-muted { color: var(--muted); }
.rt-learn { margin: 0; padding-left: 1.1rem; font-size: .9rem; display: grid; gap: .25rem; }
.rt-tags { margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.rt-tags span { font-size: .75rem; background: var(--paper-2); padding: .1rem .5rem; border-radius: 999px; }
.rt-title { font-weight: 600; max-width: 22rem; }

@media (max-width: 760px) {
  .rt-insights { grid-template-columns: 1fr; }
  .rt-title { max-width: none; }
  .rt-tabs button { flex: 1; padding: .6rem .5rem; }
}

/* Association360: Instagram + Facebook insights */
.rt-insights:has(.rt-goal) { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.rt-goal { border-color: #1f3a68; background: #f1f5fc; }
.rt-goal h2 { color: #1f3a68; }
.rt-goal .rt-kv b { color: #1f3a68; }
.rt-ins--summary { grid-column: 1 / -1; }
.rt-ins--fb h2 a { color: #1b4fa0; }
.rt-table th small { display: block; font-size: .65rem; text-transform: none; letter-spacing: 0; font-weight: 500; }
.rt-mini { display: grid; grid-template-columns: repeat(3, minmax(4.6rem, 1fr)); gap: .3rem .6rem; min-width: 15rem; }
.rt-mini span { display: flex; flex-direction: column; overflow-wrap: anywhere; font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.rt-mini b { font-size: .95rem; color: var(--ink, #1d2a22); text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.rt-plat { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; margin-bottom: .25rem; }
.rt-plat > b { font-size: .72rem; color: var(--muted); width: 1.4rem; }
.rt-big { font-size: 1.15rem; font-weight: 700; }
.rt-hook { font-style: italic; }
.rt-chip--act-comment { background: #fdf0d8; color: #8a4b0f; }
.rt-chip--act-website { background: #1f3a68; color: #fff; }
.rt-chip--act-info { background: #e5ecf5; color: #2f4f7a; }
.rt-comments-row td { background: #fafbfd; }
.rt-comments-row summary { cursor: pointer; font-weight: 700; font-size: .85rem; color: #1f3a68; }
.rt-comments { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .45rem; font-size: .88rem; }
.rt-reply { margin: .2rem 0 0 2.2rem; padding: .3rem .55rem; background: #e8eef8; border-radius: 8px; font-size: .82rem; color: #1f3a68; }

@media (max-width: 760px) {
  .rt-ins--summary { grid-column: auto; }
  .rt-tablecard--a360 .rt-table td.rt-platcell { flex-direction: column; text-align: left; }
  .rt-tablecard--a360 .rt-table td.rt-platcell > div { text-align: left; width: 100%; }
  .rt-mini { min-width: 0; }
  .rt-comments-row td { display: block; text-align: left; }
  .rt-comments-row td::before { content: none; }
  .rt-plat { justify-content: flex-end; }
}
