.fb-connection-panel {
  border-color: #267b77;
  background: radial-gradient(ellipse at top right, #133e46 0%, #102033 50%, #0c1729 100%);
}
.fb-connection-panel:focus { outline: 2px solid #61e6d1; outline-offset: 2px; }
.fb-connection-panel .cc-primary { margin-top: 9px; }
.cc-node[data-state="live"] .cc-node-status, .cc-status.live, .fb-live-mode { color: #8df2c8; }
.cc-node[data-state="live"], .fb-live-mode { border-color: #377c66; }
.fb-page-picker { display: grid; gap: 6px; }
.fb-page-picker label, .fb-analytics-mode label { color: #d8e3f7; font-size: 13px; }
.fb-page-picker select, .fb-analytics-mode select {
  padding: 7px 9px;
  color-scheme: dark;
  background: #131d34;
  color: #edf4ff;
  border: 1px solid #385176;
  border-radius: 8px;
  max-width: 100%;
}
.fb-connected { display: grid; justify-items: start; gap: 5px; }
.fb-connected strong { color: #e0fff3; overflow-wrap: anywhere; }
.fb-actions, .fb-analytics-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fb-actions .cc-primary { margin: 0; }
.fb-notice { color: #fdd995; font-size: 12px; margin: 6px 0; }
.fb-analytics-mode label select { margin-inline-start: 5px; }
.fb-report-summaries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 12px;
}
.fb-report-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0;
}
.fb-report-totals > div { padding: 10px; border: 1px solid var(--di-line); border-radius: 8px; }
.fb-report-totals dt, .fb-report-totals small { color: var(--di-muted); font-size: 11px; }
.fb-report-totals dd { margin: 4px 0; color: var(--report-tone); font-size: 23px; font-weight: 750; overflow-wrap: anywhere; }
.fb-report-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 10px 0; font-size: 12px; }
.fb-report-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fb-report-legend i { width: 8px; height: 8px; border-radius: 3px; background: var(--report-tone); }
.fb-report-chart {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 150px auto;
  gap: 5px 8px;
  color: var(--di-muted);
  font-size: 11px;
}
.fb-report-scale, .fb-report-axis { display: flex; justify-content: space-between; }
.fb-report-scale { flex-direction: column; text-align: end; }
.fb-report-axis { grid-column: 2; flex-wrap: wrap; gap: 4px; }
.fb-report-bars {
  display: grid;
  grid-template-columns: repeat(var(--chart-days), minmax(0, 1fr));
  min-width: 0;
  border-bottom: 1px solid var(--di-line);
  background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), var(--di-line) calc(25% - 1px) 25%);
}
.fb-report-day { display: flex; justify-content: center; align-items: end; gap: 1px; min-width: 0; }
.fb-report-day > span { flex: 1; max-width: 25px; }
.fb-report-bar {
  height: var(--bar-height);
  min-height: 1px;
  background: var(--report-tone);
  opacity: .87;
  border-radius: 2px 2px 0 0;
}
@media (max-width: 600px) {
  .fb-report-chart { grid-template-rows: 105px auto; }
  .fb-report-day { gap: 0; }
}

.fb-member-form h3 {
  margin: 0 0 4px;
  color: #edf4ff;
  font-size: 15px;
}
.fb-member-form input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #385176;
  border-radius: 8px;
  background: #131d34;
  color: #edf4ff;
}
.fb-member-form input:focus-visible { outline: 2px solid #61e6d1; outline-offset: 2px; }
.fb-member-identity {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding-bottom: 10px;
}
.fb-member-identity small { color: #a9bfd9; overflow-wrap: anywhere; }
.fb-member-page { max-width: 520px; }
.fb-connection-panel .fb-actions { margin-top: 8px; }
.fb-connection-panel .cc-account-row { flex-wrap: wrap; }
.di-drawer .di-detail-metrics[hidden] { display: none; }
.fb-publish-form h3 { margin: 18px 0 8px; font-size: 14px; }
.fb-publish-preview {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--di-line);
  border-radius: 9px;
  background: #11192d;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.fb-publish-status { min-height: 1em; }
.fb-publish-form .fb-actions { margin-top: 14px; }
.fb-publish-form .fb-ai-disclosure { margin-bottom: 12px; }
.fb-publish-form [hidden], .editor-card [hidden], .editor-preview [hidden] { display: none; }
.editor-grid > .card, .editor-card, .editor-preview, .phone-frame { min-inline-size: 0; }
.editor-preview .tabbar { flex-wrap: wrap; }
.editor-preview .tab { flex: 0 1 auto; }
.editor-preview-size { margin: 8px 0 0; color: #b4c8e3; font-size: 11px; }
.editor-preview .preview-image { min-height: 0; position: relative; }
.editor-preview .preview-image :is(img, video) {
  position: absolute;
  inset: 0;
  display: block;
  inline-size: 100%;
  block-size: 100%;
  max-block-size: none;
}
.editor-preview .preview-image img { object-fit: cover; }
.editor-preview .preview-image video { object-fit: contain; background: #0a1425; }
.editor-preview .preview-text {
  max-height: none;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.caption-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.caption-tools details { min-width: 0; max-width: 100%; }
.caption-tools details[open] { flex-basis: 100%; }
.caption-tools summary {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid #405a80;
  border-radius: 8px;
  background: #151f36;
  color: #d5e4fc;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.caption-tools details[open] summary { border-color: #da884b; color: #ffd4a1; }
.caption-tool-panel {
  margin-top: 7px;
  padding: 9px;
  border: 1px solid #405a80;
  border-radius: 9px;
  background: #121d33;
}
.caption-tool-panel p { margin: 0 0 8px; color: #b4c8e3; font-size: 12px; }
.caption-tool-buttons, .caption-emoji-buttons { display: flex; flex-wrap: wrap; gap: 5px; }
.caption-tool-panel button {
  border: 1px solid #385477;
  border-radius: 6px;
  background: #1c2d48;
  color: #eef4ff;
  padding: 5px 8px;
  cursor: pointer;
}
.caption-emoji-buttons button { min-width: 36px; min-height: 35px; font-size: 16px; }
.caption-tool-panel button:hover, .caption-tools summary:focus-visible, .caption-tool-panel button:focus-visible { border-color: #ff9c54; }
.editor-section-title {
  margin: 20px 0 10px;
  color: #edf4ff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.editor-section-title:first-child { margin-top: 0; }
.editor-instagram-account:not(:empty) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 10px;
  margin-top: 9px;
}
.instagram-channel-card:has(input:checked) { border-color: #d982b9; background: #2d203e; }
.instagram-connection-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.instagram-connection-list .cc-account-row { display: grid; gap: 8px; }
.instagram-connection-profile, .instagram-connection-actions { display: flex; align-items: center; gap: 7px; }
.instagram-connection-profile > div { min-width: 0; }
.instagram-connection-actions { flex-wrap: wrap; }
.instagram-connection-actions form { margin: 0; }
.editor-schedule-label { display: block; margin-bottom: 6px; color: #d0dced; font-size: 12px; font-weight: 700; }
.editor-picker-trigger {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 47px;
  padding: 7px 10px;
  color: #edf4ff;
  text-align: left;
  border: 1px solid #3b5272;
  border-radius: 10px;
  background: linear-gradient(145deg, #182943, #121e34);
}
.editor-picker-trigger:hover:not(:disabled) { border-color: #7199bd; background: #1a2e49; }
.editor-picker-icon {
  display: grid;
  place-items: center;
  height: 27px;
  color: #89e9d9;
  font-size: 16px;
  border-radius: 7px;
  background: #243d55;
}
.editor-picker-chevron { color: #a8bdd6; }
.editor-picker-dialog {
  box-sizing: border-box;
  width: min(380px, calc(100% - 28px));
  max-height: min(85dvh, 620px);
  padding: 18px;
  color: #edf4ff;
  border: 1px solid #536a907f;
  border-radius: 17px;
  background: radial-gradient(ellipse at top right, #263e5a, transparent 62%), #131d32;
  box-shadow: 0 24px 72px #02071399;
  color-scheme: dark;
}
.editor-picker-dialog::backdrop { background: #050b19a6; backdrop-filter: blur(4px); }
.editor-picker-header, .editor-calendar-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.editor-picker-header { margin-bottom: 13px; }
.editor-picker-header h2 { margin: 0; color: #edf4ff; font-size: 19px; letter-spacing: -.02em; }
.editor-picker-header button, .editor-calendar-nav button {
  width: 40px;
  min-height: 40px;
  padding: 0;
  color: #dfeaff;
  font-size: 21px;
  line-height: 1;
  border: 1px solid #4d668483;
  border-radius: 9px;
  background: #22344d;
}
.editor-calendar-nav { margin-bottom: 8px; }
.editor-calendar-nav strong { color: #eef5ff; font-size: 14px; }
.editor-calendar-nav button:hover:not(:disabled), .editor-picker-header button:hover { background: #324767; }
.editor-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  text-align: center;
}
.editor-calendar-days > span { padding: 4px 0; color: #afc0da; font-size: 11px; }
.editor-calendar-days button {
  min-height: 38px;
  padding: 0;
  color: #e5eeff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #1c2a42;
}
.editor-calendar-days button:hover:not(:disabled) { border-color: #82a1c7; background: #2f4a68; }
.editor-calendar-days button[aria-current="date"] { border-color: #68dec9; }
.editor-calendar-days button[aria-pressed="true"],
.editor-calendar-days button[aria-pressed="true"]:hover { border-color: #97f4df; background: #78e5cd; color: #112b32; }
.editor-picker-trigger:focus-visible, .editor-picker-dialog :is(button, input):focus-visible {
  outline: 2px solid #8ef4dd;
  outline-offset: 2px;
}
.editor-clock-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: end; }
.editor-clock-fields label { display: grid; gap: 5px; color: #b9cce5; font-size: 12px; font-weight: 700; }
.editor-clock-fields input {
  width: 100%;
  min-width: 0;
  min-height: 66px;
  padding: 7px 10px;
  text-align: center;
  color: #edf4ff;
  font-size: 32px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  border: 1px solid #516a8d;
  border-radius: 11px;
  background: #101b2e;
}
.editor-clock-divider { align-self: end; margin-bottom: 13px; color: #8ce9d7; font-size: 25px; font-weight: 800; }
.editor-clock p { margin: 10px 0 14px; color: #b5c6df; font-size: 12px; }
.editor-clock > button { width: 100%; justify-content: center; }
.editor-media-tip {
  max-width: 326px;
  margin: 14px auto 0;
  padding: 11px 12px;
  border: 1px solid #41687d;
  border-radius: 10px;
  background: #14293e;
}
.editor-media-tip h3 { margin: 0 0 4px; color: #a5eee0; font-size: 12px; }
.editor-media-tip p { margin: 0; color: #d0dcf0; font-size: 12px; line-height: 1.5; }
.fb-schedule-badge {
  padding: 3px 8px;
  border-radius: 6px;
  background: #253955;
  color: #dae9fb;
}
.fb-schedule-badge[data-state="published"] { background: #193c3e; color: #8aeee0; }
.fb-schedule-badge[data-state="failed"] { background: #492c42; color: #ffd7e4; }
.fb-schedule-list [hidden] { display: none; }
.fb-publication-targets { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fb-publication-targets li { padding: 9px 12px; border: 1px solid var(--di-line); border-radius: 9px; }
.fb-publication-targets p { margin: 5px 0; color: #b4c8e3; font-size: 12px; }
.fb-reel-progress {
  margin: 10px 0;
  padding: 11px 12px;
  border: 1px solid var(--di-line);
  border-radius: 9px;
  background: linear-gradient(130deg, #182846, #101b32);
}
.fb-reel-progress progress {
  appearance: none;
  display: block;
  inline-size: 100%;
  block-size: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: #29405e;
  accent-color: var(--orange, #ff8725);
}
.fb-reel-progress progress::-webkit-progress-bar { background: #29405e; }
.fb-reel-progress progress::-webkit-progress-value {
  border-radius: 99px;
  background: linear-gradient(90deg, #ed7926, #ffb56c);
  transition: width .3s ease;
}
.fb-reel-progress progress::-moz-progress-bar {
  border-radius: 99px;
  background: linear-gradient(90deg, #ed7926, #ffb56c);
}
.fb-reel-progress p { margin: 8px 0 0; line-height: 1.45; }
.fb-reel-progress strong { color: #ffd499; }
@media (prefers-reduced-motion: reduce) {
  .fb-reel-progress progress::-webkit-progress-value { transition: none; }
}
.editor-channel-panel.card {
  margin-bottom: 18px;
  padding: 19px;
  border: 1px solid #52698873;
  background: radial-gradient(ellipse at 97% 0, #2b456655, transparent 58%), linear-gradient(137deg, #142640, #101d33);
  box-shadow: 0 14px 30px #050b1540;
}
.editor-channel-panel h2 { margin: 0; font-size: 20px; line-height: 1.2; }
.editor-channel-panel header p { margin: 5px 0 15px; color: #abbcd5; font-size: 12px; }
.fb-editor-targets { min-width: 0; margin: 0; padding: 0; border: 0; }
.editor-channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.editor-channel-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px 13px;
  border: 1px solid #6b87ae43;
  border-radius: 11px;
  background: #101e35;
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.editor-channel-card:hover { border-color: #80a3d890; }
.editor-channel-card:has(input:focus-visible) { outline: 2px solid #9be9d6; outline-offset: 3px; }
.editor-channel-card:has(input:checked) {
  border-color: #62d8bcad;
  background: linear-gradient(140deg, #18414b, #172943);
  box-shadow: inset 0 0 0 1px #68e4c52a;
}
.editor-channel-card:has(input:disabled) { cursor: default; opacity: .72; }
.editor-channel-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.editor-channel-icon .plat-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #1877f2;
  color: #fff;
  font-size: 25px;
}
.editor-channel-icon .cc-platform-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}
.editor-channel-name { color: #edf3fd; font-size: 13px; font-weight: 730; overflow-wrap: anywhere; }
.editor-channel-name small { display: block; margin-top: 3px; color: #a6bbd8; font-size: 11px; font-weight: 500; }
.editor-channel-check {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid #577090;
  border-radius: 6px;
  background: #0c182b;
  color: transparent;
  font-size: 13px;
}
.editor-channel-card:has(input:checked) .editor-channel-check { border-color: #76e2c9; background: #76e2c9; color: #0e2928; }
.editor-upload-zone {
  position: relative;
  display: grid;
  box-sizing: border-box;
  min-height: 112px;
  width: 100%;
  align-content: center;
  justify-items: center;
  background: linear-gradient(132deg, #172a45, #0e1c32);
}
.editor-upload-zone:hover { border-color: #70cdbd; }
.editor-upload-zone:focus-within { outline: 2px solid #9be9d6; outline-offset: 3px; }
.editor-upload-zone input {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.editor-format-hint, .editor-media-status { margin: 7px 0; font-size: 12px; }
.editor-media-status { color: #a9e8d8; }
.editor-media-status[data-error="true"] { color: #f4c493; }
.editor-media-status:empty { margin: 0; }
.editor-media-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 13px; font-size: 11px; }
.editor-media-selection:has(span:empty) { margin-top: 0; }
#postPreviewImage:empty { display: none; }
#postPreviewImage video { display: block; width: 100%; max-height: 380px; object-fit: contain; background: #070c15; }

.posts-workspace {
  --posts-line: #9cacd824;
  --posts-muted: #a7b8d1;
  --posts-accent: #8decd4;
  max-width: 1350px;
  margin-inline: auto;
}
.posts-workspace .page-header { align-items: center; }
.posts-sections {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid var(--posts-line);
  border-radius: 11px;
  background: #081427;
}
.posts-sections button {
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--posts-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.posts-sections button:hover, .posts-sections button[aria-pressed="true"] {
  color: var(--posts-accent);
  background: #46cfa91c;
  border-color: #68d7c838;
}
.posts-surface.card {
  min-width: 0;
  border: 1px solid var(--posts-line);
  border-radius: 14px;
  background: #101c31;
  box-shadow: 0 16px 38px #0308163b;
}
.posts-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--posts-line);
}
.posts-toolbar h2 { margin: 0; font-size: 16px; font-weight: 720; }
.posts-source { display: block; margin-top: 3px; color: var(--posts-muted); font-size: 12px; }
.posts-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.posts-controls select {
  min-width: 0;
  max-width: min(100%, 265px);
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #98b6e440;
  border-radius: 8px;
  background: #0b1729;
  color: #edf4ff;
  color-scheme: dark;
  font: inherit;
  font-size: 13px;
}
.posts-workspace :is(button, select):focus-visible { outline: 2px solid var(--posts-accent); outline-offset: 3px; }
.post-list { margin: 0; padding: 0; list-style: none; }
.post-list-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 13px 20px;
}
.post-list-row + .post-list-row { border-top: 1px solid var(--posts-line); }
.post-list-row:hover, .post-list-row:focus-within { background: #93b3f20a; }
.post-row-thumb {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  border: 1px solid #92b0d326;
  border-radius: 9px;
  background: linear-gradient(145deg, #213957, #13233b);
  color: #9dbad5;
}
.post-row-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #101c31; }
.post-row-copy { min-width: 0; }
.post-row-copy h3 { margin: 0 0 3px; font-size: 14px; overflow-wrap: anywhere; }
.post-row-caption {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  margin: 0;
  color: #e5edf9;
  font-size: 13px;
  line-height: 1.45;
}
.post-row-copy time, .post-row-meta { display: block; margin-top: 6px; color: var(--posts-muted); font-size: 11px; }
.post-row-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.post-row-actions { display: flex; flex-wrap: wrap; justify-content: end; align-items: center; gap: 6px; max-width: 245px; }
.post-manage { max-width: 100%; }
.post-manage summary { cursor: pointer; list-style: none; }
.post-manage summary::-webkit-details-marker { display: none; }
.post-manage summary::after { content: '⌄'; margin-inline-start: 5px; }
.post-manage[open] summary { border-color: #d58d54; }
.post-manage > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.post-change-form { color: #e8f1ff; }
.post-change-form [hidden] { display: none; }
.post-change-form textarea { width: 100%; resize: vertical; }
.post-change-form input { color-scheme: dark; }
.post-change-form .fb-actions { margin-top: 14px; }
.di-button.post-remove-button { border-color: #925265; background: #362135; color: #ffd5df; }
.di-button.post-remove-button:hover { border-color: #ed8b9f; background: #512b41; }
.posts-workspace .di-button { white-space: normal; min-height: 36px; }
.posts-workspace .post-stat-button {
  padding-inline: 12px;
  border-color: #68d7c84f;
  background: #46cfa91a;
  color: var(--posts-accent);
  font-weight: 700;
}
.posts-workspace .post-stat-button:hover { background: #46cfa92c; }
.post-list-notice { margin: 0; padding: 16px 20px; color: var(--posts-muted); font-size: 13px; }
.post-list-notice p { margin: 0 0 10px; }
.posts-surface .di-empty { margin: 0; padding: 13px 20px; }
.fb-post-more { margin: 12px 20px; }

@media (max-width: 620px) {
  .posts-workspace .page-header { align-items: start; }
  .posts-toolbar { padding: 14px; }
  .posts-sections button { padding-inline: 9px; font-size: 12px; }
  .post-list-row { grid-template-columns: 66px minmax(0, 1fr); gap: 7px 11px; padding: 12px 14px; }
  .post-row-thumb { grid-row: 1 / span 2; align-self: start; }
  .post-row-actions { grid-column: 2; justify-content: start; max-width: none; }
  .post-list-notice { padding-inline: 14px; }
}

