:root {
  color-scheme: dark;
  --bg: #0d1117;
  --panel: #161b22;
  --surface: #21262d;
  --border: #2b323d;
  --text: #e6edf3;
  --muted: #8b949e;
  --blue: #1f6feb;
  --green: #238636;
  --radius: 16px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
button {
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.18s,
    color 0.18s;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
textarea:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid #79b8ff;
  outline-offset: 4px;
}
::selection {
  background: #1f6feb66;
}
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-thumb {
  background: #343d49;
  border-radius: 12px;
}
[hidden] {
  display: none !important;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.muted {
  color: var(--muted);
}
.overline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: #737e8e;
  margin: 0;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #3fb950;
  border-radius: 50%;
  flex-shrink: 0;
}
.topbar {
  height: 88px;
  border-bottom: 1px solid #222a35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: #10151ce8;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: linear-gradient(145deg, #388bfd, #1f6feb);
  border: 1px solid #73afff44;
  border-radius: 12px;
  box-shadow: 0 4px 20px #1f6feb22;
  color: white;
}
.brand-mark .icon {
  width: 23px;
  height: 23px;
}
.brand strong {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.4px;
}
.brand-sub {
  display: block;
  color: #8190a2;
  font-size: 11px;
  letter-spacing: 0.8px;
  margin-top: 1px;
}
.version {
  font-size: 9px;
  letter-spacing: 0;
  border: 1px solid #343c48;
  border-radius: 4px;
  padding: 1px 4px;
  margin-left: 6px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 23px;
}
.local-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #8b98a8;
}
.operator {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #212a36;
  border: 1px solid #364354;
  font-size: 11px;
  font-weight: 700;
  color: #bccfe3;
}
.workspace {
  display: flex;
  min-height: calc(100vh - 88px);
}
.sidebar {
  width: 244px;
  flex-shrink: 0;
  padding: 33px 20px 22px;
  border-right: 1px solid #222a35;
  display: flex;
  flex-direction: column;
  background: #10151a;
}
.sidebar > .overline {
  padding-left: 12px;
}
.nav-current {
  margin-top: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #1f6feb16;
  border: 1px solid #1f6feb35;
  color: #88baff;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
}
.nav-current .icon {
  width: 17px;
  height: 17px;
}
.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #58a6ff;
  margin-left: auto;
}
.sidebar-divider {
  height: 1px;
  background: #242b35;
  margin: 27px 0;
}
.sidebar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}
.tiny-badge {
  font-size: 10px;
  color: #8f9aaa;
  background: #21262d;
  border: 1px solid #2c3440;
  border-radius: 5px;
  padding: 2px 6px;
  white-space: nowrap;
}
.client-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
}
.client-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #95a0ae;
  text-align: left;
}
.client-button:hover {
  background: #1c232c;
}
.client-button.active {
  background: #1c2530;
  border-color: #344254;
  color: #f0f6fc;
}
.client-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.3px;
  border: 1px solid #ffffff15;
  overflow: hidden;
  position: relative;
  background: #18202b;
}
.client-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: inherit;
}
.client-avatar.taberna {
  background: #000000;
}
.client-avatar.taberna .client-avatar-img {
  object-fit: cover;
}
.client-avatar.estacao {
  background: transparent;
}
.client-avatar.estacao .client-avatar-img {
  object-fit: cover;
}
.client-avatar.ortobom {
  background: #ffffff;
  padding: 3px;
  color: #00205b;
}
.client-avatar.exclusiva {
  background: #ffffff;
  padding: 3px;
  color: #0b347b;
}
.client-name {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  display: block;
}
.client-category {
  font-size: 9px;
  display: block;
  color: #788598;
}
.client-button .icon {
  width: 13px;
  height: 13px;
  margin-left: auto;
  color: #79b8ff;
}
.sidebar-note {
  margin-top: 55px;
  padding: 20px 15px;
  background: linear-gradient(135deg, #172437, #151d28);
  border: 1px solid #2a384a;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.sidebar-note:after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -50px;
  top: -20px;
  border: 1px solid #3b60892c;
  border-radius: 50%;
  box-shadow:
    0 0 0 18px #355b8810,
    0 0 0 36px #355b8808;
}
.note-orbit {
  font-size: 23px;
  color: #79b8ff;
  display: block;
  margin-bottom: 10px;
}
.sidebar-note strong {
  font-size: 14px;
  font-weight: 550;
  line-height: 1.6;
}
.sidebar-note p {
  color: #8493a7;
  font-size: 11px;
  line-height: 1.8;
  margin: 9px 0 0;
}
.sidebar-footer {
  margin-top: auto;
  padding: 40px 9px 0;
  color: #647181;
  font-size: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.sidebar-footer .status-dot {
  background: #5a6b7c;
}
main {
  padding: 30px 38px 0;
  flex: 1;
  min-width: 0;
  max-width: 1500px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  gap: 16px;
  flex-wrap: wrap;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.active-client-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #16202c;
  border: 1px solid #2d3d52;
  border-radius: 30px;
  padding: 4px 14px 4px 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.active-client-avatar {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  font-size: 8px !important;
}
.active-client-text {
  display: flex;
  flex-direction: column;
}
.active-client-label {
  font-size: 8px;
  color: #8da2bb;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}
.active-client-val {
  font-size: 11px;
  color: #e6edf3;
  font-weight: 650;
  line-height: 1.2;
}
.breadcrumb {
  font-size: 11px;
  color: #8898aa;
  margin: 0 0 10px;
}
.breadcrumb span {
  padding: 0 8px;
  color: #5d6c7e;
}
.breadcrumb b {
  font-weight: 600;
  color: #c9d5e3;
}
h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1.2px;
  margin: 0 0 4px;
  color: #f0f6fc;
}
.page-description {
  color: #9eb0c6;
  font-size: 13px;
  margin: 0;
}
.mode-badge {
  color: #e3b341;
  background: #bb800918;
  border: 1px solid #bb800944;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  padding: 6px 13px;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.mode-badge.is-live {
  background: #23863622;
  border-color: #3fb95055;
  color: #56d364;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 334px;
  gap: 30px;
  align-items: start;
}
.composer {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.panel {
  background: var(--panel);
  border: 1px solid #29313c;
  border-radius: var(--radius);
  padding: 23px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 21px;
}
h2 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.1px;
}
.step {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid #384558;
  border-radius: 7px;
  color: #a2b3cc;
  background: #212c3b;
  font-size: 9px;
  letter-spacing: 0.5px;
}
.section-detail {
  font-size: 11px;
  color: #92a3b8;
}
.post-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
.post-type {
  position: relative;
  border: 1px solid #303947;
  border-radius: 10px;
  background: #111720;
  color: #a3b3c8;
  padding: 15px 6px 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.post-type .icon {
  margin-bottom: 3px;
  width: 21px;
  height: 21px;
}
.post-type strong {
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
  color: #e2ecf8;
}
.post-type span {
  font-size: 10px;
  color: #8da0b6;
}
.post-type:hover {
  border-color: #526886;
  background: #1b2636;
}
.post-type.active {
  border-color: #388bfd;
  background: #1f6feb12;
  color: #84b8ff;
  box-shadow: inset 0 0 0 1px #388bfd22;
}
.post-type.active:after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 4px;
  height: 4px;
  background: #58a6ff;
  border-radius: 50%;
}
.post-type.active span {
  color: #7b98bc;
}
.dropzone {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 29px 12px;
  border: 1px dashed #3b4c62;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at center, #1f6feb07, transparent 70%), #111720;
  color: var(--text);
  min-height: 204px;
}
.dropzone:hover,
.dropzone.dragover {
  border-color: #58a6ff;
  background: #1f6feb12;
}
.dropzone.dragover {
  transform: scale(1.01);
}
.upload-symbol {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  background: #1b2c43;
  border: 1px solid #2e4768;
  border-radius: 13px;
  color: #85baff;
  margin-bottom: 15px;
}
.upload-symbol .icon {
  width: 22px;
  height: 22px;
}
.dropzone strong {
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 4px;
}
.dropzone > span:not(.upload-symbol) {
  font-size: 11px;
  color: #7c8a9c;
}
.dropzone b {
  font-weight: 500;
  color: #79b8ff;
}
.dropzone small {
  font-size: 9px;
  color: #627084;
  margin-top: 13px;
}
.media-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  font-size: 9px;
  color: #748398;
}
.media-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.media-footer .icon {
  width: 13px;
  height: 13px;
}
.media-footer .tiny-badge {
  font-size: 8px;
}
.media-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.media-list:not(:empty) {
  margin-top: 16px;
}
.media-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px;
  background: #111720;
  border: 1px solid #2c3746;
  border-radius: 10px;
}
.media-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #21262d;
}
.media-info {
  flex: 1;
  min-width: 0;
}
.media-info strong {
  display: block;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.media-info span {
  font-size: 9px;
  color: #7d8ca0;
}
.media-buttons {
  display: flex;
  gap: 4px;
}
.icon-button {
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  width: 30px;
  height: 30px;
  background: transparent;
  color: #91a2b8;
  border-radius: 7px;
}
.icon-button:hover {
  background: #253247;
  border-color: #394a62;
  color: #c9e0ff;
}
.icon-button .icon {
  width: 16px;
  height: 16px;
}
.move-button {
  font-size: 16px;
}
.field-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 9px;
}
.field-label > span {
  font-size: 9px;
  color: #6c7d92;
  font-weight: 400;
}
.field-label .optional {
  margin-left: auto;
}
.comment-label {
  margin-top: 24px;
}
textarea {
  resize: vertical;
  display: block;
  width: 100%;
  min-height: 70px;
  background: #10161f;
  border: 1px solid #303b4b;
  border-radius: 10px;
  padding: 13px 14px;
  color: #e0e9f5;
  font-size: 12px;
  line-height: 1.8;
  transition: border-color 0.2s;
}
textarea::placeholder {
  color: #57677e;
}
textarea:focus {
  border-color: #388bfd;
  outline: none;
  box-shadow: 0 0 0 3px #1f6feb18;
}
textarea:disabled {
  opacity: 0.55;
}
.field-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #69778c;
  font-size: 9px;
  margin-top: 8px;
}
.field-footer .near-limit {
  color: #d6b06c;
}
.selection-badge {
  font-size: 9px;
  background: #1f6feb18;
  border: 1px solid #1f6feb26;
  color: #8dbbfb;
  border-radius: 5px;
  padding: 3px 7px;
}
.channel-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.channel-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 10px;
  background: #111720;
  border: 1px solid #2b3747;
  border-radius: 9px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.channel-option:has(input:checked) {
  border-color: #2c609f;
  background: #1f6feb0c;
}
.channel-option:has(input:disabled) {
  opacity: 0.4;
  cursor: not-allowed;
}
.channel-option input {
  appearance: none;
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  margin: 0;
  border-radius: 9px;
  cursor: inherit;
}
.channel-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 7px;
}
.channel-icon .icon {
  width: 17px;
  height: 17px;
}
.instagram-icon {
  background: #bc64a019;
  color: #d791bf;
}
.facebook-icon {
  background: #388bfd1c;
  color: #7caef0;
}
.linkedin-icon {
  background: #0a66c222;
  color: #71a8de;
}
.google_business-icon {
  background: #e1b05418;
  color: #d7b774;
}
.tiktok-icon {
  background: #afcee111;
  color: #bddeee;
}
.channel-name {
  font-size: 10px;
  font-weight: 500;
  flex: 1;
}
.channel-check {
  width: 15px;
  height: 15px;
  border: 1px solid #4b586b;
  border-radius: 4px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.channel-check .icon {
  display: none;
  width: 11px;
  height: 11px;
  stroke-width: 2.8;
}
.channel-option:has(input:checked) .channel-check {
  background: #1f6feb;
  border-color: #388bfd;
  color: #fff;
}
.channel-option:has(input:checked) .channel-check .icon {
  display: block;
}
.channel-option small {
  display: block;
  font-size: 8px;
  color: #7d8da3;
  font-weight: 400;
  margin-top: 1px;
}
.channel-help {
  font-size: 9px;
  color: #69798c;
  margin: 15px 0 0;
}
.publish-area {
  position: static;
  margin-top: 24px;
  background: #111620;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid #2e3a4a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.publish-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #243040;
}
.checklist-title {
  font-size: 10px;
  font-weight: 600;
  color: #8da1b9;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.checklist-items {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.check-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #7d8ea5;
  transition: color 0.2s;
}
.check-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #475569;
  border: 1px solid #64748b;
  transition: all 0.2s;
}
.check-item.ready {
  color: #c9d7e7;
}
.check-item.ready .check-bullet {
  background: #3fb950;
  border-color: #56d364;
  box-shadow: 0 0 6px #3fb95066;
}
.check-item.optional-check {
  opacity: 0.75;
}
.publish-button {
  background: linear-gradient(100deg, #1f6feb, #238636);
  border: 1px solid #3fb95066;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  font-size: 13px;
  font-weight: 650;
  border-radius: 11px;
  box-shadow: 0 6px 20px rgba(35, 134, 54, 0.25);
  letter-spacing: 0.1px;
}
.publish-button:hover:not(:disabled) {
  background: linear-gradient(100deg, #2b7af0, #2ea043);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(35, 134, 54, 0.4);
}
.publish-button:disabled {
  background: #1e2632;
  border-color: #2b3644;
  color: #64748b;
  box-shadow: none;
  cursor: not-allowed;
}
.publish-send-icon {
  width: 16px;
  height: 16px;
}
.publish-button .icon {
  width: 16px;
  height: 16px;
}
.publish-area > p {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #8da1b9;
  margin: 10px 0 0;
}
.publish-area .status-dot {
  background: #d29922;
  width: 5px;
  height: 5px;
}
.publish-area > p.is-live .status-dot {
  background: #3fb950;
}

/* Modal de Confirmação de Segurança */
.confirm-dialog {
  border: 1px solid #384658;
  background: #111722;
  color: #e6edf3;
  border-radius: 18px;
  padding: 0;
  max-width: 480px;
  width: 90vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.confirm-dialog::backdrop {
  background: rgba(4, 8, 14, 0.75);
  backdrop-filter: blur(4px);
}
.confirm-dialog .dialog-header {
  padding: 22px 24px 16px;
  border-bottom: 1px solid #232d3b;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.confirm-dialog .dialog-header h2 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
}
.confirm-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.confirm-client-highlight {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #16202e;
  border: 1px solid #2f3e52;
  border-radius: 12px;
  padding: 14px 16px;
}
.confirm-avatar {
  width: 42px !important;
  height: 42px !important;
  border-radius: 10px !important;
  flex-shrink: 0;
}
.confirm-sub {
  display: block;
  font-size: 10px;
  color: #8fa4bd;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.confirm-name {
  font-size: 14px;
  color: #f0f6fc;
  font-weight: 700;
}
.confirm-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #0d121a;
  border: 1px solid #222c3a;
  border-radius: 12px;
  padding: 14px;
}
.confirm-detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.confirm-detail-item.full-width {
  grid-column: 1 / -1;
  border-top: 1px solid #1c2634;
  padding-top: 10px;
  margin-top: 2px;
}
.confirm-label {
  font-size: 9px;
  color: #7b8eac;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}
.confirm-detail-item strong {
  font-size: 12px;
  color: #dbe4ef;
  font-weight: 600;
}
.confirm-channels-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.confirm-channel-chip {
  background: #1b2636;
  border: 1px solid #334458;
  color: #92b6e8;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}
.confirm-caption-preview {
  margin: 4px 0 0;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.5;
  background: #131922;
  border-radius: 6px;
  padding: 8px 10px;
  max-height: 70px;
  overflow-y: auto;
}
.confirm-caption-preview.empty-caption {
  color: #697a8e;
  font-style: italic;
}
.confirm-mode-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  background: #bb800918;
  border: 1px solid #bb800944;
  color: #e3b341;
  border-radius: 8px;
  padding: 9px 12px;
}
.confirm-mode-notice.is-live {
  background: #23863622;
  border-color: #3fb95055;
  color: #56d364;
}
.confirm-dialog .dialog-footer {
  padding: 14px 24px 20px;
  border-top: 1px solid #232d3b;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.execute-publish {
  background: #238636 !important;
  border-color: #3fb950 !important;
}
.execute-publish:hover {
  background: #2ea043 !important;
}
.preview-column {
  position: sticky;
  top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 3px 4px 17px;
}
.preview-heading h2 {
  font-size: 12px;
  gap: 7px;
}
.preview-heading .icon {
  color: #74869e;
  width: 17px;
  height: 17px;
}
.live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #70aa89;
  font-size: 8px;
  letter-spacing: 1px;
}
.live-badge .status-dot {
  height: 4px;
  width: 4px;
}
.preview-tabs {
  display: flex;
  gap: 7px;
  justify-content: center;
  min-height: 38px;
  margin: 0 0 12px;
}
.preview-tab {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  background: transparent;
  border: 1px solid #2e3948;
  border-radius: 7px;
  color: #66788f;
}
.preview-tab.active {
  background: #202e43;
  border-color: #416a9d;
  color: #a1caff;
}
.preview-tab .icon {
  width: 15px;
  height: 15px;
}
.phone-shell {
  width: 306px;
  background: #0a0e14;
  border: 1px solid #425065;
  box-shadow:
    0 16px 50px #0004,
    inset 0 0 0 4px #1a222d;
  border-radius: 37px;
  padding: 10px 10px 8px;
  overflow: hidden;
}
.phone-top {
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 13px;
  font-size: 10px;
  color: #e8eef6;
}
.phone-top b {
  font-weight: 600;
}
.phone-top > span:last-child {
  font-size: 9px;
}
.phone-island {
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 79px;
  height: 21px;
  border-radius: 0 0 13px 13px;
  background: #020407;
}
.battery {
  font-size: 12px;
  margin-left: 3px;
}
.phone-screen {
  background: #121923;
  border-radius: 0 0 22px 22px;
  overflow: hidden;
  min-height: 460px;
}
.phone-network {
  padding: 8px 13px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2b3441;
}
.phone-network strong {
  font-size: 17px;
  letter-spacing: -0.5px;
}
.phone-network .icon {
  width: 18px;
  height: 18px;
}
.preview-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px;
}
.preview-profile .client-avatar {
  width: 27px;
  height: 27px;
  font-size: 8px;
  border-radius: 50%;
}
.preview-profile strong {
  display: block;
  font-size: 9px;
  font-weight: 600;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-profile div > span {
  font-size: 7px;
  color: #8290a3;
  display: block;
}
.ellipsis {
  margin-left: auto;
  font-size: 8px;
  letter-spacing: 1px;
  color: #95a5b8;
}
.preview-media {
  aspect-ratio: 4/5;
  width: 100%;
  background: #101a28;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-media > img,
.preview-media > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.preview-media.portrait {
  aspect-ratio: 9/16;
  max-height: 400px;
}
.preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  width: 100%;
  background: radial-gradient(ellipse at 50% 45%, #24365466, transparent 70%);
  position: relative;
}
.preview-empty:before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid #6084b318;
  border-radius: 50%;
  box-shadow:
    0 0 0 30px #6084b307,
    0 0 0 60px #6084b304;
}
.empty-art {
  position: relative;
  width: 75px;
  height: 88px;
  border: 1px solid #52769b55;
  background: linear-gradient(135deg, #233855, #182638);
  border-radius: 12px;
  display: grid;
  place-items: center;
  transform: rotate(-8deg);
  box-shadow:
    12px 8px 0 -3px #18273b,
    12px 8px 0 -2px #37537766;
  margin-bottom: 27px;
}
.empty-art > .icon {
  width: 31px;
  height: 31px;
  color: #89acd4;
}
.art-spark {
  position: absolute;
  right: -22px;
  top: -11px;
  font-size: 30px;
  color: #73a7e3;
  transform: rotate(8deg);
}
.preview-empty strong {
  position: relative;
  color: #b5c7dd;
  font-size: 11px;
  font-weight: 500;
}
.preview-empty > span {
  position: relative;
  color: #6883a4;
  font-size: 9px;
  margin-top: 5px;
}
.preview-actions {
  display: flex;
  gap: 11px;
  padding: 12px 11px 8px;
  color: #c3cedd;
}
.preview-actions .icon {
  width: 18px;
  height: 18px;
}
.preview-actions .save-icon {
  margin-left: auto;
}
.preview-copy {
  font-size: 9px;
  line-height: 1.8;
  padding: 0 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 130px;
  overflow: auto;
}
.preview-copy b {
  font-weight: 650;
}
.placeholder-copy {
  color: #76879d;
}
.preview-comment {
  font-size: 8px;
  padding: 8px 12px 0;
  color: #86a9d3;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  max-height: 65px;
  overflow: auto;
}
.preview-time {
  font-size: 7px;
  letter-spacing: 0.9px;
  color: #5e6d80;
  padding: 12px;
}
.phone-bottom {
  width: 88px;
  height: 3px;
  background: #dae3ef99;
  border-radius: 4px;
  margin: 12px auto 3px;
}
.preview-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  padding: 3px;
  background: #141d2a;
  color: #91aaca;
  font-size: 9px;
}
.preview-pagination button {
  color: #97bbeb;
  font-size: 17px;
  border: 0;
  background: transparent;
  padding: 0 8px;
}
.preview-pagination button:disabled {
  opacity: 0.25;
}
.preview-disclaimer {
  font-size: 9px;
  color: #63738a;
  text-align: center;
  line-height: 1.8;
  margin: 18px 0 21px;
}
.summary-card {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  background: #16251c;
  border: 1px solid #2a4935;
  border-radius: 11px;
  padding: 15px;
}
.summary-icon {
  background: #2386361c;
  color: #71b887;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.summary-icon .icon {
  width: 16px;
  height: 16px;
}
.summary-card strong {
  font-size: 10px;
  font-weight: 500;
  color: #a9ceb6;
}
.summary-card p {
  font-size: 9px;
  color: #739b81;
  margin: 3px 0 0;
}
.workflow-note {
  font-size: 9px;
  color: #5b6d82;
  margin-top: 18px;
}
.workflow-note > span {
  color: #799ac6;
  margin-right: 6px;
}
.main-footer {
  margin-top: 35px;
  padding: 22px 0;
  border-top: 1px solid #232c38;
  display: flex;
  justify-content: space-between;
  color: #5a6a7e;
  font-size: 9px;
}
.main-footer > span:first-child > span {
  margin-left: 12px;
  color: #46576c;
}
.form-error,
.connection-error {
  border: 1px solid #f8514955;
  color: #ffa7a1;
  background: #f8514910;
  padding: 12px;
  border-radius: 9px;
  font-size: 12px;
  margin-bottom: 12px;
}
.connection-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.text-button {
  color: #a7caff;
  border: none;
  background: transparent;
  font-size: 12px;
}
dialog {
  background: #161b22;
  color: var(--text);
  border: 1px solid #3d4a5d;
  border-radius: 20px;
  padding: 25px;
  width: min(720px, calc(100% - 28px));
  max-height: 94vh;
  overflow: auto;
  box-shadow: 0 30px 90px #0009;
}
dialog::backdrop {
  background: #02060dd9;
  backdrop-filter: blur(6px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-header h2 {
  font-size: 21px;
  margin-top: 5px;
}
.dialog-description {
  font-size: 12px;
  color: #8597ae;
}
.crop-stage {
  height: 340px;
  background: #090d14;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.crop-stage > img {
  max-width: 100%;
  max-height: 100%;
}
.crop-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.crop-presets button {
  border: 1px solid #3c4a5e;
  background: #101823;
  color: #859ab6;
  border-radius: 9px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.crop-presets button.active {
  border-color: #388bfd;
  background: #1f6feb19;
  color: #8ebdff;
}
.crop-presets b {
  font-size: 14px;
}
.crop-presets span {
  font-size: 9px;
}
.crop-destination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
  color: #99aac0;
  font-size: 12px;
  gap: 10px;
}
select {
  background: #111924;
  border: 1px solid #3c4a5e;
  padding: 9px;
  border-radius: 8px;
  color: #c3d2e6;
  max-width: 100%;
}
.dialog-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid #2c3848;
}
.primary-button,
.secondary-button {
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.primary-button {
  color: #fff;
  border: 1px solid #418dfa;
  background: #1f6feb;
}
.secondary-button {
  color: #aabbd1;
  border: 1px solid #39485d;
  background: #21262d;
}
.primary-button:disabled {
  opacity: 0.5;
}
.primary-button .icon {
  width: 14px;
  height: 14px;
}
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(430px, calc(100vw - 30px));
}
.toast {
  border: 1px solid #326d49;
  border-radius: 12px;
  background: #15271cf5;
  color: #b9e1c5;
  padding: 16px;
  box-shadow: 0 8px 30px #0005;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 0.25s ease-out;
}
.toast.error {
  background: #2b171bf5;
  color: #ffb3af;
  border-color: #874449;
}
.toast .icon {
  width: 18px;
  height: 18px;
}
.toast button {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 3px;
  margin-left: auto;
  display: flex;
}
.spinner {
  display: inline-block;
  border: 2px solid #ffffff40;
  border-top-color: #fff;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes toast-in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (min-width: 1600px) {
  main {
    padding: 40px 55px 0;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 45px;
  }
  .phone-shell {
    width: 326px;
  }
  .panel {
    padding: 26px;
  }
  .section-detail {
    font-size: 11px;
  }
  .sidebar {
    width: 262px;
  }
  .post-type {
    padding: 19px 8px 14px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 206px;
    padding-left: 13px;
    padding-right: 13px;
  }
  main {
    padding: 26px 25px 0;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 22px;
  }
  .phone-shell {
    width: 278px;
  }
  .panel {
    padding: 18px;
  }
  .section-detail {
    display: none;
  }
  .post-type strong {
    font-size: 10px;
  }
  .post-type span {
    font-size: 8px;
  }
  .media-footer .tiny-badge {
    display: none;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 177px;
  }
  .client-button {
    gap: 7px;
    padding: 9px 5px;
  }
  .client-avatar {
    width: 29px;
    height: 29px;
    font-size: 9px;
  }
  .client-name {
    font-size: 10px;
  }
  .client-category {
    font-size: 8px;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 258px;
    gap: 18px;
  }
  .phone-shell {
    width: 256px;
  }
  .channel-list {
    grid-template-columns: 1fr;
  }
  .sidebar-note {
    padding: 17px 12px;
  }
  .sidebar-note strong {
    font-size: 12px;
  }
  .nav-current {
    font-size: 10px;
    padding: 10px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .mode-badge {
    margin-top: 33px;
    font-size: 9px;
  }
  h1 {
    font-size: 29px;
  }
  .post-types {
    gap: 5px;
  }
  .post-type span {
    display: none;
  }
  .publish-button {
    font-size: 10px;
    gap: 7px;
  }
  .publish-button .icon {
    display: none;
  }
}
@media (max-width: 820px) {
  .topbar {
    height: 76px;
    padding: 0 22px;
  }
  .sidebar {
    width: 100%;
    padding: 18px 22px;
    border-right: 0;
    border-bottom: 1px solid #26303e;
    display: block;
  }
  .workspace {
    display: block;
  }
  .sidebar > .overline,
  .nav-current,
  .sidebar-divider,
  .sidebar-note,
  .sidebar-footer {
    display: none;
  }
  .sidebar-label {
    padding: 0 0 10px;
  }
  .client-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
  }
  .client-button {
    padding: 10px 7px;
    background: #161b22;
    border-color: #293442;
    justify-content: center;
  }
  .client-button .icon,
  .client-category {
    display: none;
  }
  .client-name {
    font-size: 9px;
    line-height: 1.5;
  }
  .client-avatar {
    width: 27px;
    height: 27px;
    font-size: 8px;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 278px;
    gap: 24px;
  }
  .phone-shell {
    width: 278px;
  }
  main {
    padding: 24px 22px 0;
  }
  .preview-column {
    top: 18px;
  }
  .channel-list {
    grid-template-columns: 1fr;
  }
  .page-heading {
    margin-bottom: 23px;
  }
  .post-type strong {
    font-size: 9px;
  }
  .post-type {
    padding: 13px 5px;
  }
  .page-description {
    font-size: 11px;
  }
  .panel {
    padding: 16px;
  }
  .field-footer {
    font-size: 8px;
  }
}
@media (max-width: 680px) {
  .topbar {
    padding: 0 17px;
  }
  .brand strong {
    font-size: 15px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
  }
  .brand-sub {
    font-size: 9px;
  }
  .local-status {
    display: none;
  }
  .operator {
    width: 31px;
    height: 31px;
  }
  .sidebar {
    padding: 15px;
  }
  .client-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .client-button {
    justify-content: flex-start;
    padding: 9px 12px;
  }
  .client-name {
    font-size: 10px;
  }
  .client-avatar {
    width: 29px;
    height: 29px;
  }
  .client-button .icon {
    display: block;
    margin-left: auto;
  }
  .editor-layout {
    display: flex;
    flex-direction: column;
    gap: 29px;
  }
  .composer {
    width: 100%;
    gap: 15px;
  }
  .preview-column {
    position: static;
    width: 100%;
    max-width: 370px;
    margin: 0 auto;
  }
  .phone-shell {
    width: 306px;
  }
  .page-heading {
    gap: 9px;
  }
  .page-description {
    font-size: 10px;
  }
  main {
    padding: 22px 15px 0;
  }
  h1 {
    font-size: 27px;
  }
  .breadcrumb {
    font-size: 9px;
  }
  .mode-badge {
    font-size: 8px;
    padding: 6px 8px;
    margin-top: 32px;
  }
  .panel {
    padding: 18px;
    min-width: 0;
  }
  .post-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .post-type strong {
    font-size: 10px;
    white-space: normal;
    text-align: center;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .post-type span {
    display: block;
    font-size: 8px;
    white-space: normal;
    text-align: center;
    word-break: break-word;
  }
  .post-type {
    padding: 14px 6px 12px;
    min-width: 0;
    box-sizing: border-box;
  }
  .section-detail {
    display: block;
    font-size: 8px;
  }
  .channel-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .channel-name {
    font-size: 9px;
  }
  .channel-icon {
    width: 24px;
    height: 24px;
  }
  .channel-option {
    gap: 7px;
    padding: 12px 8px;
  }
  .publish-button {
    font-size: 11px;
    padding: 17px 8px;
  }
  .publish-area > p {
    font-size: 8px;
  }
  .field-footer {
    font-size: 8px;
  }
  .main-footer {
    font-size: 8px;
  }
  .crop-stage {
    height: 260px;
  }
  .crop-destination {
    flex-direction: column;
    align-items: flex-start;
  }
  .crop-destination select {
    width: 100%;
  }
  .dialog-footer {
    flex-direction: column-reverse;
  }
  .dialog-description {
    font-size: 11px;
  }
  .toast-container {
    bottom: 15px;
    right: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Estilos dos Previews por Rede Social (TikTok, LinkedIn, Google, Facebook)
   ========================================================================== */

/* Abas com indicador de rede selecionada */
.preview-tab {
  position: relative;
}
.preview-tab.is-selected::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399aa;
}

/* Header & Perfil */
.preview-profile-info {
  flex: 1;
  min-width: 0;
}
.profile-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.preview-follow-btn {
  background: transparent;
  border: 1px solid #0a66c2;
  color: #70b5f9;
  font-size: 7.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
  cursor: pointer;
  line-height: 1.4;
}

/* Legenda Superior (LinkedIn e Facebook) */
.preview-copy.top-copy {
  padding: 6px 12px 10px;
  border-bottom: 1px solid #1a2533;
  font-size: 9px;
  line-height: 1.6;
}

/* Container de mídia e overlays */
.preview-media-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

/* TikTok Sidebar Flutuante */
.tiktok-sidebar {
  position: absolute;
  right: 8px;
  bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 10;
}
.tiktok-avatar-wrapper {
  position: relative;
  margin-bottom: 4px;
}
.tiktok-avatar-wrapper .client-avatar.sm {
  width: 28px;
  height: 28px;
  font-size: 8px;
  border: 1.5px solid #fff;
  border-radius: 50%;
}
.tiktok-plus-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #fe2c55;
  color: #fff;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}
.tiktok-side-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
}
.tiktok-side-action .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.tiktok-side-action span {
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

/* TikTok Footer Overlay */
.tiktok-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 48px;
  padding: 10px 12px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  z-index: 9;
}
.tiktok-footer b {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  margin-bottom: 3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.tiktok-caption {
  font-size: 8.5px;
  line-height: 1.4;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.tiktok-music-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 7.5px;
}
.tiktok-music-row .music-icon {
  width: 10px;
  height: 10px;
  fill: #fff;
}
.tiktok-music-marquee {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0.9;
}
.tiktok-vinyl-disc {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(#111, #333, #111, #444, #111);
  border: 2px solid #222;
  display: grid;
  place-items: center;
  animation: spinVinyl 3.5s linear infinite;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}
.tiktok-vinyl-disc .vinyl-center {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fe2c55;
  border: 1px solid #fff;
}
@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Card e Ações do Google Meu Negócio */
.google-action-box {
  padding: 10px 12px;
  background: #152233;
  border-top: 1px solid #22344d;
  border-bottom: 1px solid #22344d;
}
.google-business-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.google-g-badge {
  background: #fff;
  color: #4285f4;
  font-weight: 900;
  font-size: 8px;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.google-update-label {
  font-size: 7.5px;
  font-weight: 600;
  color: #7ab1f5;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.google-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.google-cta-button {
  background: #1a73e8;
  color: #fff;
  border: none;
  font-size: 8.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.4);
}
.google-cta-button .icon.sm {
  width: 8px;
  height: 8px;
}
.google-verified-link {
  font-size: 7.5px;
  color: #8da4be;
  text-decoration: underline;
}

/* Botões do Facebook */
.actions-group.actions-facebook,
.actions-group.actions-linkedin {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}
.fb-action-btn,
.in-action-btn {
  background: transparent;
  border: none;
  color: #9ab0ca;
  font-size: 8px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  cursor: pointer;
}
.fb-action-btn .icon,
.in-action-btn .icon {
  width: 13px;
  height: 13px;
}
.in-action-btn:hover,
.fb-action-btn:hover {
  color: #e2ecf9;
}

/* Barra de Proporções do Preview */
.preview-ratio-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #121924;
  border: 1px solid #253346;
  border-radius: 20px;
  padding: 3px 8px;
  margin-bottom: 12px;
}
.ratio-bar-label {
  font-size: 9px;
  color: #9cb1cc;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-right: 4px;
}
.ratio-pill {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #9eb1c9;
  font-size: 9.5px;
  font-weight: 600;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ratio-pill:hover {
  color: #d2e4fc;
  background: #1e2a3b;
}
.ratio-pill.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.4);
}

/* Modos de Preview do Google (Post vs Galeria) */
.google-preview-modes {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: #101925;
  border-bottom: 1px solid #22344d;
}
.google-mode-btn {
  flex: 1;
  background: #162438;
  border: 1px solid #2a3d58;
  color: #9ab4d6;
  font-size: 8.5px;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.google-mode-btn:hover {
  background: #1f334f;
  color: #fff;
}
.google-mode-btn.active {
  background: #1a73e8;
  border-color: #388bfd;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(26, 115, 232, 0.4);
}

/* Card de Galeria de Fotos do Google Maps no Preview */
.google-gallery-box {
  padding: 10px 12px;
  background: #152233;
  border-top: 1px solid #22344d;
  border-bottom: 1px solid #22344d;
}
.google-gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.google-gallery-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  color: #a4c9f7;
  background: #1b2f48;
  border: 1px solid #28476d;
  padding: 4px 8px;
  border-radius: 12px;
}
.google-gallery-pill .icon.sm {
  width: 10px;
  height: 10px;
  color: #4285f4;
}

/* Card Unificado do Google Meu Negócio no Step 04 */
.channel-group-google {
  grid-column: 1 / -1;
  background: #111720;
  border: 1px solid #2b3747;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.channel-group-google.is-active {
  border-color: #2c609f;
  background: #15202e;
}
.channel-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.channel-group-header .channel-title-wrap {
  flex: 1;
}
.channel-group-header strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #e2ecf9;
}
.channel-group-header small {
  font-size: 8.5px;
  color: #7d8da3;
}
.google-subdestinations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}
.google-suboption {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #151d28;
  border: 1px solid #2c3a4d;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.google-suboption:hover:not(.disabled) {
  border-color: #3b506b;
  background: #1a2533;
}
.google-suboption.is-checked {
  border-color: #388bfd;
  background: #1b2e49;
}
.google-suboption.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.google-suboption input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.google-suboption .suboption-box {
  flex: 1;
  min-width: 0;
}
.google-suboption .suboption-box strong {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  color: #dce7f5;
}
.google-suboption .suboption-box span {
  display: block;
  font-size: 7.5px;
  color: #7f93ab;
  margin-top: 1px;
}
.google-suboption .channel-check {
  width: 14px;
  height: 14px;
}
.google-suboption.is-checked .channel-check {
  background: #1f6feb;
  border-color: #388bfd;
  color: #fff;
}
.google-suboption.is-checked .channel-check .icon {
  display: block;
}

/* ==========================================================================
   REARQUITETURA UX/UI — Componentes P0 (Social Media Hub v2)
   ========================================================================== */

/* Subtítulo auxiliar do Step 01 */
.section-subtitle {
  font-size: 12px;
  color: #8b99ac;
  margin: 0 0 14px;
  line-height: 1.4;
}

/* Banner de Conflito de Formato / Incompatibilidade */
.format-conflict-banner {
  background: #3b1717;
  border: 1px solid #da3633;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.conflict-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.conflict-content .icon {
  color: #f85149;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}
.conflict-text strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: #ff7b72;
}
.conflict-text p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #f0f6fc;
  line-height: 1.4;
}
.conflict-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.conflict-resolve-btn {
  background: #21262d;
  border: 1px solid #da363388;
  color: #ffa198;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.conflict-resolve-btn:hover {
  background: #da363333;
  color: #fff;
}

/* Botões de formato com indicativo de incompatibilidade */
.post-type.is-incompatible {
  border-style: dashed;
  opacity: 0.65;
}
.post-type.is-incompatible:hover {
  opacity: 0.9;
}
.format-sub.sub-incompatible {
  color: #f0883e !important;
  font-weight: 500;
}

/* Grid de Traduções do Formato Editorial */
.format-translations {
  margin-top: 16px;
  padding: 12px 14px;
  background: #101622;
  border: 1px solid #233144;
  border-radius: 10px;
}
.translations-label {
  display: block;
  font-size: 11px;
  font-weight: 650;
  color: #9cb2cf;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.translations-hint {
  margin: 0;
  font-size: 12px;
  color: #72849b;
}
.translations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.translation-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  background: #162132;
  border: 1px solid #293d56;
}
.translation-chip.supported {
  color: #d1e2f7;
}
.translation-chip.supported .chip-channel {
  color: #79c0ff;
  font-weight: 600;
}
.translation-chip.supported .chip-arrow {
  color: #58a6ff;
  opacity: 0.6;
}
.translation-chip.unsupported {
  background: #251a1a;
  border-color: #592424;
  color: #f85149;
}
.translation-chip.unsupported .chip-channel {
  color: #ffa198;
}

/* Seção 05 de Revisão */
.review-panel {
  border-color: #2b3d54;
  background: #141c27;
}
.review-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.review-card {
  background: #0f1622;
  border: 1px solid #24354b;
  border-radius: 9px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.review-card.full-width {
  grid-column: 1 / -1;
}
.review-card.has-warning {
  border-color: #d29922;
  background: #221a0f;
}
.review-card-label {
  font-size: 10.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #7d92ad;
}
.review-card-val {
  font-size: 13.5px;
  font-weight: 650;
  color: #f0f6fc;
}
.review-card-sub {
  font-size: 11px;
  color: #8c9fb8;
  line-height: 1.35;
}
.review-dest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.review-dest-chip {
  background: #1d2b3d;
  border: 1px solid #374f6e;
  color: #a5c8f8;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
}
.review-caption-snippet {
  margin: 3px 0 0;
  font-size: 12px;
  color: #c9d7e7;
  line-height: 1.45;
  background: #0b1018;
  border: 1px solid #1c2838;
  border-radius: 6px;
  padding: 8px 10px;
}
.review-comment-snippet {
  font-size: 11px;
  color: #58a6ff;
  margin-top: 4px;
}

/* Modal de Troca de Cliente com Rascunho */
.client-switch-dialog {
  max-width: 440px;
}
.switch-warning-text {
  font-size: 14px;
  color: #f0f6fc;
  margin: 0;
  line-height: 1.4;
}
.switch-warning-text strong {
  color: #58a6ff;
}
.switch-warning-sub {
  font-size: 12px;
  color: #8b99ac;
  margin: 6px 0 0;
  line-height: 1.4;
}
.switch-draft-summary {
  background: #0f1622;
  border: 1px solid #233144;
  border-radius: 8px;
  padding: 10px 12px;
}
.switch-discard-note {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 650;
  color: #ff7b72;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.switch-discard-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: #c9d7e7;
}
.danger-button {
  background: #da3633;
  color: #fff;
  border: 1px solid #f85149;
  border-radius: 8px;
  padding: 9px 15px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.danger-button:hover {
  background: #b62324;
}

/* Checklist coerente */
.check-opt {
  font-size: 9.5px;
  color: #7d8ea5;
  font-weight: normal;
}

/* Header Status e Botão de Conexões */
.header-status-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mode-badge {
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.mode-badge:hover {
  filter: brightness(1.15);
  border-color: #3b506d;
}
.connections-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1b2636;
  border: 1px solid #30445d;
  color: #92b8e8;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.connections-btn:hover {
  background: #25364d;
  border-color: #486a94;
  color: #fff;
}
.connections-btn .icon {
  width: 13px;
  height: 13px;
}

/* Banner de Simulação no Step 01 */
.client-simulation-banner {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: #162232;
  border: 1px solid #2d4566;
  border-radius: 9px;
  padding: 10px 13px;
  margin-bottom: 14px;
  font-size: 11.5px;
  color: #c0d3eb;
  line-height: 1.4;
}
.client-simulation-banner .status-dot {
  background: #739ac4;
  margin-top: 4px;
  flex-shrink: 0;
}
.client-simulation-banner p {
  margin: 0;
  flex: 1;
}
.client-simulation-banner .text-link {
  background: transparent;
  border: none;
  color: #58a6ff;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-left: 6px;
}
.client-simulation-banner .text-link:hover {
  color: #79c0ff;
}

/* Modal de Conexões */
.connections-dialog {
  max-width: 580px;
}
.connection-client-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f1622;
  border: 1px solid #23344a;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.conn-client-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.conn-client-info strong {
  display: block;
  font-size: 14px;
  color: #f0f6fc;
}
.conn-client-status {
  font-size: 11px;
  color: #8397af;
}
.conn-actions-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mode-switch-btn {
  background: #192535;
  border: 1px solid #324a68;
  color: #9ac2f3;
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.mode-switch-btn:hover {
  background: #23354b;
  border-color: #4b71a0;
  color: #fff;
}
.section-heading-sm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.active-channels-badge {
  font-size: 10px;
  font-weight: 600;
  color: #3fb950;
  background: #23863622;
  border: 1px solid #2ea04344;
  padding: 2px 7px;
  border-radius: 12px;
}
.networks-status-section .overline {
  margin-bottom: 0;
}
.networks-status-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.network-item {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #111a26;
  border: 1px solid #23354a;
  border-radius: 8px;
  padding: 10px 12px;
}
.net-info {
  flex: 1;
  min-width: 0;
}
.net-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.net-name {
  font-size: 12px;
  color: #f0f6fc;
}
.conn-tag {
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
}
.conn-tag.connected {
  background: #23863628;
  color: #56d364;
  border: 1px solid #2ea04355;
}
.net-handle {
  display: block;
  font-size: 10.5px;
  color: #79c0ff;
  font-weight: 500;
}
.net-desc {
  display: block;
  font-size: 9px;
  color: #7b91ab;
  margin-top: 1px;
}
.connection-hub-footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid #213247;
}
.sync-btn {
  padding: 8px 14px;
  font-size: 11.5px;
  gap: 7px;
}
.hub-dispatch-note {
  font-size: 10.5px;
  color: #8da4be;
}
@media (max-width: 480px) {
  .networks-status-grid {
    grid-template-columns: 1fr;
  }
}
.network-item {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #111a26;
  border: 1px solid #23354a;
  border-radius: 8px;
  padding: 8px 10px;
}
.net-info {
  flex: 1;
  min-width: 0;
}
.net-info strong {
  display: block;
  font-size: 11px;
  color: #e2ecf8;
}
.net-info span {
  display: block;
  font-size: 8.5px;
  color: #7b91ab;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   RESPONSIVIDADE REFINADA (Mobile 390px, 680-820px, 1024px, 1280px)
   ========================================================================== */

/* Faixa 680-860px: Evitar composer e preview espremidos lado a lado */
@media (min-width: 681px) and (max-width: 860px) {
  .editor-layout {
    grid-template-columns: 1fr !important;
  }
  .preview-column {
    position: static !important;
    width: 100% !important;
    max-width: 420px !important;
    margin: 24px auto 0 !important;
  }
}

/* Mobile estreito (até 480px e 390px) */
@media (max-width: 480px) {
  html, body {
    overflow-x: hidden;
  }
  .topbar {
    padding: 0 12px;
    height: 64px;
    min-width: 0;
  }
  .brand strong {
    font-size: 14px;
  }
  .sidebar {
    padding: 12px 10px;
    width: 100%;
    min-width: 0;
  }
  .client-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px;
    min-width: 0;
  }
  .client-button {
    padding: 8px 6px;
    gap: 6px;
    min-width: 0;
  }
  .client-button > span {
    min-width: 0;
    overflow: hidden;
  }
  .client-name {
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
  }
  .client-avatar {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }
  main {
    padding: 16px 10px 0;
    width: 100%;
    min-width: 0;
  }
  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    min-width: 0;
  }
  h1 {
    font-size: 23px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  h2 {
    font-size: 12px;
    word-break: break-word;
    overflow-wrap: anywhere;
    flex-wrap: wrap;
  }
  .page-description {
    font-size: 10.5px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }
  .active-client-chip {
    flex: 1 1 auto;
    min-width: 0;
  }
  .active-client-val {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mode-badge {
    margin-top: 0 !important;
    white-space: nowrap;
  }
  .composer {
    width: 100%;
    min-width: 0;
  }
  .panel {
    padding: 14px 12px !important;
    width: 100%;
    min-width: 0;
  }
  .section-subtitle {
    font-size: 11px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    min-width: 0;
    line-height: 1.45;
  }
  .channel-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
  }
  .channel-option {
    padding: 10px 6px;
    gap: 6px;
    min-width: 0;
  }
  .channel-name {
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .channel-group-google {
    min-width: 0;
    padding: 12px 10px;
  }
  .post-types {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100%;
    min-width: 0;
  }
  .post-type {
    padding: 12px 6px 10px !important;
    min-width: 0 !important;
  }
  .post-type strong {
    font-size: 10px !important;
    white-space: normal !important;
    text-align: center;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .post-type span {
    display: block;
    font-size: 8px !important;
    white-space: normal !important;
    text-align: center;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .google-subdestinations {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100%;
    min-width: 0;
  }
  .google-suboption {
    min-width: 0 !important;
    padding: 8px 10px !important;
  }
  .google-suboption .suboption-box {
    min-width: 0 !important;
  }
  .google-suboption .suboption-box strong {
    font-size: 10px;
    white-space: normal;
    word-break: break-word;
  }
  .google-suboption .suboption-box span {
    font-size: 8px;
    white-space: normal;
    word-break: break-word;
  }
  .review-summary-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }
  .review-card {
    min-width: 0;
  }
  .review-card-val,
  .review-card-sub,
  .review-caption-snippet {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .phone-shell {
    width: 100% !important;
    max-width: 320px !important;
    border-radius: 28px !important;
  }
  .publish-area {
    position: static !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    padding: 14px !important;
    min-width: 0;
  }
  .checklist-items {
    gap: 8px 12px;
  }
  .check-item {
    font-size: 10.5px;
    word-break: break-word;
  }
}

/* Ontological connection tags and buttons */
.networks-status-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.network-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #101a29;
  border: 1px solid #1f2e45;
  transition: border-color 0.2s;
}
.network-item:hover {
  border-color: #2f4363;
}
.network-item .channel-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.network-item .net-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.network-item .net-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.network-item .net-name {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}
.network-item .net-handle {
  font-size: 11px;
  color: #94a3b8;
}
.network-item .handle-connected {
  color: #38bdf8;
  font-weight: 500;
}
.network-item .handle-warn {
  color: #fbbf24;
}
.network-item .handle-muted {
  color: #64748b;
  font-style: italic;
}
.network-item .net-desc {
  font-size: 10px;
  color: #64748b;
}
.conn-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.tag-connected {
  background: #064e3b;
  color: #34d399;
  border: 1px solid #059669;
}
.tag-provider_ready {
  background: #0c4a6e;
  color: #38bdf8;
  border: 1px solid #0284c7;
}
.network-item .handle-provider-ready {
  color: #38bdf8;
}
.tag-setup_required {
  background: #451a03;
  color: #fbbf24;
  border: 1px solid #b45309;
}
.tag-authorization_required {
  background: #3b0764;
  color: #c084fc;
  border: 1px solid #7e22ce;
}
.tag-disabled {
  background: #1e293b;
  color: #64748b;
  border: 1px solid #334155;
}
.tag-error {
  background: #450a0a;
  color: #f87171;
  border: 1px solid #dc2626;
}
.product-action-btn {
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary-action {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #3b82f6;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}
.btn-primary-action:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #2563eb;
}
.btn-secondary-action {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
}
.btn-secondary-action:hover:not(:disabled) {
  background: #334155;
  color: #f8fafc;
  border-color: #475569;
}
.product-action-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* Diagnóstico Técnico recolhido por padrão para administradores */
.tech-diagnostic-details {
  margin-top: 20px;
  border-top: 1px solid #1e293b;
  padding-top: 14px;
}
.tech-diagnostic-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}
.tech-diagnostic-summary:hover {
  color: #94a3b8;
}
.tech-diagnostic-summary .icon {
  width: 14px;
  height: 14px;
}
.tech-diagnostic-content {
  margin-top: 12px;
  padding: 12px;
  background: #0b1320;
  border: 1px solid #1e293b;
  border-radius: 8px;
}
.tech-diagnostic-desc {
  font-size: 10px;
  color: #64748b;
  margin-bottom: 10px;
}
.tech-diagnostic-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.tech-diagnostic-info {
  font-family: monospace;
  font-size: 10px;
  line-height: 1.6;
  color: #94a3b8;
  white-space: pre-wrap;
  word-break: break-all;
  background: #070d17;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #152238;
}

/* Modal de Seleção de Contas Oficiais pós-OAuth */
.account-selection-dialog {
  max-width: 540px;
}
.account-candidates-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  max-height: 320px;
  overflow-y: auto;
}
.account-candidate-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #0f1622;
  border: 1px solid #23344a;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.account-candidate-card:hover {
  background: #141e2e;
  border-color: #3b82f6;
}
.account-candidate-card.selected {
  background: rgba(59, 130, 246, 0.12);
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}
.candidate-info-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.candidate-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1b2738;
  color: #79c0ff;
  font-size: 16px;
  flex-shrink: 0;
}
.candidate-texts strong {
  display: block;
  font-size: 14px;
  color: #f0f6fc;
}
.candidate-texts span {
  display: block;
  font-size: 12px;
  color: #8b949e;
}
.candidate-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #30363d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.account-candidate-card.selected .candidate-radio {
  border-color: #3b82f6;
  background: #3b82f6;
}
.account-candidate-card.selected .candidate-radio::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.conn-dialog-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 14px;
}
.conn-dialog-alert.info {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}



.make-connection-dialog { width:min(560px,calc(100vw - 32px)); border:1px solid #303b4b; border-radius:16px; color:#e5edf7; background:#111925; padding:28px; box-shadow:0 24px 80px #0009; }
.make-connection-dialog::backdrop { background:#0009; }
.make-connection-dialog h2 { margin:0 0 8px; }
.make-connection-dialog p { line-height:1.5; }
.make-brand { color:#79b7ff; font-weight:600; }
.make-flow-content { display:grid; gap:16px; margin:24px 0; }
.make-account-select { width:100%; padding:12px; border:1px solid #34445a; border-radius:8px; color:#e5edf7; background:#172235; }
.make-success { color:#7bdcaf; }
.make-connection-dialog button { padding:10px 16px; cursor:pointer; }

.make-network-choice {display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;padding:10px 0}
.make-network-choice input {margin-top:4px;accent-color:#2875ed}
.make-network-choice small {display:block;flex-basis:100%;color:#a9b7ca;line-height:1.5}
.make-flow-content label {display:grid;gap:8px;font-size:14px}
.make-flow-content .make-network-choice {display:flex}
#add-client-btn,#make-admin-btn {width:100%;margin-top:12px;padding:10px;text-align:left;border-radius:8px}
#make-admin-btn {font-size:12px;color:#a9b7ca}

