:root {
  --bg: #f3f7fb;
  --surface: #fff;
  --surface2: #f7fafe;
  --text: #071629;
  --muted: #64748b;
  --line: #dce7f1;
  --brand: #07162a;
  --accent: #1677ff;
  --success: #147a52;
  --danger: #b93848;
  --warn: #9a670d;
  --shadow: 0 10px 30px rgba(16, 44, 73, 0.07);
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
.dh-app-body {
  min-height: 100vh;
}
.dh-app {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
.dh-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #111214;
  color: #fff;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.dh-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 22px;
}
.dh-logo strong {
  display: block;
  font-size: 17px;
}
.dh-logo small {
  display: block;
  color: #999;
  font-size: 12px;
  margin-top: 1px;
}
.dh-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent);
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
}
.dh-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dh-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 11px;
  color: #aeb1b7;
  font-size: 14px;
}
.dh-nav-item span {
  width: 22px;
  text-align: center;
  font-style: normal;
}
.dh-nav-item em {
  font-style: normal;
}
.dh-nav-item:hover,
.dh-nav-item.active {
  background: #222429;
  color: #fff;
}
.dh-nav-item.active {
  box-shadow: inset 3px 0 var(--accent);
}
.dh-nav-sub {
  display: grid;
  gap: 3px;
  margin: 0 0 7px 33px;
  padding: 3px 0 3px 13px;
  border-left: 1px solid #30343b;
}
.dh-nav-sub-item {
  position: relative;
  padding: 7px 9px;
  border-radius: 8px;
  color: #8f96a3;
  font-size: 12px;
  line-height: 1.25;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}
.dh-nav-sub-item:before {
  content: "";
  position: absolute;
  left: -17px;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid #4d5663;
  border-radius: 50%;
  background: #111214;
  transform: translateY(-50%);
}
.dh-nav-sub-item:hover {
  color: #fff;
  background: #1c2026;
  transform: translateX(2px);
}
.dh-nav-sub-item.active {
  color: #fff;
  background: rgba(22,119,255,.16);
  font-weight: 700;
}
.dh-nav-sub-item.active:before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(22,119,255,.16);
}
.dh-sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #292b30;
  padding-top: 16px;
}
.dh-user-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
}
.dh-user-mini strong {
  display: block;
  font-size: 13px;
}
.dh-user-mini small {
  display: block;
  color: #8c9098;
  font-size: 11px;
  margin-top: 2px;
}
.dh-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2f3238;
  color: #fff;
  font-weight: 700;
}
.dh-avatar-lg {
  width: 70px;
  height: 70px;
  font-size: 25px;
}
.dh-logout {
  display: block;
  color: #8c9098;
  padding: 9px 8px;
  font-size: 12px;
}
.dh-main {
  min-width: 0;
}
.dh-topbar {
  height: 68px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 15;
  backdrop-filter: blur(12px);
}
.dh-topbar-spacer {
  flex: 1;
}
.dh-notify {
  position: relative;
  margin-right: 18px;
  font-size: 18px;
}
.dh-notify span {
  position: absolute;
  right: -8px;
  top: -8px;
  background: #111;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  display: grid;
  place-items: center;
}
.dh-top-user {
  font-size: 13px;
  font-weight: 600;
}
.dh-top-user-menu {
  position: relative;
}
.dh-top-user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(7,22,41,0.18);
  border: 1px solid #e6edf4;
  min-width: 170px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 50;
}
.dh-top-user-menu:hover .dh-top-user-dropdown,
.dh-top-user-menu:focus-within .dh-top-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dh-top-user-dropdown a {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #0f2a44;
  text-decoration: none;
}
.dh-top-user-dropdown a:hover {
  background: #f1f6fb;
}
.dh-top-user-dropdown a.dh-logout-link {
  color: #b3261e;
}.dh-menu-btn {
  display: none;
  background: none;
  border: 0;
  font-size: 20px;
}
.dh-content {
  padding: 30px;
  max-width: 1500px;
  margin: auto;
}
.dh-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.dh-page-head h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.03em;
}
.dh-page-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.dh-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.dh-kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 19px;
  box-shadow: 0 2px 8px rgba(20, 22, 27, 0.02);
}
.dh-kpi span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.dh-kpi strong {
  display: block;
  font-size: 29px;
  margin: 8px 0 3px;
}
.dh-kpi small {
  color: #9a9da3;
  font-size: 11px;
}
.dh-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.dh-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.7fr);
  gap: 18px;
  margin-bottom: 18px;
}
.dh-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(20, 22, 27, 0.025);
  margin-bottom: 18px;
}
.dh-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.dh-card-head h2 {
  font-size: 16px;
  margin: 0;
}
.dh-card-head > span {
  color: var(--muted);
  font-size: 12px;
}
.dh-list {
  display: flex;
  flex-direction: column;
}
.dh-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.dh-list-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.dh-list-row:last-child {
  padding-bottom: 0;
}
.dh-list-row strong,
.dh-table strong {
  display: block;
  font-size: 13px;
}
.dh-list-row small,
.dh-table small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.dh-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 700;
  background: #eef0f3;
  color: #5f646c;
}
.dh-status-awaiting_approval {
  background: #fff3d5;
  color: #94610e;
}
.dh-status-changes_requested {
  background: #ffe8ea;
  color: #a53c45;
}
.dh-status-approved {
  background: #e1f6ec;
  color: #19714e;
}
.dh-status-published,
.dh-status-active {
  background: #e8f0ff;
  color: #315da8;
}
.dh-status-preparation {
  background: #eef0f3;
  color: #656a72;
}
.dh-badge-success {
  background: #e1f6ec;
  color: #19714e;
}
.dh-danger-zone {
  border: 1px solid #f3c6cb;
  background: #fff8f8;
}
.dh-social-preview blockquote.instagram-media, .dh-social-preview .fb-post {
  max-width: 100%;
  margin: 14px 0;
}
.dh-badge-error {
  background: #ffe8ea;
  color: #a53c45;
}
.dh-badge-muted {
  background: #eef0f3;
  color: #656a72;
}
.dh-text-danger {
  color: #a53c45;
}
.dh-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dh-timeline > div {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  position: relative;
  padding: 0 0 17px;
}
.dh-timeline > div:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: -1px;
  width: 1px;
  background: var(--line);
}
.dh-timeline > div:last-child:before {
  display: none;
}
.dh-timeline > div > span {
  width: 11px;
  height: 11px;
  background: #111;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d9dadd;
  margin-top: 3px;
  z-index: 1;
}
.dh-timeline p {
  margin: 0;
}
.dh-timeline strong {
  display: block;
  font-size: 12px;
}
.dh-timeline em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: #444;
  margin-top: 3px;
}
.dh-timeline small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.dh-empty {
  text-align: center;
  padding: 35px 15px;
  color: var(--muted);
}
.dh-empty > div {
  font-size: 28px;
}
.dh-empty h3 {
  color: var(--text);
  margin: 10px 0 6px;
  font-size: 15px;
}
.dh-empty p {
  margin: 0;
  font-size: 12px;
}
.dh-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.dh-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.dh-form label,
.dh-form fieldset {
  font-size: 11px;
  font-weight: 700;
  color: #555b63;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.dh-form input,
.dh-form select,
.dh-form textarea {
  width: 100%;
  border: 1px solid #dfe1e5;
  background: #fff;
  border-radius: 11px;
  padding: 10px 11px;
  color: #1d1f23;
  outline: none;
}
.dh-form input:focus,
.dh-form select:focus,
.dh-form textarea:focus {
  border-color: #9aa0a9;
  box-shadow: 0 0 0 3px rgba(20, 22, 27, 0.05);
}
.dh-form textarea {
  resize: vertical;
}
.dh-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.dh-span-2 {
  grid-column: 1/-1;
}
.dh-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  font-weight: 500 !important;
}
.dh-check input {
  width: auto !important;
}
.dh-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.dh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s ease;
}
.dh-btn:hover {
  transform: translateY(-1px);
}
.dh-btn-primary {
  background: #111;
  color: #fff;
}
.dh-btn-success {
  background: #14754d;
  color: #fff;
}
.dh-btn-danger {
  background: #b93f4b;
  color: #fff;
}
.dh-btn-soft {
  background: #f1f2f4;
  color: #25282d;
}
.dh-btn-ghost {
  background: transparent;
  color: #555;
  border: 1px solid var(--line);
}
.dh-btn-sm {
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 10px;
}
.dh-btn-block {
  width: 100%;
}
.dh-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.dh-create summary,
.dh-inline-create summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  list-style: none;
}
.dh-create summary::-webkit-details-marker,
.dh-inline-create summary::-webkit-details-marker {
  display: none;
}
.dh-create[open] summary {
  margin-bottom: 18px;
}
.dh-inline-create {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.dh-inline-create[open] summary {
  margin-bottom: 14px;
}
.dh-table-wrap {
  overflow: auto;
}
.dh-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}
.dh-table th {
  text-align: left;
  color: #8a8e95;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
}
.dh-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #f0f1f2;
  font-size: 12px;
  vertical-align: middle;
}
.dh-table tr:last-child td {
  border-bottom: 0;
}
.dh-table code {
  font-size: 10px;
  background: #f3f4f5;
  padding: 4px 6px;
  border-radius: 6px;
}
.dh-ua {
  max-width: 310px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}
.dh-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.dh-project-card {
  display: grid;
  grid-template-columns: 42px 1fr 20px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px;
  transition: 0.15s;
}
.dh-project-card:hover {
  border-color: #cfd1d5;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.dh-project-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f0f1f2;
  display: grid;
  place-items: center;
}
.dh-project-card small {
  font-size: 10px;
  color: var(--muted);
}
.dh-project-card h3 {
  font-size: 14px;
  margin: 4px 0;
}
.dh-project-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.dh-project-card b {
  font-size: 18px;
  color: #8c9098;
}
.dh-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dh-chip {
  display: inline-flex;
  border-radius: 999px;
  background: #f1f2f4;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
}
.dh-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
}
.dh-meta > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.dh-meta > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.dh-meta dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #969aa1;
  margin-bottom: 5px;
}
.dh-meta dd {
  font-size: 12px;
  margin: 0;
}
.dh-meta .dh-full {
  grid-column: 1/-1;
}
.dh-copy {
  line-height: 1.65;
}
.dh-copy p {
  margin: 0 0 10px;
}
.dh-action-card {
  height: max-content;
  position: sticky;
  top: 87px;
}
.dh-action-card form + form,
.dh-action-card form + details,
.dh-action-card details + form {
  margin-top: 10px;
}
.dh-change-box {
  margin-top: 10px;
}
.dh-change-box summary {
  cursor: pointer;
  background: #fff0f1;
  color: #9f3944;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}
.dh-change-box[open] summary {
  margin-bottom: 10px;
}
.dh-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.dh-media {
  display: block;
  background: #f0f1f2;
  border-radius: 14px;
  overflow: hidden;
  min-height: 180px;
}
.dh-media img,
.dh-media video {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
  background: #f1f2f4;
}
.dh-creative-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.dh-creative-two small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  margin-bottom: 6px;
}
.dh-version-list {
  display: grid;
  gap: 8px;
}
.dh-version-list > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #f8f9fa;
}
.dh-version-list strong {
  font-size: 11px;
}
.dh-version-list small {
  color: var(--muted);
  font-size: 10px;
}
.dh-notification-list {
  display: grid;
  gap: 10px;
}
.dh-notification {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
}
.dh-notification.unread {
  border-left: 4px solid #111;
  background: #fcfcfd;
}
.dh-notification small {
  color: var(--muted);
  font-size: 10px;
}
.dh-notification h3 {
  font-size: 13px;
  margin: 5px 0;
}
.dh-notification p {
  font-size: 12px;
  color: #60656d;
  margin: 0 0 10px;
}
.dh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
}
.dh-alert {
  padding: 11px 14px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
}
.dh-alert-success {
  background: #e3f5ed;
  color: #176746;
}
.dh-alert-error {
  background: #ffe9eb;
  color: #9f3842;
}
.dh-muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.dh-profile {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 650px;
}
.dh-profile h2 {
  margin: 2px 0 4px;
}
.dh-profile p {
  margin: 4px 0 12px;
}
.dh-login-body {
  min-height: 100vh;
  background: #111214;
  display: grid;
  place-items: center;
  padding: 25px;
}
.dh-login-shell {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #17191d;
  border: 1px solid #2a2d33;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}
.dh-login-brand {
  padding: 60px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, #2b2f35 0, transparent 40%);
}
.dh-login-brand h1 {
  font-size: 40px;
  letter-spacing: -0.04em;
  margin: 20px 0 8px;
}
.dh-login-brand p {
  color: #9ca0a8;
  max-width: 300px;
  line-height: 1.6;
}
.dh-login-card {
  background: #fff;
  padding: 50px;
}
.dh-login-card-head {
  margin-bottom: 25px;
}
.dh-login-card-head h2 {
  font-size: 28px;
  margin: 6px 0;
}
.dh-login-card-head p {
  color: var(--muted);
  font-size: 13px;
}
.dh-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 9px;
  font-weight: 800;
}
.dh-muted-link {
  text-align: center;
  color: #777c84;
  font-size: 11px;
}
.dh-error-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 45px;
  text-align: center;
}
.dh-error-code {
  font-size: 54px;
  font-weight: 900;
  color: #ddd;
}
.dh-error-card h1 {
  margin: 5px 0;
}
.dh-error-card p {
  color: var(--muted);
  margin-bottom: 25px;
}
@media (max-width: 1150px) {
  .dh-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
  .dh-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .dh-app {
    grid-template-columns: 1fr;
  }
  .dh-sidebar {
    position: fixed;
    left: -270px;
    width: 250px;
    transition: 0.2s;
  }
  .dh-sidebar.open {
    left: 0;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.2);
  }
  .dh-menu-btn {
    display: block;
  }
  .dh-content {
    padding: 22px;
  }
  .dh-grid-2,
  .dh-detail-grid {
    grid-template-columns: 1fr;
  }
  .dh-action-card {
    position: static;
  }
  .dh-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .dh-topbar {
    padding: 0 18px;
  }
  .dh-login-shell {
    grid-template-columns: 1fr;
  }
  .dh-login-brand {
    display: none;
  }
  .dh-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .dh-content {
    padding: 16px;
  }
  .dh-page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .dh-page-head h1 {
    font-size: 25px;
  }
  .dh-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .dh-kpi {
    padding: 15px;
  }
  .dh-kpi strong {
    font-size: 24px;
  }
  .dh-card {
    padding: 15px;
    border-radius: 15px;
  }
  .dh-form-grid {
    grid-template-columns: 1fr;
  }
  .dh-span-2 {
    grid-column: 1;
  }
  .dh-card-grid {
    grid-template-columns: 1fr;
  }
  .dh-meta {
    grid-template-columns: 1fr;
  }
  .dh-meta > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .dh-meta > div:last-child {
    border-bottom: 0;
  }
  .dh-media-grid,
  .dh-creative-two {
    grid-template-columns: 1fr;
  }
  .dh-login-card {
    padding: 30px 22px;
  }
  .dh-login-body {
    padding: 12px;
  }
  .dh-top-user {
    display: none;
  }
}

/* v1 account management */
.dh-filterbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.dh-filterbar input,
.dh-filterbar select {
  min-width: 180px;
  flex: 1;
}
.dh-password-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.dh-password-row .dh-password-input {
  flex: 1;
  min-width: 220px;
}
.dh-password-strength {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}
.dh-password-strength.strong {
  color: #14754d;
}
.dh-password-strength.medium {
  color: #9a6b11;
}
.dh-password-strength.weak {
  color: #b93f4b;
}
.dh-credential-box {
  background: #111;
  color: #fff;
  padding: 18px;
  border-radius: 16px;
  margin-bottom: 18px;
}
.dh-credential-box strong {
  display: block;
  margin-bottom: 10px;
}
.dh-credential-box input {
  background: #fff;
  color: #111;
}
.dh-credential-box small {
  display: block;
  color: #aeb2b8;
  margin-top: 8px;
}
.dh-stack-actions {
  display: grid;
  gap: 10px;
}
.dh-stack-actions form {
  display: grid;
  gap: 8px;
}
.dh-module-grid {
  margin-bottom: 18px;
}
.dh-status-suspended {
  background: #fff0f1;
  color: #a33b45;
}
.dh-status-inactive,
.dh-status-archived {
  background: #f0f1f2;
  color: #656a72;
}
.dh-page-actions form {
  margin: 0;
}
.dh-form small {
  font-size: 10px;
  color: var(--muted);
}
.dh-table form {
  margin: 0;
}
.dh-list-row b {
  color: #8c9098;
}
.dh-client-field {
  display: none;
}
.dh-role-client ~ .dh-client-field {
  display: flex;
}
@media (max-width: 600px) {
  .dh-filterbar {
    flex-direction: column;
  }
  .dh-filterbar input,
  .dh-filterbar select {
    width: 100%;
    min-width: 0;
  }
  .dh-password-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .dh-password-row .dh-password-input {
    grid-column: 1/-1;
    min-width: 0;
  }
  .dh-credential-box .dh-password-row {
    grid-template-columns: 1fr;
  }
  .dh-page-actions {
    width: 100%;
  }
  .dh-page-actions .dh-btn {
    width: 100%;
  }
}

.dh-user-filters {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(135px, 1fr));
  gap: 12px;
  padding: 18px;
  background: #f3f7fb;
  border: 1px solid #dce7f1;
  border-radius: 14px;
}
.dh-user-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #dce7f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 44, 73, 0.06);
}
.dh-user-overview > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid #e5edf5;
}
.dh-user-overview > div:last-child {
  border-right: 0;
}
.dh-user-overview strong {
  color: #0b1f36;
  font-size: 24px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}
.dh-user-overview span {
  color: #5d7087;
  font-size: 12px;
  font-weight: 650;
}
.dh-user-directory .dh-card-head {
  align-items: flex-start;
  margin-bottom: 16px;
}
.dh-user-directory .dh-card-head h2 {
  margin-bottom: 4px;
}
.dh-user-directory .dh-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}
.dh-user-results {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf5ff;
  color: #0f61c9 !important;
  font-size: 11px !important;
  font-weight: 750;
  white-space: nowrap;
}
.dh-user-filter-feedback {
  min-height: 24px;
  padding: 7px 2px 4px;
  color: #718197;
  font-size: 11px;
  transition: color 0.18s ease;
}
.dh-user-filter-feedback.is-loading {
  color: #0f61c9;
}
.dh-user-table th {
  white-space: nowrap;
}
.dh-user-table tbody tr {
  transition: background-color 0.16s ease;
}
.dh-user-table tbody tr:hover {
  background: #f7faff;
}
.dh-user-primary {
  display: grid;
  gap: 4px;
  min-width: 185px;
}
.dh-user-primary > a {
  width: fit-content;
  margin-left: 38px;
  color: #64748b;
  font-size: 11px;
  text-decoration: none;
}
.dh-user-primary > a:hover {
  color: #0f61c9;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dh-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #dbe7f2;
  border-radius: 999px;
  background: #f5f8fb;
  color: #28435f;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}
.dh-role-super_admin {
  border-color: #c9dcff;
  background: #edf4ff;
  color: #0d5bbd;
}
.dh-role-collaborator {
  border-color: #bfeae5;
  background: #ebfaf7;
  color: #0d766d;
}
.dh-role-client_admin {
  border-color: #e0d4ff;
  background: #f5f1ff;
  color: #6941c6;
}
.dh-user-access,
.dh-user-login {
  display: grid;
  gap: 3px;
}
.dh-user-access {
  min-width: 150px;
  max-width: 260px;
}
.dh-user-access strong,
.dh-user-login strong {
  color: #17324e;
  font-size: 11px;
  font-weight: 750;
}
.dh-user-access span,
.dh-user-login span {
  overflow: hidden;
  color: #718197;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dh-user-login strong,
.dh-user-login span {
  font-variant-numeric: tabular-nums;
}
.dh-user-manage {
  gap: 7px;
  white-space: nowrap;
}
.dh-user-manage span {
  transition: transform 0.16s ease;
}
.dh-user-manage:hover span {
  transform: translateX(2px);
}
.dh-user-filters label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.dh-user-filters label > span {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
.dh-user-filters input,
.dh-user-filters select {
  width: 100%;
  height: 42px;
  min-width: 0;
  margin: 0;
  border: 1px solid #cad9e7;
  border-radius: 10px;
  background-color: #fff;
  color: #071629;
  font-size: 12px;
  box-shadow: 0 1px 2px rgba(7, 22, 41, 0.035);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
.dh-user-filters select {
  appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 18px,
    calc(100% - 12px) 18px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.dh-user-filters input:hover,
.dh-user-filters select:hover {
  border-color: #9eb8cf;
}
.dh-user-filters input:focus,
.dh-user-filters select:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.13);
  outline: none;
}
.dh-user-filter-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.dh-user-filter-actions .dh-btn {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.dh-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #dce7f1;
  color: #64748b;
}
.dh-pagination > div {
  display: flex;
  gap: 8px;
}
.dh-user-filters {
  grid-template-columns: 1.35fr 0.85fr 1.2fr 0.75fr 1fr auto;
}
.dh-user-filters input,
.dh-user-filters select {
  border-color: #dce7f1;
}
.dh-user-filters input:hover,
.dh-user-filters select:hover {
  border-color: #1677ff;
}
.dh-user-filters select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3.5 5.25 3.5 3.5 3.5-3.5' fill='none' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 13px center;
  background-size: 14px 14px;
}
.dh-company-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 110px;
}
.dh-company-list > span {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid #dce7f1;
  border-radius: 999px;
  background: #f3f7fb;
  color: #102c49;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}
@media (max-width: 1100px) {
  .dh-user-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dh-user-overview > div:nth-child(2) {
    border-right: 0;
  }
  .dh-user-overview > div:nth-child(-n+2) {
    border-bottom: 1px solid #e5edf5;
  }
  .dh-user-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dh-user-filter-search,
  .dh-user-filter-actions {
    grid-column: 1/-1;
  }
  .dh-user-filter-actions {
    justify-content: flex-end;
  }
}
@media (max-width: 600px) {
  .dh-user-overview {
    grid-template-columns: 1fr;
  }
  .dh-user-overview > div,
  .dh-user-overview > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #e5edf5;
  }
  .dh-user-overview > div:last-child {
    border-bottom: 0;
  }
  .dh-user-directory .dh-card-head {
    gap: 10px;
  }
  .dh-user-filters {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .dh-user-filter-search,
  .dh-user-filter-actions {
    grid-column: auto;
  }
  .dh-user-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .dh-user-filter-actions .dh-btn {
    text-align: center;
  }
  .dh-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
  .dh-pagination > div {
    width: 100%;
  }
  .dh-pagination .dh-btn {
    flex: 1;
    text-align: center;
  }
}

.dh-client-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 18px;
}
.dh-client-brand img {
  display: block;
  max-width: 180px;
  max-height: 76px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow);
}

.dh-filter-date {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
}
.dh-filter-date input {
  min-width: 145px;
}

/* v1.1 - dappin Deep Blue Workspace */
:root {
  --bg: #f3f7fb;
  --surface: #fff;
  --surface2: #f7fafe;
  --text: #071629;
  --muted: #64748b;
  --line: #dce7f1;
  --brand: #07162a;
  --accent: #1677ff;
  --cyan: #66e1ff;
  --success: #147a52;
  --danger: #b93848;
  --warn: #9a670d;
  --shadow: 0 14px 36px rgba(16, 44, 73, 0.08);
  --radius: 16px;
}
html,
body {
  font-family: Arial, Helvetica, sans-serif;
}
body {
  background: linear-gradient(135deg, #f7fafe 0, #eef5fb 100%);
  font-smoothing: antialiased;
  -webkit-font-smoothing: antialiased;
}
.dh-app {
  grid-template-columns: 264px minmax(0, 1fr);
}
.dh-sidebar {
  background: linear-gradient(155deg, #07162a 0%, #0b2138 58%, #102c49 100%);
  padding: 25px 18px;
  box-shadow: 18px 0 55px rgba(7, 22, 42, 0.12);
}
.dh-sidebar:after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  pointer-events: none;
  background: radial-gradient(
    circle at 25% 100%,
    rgba(102, 225, 255, 0.13),
    transparent 68%
  );
}
.dh-logo {
  min-height: 46px;
  padding: 0 8px 27px;
  position: relative;
  z-index: 1;
}
.dh-logo .dh-brand-mark {
  width: 118px;
  height: 34px;
  border-radius: 0;
  background: transparent url("../images/dappin-logo-white.webp") left
    center/contain no-repeat;
  color: transparent;
  font-size: 0;
}
.dh-logo > span:last-child {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  padding-left: 12px;
}
.dh-logo strong {
  display: none;
}
.dh-logo small {
  color: #d9e8f5;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  margin: 0;
}
.dh-nav {
  gap: 5px;
  position: relative;
  z-index: 1;
}
.dh-nav-item {
  min-height: 43px;
  border-radius: 10px;
  color: #9fb2c4;
  font-weight: 600;
  padding: 11px 12px;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
.dh-nav-item span {
  color: #7f9ab2;
  font-size: 15px;
}
.dh-nav-item:hover {
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
  transform: translateX(2px);
}
.dh-nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 3px 0 var(--cyan);
}
.dh-nav-item.active span {
  color: var(--cyan);
}
.dh-sidebar-foot {
  border-color: rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}
.dh-user-mini small,
.dh-logout {
  color: #91a7bb;
}
.dh-avatar {
  background: #1677ff;
  box-shadow: 0 0 0 3px rgba(102, 225, 255, 0.13);
}
.dh-topbar {
  height: 72px;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(220, 231, 241, 0.9);
  padding: 0 34px;
  backdrop-filter: blur(18px);
}
.dh-notify {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  margin-right: 14px;
  font-size: 16px;
}
.dh-notify:hover {
  border-color: #b8d4ec;
  background: #f5faff;
}
.dh-notify span {
  background: var(--accent);
  box-shadow: 0 0 0 2px #fff;
}
.dh-content {
  padding: 38px 40px 56px;
  max-width: 1580px;
}
.dh-page-head {
  margin-bottom: 28px;
}
.dh-page-head h1 {
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--brand);
}
.dh-page-head p {
  font-size: 14px;
  color: #6c7f92;
  margin-top: 9px;
}
.dh-card,
.dh-kpi {
  border-color: var(--line);
  box-shadow: 0 3px 12px rgba(16, 44, 73, 0.035);
}
.dh-card {
  padding: 22px;
}
.dh-card:hover {
  border-color: #ccdeec;
}
.dh-card-head h2 {
  color: var(--brand);
  font-size: 16px;
  letter-spacing: -0.01em;
}
.dh-kpis {
  gap: 15px;
  margin-bottom: 22px;
}
.dh-kpi {
  position: relative;
  overflow: hidden;
  padding: 21px 20px;
  border-radius: 16px;
}
.dh-kpi:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #c5d8e8;
}
.dh-kpi:nth-child(2):before,
.dh-kpi:nth-child(4):before {
  background: var(--accent);
}
.dh-kpi:nth-child(3):before {
  background: #ef6a78;
}
.dh-kpi:nth-child(5):before {
  background: #28a779;
}
.dh-kpi span {
  text-transform: uppercase;
  letter-spacing: 0.075em;
  font-size: 10px;
  font-weight: 800;
  color: #698096;
}
.dh-kpi strong {
  font-size: 31px;
  line-height: 1;
  color: var(--brand);
  margin: 10px 0 6px;
}
.dh-kpi small {
  color: #8293a3;
}
.dh-btn {
  border-radius: 10px;
  min-height: 39px;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease;
}
.dh-btn:active {
  transform: translateY(0) scale(0.985);
}
.dh-btn:focus-visible,
.dh-nav-item:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.28);
  outline-offset: 2px;
}
.dh-btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 7px 18px rgba(22, 119, 255, 0.2);
}
.dh-btn-primary:hover {
  background: #0868ed;
  box-shadow: 0 10px 24px rgba(22, 119, 255, 0.25);
}
.dh-btn-soft {
  background: #eaf3fb;
  color: #12304d;
}
.dh-btn-soft:hover {
  background: #dcecf8;
}
.dh-btn-ghost {
  border-color: #cbddea;
  color: #29465f;
}
.dh-btn-success {
  background: #147a52;
}
.dh-btn-danger {
  background: #b93848;
}
.dh-form input,
.dh-form select,
.dh-form textarea {
  border-color: #cfddea;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fbfdff;
}
.dh-form input:hover,
.dh-form select:hover,
.dh-form textarea:hover {
  border-color: #adc8df;
}
.dh-form input:focus,
.dh-form select:focus,
.dh-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
  background: #fff;
}
.dh-form label,
.dh-form fieldset {
  color: #40566b;
}
.dh-table th {
  color: #607991;
  background: #f6fafe;
  border-bottom-color: #d7e5f0;
  padding: 11px 12px;
}
.dh-table td {
  padding: 14px 12px;
  border-bottom-color: #eaf0f5;
}
.dh-table tbody tr:hover {
  background: #f8fbfe;
}
.dh-project-card {
  border-color: #d5e4ef;
  border-radius: 16px;
  padding: 17px;
  background: linear-gradient(145deg, #fff, #f5faff);
}
.dh-project-card:hover {
  border-color: #9ac8ed;
  box-shadow: 0 14px 32px rgba(22, 119, 255, 0.1);
}
.dh-project-icon {
  background: #dff2ff;
  color: #0d6ec8;
  border-radius: 10px;
}
.dh-project-card b {
  color: var(--accent);
}
.dh-chip {
  background: #e8f3fc;
  color: #264b69;
}
.dh-media {
  background: #eaf1f7;
}
.dh-notification.unread {
  border-left-color: var(--accent);
  background: #f7fbff;
}
.dh-dot {
  background: var(--accent);
}
.dh-login-body {
  background: #07162a;
  position: relative;
  overflow: hidden;
}
.dh-login-body:before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at 16% 8%,
      rgba(102, 225, 255, 0.21),
      transparent 32%
    ),
    radial-gradient(
      circle at 88% 90%,
      rgba(22, 119, 255, 0.22),
      transparent 38%
    ),
    linear-gradient(135deg, #07162a, #0b2946 58%, #07162a);
  pointer-events: none;
}
.dh-login-shell {
  position: relative;
  width: min(980px, 100%);
  min-height: 610px;
  background: #0a2037;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
}
.dh-login-brand {
  padding: 64px;
  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(102, 225, 255, 0.16),
      transparent 38%
    ),
    linear-gradient(155deg, rgba(255, 255, 255, 0.04), transparent);
  position: relative;
}
.dh-login-brand:after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(102, 225, 255, 0.13);
  transform: rotate(32deg);
}
.dh-login-brand .dh-brand-mark {
  width: 210px;
  height: 74px;
  border-radius: 0;
  background: transparent url("../images/dappin-logo-white.webp") left
    center/contain no-repeat;
  color: transparent;
  font-size: 0;
}
.dh-login-brand h1 {
  font-size: 41px;
  line-height: 1.02;
  margin: 60px 0 13px;
  max-width: 360px;
}
.dh-login-brand p {
  color: #b9cad9;
  font-size: 15px;
}
.dh-login-card {
  padding: 62px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dh-login-card-head h2 {
  color: var(--brand);
  font-size: 31px;
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.dh-eyebrow {
  color: #337fbd;
  letter-spacing: 0.12em;
}
.dh-muted-link {
  color: #49677f;
  font-weight: 600;
}
.dh-muted-link:hover {
  color: var(--accent);
}
.dh-alert {
  border-radius: 10px;
}
.dh-status-awaiting_approval {
  background: #fff1cc;
  color: #855708;
}
.dh-status-changes_requested {
  background: #ffe6e9;
  color: #9e3542;
}
.dh-status-approved {
  background: #ddf5e9;
  color: #126b48;
}
.dh-status-published,
.dh-status-active {
  background: #e1efff;
  color: #174f9b;
}
.dh-status-preparation {
  background: #eaf0f5;
  color: #4d6478;
}
@media (max-width: 900px) {
  .dh-app {
    grid-template-columns: 1fr;
  }
  .dh-sidebar {
    width: 264px;
    left: -284px;
  }
  .dh-content {
    padding: 28px 22px 46px;
  }
  .dh-menu-btn {
    color: var(--brand);
  }
  .dh-login-shell {
    min-height: 0;
  }
  .dh-login-brand {
    display: flex;
    min-height: 190px;
    padding: 34px;
  }
  .dh-login-brand .dh-brand-mark {
    width: 155px;
    height: 48px;
  }
  .dh-login-brand h1,
  .dh-login-brand p {
    display: none;
  }
  .dh-login-card {
    padding: 42px 34px;
  }
}
@media (max-width: 600px) {
  .dh-content {
    padding: 23px 15px 40px;
  }
  .dh-page-head h1 {
    font-size: 29px;
  }
  .dh-topbar {
    height: 64px;
    padding: 0 14px;
  }
  .dh-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .dh-kpi {
    padding: 17px 15px;
  }
  .dh-kpi:first-child {
    grid-column: 1/-1;
  }
  .dh-login-body {
    padding: 10px;
  }
  .dh-login-shell {
    border-radius: 17px;
  }
  .dh-login-brand {
    min-height: 130px;
    padding: 24px;
  }
  .dh-login-card {
    padding: 32px 22px;
  }
  .dh-login-card-head h2 {
    font-size: 27px;
  }
  .dh-card {
    padding: 17px;
  }
  .dh-grid-2 {
    gap: 12px;
  }
  .dh-btn {
    min-height: 43px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* 1.99.96: o preview interno preserva sempre a proporção original da media. */
.dh-social-draft-preview .dh-social-post-card__media {
  display: block;
  min-height: 0;
  background: #fff;
}
.dh-social-draft-preview .dh-social-post-card__media > img,
.dh-social-draft-preview .dh-social-post-card__media > video {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  background: #fff;
}
.dh-social-draft-preview .dh-social-post-card__media.is-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.dh-social-draft-preview .dh-social-post-card__media.is-carousel > * {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  scroll-snap-align: start;
  object-fit: contain;
}

/* Social workspace dashboard */
.dh-social-hub-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(430px, .9fr);
  gap: 34px;
  align-items: center;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 34px 38px;
  border: 1px solid rgba(51, 204, 201, .18);
  border-radius: 24px;
  background: radial-gradient(circle at 88% 10%, rgba(39, 215, 208, .28), transparent 28%), linear-gradient(125deg, #071d39, #0b3865 66%, #08767d);
  box-shadow: 0 20px 48px rgba(9, 42, 74, .16);
  color: #fff;
}
.dh-social-hub-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(92, 231, 225, .3) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent 35%, #000); }
.dh-social-hub-copy, .dh-social-hub-stats { position: relative; z-index: 1; }
.dh-social-hub-copy .dh-eyebrow { color: #5ce1df; }
.dh-social-hub-copy h2 { max-width: 650px; margin: 9px 0 10px; font-size: clamp(25px, 2.5vw, 38px); line-height: 1.08; letter-spacing: -.035em; }
.dh-social-hub-copy p { max-width: 620px; margin: 0; color: #c7dae9; font-size: 14px; line-height: 1.6; }
.dh-social-hub-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.dh-social-hub-stats article { min-width: 0; padding: 17px 15px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: rgba(255,255,255,.09); backdrop-filter: blur(12px); }
.dh-social-hub-stats span, .dh-social-hub-stats small { display: block; }
.dh-social-hub-stats span { color: #a9c7dc; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dh-social-hub-stats strong { display: block; margin: 5px 0 2px; font-size: 27px; letter-spacing: -.04em; }
.dh-social-hub-stats small { overflow: hidden; color: #c8dce9; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.dh-social-hub-card .dh-card-head p { margin: 5px 0 0; color: #74879b; font-size: 12px; }
.dh-social-company-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.dh-social-company-card { position: relative; overflow: hidden; min-width: 0; border: 1px solid #dce8f3; border-radius: 19px; background: linear-gradient(180deg, #fff, #fbfdff); box-shadow: 0 9px 26px rgba(31, 62, 93, .055); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.dh-social-company-card:hover { border-color: #bfd8ef; box-shadow: 0 17px 38px rgba(24, 67, 108, .11); transform: translateY(-3px); }
.dh-social-company-card > header { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 18px 18px 15px; }
.dh-social-company-card > header .dh-reports-company-avatar { width: 46px; height: 46px; border-radius: 13px; }
.dh-social-company-card > header span { color: #1680ea; font-size: 8px; font-weight: 850; letter-spacing: .13em; }
.dh-social-company-card > header h3 { margin: 3px 0; overflow: hidden; color: #0b1b30; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.dh-social-company-card > header p { margin: 0; color: #75899d; font-size: 10px; }
.dh-social-company-card > header > i { width: 9px; height: 9px; border-radius: 50%; background: #26b884; box-shadow: 0 0 0 5px rgba(38, 184, 132, .11); }
.dh-social-company-latest { margin: 0 18px; padding: 14px 0; border-top: 1px solid #e7eff6; }
.dh-social-company-latest span, .dh-social-company-latest small { display: block; color: #7b8ea0; font-size: 9px; }
.dh-social-company-latest span { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.dh-social-company-latest strong { display: block; margin: 5px 0 2px; color: #243b52; font-size: 13px; }
.dh-social-company-actions { display: grid; gap: 8px; padding: 0 13px 13px; }
.dh-social-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 11px 13px; border-radius: 13px; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.dh-social-action span, .dh-social-action b, .dh-social-action small { display: block; }
.dh-social-action b { font-size: 11px; }
.dh-social-action small { margin-top: 3px; font-size: 9px; opacity: .75; }
.dh-social-action em { font-style: normal; font-size: 17px; }
.dh-social-action--performance { background: linear-gradient(120deg, #0b6fe7, #179fdb); box-shadow: 0 8px 20px rgba(13, 112, 232, .2); color: #fff; }
.dh-social-action--plan { border: 1px solid #d9e7f3; background: #f0f7fd; color: #183b5b; }
.dh-social-action[href]:hover { transform: translateY(-2px); }
.dh-social-action--performance:hover { box-shadow: 0 12px 25px rgba(13, 112, 232, .3); color: #fff; }
.dh-social-action--disabled { background: #f4f7fa; color: #8495a5; }
.dh-social-plan-history { border-top: 1px solid #e5eef6; }
.dh-social-plan-history summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; color: #526b82; font-size: 10px; font-weight: 750; cursor: pointer; list-style: none; }
.dh-social-plan-history summary::-webkit-details-marker { display: none; }
.dh-social-plan-history summary b { display: grid; place-items: center; min-width: 21px; height: 21px; border-radius: 8px; background: #e5f2ff; color: #0b6fe7; font-size: 9px; }
.dh-social-plan-history > div { max-height: 210px; overflow: auto; padding: 0 13px 13px; }
.dh-social-plan-history a { display: flex; align-items: center; justify-content: space-between; padding: 9px 6px; border-bottom: 1px solid #edf2f6; color: #294158; font-size: 10px; text-decoration: none; }
.dh-social-plan-history a:hover { color: #0b6fe7; }
.dh-social-plan-history a small { color: #8495a5; }
.dh-social-filter-empty { padding: 45px 20px; text-align: center; color: #72869a; }
.dh-social-filter-empty strong { color: #183149; }
.dh-social-filter-empty p { margin: 5px 0 0; }
@media (max-width: 1180px) { .dh-social-hub-hero { grid-template-columns: 1fr; } .dh-social-company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .dh-social-hub-hero { padding: 26px 23px; } .dh-social-hub-stats { grid-template-columns: 1fr; } .dh-social-company-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .dh-social-company-card, .dh-social-action { transition: none; } }

/* 1.100.0 — consistência transversal do Hub.
   O gerador de relatórios normal (dhr-*) e o Tráfego Pago v2 mantêm os seus
   componentes e loadings próprios; este bloco atua apenas na interface geral. */
.dh-app-body {
  --dh-focus-ring: 0 0 0 3px rgba(22,119,255,.22);
  --dh-ui-shadow: 0 12px 30px rgba(18,55,91,.08);
}
.dh-app-body ::selection { color: #08213d; background: rgba(35,207,202,.3); }
.dh-app-body :where(a,button,input,select,textarea,[tabindex]):focus-visible {
  outline: 2px solid #1677ff;
  outline-offset: 2px;
  box-shadow: var(--dh-focus-ring);
}
.dh-app-body :where(button,.dh-btn,[role="button"]):disabled,
.dh-app-body :where(button,.dh-btn,[role="button"])[aria-disabled="true"] {
  cursor: not-allowed;
  filter: saturate(.5);
  opacity: .58;
}
.dh-app-body .dh-btn,
.dh-app-body .dh-icon-btn {
  min-height: 40px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
}
.dh-app-body .dh-btn-sm { min-height: 34px; }
@media (hover:hover) and (pointer:fine) {
  .dh-app-body .dh-btn:not(:disabled):hover,
  .dh-app-body .dh-icon-btn:not(:disabled):hover { transform: translateY(-1px); }
}
.dh-app-body .dh-card {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.dh-app-body .dh-table-wrap {
  max-width: 100%;
  border: 1px solid #e3edf6;
  border-radius: 14px;
  overscroll-behavior-inline: contain;
  scrollbar-color: #b8cee1 transparent;
  scrollbar-width: thin;
}
.dh-app-body .dh-table-wrap:focus-visible { border-color: #88bdfa; }
.dh-app-body .dh-table-responsive { margin: 0; }
.dh-app-body .dh-table-responsive thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #f4f8fc;
  box-shadow: inset 0 -1px #dce8f2;
}
.dh-app-body .dh-table-responsive tbody td { font-variant-numeric: tabular-nums; }
.dh-app-body .dh-table-responsive tbody tr { transition: background-color .16s ease; }
.dh-app-body .dh-table-responsive tbody tr:focus-within { background: #f3f9ff; }
.dh-app-body .dh-is-submitting:not(.dhr-generating):not([data-report-generating]) {
  cursor: progress;
}
.dh-app-body .dh-is-submitting:not(.dhr-generating):not([data-report-generating]) :is(button[type="submit"],button:not([type])) {
  position: relative;
  padding-left: 42px;
}
.dh-app-body .dh-is-submitting:not(.dhr-generating):not([data-report-generating]) :is(button[type="submit"],button:not([type]))::before {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 14px;
  height: 14px;
  margin-top: -8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: dh-ui-spin .7s linear infinite;
}
.dh-app-body .dh-search-dialog {
  max-width: min(620px,calc(100vw - 32px));
  box-shadow: 0 28px 80px rgba(4,24,46,.24);
}
.dh-app-body .dh-form :where(input,select,textarea),
.dh-app-body .dh-filterbar :where(input,select) {
  min-height: 44px;
}
@keyframes dh-ui-spin { to { transform: rotate(360deg); } }

@media (max-width: 700px) {
  .dh-app-body .dh-table-wrap:has(.dh-table-responsive) {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }
  .dh-app-body .dh-table-responsive,
  .dh-app-body .dh-table-responsive tbody,
  .dh-app-body .dh-table-responsive tr,
  .dh-app-body .dh-table-responsive td { display: block; width: 100%; min-width: 0; }
  .dh-app-body .dh-table-responsive thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .dh-app-body .dh-table-responsive tbody { display: grid; gap: 12px; }
  .dh-app-body .dh-table-responsive tbody tr {
    padding: 7px 14px;
    overflow: hidden;
    border: 1px solid #dce8f2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(18,55,91,.055);
  }
  .dh-app-body .dh-table-responsive tbody td {
    display: grid;
    grid-template-columns: minmax(92px,36%) minmax(0,1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid #edf3f8;
    overflow-wrap: anywhere;
    text-align: right;
  }
  .dh-app-body .dh-table-responsive tbody td:last-child { border-bottom: 0; }
  .dh-app-body .dh-table-responsive tbody td::before {
    color: #6a8096;
    content: attr(data-label);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.25;
    text-align: left;
    text-transform: uppercase;
  }
  .dh-app-body .dh-table-responsive tbody td > :where(.dh-person,form,.dh-actions) { justify-self: end; }
  .dh-app-body .dh-table-responsive tbody td .dh-btn { width: auto; }
  .dh-app-body .dh-filterbar { align-items: stretch; }
  .dh-app-body .dh-filterbar > * { min-width: 0; width: 100%; }
  .dh-app-body .dh-card-head { gap: 12px; align-items: flex-start; }
  .dh-app-body .dh-card-head > :last-child:not(:first-child) { max-width: 100%; }
}

@media (max-width: 430px) {
  .dh-app-body .dh-table-responsive tbody td { grid-template-columns: 1fr; gap: 5px; text-align: left; }
  .dh-app-body .dh-table-responsive tbody td > :where(.dh-person,form,.dh-actions) { justify-self: start; }
  .dh-app-body .dh-btn:not(.dh-btn-sm) { min-height: 44px; }
}

/* Central de notificações */
.dh-notifications-page { display:grid; gap:18px; }
.dh-notification-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.dh-notification-summary article { min-height:116px; padding:20px; border:1px solid #dce7f1; border-radius:14px; background:#fff; box-shadow:0 10px 26px rgba(20,57,94,.06); }
.dh-notification-summary span,.dh-notification-summary small { display:block; color:#64748b; }
.dh-notification-summary span { font-size:12px; font-weight:750; text-transform:uppercase; letter-spacing:.05em; }
.dh-notification-summary strong { display:block; margin:7px 0 2px; color:#071629; font-size:30px; line-height:1; font-variant-numeric:tabular-nums; }
.dh-notification-summary small { font-size:12px; }
.dh-notification-preferences { display:grid; grid-template-columns:minmax(220px,.75fr) minmax(0,1.5fr); gap:24px; align-items:start; animation:dh-notification-reveal .25s cubic-bezier(.22,1,.36,1); }
.dh-notification-preferences h2 { margin:0 0 5px; font-size:18px; }
.dh-notification-preferences p { margin:0; color:#64748b; }
.dh-notification-preferences form { display:grid; grid-template-columns:1fr 1fr; gap:10px; align-items:center; }
.dh-notification-switch { display:flex; align-items:center; gap:11px; min-height:64px; padding:12px; border:1px solid #dce7f1; border-radius:12px; cursor:pointer; }
.dh-notification-switch input { width:18px; height:18px; accent-color:#1677ff; }
.dh-notification-switch span,.dh-notification-switch small { display:block; }
.dh-notification-switch strong { color:#102039; font-size:13px; }
.dh-notification-switch small { margin-top:2px; color:#64748b; font-size:11px; line-height:1.35; }
.dh-notification-save-state { color:#14754d; font-size:12px; font-weight:700; }
.dh-notifications-workspace { padding:0; overflow:hidden; }
.dh-notifications-toolbar { display:grid; gap:14px; padding:18px; border-bottom:1px solid #dce7f1; background:#f8fbfe; }
.dh-notification-status-tabs { display:flex; gap:4px; width:max-content; padding:4px; border:1px solid #dce7f1; border-radius:12px; background:#fff; }
.dh-notification-status-tabs button { min-height:36px; padding:0 13px; border:0; border-radius:8px; background:transparent; color:#53657d; font:inherit; font-size:12px; font-weight:750; cursor:pointer; }
.dh-notification-status-tabs button span { margin-left:4px; font-variant-numeric:tabular-nums; }
.dh-notification-status-tabs button.is-active { background:#e8f3ff; color:#0755c9; }
.dh-notification-filters { display:grid; grid-template-columns:minmax(220px,1.35fr) repeat(3,minmax(150px,.75fr)); gap:10px; }
.dh-notification-filters input,.dh-notification-filters select { width:100%; min-height:42px; padding:0 12px; border:1px solid #ccdbea; border-radius:10px; background:#fff; color:#102039; font:inherit; font-size:13px; }
.dh-notification-filters input:focus,.dh-notification-filters select:focus { border-color:#1677ff; outline:3px solid rgba(22,119,255,.14); }
.dh-notifications-bulk-bar { margin:0; border-width:0 0 1px; border-radius:0; background:#fff; }
.dh-notifications-bulk-actions { align-items:center; }
.dh-notifications-bulk-actions > span { color:#64748b; font-size:11px; font-weight:700; }
.dh-notification-source-hidden { display:none !important; }
.dh-notification-group { border-bottom:1px solid #e5edf5; }
.dh-notification-group:last-child { border-bottom:0; }
.dh-notification-group-head { display:flex; align-items:center; justify-content:space-between; padding:15px 18px 9px; }
.dh-notification-group-head h2 { margin:0; color:#53657d; font-size:12px; text-transform:uppercase; letter-spacing:.05em; }
.dh-notification-group-head span { color:#8190a5; font-size:11px; font-variant-numeric:tabular-nums; }
.dh-notification-list { display:grid; gap:0; }
.dh-notification { position:relative; display:grid; grid-template-columns:auto 42px minmax(0,1fr); gap:12px; align-items:start; padding:16px 18px; border:0; border-top:1px solid #edf2f7; border-radius:0; background:#fff; transition:background-color .18s ease,transform .18s ease; }
.dh-notification.unread { background:#f4f9ff; box-shadow:inset 1px 0 #1677ff; }
.dh-notification[hidden] { display:none; }
.dh-notification-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; background:#e8f3ff; color:#0755c9; }
.dh-notification-icon svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.dh-notification-copy { min-width:0; }
.dh-notification-meta { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-bottom:5px; color:#64748b; font-size:11px; }
.dh-notification-meta span { padding:3px 7px; border-radius:7px; background:#edf3f8; color:#53657d; font-weight:700; }
.dh-notification-meta time { margin-left:auto; font-variant-numeric:tabular-nums; }
.dh-notification h3 { display:flex; align-items:center; gap:8px; margin:0 0 4px; color:#102039; font-size:14px; }
.dh-notification p { max-width:75ch; margin:0; color:#53657d; line-height:1.55; }
.dh-notification-new { padding:2px 6px; border-radius:6px; background:#1677ff; color:#fff; font-size:9px; line-height:1.4; text-transform:uppercase; letter-spacing:.05em; }
.dh-notification .dh-actions { margin-top:10px; }
.dh-notification-empty-filter { margin:18px; }
@media (hover:hover) and (pointer:fine) { .dh-notification:hover { z-index:1; background:#f7fbff; transform:translateX(2px); } .dh-notification-switch:hover { border-color:#9bc8f5; background:#f8fbff; } }
@keyframes dh-notification-reveal { from { opacity:.4; clip-path:inset(0 0 100% 0); } to { opacity:1; clip-path:inset(0); } }
@media (max-width:980px) { .dh-notification-filters { grid-template-columns:1fr 1fr; } .dh-notification-preferences { grid-template-columns:1fr; } }
@media (max-width:680px) { .dh-notification-summary { grid-template-columns:1fr; } .dh-notification-summary article { min-height:auto; } .dh-notification-filters,.dh-notification-preferences form { grid-template-columns:1fr; } .dh-notification-status-tabs { width:100%; } .dh-notification-status-tabs button { flex:1; } .dh-notification { grid-template-columns:auto 36px minmax(0,1fr); padding:14px 12px; gap:9px; } .dh-notification-icon { width:36px; height:36px; } .dh-notification-meta time { width:100%; margin-left:0; } .dh-notifications-bulk-bar { align-items:flex-start; } }
@media (prefers-reduced-motion:reduce) { .dh-notification-preferences { animation:none; } .dh-notification,.dh-notification-switch { transition:none; } }

/* Central de notificações — composição refinada */
.dh-notifications-page { gap:20px; }
.dh-notification-overview { display:grid; grid-template-columns:minmax(280px,1fr) auto auto; align-items:center; gap:clamp(18px,3vw,42px); min-height:132px; padding:24px 26px; overflow:hidden; border-radius:16px; background:linear-gradient(122deg,#071a31 0%,#0b3153 58%,#075c72 100%); color:#fff; box-shadow:0 18px 42px rgba(7,35,62,.16); }
.dh-notification-overview-main { display:flex; align-items:center; gap:16px; min-width:0; }
.dh-notification-overview-icon { display:grid; flex:0 0 auto; place-items:center; width:52px; height:52px; border:1px solid rgba(255,255,255,.2); border-radius:14px; background:rgba(255,255,255,.1); color:#64e3df; box-shadow:0 10px 24px rgba(0,0,0,.12); }
.dh-notification-overview-icon svg,.dh-notification-preferences-button svg,.dh-notification-search svg { fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.dh-notification-overview-icon svg { width:24px; height:24px; }
.dh-notification-overview-main span:not(.dh-notification-overview-icon) { display:block; margin-bottom:4px; color:#a9c4d8; font-size:12px; font-weight:750; }
.dh-notification-overview-main strong { display:block; color:#fff; font-size:clamp(21px,2vw,28px); line-height:1.15; letter-spacing:-.02em; }
.dh-notification-overview-main strong b { color:#6ee7e2; font:inherit; font-variant-numeric:tabular-nums; }
.dh-notification-overview-main small { display:block; margin-top:6px; color:#b9d0df; font-size:12px; }
.dh-notification-overview-stats { display:flex; align-items:center; gap:0; margin:0; }
.dh-notification-overview-stats div { min-width:98px; padding:4px 20px; border-left:1px solid rgba(255,255,255,.16); }
.dh-notification-overview-stats dt { color:#a9c4d8; font-size:11px; font-weight:700; }
.dh-notification-overview-stats dd { margin:5px 0 0; color:#fff; font-size:24px; font-weight:800; line-height:1; font-variant-numeric:tabular-nums; }
.dh-notification-preferences-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:0 14px; border:1px solid rgba(255,255,255,.22); border-radius:10px; background:rgba(255,255,255,.08); color:#fff; font:inherit; font-size:12px; font-weight:750; cursor:pointer; transition:background-color .18s ease,border-color .18s ease,transform .18s ease; }
.dh-notification-preferences-button svg { width:17px; height:17px; }
.dh-notification-preferences-button[aria-expanded="true"] { border-color:#64e3df; background:rgba(100,227,223,.14); color:#c8fffd; }
.dh-notification-preferences { grid-template-columns:minmax(210px,.7fr) minmax(0,1.5fr); padding:22px 24px; border-color:#cfe0ec; box-shadow:0 14px 36px rgba(14,52,85,.08); }
.dh-notification-preferences[hidden] { display:none !important; }
.dh-notification-preferences form { grid-template-columns:repeat(2,minmax(0,1fr)) auto; gap:12px; }
.dh-notification-switch { min-height:70px; background:#f8fbfd; }
.dh-notification-switch:has(input:checked) { border-color:#7fcbd0; background:#f0fbfb; box-shadow:inset 0 0 0 1px rgba(26,156,166,.08); }
.dh-notification-switch input { flex:0 0 auto; }
.dh-notification-save-state { grid-column:1/-1; min-height:16px; }
.dh-notifications-workspace { border-color:#d7e4ee; border-radius:16px; box-shadow:0 14px 36px rgba(16,55,88,.07); }
.dh-notifications-toolbar { gap:16px; padding:22px 24px 18px; background:#fbfdff; }
.dh-notifications-toolbar-head,.dh-notifications-toolbar-controls { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.dh-notifications-toolbar-head h2 { margin:0; color:#102039; font-size:18px; letter-spacing:-.015em; }
.dh-notifications-toolbar-head p { margin:4px 0 0; color:#687b91; font-size:12px; }
.dh-notifications-toolbar-controls { align-items:stretch; }
.dh-notification-status-tabs { flex:0 0 auto; }
.dh-notification-status-tabs button { transition:color .16s ease,background-color .16s ease,box-shadow .16s ease; }
.dh-notification-status-tabs button.is-active { background:#0b6ee8; color:#fff; box-shadow:0 5px 14px rgba(11,110,232,.2); }
.dh-notification-search { position:relative; display:flex; align-items:center; width:min(390px,100%); }
.dh-notification-search svg { position:absolute; left:13px; z-index:1; width:17px; height:17px; color:#6d8096; pointer-events:none; }
.dh-notification-search input { width:100%; min-height:44px; padding:0 14px 0 40px; border:1px solid #cbdbe7; border-radius:11px; background:#fff; color:#102039; font:inherit; font-size:13px; }
.dh-notification-search input::placeholder { color:#8090a3; }
.dh-notification-filters { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding-top:14px; border-top:1px solid #e5edf4; }
.dh-notification-filters label { display:grid; gap:6px; color:#60748b; font-size:10px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.dh-notification-filters select { min-height:42px; text-transform:none; letter-spacing:0; }
.dh-notification-search input:focus,.dh-notification-filters select:focus { border-color:#1677ff; outline:3px solid rgba(22,119,255,.12); }
.dh-notifications-bulk-bar { min-height:56px; padding:10px 24px; background:#fff; }
.dh-notification-group-head { padding:18px 24px 10px; }
.dh-notification { grid-template-columns:auto 44px minmax(0,1fr); gap:14px; padding:18px 24px; }
.dh-notification.unread { background:#f4f9ff; box-shadow:inset 2px 0 #1479ed; }
.dh-notification-icon { width:44px; height:44px; border-radius:11px; }
.dh-notification h3 { font-size:14px; line-height:1.35; }
.dh-notification p { color:#5d7188; }
.dh-notification .dh-actions { opacity:.76; transition:opacity .16s ease; }
.dh-notification:focus-within .dh-actions { opacity:1; }
@media (hover:hover) and (pointer:fine) { .dh-notification-preferences-button:hover { border-color:rgba(100,227,223,.6); background:rgba(255,255,255,.14); transform:translateY(-1px); } .dh-notification:hover .dh-actions { opacity:1; } }
@media (max-width:980px) { .dh-notification-overview { grid-template-columns:1fr auto; } .dh-notification-overview-stats { grid-row:2; grid-column:1/-1; } .dh-notification-overview-stats div:first-child { border-left:0; padding-left:0; } .dh-notification-preferences form { grid-template-columns:1fr 1fr; } .dh-notification-preferences form .dh-btn { justify-self:start; } }
@media (max-width:680px) { .dh-notification-overview { grid-template-columns:1fr; padding:20px; } .dh-notification-overview-stats { grid-row:auto; grid-column:auto; } .dh-notification-preferences-button { width:100%; } .dh-notifications-toolbar { padding:18px 14px 14px; } .dh-notifications-toolbar-controls { align-items:stretch; flex-direction:column; } .dh-notification-search { width:100%; } .dh-notification-filters,.dh-notification-preferences form { grid-template-columns:1fr; } .dh-notification { padding:15px 14px; } .dh-notifications-bulk-bar { padding-inline:14px; } }

/* Mantém a correção da versão 1.99.96: media do preview interno sempre completa. */
.dh-social-draft-preview .dh-social-post-card__media { display:block; min-height:0; background:#fff; }
.dh-social-draft-preview .dh-social-post-card__media > img,.dh-social-draft-preview .dh-social-post-card__media > video { display:block; width:100%; height:auto; min-height:0; max-height:none; object-fit:contain; background:#fff; }
.dh-social-draft-preview .dh-social-post-card__media.is-carousel { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; }
.dh-social-draft-preview .dh-social-post-card__media.is-carousel > * { flex:0 0 100%; width:100%; height:auto; min-height:0; max-height:none; scroll-snap-align:start; object-fit:contain; }

/* Approvals workspace */
.dh-approval-shell { display:grid; gap:18px; }
.dh-approval-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.dh-approval-kpis article { position:relative; overflow:hidden; min-height:126px; padding:20px; border:1px solid #dbe7f1; border-radius:16px; background:linear-gradient(145deg,#fff 20%,#f3f9ff); box-shadow:0 10px 28px rgba(20,58,94,.06); transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.dh-approval-kpis article:after { content:""; position:absolute; right:-28px; bottom:-42px; width:110px; height:110px; border-radius:50%; background:radial-gradient(circle,rgba(33,189,200,.2),rgba(22,119,255,.03) 68%,transparent 70%); }
.dh-approval-kpis span { display:block; color:#657994; font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.dh-approval-kpis strong { display:block; margin:8px 0 3px; color:#10233c; font-size:31px; line-height:1; }
.dh-approval-kpis small { color:#8191a7; }
.dh-approval-workspace { padding:0; overflow:hidden; }
.dh-approval-tabs { display:flex; gap:5px; padding:8px 8px 0; border-bottom:1px solid #e2ebf3; background:#f8fbfe; }
.dh-approval-tabs button { appearance:none; padding:13px 17px; border:0; border-bottom:3px solid transparent; background:transparent; color:#63758d; font:inherit; font-weight:750; cursor:pointer; }
.dh-approval-tabs button span { display:inline-grid; min-width:22px; height:22px; margin-left:6px; padding:0 6px; place-items:center; border-radius:999px; background:#e8f1fa; color:#42617e; font-size:11px; }
.dh-approval-tabs button.is-active { border-color:#1677ff; color:#10233c; }
.dh-approval-filters { display:grid; grid-template-columns:minmax(220px,1.45fr) repeat(3,minmax(150px,1fr)) auto; gap:10px; padding:18px; border-bottom:1px solid #e8eff5; }
.dh-approval-filters label { display:grid; gap:6px; }
.dh-approval-filters label>span { color:#70829a; font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.dh-approval-filters input,.dh-approval-filters select { width:100%; min-height:43px; padding:0 12px; border:1px solid #d3e0eb; border-radius:11px; background:#fff; color:#17283f; font:inherit; }
.dh-approval-filters .dh-btn { align-self:end; min-height:43px; }
.dh-approval-feedback { min-height:20px; margin:0; padding:9px 18px 0; color:#73859a; font-size:12px; text-align:right; }
.dh-approval-queue { display:grid; gap:14px; padding:10px 18px 18px; }
.dh-approval-item { overflow:hidden; border:1px solid #dbe6ef; border-radius:16px; background:#fff; box-shadow:0 8px 24px rgba(15,51,86,.05); transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.dh-approval-item>header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:19px 20px 16px; border-bottom:1px solid #edf2f6; }
.dh-approval-item>header h2 { margin:4px 0 5px; color:#10233c; font-size:19px; }
.dh-approval-item>header p { margin:0; color:#7a8ba0; font-size:12px; }
.dh-approval-type { color:#1677ff; font-size:10px; font-weight:850; letter-spacing:.09em; text-transform:uppercase; }
.dh-approval-body { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr); }
.dh-approval-body>section { min-width:0; padding:18px 20px; }
.dh-approval-body>section+section { border-left:1px solid #edf2f6; background:#fbfdff; }
.dh-approval-body h3 { margin:0 0 13px; color:#314760; font-size:13px; }
.dh-approval-preview>div { display:grid; grid-template-columns:100px minmax(0,1fr); gap:12px; padding:10px 0; border-top:1px solid #edf2f6; }
.dh-approval-preview>div>span { color:#788aa0; font-size:11px; font-weight:750; }
.dh-approval-preview p,.dh-approval-thread p { margin:0; color:#233951; font-size:13px; line-height:1.55; overflow-wrap:anywhere; }
.dh-approval-thread { display:grid; gap:10px; }
.dh-approval-thread>div { padding:11px; border:1px solid #e1ebf3; border-radius:11px; background:#fff; }
.dh-approval-thread .dh-person strong { font-size:12px; }
.dh-approval-thread p { margin:8px 0; }
.dh-approval-thread small { color:#8a99ab; font-size:10px; }
.dh-approval-compare { border-top:1px solid #e8eff5; background:#f8fbfe; }
.dh-approval-compare>summary { padding:13px 20px; color:#2a5f91; font-size:12px; font-weight:800; cursor:pointer; list-style-position:inside; }
.dh-approval-compare>div { display:grid; gap:10px; padding:0 20px 17px; }
.dh-approval-compare section { padding:13px; border:1px solid #dce7ef; border-radius:12px; background:#fff; }
.dh-approval-compare section.is-changed { border-color:#8fc3ef; background:#fbfdff; }
.dh-approval-compare h4 { display:flex; justify-content:space-between; margin:0 0 9px; color:#3c526b; font-size:12px; }
.dh-approval-compare h4 span { color:#1677ff; font-size:9px; letter-spacing:.08em; text-transform:uppercase; }
.dh-approval-compare section>div { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.dh-approval-compare article { padding:10px; border-radius:9px; background:#f5f8fb; }
.dh-approval-compare article small { color:#7d8da1; font-size:9px; font-weight:800; text-transform:uppercase; }
.dh-approval-compare article p { margin:6px 0 0; color:#294058; font-size:12px; line-height:1.5; }
.dh-approval-item>footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 20px; border-top:1px solid #e8eff5; }
.dh-approval-actions { display:flex; align-items:center; gap:8px; }
.dh-approval-actions form { margin:0; }
.dh-approval-actions details { position:relative; }
.dh-approval-actions details>summary { list-style:none; }
.dh-approval-actions details>summary::-webkit-details-marker { display:none; }
.dh-approval-actions details>form { position:absolute; z-index:8; right:0; bottom:calc(100% + 8px); width:min(390px,80vw); padding:15px; border:1px solid #d5e1ec; border-radius:13px; background:#fff; box-shadow:0 18px 44px rgba(12,42,73,.18); }
.dh-approval-actions details label { display:grid; gap:7px; color:#435a72; font-size:12px; font-weight:750; }
.dh-approval-actions textarea { width:100%; padding:10px; border:1px solid #d4e0ea; border-radius:9px; resize:vertical; font:inherit; }
.dh-approval-actions details form .dh-btn { margin-top:10px; }
.dh-approval-history { min-width:880px; }
.dh-approval-history-note { display:block; max-width:260px; margin-top:5px; color:#7c8da1; }
.dh-approval-no-results { margin:10px 18px 18px; }
[data-approval-item][hidden] { display:none!important; }
@media (hover:hover) and (pointer:fine) {
  .dh-approval-kpis article:hover,.dh-approval-item:hover { transform:translateY(-2px); border-color:#bed9ed; box-shadow:0 16px 35px rgba(15,51,86,.09); }
  .dh-approval-tabs button:hover { color:#1677ff; }
}
@media (max-width:1100px) { .dh-approval-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } .dh-approval-filters { grid-template-columns:1fr 1fr 1fr; } .dh-approval-filters label:first-child { grid-column:span 2; } }
@media (max-width:760px) { .dh-approval-kpis { grid-template-columns:1fr 1fr; } .dh-approval-filters { grid-template-columns:1fr; } .dh-approval-filters label:first-child { grid-column:auto; } .dh-approval-body { grid-template-columns:1fr; } .dh-approval-body>section+section { border-top:1px solid #edf2f6; border-left:0; } .dh-approval-item>footer { align-items:stretch; flex-direction:column; } .dh-approval-actions { align-items:stretch; flex-direction:column; } .dh-approval-actions form>.dh-btn,.dh-approval-actions details>.dh-btn { width:100%; } }
@media (max-width:470px) { .dh-approval-kpis { grid-template-columns:1fr; } .dh-approval-tabs { display:grid; grid-template-columns:1fr 1fr; } .dh-approval-tabs button { padding-inline:8px; } .dh-approval-item>header { flex-direction:column; } .dh-approval-preview>div { grid-template-columns:1fr; gap:4px; } .dh-approval-compare section>div { grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce) { .dh-approval-kpis article,.dh-approval-item { transition:none; } }

/* Login security dashboard */
.dh-login-dashboard {
  display: grid;
  gap: 18px;
}
.dh-login-filters {
  margin: 0;
}
.dh-login-filters .dh-card-head {
  align-items: flex-start;
  margin-bottom: 14px;
}
.dh-login-filters .dh-card-head h2 {
  margin-bottom: 4px;
}
.dh-login-filters .dh-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}
.dh-login-filters .dh-card-head > span {
  color: #55708d;
  font-size: 11px;
  font-weight: 700;
}
.dh-login-filters .dh-filterbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr)) repeat(2, minmax(135px, .72fr)) auto;
  gap: 10px;
  align-items: end;
}
.dh-login-filters select,
.dh-login-filters input {
  width: 100%;
  min-width: 0;
  height: 42px;
  margin: 0;
  border-color: #d7e3ef;
  border-radius: 10px;
  background-color: #f8fbfe;
}
.dh-login-filters select:hover,
.dh-login-filters input:hover {
  border-color: #9db8d2;
}
.dh-login-filters select:focus,
.dh-login-filters input:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22,119,255,.12);
  outline: none;
}
.dh-login-filters .dh-filter-date {
  display: grid;
  gap: 5px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.dh-login-filters [data-login-clear] {
  height: 42px;
  white-space: nowrap;
}
.dh-login-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #dce7f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16,44,73,.06);
}
.dh-login-overview > div {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-right: 1px solid #e5edf5;
}
.dh-login-overview > div:last-child {
  border-right: 0;
}
.dh-login-overview span {
  color: #5d7087;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dh-login-overview strong {
  color: #0b1f36;
  font-size: 26px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
}
.dh-login-overview small {
  color: #718197;
  font-size: 10px;
}
.dh-login-overview .has-warning strong,
.dh-login-overview .has-warning small {
  color: #b54708;
}
.dh-login-insights {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr);
  gap: 18px;
  margin-bottom: 18px;
}
.dh-login-insights .dh-card {
  margin: 0;
}
.dh-login-insights .dh-card-head {
  align-items: flex-start;
}
.dh-login-insights .dh-card-head h2 {
  margin-bottom: 4px;
}
.dh-login-insights .dh-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 11px;
}
.dh-login-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(12px, 1fr));
  align-items: end;
  gap: 7px;
  height: 220px;
  padding: 18px 4px 0;
  border-bottom: 1px solid #dbe6f0;
}
.dh-login-chart-column {
  display: grid;
  grid-template-rows: 18px 1fr 24px;
  align-items: end;
  height: 100%;
  text-align: center;
}
.dh-login-chart-column > span {
  color: #58708b;
  font-size: 9px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.dh-login-chart-column > i {
  position: relative;
  display: block;
  width: min(24px, 72%);
  min-height: 2px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 6px 6px 2px 2px;
  background: #2f7ff0;
  transition: filter .16s ease, transform .16s ease;
}
.dh-login-chart-column > i > b {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  background: #e05a63;
}
.dh-login-chart-column:hover > i {
  filter: saturate(1.18);
  transform: translateY(-2px);
}
.dh-login-chart-column > small {
  padding-top: 8px;
  color: #8292a4;
  font-size: 8px;
  white-space: nowrap;
}
.dh-login-chart-legend {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  padding-top: 14px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}
.dh-login-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dh-login-chart-legend i {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: #2f7ff0;
}
.dh-login-chart-legend span:last-child i {
  background: #e05a63;
}
.dh-login-user-list {
  display: grid;
  gap: 15px;
}
.dh-login-user-list > div {
  display: grid;
  grid-template-columns: minmax(135px, 1fr) minmax(70px, .7fr) auto;
  align-items: center;
  gap: 10px;
}
.dh-login-user-list .dh-person {
  min-width: 0;
}
.dh-login-user-list .dh-person span:last-child {
  min-width: 0;
}
.dh-login-user-list .dh-person strong,
.dh-login-user-list .dh-person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dh-login-user-list > div > i {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9f0f7;
}
.dh-login-user-list > div > i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2f7ff0;
}
.dh-login-user-list > div > strong {
  color: #193653;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.dh-login-history {
  margin: 0;
  transition: opacity .16s ease;
}
.dh-login-history .dh-card-head {
  align-items: flex-start;
}
.dh-login-history .dh-card-head h2 {
  margin-bottom: 4px;
}
.dh-login-history .dh-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 11px;
}
.dh-login-ip {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1180px) {
  .dh-login-filters .dh-filterbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dh-login-insights {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .dh-login-filters .dh-filterbar,
  .dh-login-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dh-login-overview > div:nth-child(2) {
    border-right: 0;
  }
  .dh-login-overview > div:nth-child(-n+2) {
    border-bottom: 1px solid #e5edf5;
  }
  .dh-login-chart {
    gap: 3px;
    height: 190px;
  }
  .dh-login-chart-column > span {
    display: none;
  }
  .dh-login-chart-column > small {
    transform: rotate(-50deg);
  }
  .dh-login-chart-column:nth-child(even) > small {
    visibility: hidden;
  }
}
@media (max-width: 520px) {
  .dh-login-filters .dh-filterbar,
  .dh-login-overview {
    grid-template-columns: 1fr;
  }
  .dh-login-overview > div {
    border-right: 0;
    border-bottom: 1px solid #e5edf5;
  }
  .dh-login-overview > div:last-child {
    border-bottom: 0;
  }
}

/* v1.2 - Hub authentication mirrors the dappin-login visual language */
.dh-login-body {
  background: #031021 url("../images/dappin-login-background.png") center/cover
    fixed no-repeat;
  padding: 28px;
  overflow-y: auto;
}
.dh-login-body:before {
  background:
    radial-gradient(
      circle at 72% 18%,
      rgba(53, 231, 223, 0.23),
      transparent 30%
    ),
    radial-gradient(
      circle at 12% 78%,
      rgba(74, 168, 255, 0.18),
      transparent 34%
    ),
    linear-gradient(135deg, rgba(1, 10, 28, 0.28), rgba(0, 8, 22, 0.5));
}
.dh-login-body:after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(
    circle at 50% 50%,
    rgba(0, 0, 0, 0.62),
    transparent 72%
  );
  opacity: 0.3;
}
.dh-login-shell {
  z-index: 1;
  width: min(462px, calc(100vw - 34px));
  min-height: 0;
  display: block;
  border: 1px solid rgba(53, 231, 223, 0.28);
  border-radius: 30px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.105),
      rgba(255, 255, 255, 0.035)
    ),
    rgba(5, 20, 39, 0.88);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(24px) saturate(135%);
  overflow: hidden;
}
.dh-login-brand {
  min-height: auto;
  padding: 40px 38px 20px;
  display: block;
  text-align: center;
  background: transparent;
}
.dh-login-brand:after {
  display: none;
}
.dh-login-brand .dh-brand-mark {
  width: min(255px, 82%);
  height: 76px;
  margin: auto;
  background-image: url("../images/dappin-logo-white.webp");
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.42));
}
.dh-login-brand h1 {
  margin: 18px 0 7px;
  font-size: 23px;
  color: #f4fbff;
  letter-spacing: -0.02em;
}
.dh-login-brand p {
  max-width: 330px;
  margin: 0 auto;
  color: #ccefff;
  font-size: 13px;
  line-height: 1.55;
}
.dh-login-card {
  padding: 20px 38px 38px;
  background: transparent;
  color: #f4fbff;
}
.dh-login-card-head {
  text-align: center;
  margin-bottom: 24px;
}
.dh-login-card-head h2 {
  color: #f4fbff;
  font-size: 27px;
  margin: 7px 0;
}
.dh-login-card-head p {
  color: #ccefff;
}
.dh-login-card .dh-eyebrow {
  color: #35e7df;
}
.dh-login-card .dh-form label {
  color: #ccefff;
}
.dh-login-card .dh-form input {
  min-height: 50px;
  border: 1px solid rgba(53, 231, 223, 0.24);
  border-radius: 16px;
  background: rgba(4, 16, 32, 0.72);
  color: #f4fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.13);
}
.dh-login-card .dh-form input::placeholder {
  color: rgba(224, 245, 255, 0.42);
}
.dh-login-card .dh-form input:focus {
  border-color: rgba(53, 231, 223, 0.82);
  background: rgba(5, 18, 38, 0.86);
  box-shadow:
    0 0 0 4px rgba(53, 231, 223, 0.13),
    0 18px 36px rgba(0, 0, 0, 0.2);
}
.dh-login-card .dh-btn-primary {
  min-height: 50px;
  border-radius: 16px;
  background: #35e7df;
  color: #02111f;
  box-shadow: 0 16px 34px rgba(53, 231, 223, 0.2);
}
.dh-login-card .dh-btn-primary:hover {
  background: #56f4ec;
  box-shadow: 0 20px 42px rgba(53, 231, 223, 0.25);
}
.dh-login-card .dh-btn-ghost {
  color: #ccefff;
  border-color: rgba(53, 231, 223, 0.2);
  background: rgba(255, 255, 255, 0.04);
}
.dh-login-card .dh-muted-link {
  color: #ccefff;
}
.dh-login-card .dh-muted-link:hover {
  color: #35e7df;
}
.dh-login-card .dh-check {
  color: #ccefff;
}
.dh-login-card .dh-alert {
  color: #071629;
}
@media (max-width: 600px) {
  .dh-login-body {
    padding: 14px;
  }
  .dh-login-shell {
    width: 100%;
    border-radius: 22px;
  }
  .dh-login-brand {
    display: block;
    min-height: 0;
    padding: 28px 22px 12px;
  }
  .dh-login-brand .dh-brand-mark {
    width: 210px;
    height: 62px;
  }
  .dh-login-brand h1 {
    display: block;
    font-size: 21px;
    margin-top: 12px;
  }
  .dh-login-brand p {
    display: block;
  }
  .dh-login-card {
    padding: 15px 22px 28px;
  }
  .dh-login-card-head h2 {
    font-size: 25px;
  }
}
.dh-kpi[role="button"] {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.dh-kpi[role="button"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 49, 91, 0.12);
}
.dh-dashboard-panel {
  display: none;
  margin: 0 0 22px;
}
.dh-dashboard-panel.open {
  display: block;
  animation: dhFade 0.2s ease;
}
.dh-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
@keyframes dhFade {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Interactive Avatar Upload Widget */
.dh-avatar-upload-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 0 20px 0;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(7, 22, 42, 0.12);
  border: 3px solid var(--surface);
  background: #07162a;
  display: grid;
  place-items: center;
}
.dh-avatar-upload-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    filter 0.25s ease,
    transform 0.25s ease;
}
.dh-avatar-upload-wrap .dh-avatar-fallback {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
}
.dh-avatar-upload-wrap .dh-avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 22, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.dh-avatar-upload-wrap .dh-avatar-overlay svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dh-avatar-upload-wrap .dh-avatar-overlay span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.dh-avatar-upload-wrap:hover img {
  filter: brightness(0.7) blur(2px);
  transform: scale(1.05);
}
.dh-avatar-upload-wrap:hover .dh-avatar-overlay {
  opacity: 1;
}
.dh-avatar-upload-wrap input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 10;
}
.dh-metrics-builder {
  border: 1px solid var(--dh-border, #dce5ef);
  border-radius: 14px;
  padding: 18px;
  background: #f8fbff;
}
.dh-metric-rows {
  display: grid;
  gap: 10px;
}
.dh-metric-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr 1.1fr 1.2fr auto;
  gap: 8px;
  align-items: center;
}
.dh-metric-row input,
.dh-metric-row select {
  min-width: 0;
}
.dh-report-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, #071a3e, #0755c9);
  color: #fff;
  margin-bottom: 22px;
}
.dh-report-hero span {
  font-size: 11px;
  letter-spacing: 0.16em;
  opacity: 0.72;
}
.dh-report-hero h2 {
  font-size: 30px;
  margin: 5px 0;
}
.dh-report-hero p {
  margin: 0;
  opacity: 0.8;
}
.dh-report-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.dh-report-kpis article {
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--dh-border, #dce5ef);
  box-shadow: 0 8px 24px rgba(11, 43, 82, 0.06);
}
.dh-report-kpis small,
.dh-report-kpis span {
  display: block;
  color: var(--dh-muted, #65758b);
}
.dh-report-kpis strong {
  display: block;
  font-size: 30px;
  color: #0755c9;
  margin: 8px 0 4px;
}
.dh-report-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.dh-chart-stage {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.dh-bars {
  width: 100%;
  display: grid;
  gap: 14px;
}
.dh-bars > div div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}
.dh-bars > div > i {
  display: block;
  height: 12px;
  border-radius: 999px;
  min-width: 2%;
}
.dh-donut {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.dh-donut span {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
}
.dh-chart-legend {
  display: grid;
  gap: 9px;
  min-width: 180px;
}
.dh-chart-legend p {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 0;
}
.dh-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dh-line-wrap {
  width: 100%;
}
.dh-line-wrap svg {
  width: 100%;
  height: auto;
  background: linear-gradient(
    to bottom,
    transparent 24%,
    #edf2f8 25%,
    transparent 26%,
    transparent 49%,
    #edf2f8 50%,
    transparent 51%,
    transparent 74%,
    #edf2f8 75%,
    transparent 76%
  );
}
.dh-line-wrap polyline {
  fill: none;
  stroke: #0874e8;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dh-line-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--dh-muted, #65758b);
}
@media (max-width: 800px) {
  .dh-metric-row {
    grid-template-columns: 1fr 1fr;
  }
  .dh-metric-row .dh-remove-metric {
    grid-column: 2;
  }
  .dh-report-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .dh-report-charts {
    grid-template-columns: 1fr;
  }
  .dh-chart-stage {
    align-items: flex-start;
    flex-direction: column;
  }
  .dh-donut {
    align-self: center;
  }
}
/* Line-chart points remain visible even when a series contains a single metric. */
.dh-line-wrap circle {
  fill: #fff;
  stroke: #0874e8;
  stroke-width: 5;
}
.dh-metric-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dh-metric-blocks {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.dh-metric-block {
  padding: 16px;
  border: 1px solid #dce7f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(7, 22, 42, 0.045);
}
.dh-metric-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.dh-metric-block-head strong,
.dh-metric-block-head small {
  display: block;
}
.dh-metric-block-head small {
  margin-top: 3px;
  color: #64748b;
}
.dh-chart-settings {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(150px, 1fr);
  gap: 10px;
  flex: 1;
}
.dh-chart-settings label,
.dh-metric-row label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}
.dh-metric-row {
  grid-template-columns:
    minmax(130px, 1fr) minmax(170px, 1.35fr) minmax(150px, 1fr)
    36px;
}
.dh-block-values {
  display: grid;
  gap: 9px;
  margin-bottom: 10px;
}
.dh-icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #dce7f1;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 20px;
  cursor: pointer;
}
.dh-icon-btn:hover,
.dh-icon-btn:focus-visible {
  border-color: #1677ff;
  color: #1677ff;
  outline: 3px solid rgba(22, 119, 255, 0.16);
}
.dh-metric-block input,
.dh-metric-block select {
  width: 100%;
}
@media (max-width: 900px) {
  .dh-report-charts {
    grid-template-columns: 1fr;
  }
  .dh-report-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dh-chart-stage {
    min-width: 0;
  }
  .dh-chart-settings {
    grid-template-columns: 1fr 170px;
  }
}
@media (max-width: 640px) {
  .dh-metrics-builder {
    padding: 14px;
  }
  .dh-metrics-builder .dh-card-head,
  .dh-metric-block-head {
    align-items: stretch;
    flex-direction: column;
  }
  .dh-metric-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .dh-metric-actions .dh-btn {
    width: 100%;
  }
  .dh-chart-settings,
  .dh-metric-row {
    grid-template-columns: 1fr;
  }
  .dh-metric-row .dh-icon-btn {
    justify-self: end;
  }
  .dh-metric-block-head > .dh-icon-btn {
    align-self: flex-end;
    order: -1;
  }
  .dh-report-kpis {
    grid-template-columns: 1fr;
  }
  .dh-report-hero {
    padding: 20px;
  }
  .dh-report-hero h2 {
    font-size: 25px;
  }
  .dh-report-hero .dh-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .dh-report-hero .dh-actions .dh-btn {
    width: 100%;
  }
  .dh-report-charts {
    grid-template-columns: minmax(0, 1fr);
  }
  .dh-chart-stage {
    min-height: 0;
  }
  .dh-chart-legend {
    min-width: 0;
    width: 100%;
  }
  .dh-donut {
    width: 150px;
    height: 150px;
  }
  .dh-line-labels {
    overflow-x: auto;
    padding-bottom: 5px;
  }
  .dh-line-labels span {
    flex: 0 0 auto;
  }
}

/* v1.21 - restrained premium depth and chart interaction */
.dh-report-kpis article {
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.dh-report-kpis article:hover,
.dh-report-kpis article:focus-within {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--platform, #1677ff) 34%, #dce7f1);
  box-shadow: 0 15px 34px rgba(16, 44, 73, 0.11);
}
.dh-report-kpis article strong {
  transition: transform 0.22s ease;
  transform-origin: left center;
}
.dh-report-kpis article:hover strong {
  transform: translateX(3px);
}
.dh-auto-chart {
  position: relative;
  isolation: isolate;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.dh-auto-chart:hover,
.dh-auto-chart:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--platform, #1677ff) 30%, #dce7f1);
  box-shadow: 0 18px 42px rgba(16, 44, 73, 0.12);
  outline: none;
}
.dh-auto-chart:after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 22px -7px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 44, 73, 0.09);
  filter: blur(9px);
  opacity: 0;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
  transform: scaleX(0.88);
  pointer-events: none;
}
.dh-auto-chart:hover:after,
.dh-auto-chart:focus-visible:after {
  opacity: 1;
  transform: scaleX(1);
}
.dh-donut {
  position: relative;
  border: 1px solid rgba(16, 44, 73, 0.08);
  box-shadow:
    0 16px 30px rgba(16, 44, 73, 0.14),
    inset -7px -8px 13px rgba(7, 22, 42, 0.1),
    inset 5px 5px 12px rgba(255, 255, 255, 0.22);
  transform: perspective(700px) rotateX(3deg);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
  animation: dh-chart-arrive 0.44s ease both;
}
.dh-auto-chart:hover .dh-donut,
.dh-auto-chart:focus-visible .dh-donut {
  transform: perspective(700px) rotateX(0deg) scale(1.025);
  box-shadow:
    0 20px 38px rgba(16, 44, 73, 0.17),
    inset -7px -8px 13px rgba(7, 22, 42, 0.08),
    inset 5px 5px 12px rgba(255, 255, 255, 0.25);
}
.dh-donut span {
  display: grid;
  place-content: center;
  text-align: center;
  box-shadow:
    inset 0 7px 14px rgba(16, 44, 73, 0.08),
    0 1px 0 #fff;
}
.dh-donut span b,
.dh-donut span small {
  display: block;
}
.dh-donut span b {
  color: #071629;
  font-size: 18px;
  line-height: 1.1;
}
.dh-donut span small {
  margin-top: 3px;
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}
.dh-chart-legend p {
  padding: 6px 8px;
  border-radius: 8px;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease;
}
.dh-chart-legend p:hover,
.dh-chart-legend p:focus-visible {
  transform: translateX(3px);
  background: #f3f7fb;
  outline: 2px solid rgba(22, 119, 255, 0.14);
}
.dh-bars > div {
  padding: 5px 7px;
  border-radius: 8px;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease;
}
.dh-bars > div:hover,
.dh-bars > div:focus-visible {
  transform: translateX(3px);
  background: #f3f7fb;
  outline: none;
}
.dh-bars > div > i {
  position: relative;
  box-shadow: 0 5px 10px rgba(16, 44, 73, 0.12);
  transform-origin: left center;
  animation: dh-bar-reveal 0.48s ease both;
}
.dh-line-wrap polyline {
  filter: drop-shadow(0 7px 8px rgba(22, 119, 255, 0.18));
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: dh-line-reveal 0.7s ease forwards;
}
.dh-line-wrap circle {
  transition:
    transform 0.18s ease,
    fill 0.18s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.dh-line-wrap circle:hover {
  transform: scale(1.45);
  fill: #1677ff;
}
@keyframes dh-chart-arrive {
  from {
    opacity: 0;
    transform: perspective(700px) rotateX(3deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: perspective(700px) rotateX(3deg) scale(1);
  }
}
@keyframes dh-bar-reveal {
  from {
    opacity: 0.35;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}
@keyframes dh-line-reveal {
  to {
    stroke-dashoffset: 0;
  }
}

/* v1.22 - quick chart type selector and compatible renderers */
.dh-custom-chart-controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.dh-custom-chart-controls label {
  min-width: 190px;
}
.dh-custom-chart-type {
  appearance: none;
  min-height: 42px;
  padding: 0 42px 0 13px;
  border: 1px solid #bfcfe0;
  border-radius: 10px;
  background-color: #f3f7fb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23102C49' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: #071629;
  font-weight: 700;
  cursor: pointer;
}
.dh-custom-chart-type:hover {
  border-color: #1677ff;
}
.dh-custom-chart-type:focus {
  border-color: #1677ff;
  outline: 3px solid rgba(22, 119, 255, 0.16);
}
.dh-custom-chart-type option:disabled {
  color: #94a3b8;
}
.dh-custom-chart-hint {
  min-height: 18px;
  margin: 2px 0 4px;
  color: #64748b;
  font-size: 11px;
}
.dh-custom-donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-height: 260px;
  padding: 22px;
  border: 1px solid #dce7f1;
  border-radius: 14px;
  background: #f3f7fb;
}
.dh-custom-donut {
  width: 190px;
  height: 190px;
}
.dh-custom-line {
  padding: 18px;
  border: 1px solid #dce7f1;
  border-radius: 14px;
  background: #f3f7fb;
  overflow: hidden;
}
.dh-custom-line svg {
  display: block;
  width: 100%;
  height: 260px;
  border-bottom: 1px solid #bfcfe0;
}
.dh-custom-line-mark {
  fill: none;
  stroke: #1677ff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 7px 8px rgba(22, 119, 255, 0.18));
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: dh-line-reveal 0.7s ease forwards;
}
.dh-custom-area-fill {
  fill: #dcecff;
  animation: dh-chart-fade 0.45s ease both;
}
.dh-custom-line circle {
  fill: #fff;
  stroke: #1677ff;
  stroke-width: 5;
  transition:
    transform 0.18s ease,
    fill 0.18s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.dh-custom-line circle:hover {
  fill: #1677ff;
  transform: scale(1.35);
}
.dh-custom-axis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.dh-custom-axis span,
.dh-custom-axis small,
.dh-custom-axis b {
  display: block;
}
.dh-custom-axis span {
  min-width: 0;
  text-align: center;
}
.dh-custom-axis small {
  color: #64748b;
  font-size: 9px;
  line-height: 1.25;
}
.dh-custom-axis b {
  margin-top: 3px;
  color: #071629;
  font-size: 11px;
}
.dh-custom-columns {
  display: flex;
  align-items: stretch;
  gap: 14px;
  height: 330px;
  padding: 22px 18px 14px;
  border: 1px solid #dce7f1;
  border-radius: 14px;
  background: #f3f7fb;
  overflow-x: auto;
}
.dh-custom-columns > div {
  --column: #1677ff;
  display: grid;
  grid-template-rows: 24px 1fr 44px;
  gap: 7px;
  min-width: 110px;
  flex: 1 0 110px;
  text-align: center;
}
.dh-custom-columns > div > b {
  color: #071629;
  font-size: 12px;
}
.dh-custom-columns > div > span {
  color: #64748b;
  font-size: 10px;
  line-height: 1.25;
}
.dh-custom-columns > div > i {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-bottom: 1px solid #bfcfe0;
}
.dh-custom-columns > div > i > em {
  width: min(62px, 64%);
  height: var(--dh-column-height);
  border-radius: 8px 8px 2px 2px;
  background: var(--column);
  box-shadow: 0 8px 16px rgba(16, 44, 73, 0.14);
  transform-origin: bottom center;
  animation: dh-column-reveal 0.5s ease both;
}
.dh-custom-columns > div[data-platform="instagram"] {
  --column: #c13584;
}
.dh-custom-columns > div[data-platform="facebook"] {
  --column: #1877f2;
}
.dh-custom-columns > div[data-platform="linkedin"] {
  --column: #0a66c2;
}
.dh-custom-columns > div[data-platform="youtube"] {
  --column: #e62117;
}
.dh-custom-columns > div[data-platform="website"] {
  --column: #008b78;
}
.dh-custom-columns > div[data-platform="audiencia"] {
  --column: #102c49;
}
@keyframes dh-column-reveal {
  from {
    opacity: 0.35;
    transform: scaleY(0);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}
@media (max-width: 800px) {
  .dh-custom-chart-controls {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .dh-custom-chart-controls label {
    min-width: 0;
  }
}
@media (max-width: 600px) {
  .dh-custom-chart-controls {
    grid-template-columns: 1fr;
  }
  .dh-custom-donut-wrap {
    flex-direction: column;
    align-items: center;
  }
  .dh-custom-line {
    padding: 10px;
  }
  .dh-custom-line svg {
    height: 210px;
  }
  .dh-custom-axis {
    display: flex;
    overflow-x: auto;
  }
  .dh-custom-axis span {
    min-width: 110px;
  }
}
@media (min-width: 1600px) {
  .dh-report-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .dh-report-charts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dh-report-charts .dh-card:only-child {
    grid-column: 1/-1;
    max-width: 900px;
  }
}
.dh-person {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-align: left;
}
.dh-person > span:last-child {
  min-width: 0;
}
.dh-person strong,
.dh-person small {
  display: block;
  line-height: 1.25;
}
.dh-person strong {
  font-size: 12px;
  color: inherit;
}
.dh-person small {
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
  white-space: normal;
}
.dh-avatar-sm {
  width: 30px;
  height: 30px;
  min-width: 30px;
  font-size: 11px;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
}
.dh-top-user .dh-person strong {
  font-size: 13px;
}
.dh-version-list > div {
  align-items: center;
}
.dh-version-list > div > .dh-person {
  margin-left: auto;
}
.dh-timeline .dh-person {
  margin-bottom: 6px;
}
.dh-timeline .dh-person strong {
  font-size: 12px;
}
.dh-timeline .dh-person small {
  font-size: 10px;
}
.dh-table .dh-person {
  min-width: 145px;
}
@media (max-width: 640px) {
  .dh-top-user .dh-person > span:last-child {
    display: none;
  }
  .dh-top-user .dh-avatar-sm {
    width: 34px;
    height: 34px;
  }
  .dh-table .dh-person {
    min-width: 125px;
  }
}
.dh-view-switch {
  display: flex;
  gap: 8px;
}
.dh-view-switch .dh-inline-form {
  display: contents;
}
.dh-calendar-shell {
  padding: 0;
  overflow: hidden;
}
.dh-calendar-filters {
  padding: 16px 18px;
  margin: 0;
  border-bottom: 1px solid #dce7f1;
}
.dh-filter-count {
  margin-left: auto;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  align-self: center;
}
.dh-calendar-weekdays,
.dh-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.dh-calendar-weekdays {
  background: #f7fafe;
  border-bottom: 1px solid #dce7f1;
}
.dh-calendar-weekdays span {
  padding: 11px 12px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dh-calendar-day {
  min-height: 145px;
  padding: 9px;
  border-right: 1px solid #dce7f1;
  border-bottom: 1px solid #dce7f1;
  background: #fff;
  min-width: 0;
}
.dh-calendar-day:nth-child(7n) {
  border-right: 0;
}
.dh-calendar-day.is-outside {
  background: #f7fafe;
}
.dh-calendar-day.is-outside .dh-calendar-date,
.dh-calendar-day.is-outside .dh-calendar-items {
  opacity: 0.35;
}
.dh-calendar-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}
.dh-calendar-date span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}
.dh-calendar-day.is-today .dh-calendar-date span {
  background: #1677ff;
  color: #fff;
}
.dh-calendar-date a {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #64748b;
  font-size: 17px;
}
.dh-calendar-date a:hover,
.dh-calendar-date a:focus-visible {
  background: #e8f0ff;
  color: #1677ff;
  outline: none;
}
.dh-calendar-items {
  display: grid;
  gap: 6px;
}
.dh-calendar-item {
  display: block;
  padding: 8px;
  border: 1px solid #dce7f1;
  border-left: 3px solid #1677ff;
  border-radius: 8px;
  background: #f7fafe;
  min-width: 0;
}
.dh-calendar-item:hover {
  border-color: #1677ff;
}
.dh-calendar-item strong,
.dh-calendar-item small,
.dh-calendar-time {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dh-calendar-item strong {
  font-size: 11px;
  margin: 3px 0;
  color: #071629;
}
.dh-calendar-item small,
.dh-calendar-time {
  font-size: 9px;
  color: #64748b;
}
.dh-calendar-item.dh-cal-awaiting_approval {
  border-left-color: #9a670d;
}
.dh-calendar-item.dh-cal-changes_requested {
  border-left-color: #b93848;
}
.dh-calendar-item.dh-cal-approved {
  border-left-color: #147a52;
}
.dh-calendar-item.dh-cal-published {
  border-left-color: #102c49;
}
.dh-calendar-agenda {
  display: none;
}
.dh-agenda-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #dce7f1;
}
.dh-agenda-item:last-child {
  border-bottom: 0;
}
.dh-agenda-item time {
  border-right: 1px solid #dce7f1;
  text-align: center;
}
.dh-agenda-item time b,
.dh-agenda-item time span,
.dh-agenda-item > div > * {
  display: block;
}
.dh-agenda-item time b {
  font-size: 20px;
}
.dh-agenda-item time span {
  text-transform: uppercase;
  font-size: 9px;
  color: #64748b;
}
.dh-agenda-item > div small,
.dh-agenda-item > div span {
  color: #64748b;
  font-size: 10px;
}
.dh-agenda-item > div strong {
  font-size: 12px;
  margin: 3px 0;
}
.dh-report-draft {
  border: 2px solid #1677ff;
}
.dh-compare-picker .dh-filterbar {
  margin: 0;
  align-items: flex-end;
}
.dh-compare-picker label {
  display: grid;
  gap: 6px;
  flex: 1;
}
.dh-compare-picker label > span {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dh-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.dh-compare-grid article {
  padding: 16px;
  border: 1px solid #dce7f1;
  border-radius: 14px;
  background: #f3f7fb;
}
.dh-compare-grid article > small,
.dh-compare-grid article > strong,
.dh-compare-grid article > p {
  display: block;
}
.dh-compare-grid article > small {
  font-size: 9px;
  color: #64748b;
  text-transform: uppercase;
}
.dh-compare-grid article > strong {
  margin: 5px 0 12px;
}
.dh-compare-grid article > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.dh-compare-grid article b {
  font-size: 20px;
}
.dh-compare-grid article span {
  font-size: 11px;
  font-weight: 800;
}
.dh-compare-grid .is-up {
  color: #14754d;
}
.dh-compare-grid .is-down {
  color: #b93f4b;
}
.dh-compare-grid article p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 10px;
}
.dh-period-chart {
  overflow: hidden;
  position: relative;
  border-color: #dce7f1;
  background: linear-gradient(145deg, #fff 55%, #f3f7fb);
}
.dh-period-chart:before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 2px solid #1677ff;
  pointer-events: none;
}
.dh-period-chart .dh-card-head {
  align-items: flex-end;
}
.dh-period-chart .dh-card-head h2 {
  margin-bottom: 4px;
}
.dh-period-chart .dh-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}
.dh-period-chart .dh-card-head label {
  display: grid;
  gap: 5px;
  min-width: 240px;
}
.dh-period-chart .dh-card-head label > span {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.dh-period-chart-stage {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 250px;
}
.dh-period-summary {
  display: grid;
  gap: 6px;
}
.dh-period-summary small {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.dh-period-summary strong {
  font-size: 22px;
  color: #071629;
}
.dh-period-summary span {
  font-size: 14px;
  font-weight: 800;
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
}
.dh-period-summary .is-up {
  color: #08704a;
  background: #e8f7f0;
}
.dh-period-summary .is-down {
  color: #a73543;
  background: #fff0f2;
}
.dh-period-visual {
  min-width: 0;
}
.dh-period-visual svg {
  display: block;
  width: 100%;
  height: 190px;
  overflow: visible;
}
.dh-period-area {
  fill: url(#dh-line-fill);
  animation: dh-chart-fade 0.55s ease both;
}
.dh-period-line {
  fill: none;
  stroke: #1677ff;
  stroke-width: 6;
  stroke-linecap: round;
  filter: drop-shadow(0 7px 7px rgba(22, 119, 255, 0.16));
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  animation: dh-chart-draw 0.7s ease forwards;
}
.dh-period-point circle:first-child {
  fill: #1677ff;
  opacity: 0.08;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.dh-period-point circle:nth-of-type(2) {
  fill: #fff;
  stroke: #1677ff;
  stroke-width: 6;
}
.dh-period-point-value {
  fill: #0f2742;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  paint-order: stroke;
  stroke: #fff;
  stroke-linejoin: round;
  stroke-width: 5px;
  pointer-events: none;
}
.dh-period-point:hover circle:first-child {
  opacity: 0.18;
  transform: scale(1.28);
}
.dh-period-labels {
  display: flex;
  justify-content: space-between;
  margin: -10px 2% 0;
}
.dh-period-labels span {
  display: grid;
  gap: 3px;
}
.dh-period-labels span:last-child {
  text-align: right;
}
.dh-period-labels small {
  color: #64748b;
  font-size: 10px;
  text-transform: uppercase;
}
.dh-period-labels b {
  color: #071629;
  font-size: 16px;
}
@keyframes dh-chart-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes dh-chart-fade {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 900px) {
  .dh-calendar-day {
    min-height: 118px;
    padding: 6px;
  }
  .dh-calendar-item {
    padding: 6px;
  }
  .dh-calendar-item small {
    display: none;
  }
  .dh-compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .dh-compare-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .dh-period-chart .dh-card-head {
    align-items: stretch;
    flex-direction: column;
  }
  .dh-period-chart .dh-card-head label {
    min-width: 0;
    width: 100%;
  }
  .dh-period-chart-stage {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .dh-period-summary {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .dh-period-summary small {
    grid-column: 1/-1;
  }
  .dh-period-summary span {
    grid-column: 2;
    grid-row: 2;
  }
  .dh-period-visual svg {
    height: 160px;
  }
}
@media (max-width: 640px) {
  .dh-view-switch {
    width: 100%;
  }
  .dh-view-switch .dh-btn {
    flex: 1;
  }
  .dh-calendar-shell {
    padding: 0 14px;
  }
  .dh-calendar-filters {
    margin: 0 -14px;
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .dh-calendar-filters select {
    min-width: 0;
  }
  .dh-filter-count {
    grid-column: 1/-1;
    margin: 3px 0 0;
  }
  .dh-calendar-weekdays,
  .dh-calendar-grid {
    display: none;
  }
  .dh-calendar-agenda {
    display: block;
  }
  .dh-agenda-item .dh-badge {
    justify-self: end;
  }
  .dh-page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .dh-page-actions {
    width: 100%;
  }
}
.dh-alert-warning {
  background: #fff8e7;
  border-color: #f2c96d;
  color: #6b4c00;
}

/* v1.17 - report platform indicators and user-built quick charts */
.dh-metric-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 18px;
  padding: 4px;
  scrollbar-width: thin;
}
.dh-metric-tabs button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #dce7f1;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font:
    700 12px Arial,
    sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.dh-metric-tabs button:hover,
.dh-metric-tabs button:focus-visible {
  border-color: #1677ff;
  color: #1677ff;
  outline: none;
}
.dh-metric-tabs button.is-active {
  border-color: #1677ff;
  background: #1677ff;
  color: #fff;
}
.dh-builder-filter {
  display: grid;
  grid-template-columns: auto minmax(180px, 260px);
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #dce7f1;
  border-radius: 14px;
  background: #f3f7fb;
}
.dh-builder-filter > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.dh-custom-chart {
  margin-top: 22px;
  border-top: 2px solid #1677ff;
}
.dh-custom-chart .dh-card-head {
  align-items: flex-end;
}
.dh-custom-chart .dh-card-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
}
.dh-custom-chart .dh-card-head label {
  display: grid;
  gap: 5px;
  min-width: 220px;
}
.dh-custom-chart .dh-card-head label > span {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.dh-custom-chart-options {
  display: grid;
  gap: 22px;
  margin: 16px 0;
}
.dh-custom-option-group {
  --platform: #1677ff;
  display: grid;
  gap: 11px;
  padding: 16px;
  border: 1px solid #dce7f1;
  border-radius: 14px;
  background: #f3f7fb;
}
.dh-custom-option-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dh-custom-option-group-head .dh-platform-mark {
  height: 31px;
  background: var(--platform);
}
.dh-custom-option-group-head strong,
.dh-custom-option-group-head small {
  display: block;
}
.dh-custom-option-group-head strong {
  color: #071629;
  font-size: 15px;
}
.dh-custom-option-group-head small {
  margin-top: 2px;
  color: #64748b;
  font-size: 10px;
}
.dh-custom-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 9px;
}
.dh-custom-option-group[data-platform="instagram"] {
  --platform: #c13584;
}
.dh-custom-option-group[data-platform="instagram"] .dh-platform-mark {
  background: linear-gradient(180deg, #c13584, #fd1d1d, #fcb045);
}
.dh-custom-option-group[data-platform="facebook"] {
  --platform: #1877f2;
}
.dh-custom-option-group[data-platform="linkedin"] {
  --platform: #0a66c2;
}
.dh-custom-option-group[data-platform="youtube"] {
  --platform: #e62117;
}
.dh-custom-option-group[data-platform="website"] {
  --platform: #008b78;
}
.dh-custom-option-group[data-platform="audiencia"] {
  --platform: #102c49;
}
.dh-custom-choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #dce7f1;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.dh-custom-choice:hover {
  border-color: #1677ff;
  background: #f3f7fb;
}
.dh-custom-choice input {
  width: 17px;
  height: 17px;
  accent-color: #1677ff;
}
.dh-custom-choice span {
  font-size: 12px;
  color: #071629;
}
.dh-custom-choice b {
  font-size: 12px;
  color: #1677ff;
}
.dh-custom-chart-message {
  min-height: 18px;
  margin: 0 0 9px;
  color: #a73543;
  font-size: 11px;
  font-weight: 700;
}
.dh-custom-chart-stage {
  margin-top: 18px;
}
.dh-custom-bars {
  display: grid;
  gap: 15px;
  padding: 18px;
  border: 1px solid #dce7f1;
  border-radius: 14px;
  background: #f3f7fb;
}
.dh-custom-bars > div > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.dh-custom-bars span {
  color: #071629;
  font-size: 12px;
}
.dh-custom-bars b {
  color: #071629;
  font-size: 12px;
}
.dh-custom-bars i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #dce7f1;
  overflow: hidden;
}
.dh-custom-bars em {
  display: block;
  width: var(--dh-bar-width);
  height: 100%;
  border-radius: inherit;
  background: #1677ff;
  transform-origin: left;
  animation: dh-bar-grow 0.5s ease both;
}
@keyframes dh-bar-grow {
  from {
    transform: scaleX(0);
    opacity: 0.45;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}
.dh-period-chart {
  background: #fff;
}
.dh-period-area {
  fill: #e8f2ff;
}
@media (max-width: 700px) {
  .dh-custom-chart .dh-card-head {
    align-items: stretch;
    flex-direction: column;
  }
  .dh-custom-chart .dh-card-head label {
    min-width: 0;
    width: 100%;
  }
  .dh-custom-chart-options {
    gap: 15px;
  }
  .dh-custom-option-group {
    padding: 12px;
  }
  .dh-custom-option-grid {
    grid-template-columns: 1fr;
  }
  .dh-builder-filter {
    grid-template-columns: 1fr;
  }
  .dh-builder-filter select {
    width: 100%;
  }
}

/* v1.18 - clear platform chapters and synchronized report controls */
.dh-report-platforms {
  display: grid;
  gap: 34px;
}
.dh-report-zone {
  margin: 0 0 38px;
}
.dh-report-zone-head {
  margin: 0 0 20px;
  padding: 0 0 14px;
  border-bottom: 2px solid #102c49;
}
.dh-report-zone-head h2 {
  margin: 0;
  color: #071629;
  font-size: 25px;
  line-height: 1.1;
}
.dh-report-zone-head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12px;
}
.dh-report-zone-charts {
  padding-top: 4px;
}
.dh-report-platform {
  --platform: #1677ff;
  position: relative;
  padding-top: 18px;
  border-top: 1px solid #dce7f1;
}
.dh-report-platform:first-child {
  border-top: 0;
}
.dh-platform-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.dh-platform-mark {
  width: 7px;
  height: 38px;
  border-radius: 8px;
  background: var(--platform);
  flex: 0 0 auto;
}
.dh-platform-head h2,
.dh-platform-head h3 {
  margin: 0;
  color: #071629;
  font-size: 21px;
  line-height: 1.1;
}
.dh-platform-head p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 11px;
}
.dh-report-platform .dh-report-kpis {
  margin-bottom: 18px;
}
.dh-report-platform .dh-report-kpis article {
  position: relative;
  overflow: hidden;
}
.dh-report-platform .dh-report-kpis article:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--platform);
}
.dh-report-platform .dh-report-kpis strong {
  color: var(--platform);
}
.dh-report-platform .dh-bars > div > i {
  background: var(--platform) !important;
}
.dh-report-platform[data-platform="instagram"] {
  --platform: #c13584;
}
.dh-report-platform[data-platform="instagram"] .dh-platform-mark,
.dh-report-platform[data-platform="instagram"] .dh-report-kpis article:before {
  background: linear-gradient(180deg, #c13584, #fd1d1d, #fcb045);
}
.dh-report-platform[data-platform="facebook"] {
  --platform: #1877f2;
}
.dh-report-platform[data-platform="linkedin"] {
  --platform: #0a66c2;
}
.dh-report-platform[data-platform="youtube"] {
  --platform: #e62117;
}
.dh-report-platform[data-platform="website"] {
  --platform: #008b78;
}
.dh-report-platform[data-platform="audiencia"] {
  --platform: #102c49;
}
.dh-custom-chart .dh-card-head label {
  position: relative;
}
.dh-custom-chart-section {
  appearance: none;
  min-height: 42px;
  padding: 0 42px 0 13px;
  border: 1px solid #bfcfe0;
  border-radius: 10px;
  background-color: #f3f7fb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23102C49' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: #071629;
  font-weight: 700;
  cursor: pointer;
}
.dh-custom-chart-section:hover {
  border-color: #1677ff;
}
.dh-custom-chart-section:focus {
  border-color: #1677ff;
  outline: 3px solid rgba(22, 119, 255, 0.16);
}
.dh-custom-choice[data-platform="instagram"] {
  border-left: 3px solid #c13584;
}
.dh-custom-choice[data-platform="facebook"] {
  border-left: 3px solid #1877f2;
}
.dh-custom-choice[data-platform="linkedin"] {
  border-left: 3px solid #0a66c2;
}
.dh-custom-choice[data-platform="youtube"] {
  border-left: 3px solid #e62117;
}
.dh-custom-choice[data-platform="website"] {
  border-left: 3px solid #008b78;
}
.dh-custom-choice[data-platform="audiencia"] {
  border-left: 3px solid #102c49;
}
.dh-custom-bars > div[data-platform="instagram"] em {
  background: #c13584;
}
.dh-custom-bars > div[data-platform="facebook"] em {
  background: #1877f2;
}
.dh-custom-bars > div[data-platform="linkedin"] em {
  background: #0a66c2;
}
.dh-custom-bars > div[data-platform="youtube"] em {
  background: #e62117;
}
.dh-custom-bars > div[data-platform="website"] em {
  background: #008b78;
}
.dh-custom-bars > div[data-platform="audiencia"] em {
  background: #102c49;
}
@media (max-width: 640px) {
  .dh-report-zone {
    margin-bottom: 30px;
  }
  .dh-report-zone-head h2 {
    font-size: 22px;
  }
  .dh-report-platforms {
    gap: 26px;
  }
  .dh-report-platform {
    padding-top: 15px;
  }
  .dh-platform-head h2,
  .dh-platform-head h3 {
    font-size: 18px;
  }
  .dh-platform-mark {
    height: 32px;
  }
}

/* Dashboard KPI groups (Trabalho vs Utilizadores) */
.dh-kpis-group {
  margin-bottom: 20px;
}
.dh-kpis-group .dh-kpis {
  margin-bottom: 0;
}
.dh-kpis-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 800;
  color: #9aa3ad;
  margin: 0 0 10px 2px;
}
.dh-kpis-label-users {
  color: var(--accent);
}
.dh-kpis-users {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dh-kpis-users .dh-kpi {
  background: #eef6ff;
  border-color: #cfe4fd;
}
.dh-kpis-users .dh-kpi:before {
  background: var(--accent);
}
.dh-kpis-users .dh-kpi strong {
  color: var(--accent);
}
@media (max-width: 900px) {
  .dh-kpis-users {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .dh-kpis-users {
    grid-template-columns: 1fr 1fr;
  }
}

/* Dashboard — refined operational overview */
.dh-dashboard {
  --dash-navy: #0b2641;
  --dash-blue: #1677ff;
  --dash-teal: #12a594;
  --dash-coral: #e56b6f;
  --dash-violet: #7967d8;
  color: #0b1b30;
}
.dh-dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
}
.dh-dashboard-head h1 {
  margin: 0;
  color: #071629;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.dh-dashboard-head p {
  max-width: 65ch;
  margin: 8px 0 0;
  color: #61718a;
  font-size: 14px;
}
.dh-dashboard-head-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: #63728a;
  font-size: 12px;
}
.dh-dashboard-greeting {
  font-weight: 700;
  color: #263a54;
}
.dh-dashboard-date {
  padding-left: 10px;
  border-left: 1px solid #d7e0ea;
  font-variant-numeric: tabular-nums;
}
.dh-dashboard-shortcuts {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 52px;
  margin-bottom: 30px;
  padding: 7px;
  overflow-x: auto;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  background: #f7faff;
  scrollbar-width: thin;
}
.dh-dashboard-shortcuts a,
.dh-dashboard-shortcuts > span {
  flex: 0 0 auto;
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 12px;
  font-weight: 750;
}
.dh-dashboard-shortcuts a {
  color: #324761;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms cubic-bezier(.2,.8,.2,1);
}
.dh-dashboard-shortcuts a:hover {
  color: #0968de;
  background: #e8f2ff;
  transform: translateY(-1px);
}
.dh-dashboard-shortcuts a:focus-visible,
.dh-dashboard-section-head a:focus-visible,
.dh-kpi:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.22);
  outline-offset: 2px;
}
.dh-dashboard-attention,
.dh-dashboard-clear {
  margin-left: auto;
}
.dh-dashboard-attention {
  color: #8e3f43;
  background: #fff0f0;
}
.dh-dashboard-clear {
  color: #087365;
  background: #e7f8f4;
}
.dh-dashboard-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 13px;
}
.dh-dashboard-section-head h2 {
  margin: 0;
  color: #12253d;
  font-size: 17px;
  letter-spacing: -0.015em;
}
.dh-dashboard-section-head p {
  margin: 0 0 1px auto;
  color: #718198;
  font-size: 11px;
}
.dh-dashboard-section-head a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #3970ad;
  font-size: 11px;
  font-weight: 750;
}
.dh-dashboard-section-head a svg {
  width: 15px;
  height: 15px;
  transition: transform 180ms cubic-bezier(.2,.8,.2,1);
}
.dh-dashboard-section-head a:hover svg {
  transform: translateX(3px);
}
.dh-dashboard .dh-kpis-group {
  margin-bottom: 28px;
}
.dh-dashboard .dh-kpis:not(.dh-kpis-users) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.dh-dashboard .dh-kpi {
  --kpi-tone: var(--dash-navy);
  position: relative;
  min-width: 0;
  min-height: 164px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms cubic-bezier(.2,.8,.2,1);
}
.dh-dashboard .dh-kpi:before {
  display: none;
}
.dh-dashboard .dh-kpi[data-tone="blue"] { --kpi-tone: var(--dash-blue); }
.dh-dashboard .dh-kpi[data-tone="coral"] { --kpi-tone: var(--dash-coral); }
.dh-dashboard .dh-kpi[data-tone="violet"] { --kpi-tone: var(--dash-violet); }
.dh-dashboard .dh-kpi[data-tone="teal"] { --kpi-tone: var(--dash-teal); }
.dh-dashboard .dh-kpi-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 10px;
  color: var(--kpi-tone);
  background: color-mix(in srgb, var(--kpi-tone) 10%, white);
}
.dh-dashboard .dh-kpi-icon svg {
  width: 19px;
  height: 19px;
}
.dh-dashboard .dh-kpi > span:not(.dh-kpi-icon):not(.dh-user-icon) {
  display: block;
  overflow: hidden;
  color: #5f7088;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .055em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.dh-dashboard .dh-kpi strong {
  display: block;
  margin: 7px 0 3px;
  color: #0a1c33;
  font-size: 31px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.dh-dashboard .dh-kpi small {
  color: #8190a5;
  font-size: 10px;
}
.dh-dashboard .dh-kpi > i {
  position: absolute;
  right: 15px;
  bottom: 15px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  color: #8b9ab0;
  background: #f3f6fa;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms cubic-bezier(.2,.8,.2,1);
}
.dh-dashboard .dh-kpi > i svg {
  width: 14px;
  height: 14px;
}
.dh-dashboard .dh-kpi[role="button"]:hover,
.dh-dashboard .dh-kpi[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--kpi-tone) 40%, #dce5ef);
  box-shadow: 0 14px 32px rgba(11, 38, 65, .09);
  transform: translateY(-3px);
}
.dh-dashboard .dh-kpi[role="button"]:hover > i,
.dh-dashboard .dh-kpi[aria-expanded="true"] > i {
  color: #fff;
  background: var(--kpi-tone);
  transform: translateX(2px);
}
.dh-dashboard .dh-kpi[aria-expanded="true"] {
  background: color-mix(in srgb, var(--kpi-tone) 3%, white);
}
.dh-dashboard-users-block {
  padding: 19px 20px 20px;
  border: 1px solid #d7e5f3;
  border-radius: 14px;
  background: #f4f8fc;
}
.dh-dashboard .dh-kpis-users {
  gap: 1px;
  overflow: hidden;
  border: 1px solid #dce6f0;
  border-radius: 12px;
  background: #dce6f0;
}
.dh-dashboard .dh-kpis-users .dh-kpi {
  display: grid;
  min-height: 94px;
  grid-template-columns: 30px 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 3px 10px;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: #fff;
}
.dh-dashboard .dh-kpis-users .dh-kpi:hover {
  box-shadow: none;
}
.dh-dashboard .dh-kpis-users .dh-user-icon {
  display: grid;
  width: 30px;
  height: 30px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 9px;
  color: #1677ff;
  background: #eaf3ff;
}
.dh-dashboard .dh-kpis-users .dh-user-icon svg {
  width: 17px;
  height: 17px;
}
.dh-dashboard .dh-kpis-users .dh-kpi > span:not(.dh-user-icon) {
  align-self: end;
  color: #53667f;
  font-size: 9px;
}
.dh-dashboard .dh-kpis-users .dh-kpi strong {
  grid-column: 3;
  grid-row: 1 / 3;
  margin: 0;
  color: #176ed7;
  font-size: 27px;
}
.dh-dashboard .dh-kpis-users .dh-kpi small {
  grid-column: 2;
  align-self: start;
}
.dh-dashboard .dh-dashboard-panel {
  overflow: hidden;
  border-color: #cbdcec;
  box-shadow: 0 16px 36px rgba(11, 38, 65, .08);
}
.dh-dashboard .dh-grid-2.dh-dashboard-feed {
  align-items: start;
  gap: 16px;
}
.dh-dashboard-feed > .dh-card {
  min-height: 320px;
  border-color: #dce5ef;
  border-radius: 14px;
}
.dh-dashboard-feed .dh-card-head {
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf1f5;
}
.dh-dashboard-feed .dh-card-head h2 {
  margin-bottom: 5px;
  color: #12253d;
  font-size: 15px;
}
.dh-dashboard-feed .dh-card-head p {
  margin: 0;
  color: #78889e;
  font-size: 10px;
}
.dh-dashboard-feed .dh-card-head > a {
  padding: 5px 0;
  color: #3970ad;
  font-size: 10px;
  font-weight: 750;
}
.dh-dashboard-feed .dh-list-row {
  transition: background-color 160ms ease, padding 160ms ease;
}
.dh-dashboard-feed .dh-list-row:hover {
  padding-left: 8px;
  padding-right: 8px;
  background: #f7faff;
}
.dh-dashboard ::selection {
  color: #071629;
  background: #bfe7ff;
}
@media (prefers-reduced-motion: no-preference) {
  .dh-dashboard-head,
  .dh-dashboard-shortcuts,
  .dh-dashboard .dh-kpis-group:first-of-type {
    animation: dhDashboardEnter 420ms cubic-bezier(.16,1,.3,1) both;
  }
  .dh-dashboard-shortcuts { animation-delay: 45ms; }
  .dh-dashboard .dh-kpis-group:first-of-type { animation-delay: 90ms; }
}
@keyframes dhDashboardEnter {
  from { opacity: .35; transform: translateY(8px); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}
@media (max-width: 1180px) {
  .dh-dashboard .dh-kpis:not(.dh-kpis-users) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .dh-dashboard-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .dh-dashboard .dh-kpis:not(.dh-kpis-users) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dh-dashboard .dh-kpis-users {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dh-dashboard .dh-grid-2.dh-dashboard-feed {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .dh-dashboard-head-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .dh-dashboard-date {
    padding: 0;
    border: 0;
  }
  .dh-dashboard-shortcuts {
    margin-left: -4px;
    margin-right: -4px;
  }
  .dh-dashboard-attention,
  .dh-dashboard-clear {
    margin-left: 0;
  }
  .dh-dashboard-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .dh-dashboard-section-head p {
    margin-left: 0;
  }
  .dh-dashboard .dh-kpis:not(.dh-kpis-users) {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .dh-dashboard .dh-kpi {
    min-height: 147px;
    padding: 14px;
  }
  .dh-dashboard .dh-kpi-icon {
    margin-bottom: 14px;
  }
  .dh-dashboard .dh-kpi > span:not(.dh-kpi-icon):not(.dh-user-icon) {
    white-space: normal;
  }
  .dh-dashboard .dh-kpis-users {
    grid-template-columns: 1fr;
  }
  .dh-dashboard-users-block {
    padding: 15px;
  }
}
@media (max-width: 370px) {
  .dh-dashboard .dh-kpis:not(.dh-kpis-users) {
    grid-template-columns: 1fr;
  }
}
/* Accordion behaviour for the quick-chart platform option groups */
.dh-custom-option-group-head {
  cursor: pointer;
  user-select: none;
  border-radius: 10px;
  padding: 4px 6px;
  margin: -4px -6px;
  transition: background 0.15s ease;
}
.dh-custom-option-group-head:hover {
  background: rgba(22, 119, 255, 0.06);
}
.dh-custom-option-group-head:after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex: 0 0 auto;
}
.dh-custom-option-group.is-open .dh-custom-option-group-head:after {
  transform: rotate(45deg);
}
.dh-custom-option-group:not(.is-open) .dh-custom-option-grid {
  display: none;
}
/* Comparação de períodos: agrupado por plataforma, com valores/variação mais legíveis */
.dh-compare-platforms {
  margin-top: 6px;
}
.dh-compare-platforms .dh-report-platform:first-child {
  padding-top: 0;
  border-top: 0;
}
.dh-compare-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.dh-compare-grid article {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(11, 43, 82, 0.05);
}
.dh-compare-grid article:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--platform, #1677ff);
}
.dh-compare-grid article > small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
}
.dh-compare-grid article > strong {
  display: block;
  margin: 8px 0 12px;
  font-size: 26px;
  line-height: 1;
  color: var(--platform, #071629);
}
.dh-compare-delta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.dh-compare-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.dh-compare-badge.is-up {
  color: #147a52;
  background: #e4f6ee;
}
.dh-compare-badge.is-down {
  color: #b93848;
  background: #fbe8ea;
}
.dh-compare-previous {
  font-size: 11px;
  color: #64748b;
}
.dh-compare-previous b {
  color: #334155;
  font-weight: 700;
}
@media (max-width: 720px) {
  .dh-compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .dh-compare-grid {
    grid-template-columns: 1fr;
  }
}
/* Comparação de períodos: plataformas em acordeão (fechado por defeito) */
.dh-compare-platforms .dh-platform-head {
  cursor: pointer;
  user-select: none;
  border-radius: 10px;
  padding: 4px 6px;
  margin: 0 -6px 14px;
  transition: background 0.15s ease;
}
.dh-compare-platforms .dh-platform-head:hover {
  background: rgba(22, 119, 255, 0.06);
}
.dh-compare-platforms .dh-platform-head:after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex: 0 0 auto;
}
.dh-compare-platforms .dh-report-platform.is-open .dh-platform-head:after {
  transform: rotate(45deg);
}
/* Tooltip ao passar/focar os pontos do gráfico Evolução entre meses */
.dh-period-visual {
  position: relative;
}
.dh-period-point {
  cursor: pointer;
}
.dh-period-tooltip {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -128%);
  background: #071629;
  color: #fff;
  padding: 7px 11px;
  border-radius: 10px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.12s ease,
    transform 0.12s ease;
  box-shadow: 0 10px 24px rgba(7, 22, 41, 0.25);
}
.dh-period-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, -138%);
}
.dh-period-tooltip small {
  display: block;
  color: #9fb3c8;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dh-period-tooltip b {
  display: block;
  font-size: 13px;
  margin-top: 2px;
}
.dh-period-tooltip:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: #071629;
  transform: translateX(-50%) rotate(45deg);
}
.dh-compare-platforms .dh-report-platform:not(.is-open) .dh-compare-grid {
  display: none;
}
.dh-period-visual {
  padding-top: 48px;
}
/* Estilo consistente para inputs/selects dentro de dh-filterbar (ex: Comparar com outro mês) */
.dh-filterbar input,
.dh-filterbar select {
  min-height: 42px;
  border: 1px solid #bfcfe0;
  border-radius: 10px;
  padding: 0 13px;
  background-color: #f3f7fb;
  color: #071629;
  font-weight: 600;
  transition: border-color 0.15s ease;
}
.dh-filterbar select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23102C49' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.dh-filterbar input:hover,
.dh-filterbar select:hover {
  border-color: #1677ff;
}
.dh-filterbar input:focus,
.dh-filterbar select:focus {
  border-color: #1677ff;
  outline: 3px solid rgba(22, 119, 255, 0.16);
}
/* Select "Indicador" do gráfico Evolução entre meses */
.dh-period-chart-select {
  appearance: none;
  min-height: 42px;
  min-width: 190px;
  padding: 0 40px 0 13px;
  border: 1px solid #bfcfe0;
  border-radius: 10px;
  background-color: #f3f7fb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23102C49' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: #071629;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.dh-period-chart-select:hover {
  border-color: #1677ff;
}
.dh-period-chart-select:focus {
  border-color: #1677ff;
  outline: 3px solid rgba(22, 119, 255, 0.16);
}
@media (max-width: 640px) {
  .dh-period-chart-select {
    width: 100%;
    min-width: 0;
  }
}
/* Relatórios: lista agrupada por empresa, em acordeão (fechado por defeito) */
.dh-reports-companies {
  display: grid;
  gap: 12px;
}
.dh-social-live-filters {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(260px, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.dh-social-live-filters label { display: grid; gap: 6px; }
.dh-social-live-filters label > span { color: #64748b; font-size: 12px; font-weight: 600; }
.dh-social-live-filters select,
.dh-social-live-filters input { width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid #d3dfeb; border-radius: 10px; background: #fff; color: #0f1d33; font: inherit; }
.dh-social-live-filters select:focus,
.dh-social-live-filters input:focus { border-color: #1677ff; outline: 3px solid rgba(22,119,255,.14); }
.dh-social-filter-empty { margin: 22px 0 8px; text-align: center; color: #64748b; }
.dh-social-real-links { display:flex; flex-wrap:wrap; gap:14px; margin:12px 0 18px; }
.dh-social-real-links a { font-weight:700; color:#1677ff; }
.dh-social-real-preview .dh-social-post-card__media video { display:block; width:100%; max-height:620px; background:#071629; object-fit:contain; }
.dh-social-real-preview .dh-social-post-card__media { display:block; min-height:0; background:#fff; }
.dh-social-real-preview .dh-social-post-card__media > img,
.dh-social-real-preview .dh-social-post-card__media > video { display:block; width:100%; height:auto; min-height:0; max-height:none; object-fit:contain; background:#fff; }
.dh-social-real-preview .dh-social-post-card__media.is-carousel { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; }
.dh-social-real-preview .dh-social-post-card__media.is-carousel > * { flex:0 0 100%; width:100%; height:auto; min-height:0; max-height:none; scroll-snap-align:start; object-fit:contain; }
.dh-social-post-card__avatar.has-logo { overflow:hidden; background:#fff; border:1px solid #dce7f1; }
.dh-social-post-card__avatar.has-logo img { display:block; width:100%; height:100%; object-fit:contain; }
.dh-social-oembed-preview__grid { display:grid; gap:18px; justify-content:center; }
.dh-social-oembed-preview__item { width:min(100%,620px); }
.dh-social-oembed-preview__item > strong { display:block; margin:0 0 8px; color:#071629; font-size:12px; }
.dh-social-oembed-preview__embed { display:flex; justify-content:center; width:100%; min-height:120px; overflow:hidden; }
.dh-social-oembed-preview__embed iframe,
.dh-social-oembed-preview__embed blockquote { max-width:100% !important; margin:0 auto !important; }
@media (max-width: 700px) { .dh-social-live-filters { grid-template-columns: 1fr; } }
.dh-reports-company {
  border: 1px solid #dce7f1;
  border-radius: 14px;
  overflow: hidden;
}
.dh-reports-company-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  background: #f7fafe;
  transition: background 0.15s ease;
}
.dh-reports-company-head:hover {
  background: #eef4fb;
}
.dh-reports-company-head:after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex: 0 0 auto;
}
.dh-reports-company.is-open .dh-reports-company-head:after {
  transform: rotate(45deg);
}
.dh-reports-company-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #1677ff;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  flex: 0 0 auto;
}
.dh-company-table-identity { display: flex; align-items: center; gap: 11px; }
.dh-company-table-identity > div { min-width: 0; }
.dh-company-table-identity strong,
.dh-company-table-identity small { display: block; }
.dh-company-table-identity .dh-reports-company-avatar { width: 36px; height: 36px; border-radius: 9px; }
.dh-company-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #d7e5f0;
  border-radius: 15px;
  background: #d7e5f0;
}
.dh-company-overview > div {
  min-width: 0;
  padding: 17px 19px;
  background: #fff;
}
.dh-company-overview span,
.dh-company-overview small { display: block; }
.dh-company-overview span {
  color: #607991;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.dh-company-overview strong {
  display: block;
  margin: 6px 0 3px;
  color: #071629;
  font-size: 24px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dh-company-overview small { color: #8293a3; font-size: 11px; }
.dh-company-overview .has-attention strong { color: #b93848; }
.dh-company-directory .dh-card-head { align-items: flex-start; }
.dh-company-directory .dh-card-head p { margin: 5px 0 0; color: #71869a; font-size: 12px; }
.dh-company-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px 190px auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px;
  border-radius: 13px;
  background: #f4f8fc;
}
.dh-company-filters > label { display: grid; gap: 6px; }
.dh-company-filters > label > span:not(.screen-reader-text) { color: #607991; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.dh-company-filters input,
.dh-company-filters select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #bfd0df;
  border-radius: 10px;
  background: #fff;
  color: #071629;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
}
.dh-company-filters input { padding: 0 13px 0 39px; }
.dh-company-filters select { padding: 0 35px 0 12px; cursor: pointer; }
.dh-company-filters input:focus,
.dh-company-filters select:focus { border-color: #1677ff; outline: 3px solid rgba(22,119,255,.14); }
.dh-company-search { position: relative; }
.dh-company-search svg { position: absolute; z-index: 1; left: 13px; bottom: 12px; width: 17px; height: 17px; fill: none; stroke: #6f8498; stroke-width: 1.8; }
.dh-company-view-switch { display: flex; gap: 3px; padding: 3px; border: 1px solid #bfd0df; border-radius: 10px; background: #fff; }
.dh-company-view-switch button { min-height: 34px; border: 0; border-radius: 7px; padding: 0 11px; background: transparent; color: #5f7488; font-size: 11px; font-weight: 750; cursor: pointer; }
.dh-company-view-switch button.is-active { background: #e4f1fc; color: #0c63b5; }
.dh-company-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dh-company-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid #d5e4ef;
  border-radius: 15px;
  background: #fff;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), border-color .18s ease, box-shadow .18s ease;
}
.dh-company-card:hover { transform: translateY(-2px); border-color: #9bc9ed; box-shadow: 0 13px 28px rgba(16,64,105,.09); }
.dh-company-card-head { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 11px; }
.dh-company-card-head .dh-reports-company-avatar { width: 42px; height: 42px; border-radius: 11px; }
.dh-company-card-head h3 { margin: 0; overflow: hidden; color: #071629; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.dh-company-card-head a { display: block; margin-top: 4px; overflow: hidden; color: #71869a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.dh-company-integrations { display: flex; gap: 7px; margin: 16px 0; }
.dh-company-integrations span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 8px; background: #f0f3f6; color: #6f7f8e; font-size: 10px; font-weight: 750; }
.dh-company-integrations i { width: 7px; height: 7px; border-radius: 50%; background: #aab6c0; }
.dh-company-integrations .is-connected { background: #e8f7f1; color: #147a52; }
.dh-company-integrations .is-connected i { background: #1b9a6c; box-shadow: 0 0 0 3px rgba(27,154,108,.1); }
.dh-company-integrations--compact { margin: 0; }
.dh-company-card dl { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; margin: 0; padding: 13px 0; border-top: 1px solid #e8eff5; }
.dh-company-card dl div { min-width: 0; }
.dh-company-card dt { color: #7c8f9f; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.dh-company-card dd { margin: 4px 0 0; overflow: hidden; color: #243c53; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.dh-company-card-actions { display: grid; grid-template-columns: minmax(110px,1fr) auto auto; gap: 7px; padding-top: 2px; }
.dh-company-card-actions .dh-btn { justify-content: center; min-height: 35px; }
.dh-company-table-view[hidden], .dh-company-card-grid[hidden] { display: none !important; }
.dh-company-table-view .dh-table { min-width: 850px; }
.dh-company-empty { padding: 44px 20px; text-align: center; }
.dh-company-empty strong { color: #132b42; font-size: 15px; }
.dh-company-empty p { margin: 6px 0 15px; color: #71869a; font-size: 12px; }
@media (max-width: 1100px) {
  .dh-company-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dh-company-filters { grid-template-columns: minmax(240px,1fr) 150px 170px; }
  .dh-company-view-switch { grid-column: 1 / -1; width: max-content; }
}
@media (max-width: 720px) {
  .dh-company-overview { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dh-company-filters { grid-template-columns: 1fr; }
  .dh-company-view-switch { grid-column: auto; width: 100%; }
  .dh-company-view-switch button { flex: 1; }
  .dh-company-card-grid { grid-template-columns: 1fr; }
  .dh-company-card-actions { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 420px) {
  .dh-company-overview { grid-template-columns: 1fr; }
  .dh-company-card-head { grid-template-columns: 42px minmax(0,1fr); }
  .dh-company-card-head > .dh-badge { grid-column: 2; width: max-content; }
}
.dh-reports-company-head h3 {
  margin: 0;
  font-size: 15px;
  color: #071629;
}
.dh-reports-company-head p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 11px;
}
.dh-reports-company-body {
  padding: 0 16px 16px;
}
.dh-reports-company-body .dh-table-wrap {
  margin: 0;
}
/* Marcas de mês por baixo do gráfico Evolução entre meses (suporta N pontos) */
.dh-period-ticks {
  position: relative;
  height: 16px;
  margin: -6px 2% 0;
}
.dh-period-ticks span {
  position: absolute;
  transform: translateX(-50%);
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Comparar com outro(s) mês(es): checklist em formato de chip */
.dh-compare-form {
  align-items: flex-start;
}
.dh-compare-checklist-wrap {
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: 260px;
}
.dh-compare-checklist-label {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dh-compare-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dh-compare-checklist label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid #bfcfe0;
  border-radius: 999px;
  background: #f3f7fb;
  font-size: 12px;
  font-weight: 600;
  color: #071629;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.dh-compare-checklist label:hover {
  border-color: #1677ff;
}
.dh-compare-checklist input {
  accent-color: #1677ff;
  width: 15px;
  height: 15px;
}
.dh-compare-checklist label:has(input:checked) {
  background: #e8f1ff;
  border-color: #1677ff;
}
.dh-compare-form .dh-btn {
  align-self: flex-end;
}
@media (max-width: 640px) {
  .dh-compare-form {
    flex-direction: column;
    align-items: stretch;
  }
  .dh-compare-form .dh-btn {
    align-self: stretch;
  }
}
/* Filtro partilhado "Comparar meses" (atalhos + intervalo + chips), usado no painel individual e por empresa */
.dh-compare-pinned-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: #64748b;
}
.dh-compare-pinned-note strong {
  color: #071629;
}
.dh-compare-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.dh-compare-shortcuts-label,
.dh-compare-manual > label > span,
.dh-compare-range label > span {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dh-chip-btn {
  border: 1px solid #bfcfe0;
  border-radius: 999px;
  background: #fff;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #1677ff;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.dh-chip-btn:hover {
  background: #eef6ff;
  border-color: #1677ff;
}
.dh-compare-range {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px dashed #dce7f1;
  border-radius: 12px;
}
.dh-compare-range label {
  display: grid;
  gap: 5px;
}
.dh-compare-range select {
  min-height: 40px;
  min-width: 160px;
}
.dh-compare-manual {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}
.dh-compare-manual label {
  display: grid;
  gap: 5px;
}
.dh-compare-manual select {
  min-height: 40px;
  min-width: 200px;
}
.dh-compare-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  min-height: 0;
}
.dh-compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px 7px 14px;
  border-radius: 999px;
  background: #e8f1ff;
  border: 1px solid #bcd7fb;
  color: #0b3f8f;
  font-size: 12px;
  font-weight: 700;
}
.dh-compare-chip.is-pinned {
  padding: 7px 14px;
  background: #071629;
  border-color: #071629;
  color: #fff;
}
.dh-compare-chip button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 63, 143, 0.12);
  color: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.dh-compare-chip button:hover {
  background: rgba(11, 63, 143, 0.22);
}
.dh-compare-actions {
  display: flex;
  gap: 10px;
}

/* Toggle "Comparar meses" no painel por empresa (Relatórios) */
.dh-reports-compare-toggle-wrap {
  margin-bottom: 12px;
}
.dh-reports-compare-area {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #dce7f1;
  border-radius: 14px;
  background: #f7fafe;
}
.dh-reports-compare-area .dh-compare-picker {
  box-shadow: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
}
/* Painel individual: "Comparar Novembro com" em cadeia de selects (em vez de chips) */
.dh-compare-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.dh-compare-chain-slot {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dh-compare-chain-slot select {
  min-height: 40px;
  min-width: 190px;
}
.dh-compare-chain-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid #dce7f1;
  background: #fff;
  color: #64748b;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.dh-compare-chain-remove:hover {
  border-color: #b93848;
  color: #b93848;
}
.dh-compare-pinned-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.dh-compare-pinned-label {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

/* Filtro compacto "Comparar" do painel individual: tudo numa linha, como o filtro de Utilizadores */
.dh-compare-picker--compact {
  padding: 14px 16px;
}
.dh-compare-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.dh-compare-picker--compact .dh-compare-pinned-label {
  font-size: 12px;
  white-space: nowrap;
}

.dh-compare-picker--compact .dh-compare-chain {
  margin-bottom: 0;
  gap: 6px;
}
.dh-compare-picker--compact .dh-compare-chain-slot select {
  min-height: 36px;
  min-width: 150px;
  padding: 0 10px;
  font-size: 12px;
}
.dh-compare-picker--compact .dh-compare-chain-remove {
  width: 26px;
  height: 26px;
  font-size: 13px;
}
.dh-compare-picker--compact .dh-btn-sm {
  min-height: 36px;
}
.dh-reports-company-head > div {
  flex: 1;
  min-width: 0;
}
.dh-reports-compare-link {
  flex: 0 0 auto;
}
/* Painel individual: mês fixo como texto em destaque (sem caixa/select) + barra mais cuidada */
.dh-compare-picker--compact {
  padding: 12px 18px;
  background: linear-gradient(180deg, #fff, #f7fafe);
}
.dh-compare-pinned-value {
  font-size: 14px;
  font-weight: 800;
  color: #0b3f8f;
  white-space: nowrap;
}
.dh-compare-inline {
  row-gap: 10px;
}
.dh-compare-picker--compact .dh-compare-pinned-label:first-child {
  color: #071629;
  font-weight: 700;
}
/* Painel individual: select e botões maiores e mais cuidados dentro da barra compacta */
.dh-compare-picker--compact .dh-compare-chain-slot select {
  appearance: none;
  min-height: 42px;
  min-width: 170px;
  padding: 0 38px 0 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #bfcfe0;
  border-radius: 10px;
  background-color: #f3f7fb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23102C49' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: #071629;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}
.dh-compare-picker--compact .dh-compare-chain-slot select:hover {
  border-color: #1677ff;
}
.dh-compare-picker--compact .dh-compare-chain-slot select:focus {
  border-color: #1677ff;
  outline: 3px solid rgba(22, 119, 255, 0.16);
}
.dh-compare-picker--compact .dh-compare-chain-remove {
  width: 30px;
  height: 30px;
  font-size: 15px;
}
.dh-compare-picker--compact .dh-btn-sm {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 12px;
  border-radius: 10px;
}
.dh-compare-picker--compact .dh-btn-primary.dh-btn-sm {
  padding: 10px 22px;
}
/* Notificações: filtro Lidas/Não lidas + seleção em massa */
.dh-notifications-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.dh-notifications-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border: 1px solid #dce7f1;
  border-radius: 12px;
  background: #f7fafe;
}
.dh-notifications-bulk-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dh-notification {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.dh-notification-select {
  padding-top: 2px;
}
.dh-plan-month-nav {
  display: flex;
  gap: 8px;
}
.dh-plan-month-nav .is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
/* Calendário de Redes Sociais: preview ao passar o rato num item */
.dh-calendar-item {
  position: relative;
}
.dh-calendar-preview {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: 240px;
  padding: 8px;
  border-radius: 12px;
  background: #071629;
  box-shadow: 0 14px 34px rgba(7, 22, 41, 0.28);
}
.dh-calendar-item:hover .dh-calendar-preview,
.dh-calendar-item:focus .dh-calendar-preview {
  display: block;
}
.dh-calendar-preview img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
  background: #0b2038;
}
.dh-calendar-preview em {
  display: block;
  padding: 6px;
  color: #dbe6f2;
  font-size: 11px;
  font-style: normal;
  line-height: 1.5;
}
.dh-reports-company-avatar--logo {
  background: #fff;
  border: 1px solid #dce7f1;
  padding: 3px;
  overflow: hidden;
}
.dh-reports-company-avatar--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Navegação de meses, agora junto ao calendário e mais visível */
.dh-plan-month-nav--prominent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 4px 18px;
  margin-bottom: 4px;
  border-bottom: 1px solid #dce7f1;
}
.dh-month-nav-form {
  display: contents;
}
.dh-month-nav-btn {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 12px;
}
.dh-month-nav-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.dh-month-nav-current {
  font-size: 15px;
  font-weight: 800;
  color: #071629;
  text-align: center;
  flex: 1;
}
@media (max-width: 640px) {
  .dh-plan-month-nav--prominent {
    flex-wrap: wrap;
  }
  .dh-month-nav-current {
    order: -1;
    flex: 1 0 100%;
    margin-bottom: 6px;
  }
}

/* Rodapé global e páginas legais */
.dh-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.dh-content {
  flex: 1 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.dh-site-footer {
  flex: 0 0 auto;
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 18px 30px;
  border-top: 1px solid rgba(255,255,255,.1);
  background: radial-gradient(circle at 0% 100%, rgba(102, 225, 255, 0.13), transparent 38%), linear-gradient(155deg, #07162a 0%, #0b2138 58%, #102c49 100%);
  color: #d8e4ef;
}
.dh-footer-copy {
  color: #d8e4ef;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  justify-self: start;
  transition: color .18s ease;
}
.dh-footer-copy:hover,
.dh-footer-copy:focus-visible,
.dh-footer-legal a:hover,
.dh-footer-legal a:focus-visible {
  color: #fff;
}
.dh-footer-copy span {
  margin: 0 5px;
  color: #6f8295;
}
.dh-footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.dh-footer-social a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #071629;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.dh-footer-social a:hover,
.dh-footer-social a:focus-visible {
  transform: translateY(-2px);
  background: #eaf4ff;
  box-shadow: 0 7px 18px rgba(0,0,0,.24);
  outline: none;
}
.dh-footer-social svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dh-footer-social img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.dh-footer-social a:first-child svg {
  fill: currentColor;
  stroke: none;
}
.dh-footer-social span {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.06em;
}
.dh-footer-legal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}
.dh-footer-legal a {
  color: #b9c9d8;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease;
}
.dh-legal-standalone {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}
.dh-legal-brand {
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink, #071629);
  text-decoration: none;
}
.dh-legal-home-btn {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #0f2a44;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(7,22,41,0.28);
  transition: background .15s ease, transform .15s ease;
}
.dh-legal-home-btn:hover {
  background: #163f66;
  transform: translateY(-2px);
}
.dh-legal-home-btn svg {
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .dh-legal-home-btn {
    left: 14px;
    bottom: 14px;
    padding: 10px 16px;
  }
  .dh-legal-home-btn span {
    display: none;
  }
}
.dh-legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
}
.dh-legal-intro {
  margin: calc(clamp(24px, 4vw, 48px) * -1) calc(clamp(24px, 4vw, 48px) * -1) 34px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(135deg, #071629 0%, #103b65 100%);
  color: #fff;
}
.dh-legal-intro span {
  display: inline-flex;
  margin-bottom: 14px;
  color: #9fc7ef;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dh-legal-page .dh-legal-intro p {
  max-width: 780px;
  margin: 0;
  color: #f3f8fc;
  font-size: 16px;
  line-height: 1.75;
}
.dh-legal-page section {
  padding: 0 0 26px;
  margin: 0 0 26px;
  border-bottom: 1px solid var(--line);
}
.dh-legal-page section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}
.dh-legal-page h2 {
  margin: 0 0 10px;
  color: #071629;
  font-size: 17px;
  letter-spacing: -.01em;
}
.dh-legal-page p,
.dh-legal-page li {
  color: #52677c;
  font-size: 14px;
  line-height: 1.75;
}
.dh-legal-page p {
  margin: 0;
}
.dh-legal-page ul {
  margin: 0;
  padding-left: 20px;
}
.dh-legal-page li + li {
  margin-top: 6px;
}
.dh-legal-page a {
  color: #126bd6;
  font-weight: 700;
  text-underline-offset: 3px;
}
@media (max-width: 900px) {
  .dh-site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 15px;
    padding: 24px 20px;
    text-align: center;
  }
  .dh-footer-copy,
  .dh-footer-legal {
    justify-self: center;
  }
}
@media (max-width: 520px) {
  .dh-site-footer {
    padding: 24px 16px;
  }
  .dh-footer-copy span {
    display: none;
  }
  .dh-footer-copy {
    max-width: 290px;
  }
  .dh-footer-legal {
    flex-direction: column;
    gap: 9px;
  }
  .dh-legal-page {
    padding: 20px;
  }
  .dh-legal-intro {
    margin: -20px -20px 28px;
    padding: 24px 20px;
  }
  .dh-legal-intro p {
    font-size: 14px;
  }
}

.dh-meta-link-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #b8e7d8;
    border-radius: 12px;
    background: #effbf7;
    color: #0d6b50;
    font-size: 13px;
}
.dh-meta-link-status span {
    color: #54716a;
    font-size: 12px;
    text-align: right;
    overflow-wrap: anywhere;
}
.dh-meta-link-status-soft {
    border-color: #cfe0f2;
    background: #f1f7fd;
    color: #102C49;
}
@media (max-width: 700px) {
    .dh-meta-link-status {
        align-items: flex-start;
        flex-direction: column;
    }
    .dh-meta-link-status span { text-align: left; }
}
/* Meta Ads synchronization control in the company bar */
.dh-company-summary {
    min-width: 0;
    flex: 1 1 auto;
}
.dh-company-summary p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dh-company-sync {
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 12px;
}
.dh-company-sync .dh-btn {
    min-height: 36px;
    border-color: #DCE7F1;
    background: #ffffff;
    color: #102C49;
    font-weight: 700;
    white-space: nowrap;
}
.dh-company-sync .dh-btn:hover {
    border-color: #1677ff;
    background: #F3F7FB;
    color: #1677FF;
    transform: translateY(-1px);
}
.dh-company-sync .dh-btn:disabled {
    cursor: wait;
    opacity: .6;
    transform: none;
}
@media (max-width: 720px) {
    .dh-reports-company-head {
        flex-wrap: wrap;
    }
    .dh-company-sync {
        width: 100%;
        margin: 8px 0 0;
    }
    .dh-company-sync .dh-btn {
        width: 100%;
    }
}
.dh-paid-period {
    margin-bottom: 16px;
}
.dh-paid-period select {
    border-radius: 10px;
    border: 1px solid #E1E8F0;
    padding: 8px 12px;
    background: #fff;
    color: #1B2434;
    font-size: 14px;
}
.dh-paid-kpis {
    padding: 20px;
    margin-bottom: 20px;
}
.dh-paid-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}
.dh-paid-kpi {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    background: #F7FAFD;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(22, 119, 255, .06);
    transition: transform .15s ease, box-shadow .15s ease;
}
.dh-paid-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 119, 255, .10);
}
.dh-paid-kpi-label {
    font-size: 12.5px;
    color: #6B7A90;
    font-weight: 500;
}
.dh-paid-kpi-value {
    font-size: 21px;
    font-weight: 700;
    color: #1B2434;
}
.dh-paid-chart-card {
    padding: 20px;
}
.dh-paid-metric-select {
    border-radius: 10px;
    border: 1px solid #E1E8F0;
    padding: 7px 12px;
    background: #fff;
    color: #1B2434;
    font-size: 13.5px;
}
.dh-paid-chart-wrap {
    position: relative;
    width: 100%;
}
.dh-paid-chart-wrap svg {
    width: 100%;
    height: 260px;
    display: block;
}
.dh-paid-tooltip {
    position: fixed;
    z-index: 40;
    background: #1B2434;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.4;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    transform: translate(-50%, -100%);
    white-space: nowrap;
}
@media (max-width: 720px) {
    .dh-paid-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dh-badge-active {
    background: #E6F4EA;
    color: #1E7A34;
}
.dh-badge-paused {
    background: #F1F3F6;
    color: #6B7A90;
}
.dh-badge-preparation {
    background: #FFF4E0;
    color: #B4780A;
}
.dh-badge-completed {
    background: #E8EEFB;
    color: #2f6fed;
}
.dh-paid-highlights {
    padding: 18px 20px;
    margin-bottom: 20px;
}
.dh-paid-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}
.dh-paid-highlight {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #F7FAFD;
}
.dh-paid-highlight span {
    font-size: 12.5px;
    color: #6B7A90;
}
.dh-paid-highlight strong {
    font-size: 15px;
    color: #1B2434;
}
.dh-paid-highlight small {
    font-size: 12.5px;
    color: #2f6fed;
    font-weight: 600;
}
.dh-hl-attention {
    background: #FFF4E0;
}
.dh-paid-cmp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.dh-paid-cmp-card {
    display: block;
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(22, 119, 255, .08);
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}
.dh-paid-cmp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(22, 119, 255, .14);
}
.dh-paid-cmp-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.dh-paid-cmp-head h3 {
    font-size: 15px;
    margin: 0;
    color: #1B2434;
    line-height: 1.3;
}
.dh-paid-cmp-budget {
    margin-bottom: 12px;
}
.dh-paid-cmp-budget-bar {
    height: 6px;
    border-radius: 999px;
    background: #EAF0F8;
    overflow: hidden;
    margin-bottom: 4px;
}
.dh-paid-cmp-budget-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #2f6fed, #5b9dfd);
    border-radius: 999px;
}
.dh-paid-cmp-budget small {
    font-size: 12px;
    color: #6B7A90;
}
.dh-paid-cmp-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}
.dh-paid-cmp-stats div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dh-paid-cmp-stats span {
    font-size: 11.5px;
    color: #6B7A90;
}
.dh-paid-cmp-stats b {
    font-size: 14.5px;
    color: #1B2434;
}
.dh-paid-cmp-spark {
    width: 100%;
    height: 46px;
}
.dh-paid-cmp-spark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.dh-cmp-toggle-btn {
    background: #E8EEFB;
    color: #2f6fed;
    font-weight: 600;
    border: 1px solid #CBDBFA;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.dh-cmp-toggle-btn:hover {
    background: #DCE7FB;
}
.dh-cmp-toggle-icon {
    font-size: 13px;
}

.dh-paid-ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.dh-paid-ad-card {
    display: block;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(22, 119, 255, .08);
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}
.dh-paid-ad-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(22, 119, 255, .14);
}
.dh-paid-ad-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #F1F5FB;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.dh-paid-ad-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dh-paid-ad-thumb-empty {
    font-size: 28px;
    color: #B7C4D9;
}
.dh-paid-ad-body {
    padding: 14px 16px;
}
.dh-paid-ad-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.dh-paid-ad-head h3 {
    font-size: 14px;
    margin: 0;
    color: #1B2434;
    line-height: 1.3;
}
.dh-paid-ad-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.dh-paid-ad-stats div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dh-paid-ad-stats span {
    font-size: 11px;
    color: #6B7A90;
}
.dh-paid-ad-stats b {
    font-size: 13.5px;
    color: #1B2434;
}

.dh-paid-cmp-grid[hidden], #dh-cmp-table[hidden] {
    display: none !important;
}

.dh-table-sort {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    text-align: left;
    cursor: pointer;
}
.dh-table-sort span {
    color: #64748B;
    font-size: 12px;
    transition: color .15s ease, transform .15s ease;
}
.dh-table-sort:hover,
.dh-table-sort:focus-visible {
    color: #1677FF;
}
.dh-table-sort:hover span,
.dh-table-sort:focus-visible span,
.dh-sortable-table th[aria-sort="ascending"] .dh-table-sort span,
.dh-sortable-table th[aria-sort="descending"] .dh-table-sort span {
    color: #1677FF;
}
.dh-table-sort:focus-visible {
    outline: 2px solid rgba(22, 119, 255, .35);
    outline-offset: 4px;
    border-radius: 3px;
}
/* Social publication preview shown before approval and publication. */
.dh-social-draft-preview {
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid #dce7f1;
  border-radius: 14px;
  background: #f3f7fb;
}
.dh-social-draft-preview__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.dh-social-draft-preview__head h3 {
  margin: 0;
  color: #071629;
  font-size: 14px;
  line-height: 1.15;
}
.dh-social-draft-preview__head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 11px;
}
.dh-social-draft-preview__head > span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e7f1ff;
  color: #0b57ba;
  font-size: 10px;
  font-weight: 700;
}
.dh-social-draft-preview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 620px));
  justify-content: center;
  gap: 14px;
}
.dh-social-post-card {
  overflow: hidden;
  border: 1px solid #dce7f1;
  border-top: 3px solid #1677ff;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(16, 44, 73, 0.08);
}
.dh-social-post-card--instagram { border-top-color: #c13584; }
.dh-social-post-card--facebook { border-top-color: #1877f2; }
.dh-social-post-card--linkedin { border-top-color: #0a66c2; }
.dh-social-post-card--tiktok { border-top-color: #071629; }
.dh-social-post-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}
.dh-social-post-card__avatar {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #07162a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.dh-social-post-card__identity {
  min-width: 0;
  flex: 1;
}
.dh-social-post-card__identity strong,
.dh-social-post-card__identity small {
  display: block;
}
.dh-social-post-card__identity strong {
  overflow: hidden;
  color: #071629;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dh-social-post-card__identity small {
  margin-top: 2px;
  color: #64748b;
  font-size: 9px;
}
.dh-social-post-card__platform {
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
}
.dh-social-post-card__media {
  position: relative;
  display: grid;
  min-height: 230px;
  background: #eaf1f7;
}
.dh-social-post-card__media.is-carousel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dh-social-post-card__media img,
.dh-social-post-card__media video {
  width: 100%;
  height: 100%;
  min-height: 230px;
  max-height: 480px;
  object-fit: cover;
  background: #eaf1f7;
}
.dh-social-post-card__media.is-carousel img,
.dh-social-post-card__media.is-carousel video {
  min-height: 150px;
  max-height: 240px;
}
.dh-social-post-card__more {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(7, 22, 41, 0.88);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.dh-social-post-card__empty {
  display: grid;
  min-height: 170px;
  place-items: center;
  padding: 20px;
  background: #eaf1f7;
  color: #64748b;
  font-size: 11px;
  text-align: center;
}
.dh-social-post-card__body {
  padding: 13px 14px;
}
.dh-social-post-card__copy {
  color: #071629;
  font-size: 12px;
  line-height: 1.55;
}
.dh-social-post-card__copy p {
  margin: 0 0 8px;
}
.dh-social-post-card__copy p:last-child {
  margin-bottom: 0;
}
.dh-social-post-card__cta {
  display: inline-flex;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #07162a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.dh-social-post-card footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-top: 1px solid #dce7f1;
  color: #64748b;
  font-size: 9px;
}
@media (max-width: 640px) {
  .dh-social-draft-preview {
    padding: 12px;
  }
  .dh-social-draft-preview__head {
    align-items: flex-start;
    flex-direction: column;
  }
  .dh-social-draft-preview__grid {
    grid-template-columns: 1fr;
  }
}
/* GA4 summary inside Paid Traffic */
.dh-ga4-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin:0 20px 16px;overflow:hidden;border:1px solid var(--dh-border);border-radius:14px;background:var(--dh-border)}
.dh-ga4-summary>div{display:flex;flex-direction:column;gap:5px;padding:14px 16px;background:var(--dh-surface)}
.dh-ga4-summary span{font-size:12px;color:var(--dh-muted)}
.dh-ga4-summary strong{font-size:22px;line-height:1.1;color:var(--dh-text)}
.dh-ga4-empty{margin:0 20px 16px}
@media(max-width:760px){.dh-ga4-summary{grid-template-columns:repeat(2,minmax(0,1fr));margin-inline:12px}}

.dh-ga4-period{margin:0 20px 8px;font-size:12px;font-weight:700;color:var(--dh-muted);text-transform:uppercase;letter-spacing:.04em}

.dh-inline-edit {
    display: inline-block;
    margin-left: 8px;
}
.dh-inline-edit summary {
    cursor: pointer;
    color: #2f6fed;
    font-size: 13px;
    display: inline-block;
}
.dh-inline-edit form {
    margin-top: 8px;
}

.dh-text-warning {
    color: #B4780A;
}

/* Auth-aware 404 inside the Hub shell. */
.dh-app-error {
  min-height: calc(100vh - 128px);
  display: grid;
  grid-template-columns: minmax(150px, .45fr) minmax(280px, 1fr);
  align-items: center;
  gap: 40px;
  padding: 48px;
  overflow: hidden;
  border: 1px solid #DCE7F1;
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 12px 36px rgba(16, 44, 73, .08);
}
.dh-app-error-code {
  color: #DCE7F1;
  font-size: clamp(110px, 17vw, 260px);
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: .75;
  user-select: none;
}
.dh-app-error-copy {
  max-width: 620px;
}
.dh-app-error-copy > span {
  color: #1677FF;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.dh-app-error-copy h1 {
  margin: 12px 0 10px;
  color: #071629;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.dh-app-error-copy p {
  max-width: 58ch;
  margin: 0;
  color: #64748B;
  font-size: 15px;
  line-height: 1.65;
}
.dh-app-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
@media (max-width: 760px) {
  .dh-app-error {
    min-height: calc(100vh - 110px);
    grid-template-columns: 1fr;
    align-content: center;
    gap: 26px;
    padding: 28px 22px;
  }
  .dh-app-error-code {
    font-size: 110px;
  }
}
[data-dh-linkedin-copy][hidden]{display:none!important}

/* CookieAdmin is rendered inside the Hub's custom shell. Keep legal links
   readable over the dark dappin consent surfaces despite the global link reset. */
.cookieadmin_policy_link a,
.cookieadmin_policy_link a:visited {
  color: #67e8f9 !important;
  font-weight: 600;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.cookieadmin_policy_link a:hover,
.cookieadmin_policy_link a:focus-visible {
  color: #ffffff !important;
}

/* Main Hub topbar: the Paid Traffic information architecture, kept sticky and
   expressed as a restrained glass surface for the shared Hub shell. */
.dh-topbar {
  height: 76px;
  justify-content: space-between;
  gap: 24px;
  padding: 0 34px;
  background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(239,248,255,.76));
  border-bottom: 1px solid rgba(151,176,201,.34);
  box-shadow: 0 10px 28px rgba(8,34,61,.06);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
}
.dh-topbar-leading,
.dh-topbar-right {
  display: flex;
  align-items: center;
  min-width: 0;
}
.dh-topbar-leading {
  gap: 12px;
  color: #8b9aaf;
  font-size: 13px;
  white-space: nowrap;
}
.dh-topbar-leading strong {
  overflow: hidden;
  color: #14233a;
  font-weight: 700;
  text-overflow: ellipsis;
}
.dh-topbar-right {
  gap: 14px;
}
.dh-topbar svg,
.dh-search-dialog svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dh-topbar-chevron {
  width: 14px !important;
  height: 14px !important;
  color: #a5b2c2;
}
.dh-global-search {
  width: 190px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 9px 0 12px;
  color: #66758c;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(160,181,205,.38);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 6px 16px rgba(22,58,92,.04);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.dh-global-search:hover {
  color: #20334e;
  background: rgba(255,255,255,.88);
  border-color: rgba(65,128,198,.42);
  box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(22,58,92,.08);
}
.dh-global-search span {
  flex: 1;
  text-align: left;
  font-size: 12px;
}
.dh-global-search kbd,
.dh-search-dialog kbd {
  min-width: 24px;
  padding: 3px 6px;
  color: #8492a6;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(153,174,198,.35);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(15,37,60,.04);
  font: 500 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}
.dh-data-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #63748b;
  font-size: 12px;
  white-space: nowrap;
}
.dh-data-state svg {
  width: 16px;
  height: 16px;
  color: #456d9b;
}
.dh-notify {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  margin: 0;
  color: #53657c;
  background: rgba(255,255,255,.54);
  border: 1px solid transparent;
  border-radius: 11px;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.dh-notify:hover {
  color: #1677ff;
  background: rgba(255,255,255,.9);
  border-color: rgba(160,181,205,.35);
}
.dh-notify span {
  right: -3px;
  top: -4px;
  background: #1677ff;
}
.dh-top-user {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 4px 12px 4px 5px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(160,181,205,.36);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.dh-top-user .dh-person {
  display: flex;
  align-items: center;
  gap: 9px;
}
.dh-top-user .dh-person .dh-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}
.dh-top-user .dh-person small {
  display: none;
}
.dh-global-search:focus-visible,
.dh-notify:focus-visible,
.dh-top-user:focus-visible,
.dh-search-dialog button:focus-visible,
.dh-search-dialog input:focus-visible,
.dh-search-result:focus-visible {
  outline: 3px solid rgba(22,119,255,.24);
  outline-offset: 2px;
}

.dh-search-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 48px));
  padding: 0;
  overflow: hidden;
  color: #12233a;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(237,247,255,.9));
  border: 1px solid rgba(168,190,213,.5);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(5,25,48,.28);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  backdrop-filter: blur(28px) saturate(145%);
}
.dh-search-dialog::backdrop {
  background: rgba(7,23,41,.34);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.dh-search-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 22px 12px;
}
.dh-search-dialog-head div {
  display: grid;
  gap: 3px;
}
.dh-search-dialog-head strong {
  font-size: 17px;
}
.dh-search-dialog-head span {
  color: #728198;
  font-size: 12px;
}
.dh-search-dialog-head button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #62738a;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(158,181,205,.34);
  border-radius: 9px;
  cursor: pointer;
}
.dh-search-input-wrap {
  margin: 8px 22px 12px;
  position: relative;
}
.dh-search-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  color: #72849a;
  transform: translateY(-50%);
  pointer-events: none;
}
.dh-search-input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 44px;
  color: #12233a;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(134,166,198,.42);
  border-radius: 12px;
  font: inherit;
}
.dh-search-input-wrap input::placeholder {
  color: #93a0b2;
}
.dh-search-results {
  max-height: 350px;
  display: grid;
  gap: 4px;
  padding: 2px 14px 14px;
  overflow: auto;
}
.dh-search-result {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: #263a54;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
}
.dh-search-result > span:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.dh-search-result strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dh-search-result small {
  color: #7c8da3;
  font-size: 10px;
  font-weight: 550;
}
.dh-search-result:hover,
.dh-search-result.is-selected {
  color: #0b5fca;
  background: rgba(226,241,255,.88);
  border-color: rgba(75,143,214,.2);
}
.dh-search-result-arrow {
  color: #85a1be;
  font-size: 16px;
}
.dh-search-empty {
  margin: 0;
  padding: 36px 22px 44px;
  color: #718197;
  text-align: center;
  font-size: 13px;
}
.dh-search-dialog-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  color: #7b899c;
  background: rgba(232,243,252,.58);
  border-top: 1px solid rgba(158,181,205,.26);
  font-size: 10px;
}
.dh-search-dialog-foot span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 1100px) {
  .dh-data-state { display: none; }
}
@media (max-width: 760px) {
  .dh-topbar {
    height: 68px;
    gap: 10px;
    padding: 0 14px;
  }
  .dh-topbar-leading { gap: 8px; }
  .dh-topbar-leading > span,
  .dh-topbar-leading > .dh-topbar-chevron { display: none; }
  .dh-topbar-right { gap: 6px; }
  .dh-global-search {
    width: 40px;
    flex: 0 0 40px;
    justify-content: center;
    padding: 0;
  }
  .dh-global-search span,
  .dh-global-search kbd { display: none; }
  .dh-top-user { padding-right: 5px; }
  .dh-top-user .dh-person > span:not(.dh-avatar) { display: none; }
  .dh-search-dialog-foot { display: none; }
}

/* Activity intelligence */
.dh-activity-shell {
  --activity-navy: #08213f;
  --activity-blue: #1677ff;
  --activity-cyan: #16bfd1;
  --activity-soft: #edf6ff;
  --activity-grid: rgba(91, 123, 157, .15);
  transition: opacity .18s ease, filter .18s ease;
}
.dh-activity-shell.is-loading {
  pointer-events: none;
  opacity: .58;
  filter: saturate(.8);
  cursor: progress;
}
.dh-activity-shell [hidden] { display: none !important; }
.dh-activity-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border: 1px solid #d7e4ef;
  border-radius: 13px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 24px rgba(28,66,105,.06);
}
.dh-activity-tabs button {
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 9px;
  color: #64748b;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.dh-activity-tabs button:hover { color: #0b5fca; }
.dh-activity-tabs button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #0c5fd3, #1689f4);
  box-shadow: 0 7px 18px rgba(22,119,255,.24);
}
.dh-activity-tabs button:focus-visible,
.dh-activity-table-link:focus-visible {
  outline: 3px solid rgba(22,119,255,.28);
  outline-offset: 2px;
}
.dh-activity-filters {
  padding: 14px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(238,247,255,.88));
  box-shadow: 0 12px 30px rgba(26,62,98,.06);
}
.dh-activity-filters .dh-filterbar { margin: 0; }
.dh-activity-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.dh-activity-kpis article {
  position: relative;
  min-height: 132px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #d8e6f2;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(242,248,254,.92));
  box-shadow: 0 10px 26px rgba(21,57,92,.06);
}
.dh-activity-kpis article:after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -26px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,191,209,.16), rgba(22,119,255,0) 68%);
}
.dh-activity-kpis article.has-alert { border-color: #f2cdd2; }
.dh-activity-kpis article.has-alert:after { background: radial-gradient(circle, rgba(185,56,72,.15), rgba(185,56,72,0) 68%); }
.dh-activity-kpis span,
.dh-activity-kpis small { display: block; }
.dh-activity-kpis span {
  color: #5f738a;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.dh-activity-kpis strong {
  display: block;
  margin: 13px 0 6px;
  color: var(--activity-navy);
  font-size: clamp(25px, 2.1vw, 34px);
  line-height: 1;
  letter-spacing: -.04em;
}
.dh-activity-kpis small { color: #8191a4; font-size: 11px; line-height: 1.4; }
.dh-activity-grid { display: grid; gap: 16px; }
.dh-activity-grid-main { grid-template-columns: minmax(0, 1.75fr) minmax(290px, .75fr); }
.dh-activity-grid-secondary { grid-template-columns: .85fr .95fr 1.25fr; }
.dh-activity-grid .dh-card { min-width: 0; margin-bottom: 16px; }
.dh-activity-grid .dh-card-head { align-items: flex-start; }
.dh-activity-grid .dh-card-head h2 { color: var(--activity-navy); font-size: 15px; }
.dh-activity-grid .dh-card-head p,
.dh-activity-table-card .dh-card-head p { margin: 4px 0 0; color: #7a8a9d; font-size: 11px; line-height: 1.45; }
.dh-activity-chart-card {
  background:
    radial-gradient(circle at 88% 0, rgba(22,191,209,.1), transparent 28%),
    linear-gradient(145deg, #fff, #f8fbff);
}
.dh-activity-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(18px,1fr));
  align-items: end;
  height: 245px;
  gap: clamp(4px, .8vw, 10px);
  padding: 18px 6px 0;
  border-top: 1px solid var(--activity-grid);
  background-image: linear-gradient(to bottom, var(--activity-grid) 1px, transparent 1px);
  background-size: 100% 25%;
}
.dh-activity-chart-column {
  display: grid;
  grid-template-rows: 20px 1fr 25px;
  align-items: end;
  height: 100%;
  min-width: 0;
  text-align: center;
}
.dh-activity-chart-column > span { color: #56708d; font-size: 9px; font-weight: 800; opacity: .9; }
.dh-activity-chart-column > i {
  display: block;
  width: min(100%, 34px);
  height: var(--dh-activity-height);
  min-height: 3px;
  margin: 0 auto;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #17bfd1, #1677ff);
  box-shadow: 0 7px 14px rgba(22,119,255,.15);
  transform-origin: bottom;
  animation: dh-activity-grow .55s cubic-bezier(.2,.8,.2,1) both;
}
.dh-activity-chart-column > small { padding-top: 8px; color: #8292a4; font-size: 9px; white-space: nowrap; }
.dh-activity-bars { display: grid; gap: 18px; }
.dh-activity-bars p { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 8px; color: #5f7187; font-size: 11px; }
.dh-activity-bars p strong { color: var(--activity-navy); }
.dh-activity-bars > div > i,
.dh-activity-client-list p > i {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f0f7;
}
.dh-activity-bars b,
.dh-activity-client-list i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1677ff, #19c2c8);
}
.dh-activity-action-list { display: grid; }
.dh-activity-action-list > div {
  display: grid;
  grid-template-columns: 29px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 47px;
  border-top: 1px solid #edf2f7;
}
.dh-activity-action-list > div:first-child { border-top: 0; }
.dh-activity-action-list span {
  color: #9aabc0;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.dh-activity-action-list strong { color: #314862; font-size: 11px; }
.dh-activity-action-list b {
  min-width: 32px;
  padding: 5px 8px;
  border-radius: 8px;
  color: #0c65cd;
  background: #eaf4ff;
  font-size: 10px;
  text-align: center;
}
.dh-activity-client-list { display: grid; gap: 14px; }
.dh-activity-client-list > div {
  display: grid;
  grid-template-columns: 32px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
}
.dh-activity-client-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #d3e5f4;
  border-radius: 10px;
  color: #0d68cf;
  background: #eef7ff;
  font-size: 11px;
  font-weight: 850;
}
.dh-activity-client-list p { min-width: 0; margin: 0; }
.dh-activity-client-list p strong {
  display: block;
  margin-bottom: 7px;
  overflow: hidden;
  color: #314862;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dh-activity-client-list p > i { height: 5px; }
.dh-activity-client-list em { color: #708399; font-size: 10px; font-style: normal; font-weight: 750; }
.dh-activity-table-link {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid #d5e4f1;
  border-radius: 9px;
  color: #0c67d1;
  background: #f5faff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}
.dh-activity-feed { display: grid; }
.dh-activity-feed article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid #edf2f7;
}
.dh-activity-feed article:first-child { padding-top: 0; border-top: 0; }
.dh-activity-feed-avatar,
.dh-system-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  overflow: hidden;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg,#1677ff,#16bfd1);
  box-shadow: 0 0 0 1px #d7e6f3, 0 5px 12px rgba(24,92,156,.12);
  font-size: 11px;
  font-weight: 800;
}
.dh-activity-feed-avatar img,
.dh-system-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dh-activity-feed-avatar.is-system { border-radius: 10px; }
.dh-activity-feed p { margin: 1px 0 4px; color: #32485f; font-size: 11px; line-height: 1.4; }
.dh-activity-feed small { display: block; color: #8a9aac; font-size: 9px; line-height: 1.4; }
.dh-activity-table-card { padding: 0; overflow: hidden; }
.dh-activity-table-card .dh-card-head { padding: 19px 20px 15px; margin: 0; }
.dh-activity-table-card .dh-table-wrap { border-top: 1px solid #e4edf5; }
.dh-activity-table-card .dh-table { min-width: 920px; }
.dh-activity-table-card .dh-table tbody tr:hover { background: #f7fbff; }
.dh-activity-module {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 7px;
  color: #42617f;
  background: #edf4fa;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}
[data-activity-panel]:not([hidden]) {
  animation: dh-activity-panel-in .28s cubic-bezier(.2,.75,.25,1) both;
}
.dh-activity-kpis article,
.dh-activity-grid .dh-card,
.dh-activity-action-list > div,
.dh-activity-client-list > div,
.dh-activity-feed article,
.dh-activity-table-link,
.dh-activity-chart-column > i,
.dh-activity-bars b,
.dh-activity-client-list i b {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease, filter .22s ease;
}
@media (hover: hover) and (pointer: fine) {
  .dh-activity-kpis article:hover {
    z-index: 1;
    border-color: #bdd9ef;
    box-shadow: 0 16px 34px rgba(21,57,92,.11);
    transform: translateY(-3px);
  }
  .dh-activity-grid .dh-card:hover {
    border-color: #c9deef;
    box-shadow: 0 17px 38px rgba(20,57,94,.09);
    transform: translateY(-2px);
  }
  .dh-activity-chart-column:hover > i {
    filter: saturate(1.18) brightness(1.04);
    box-shadow: 0 9px 20px rgba(22,119,255,.25);
    transform: scaleX(1.08);
  }
  .dh-activity-chart-column:hover > span,
  .dh-activity-chart-column:hover > small { color: #0c67d1; }
  .dh-activity-bars > div:hover b,
  .dh-activity-client-list > div:hover i b {
    filter: saturate(1.2) brightness(1.04);
    transform: scaleX(1.015);
    transform-origin: left;
  }
  .dh-activity-action-list > div:hover,
  .dh-activity-feed article:hover {
    padding-right: 8px;
    padding-left: 8px;
    border-radius: 10px;
    background: rgba(237,246,255,.72);
    transform: translateX(2px);
  }
  .dh-activity-client-list > div:hover { transform: translateX(3px); }
  .dh-activity-client-list > div:hover .dh-activity-client-mark {
    border-color: #a9d1ef;
    box-shadow: 0 6px 14px rgba(22,119,255,.12);
  }
  .dh-activity-table-link:hover {
    color: #fff;
    border-color: #1677ff;
    background: #1677ff;
    box-shadow: 0 7px 16px rgba(22,119,255,.2);
    transform: translateY(-1px);
  }
  .dh-activity-table-card .dh-table tbody tr:hover { transform: translateX(2px); }
}
@keyframes dh-activity-panel-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dh-activity-grow { from { transform: scaleY(0); opacity: .35; } to { transform: scaleY(1); opacity: 1; } }
@media (max-width: 1180px) {
  .dh-activity-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dh-activity-grid-secondary { grid-template-columns: 1fr 1fr; }
  .dh-activity-feed-card { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .dh-activity-grid-main { grid-template-columns: 1fr; }
  .dh-activity-chart { height: 220px; }
}
@media (max-width: 680px) {
  .dh-activity-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .dh-activity-kpis { grid-template-columns: 1fr 1fr; }
  .dh-activity-kpis article { min-height: 118px; padding: 15px; }
  .dh-activity-grid-secondary { grid-template-columns: 1fr; }
  .dh-activity-feed-card { grid-column: auto; }
  .dh-activity-chart { height: 190px; gap: 3px; overflow: hidden; }
  .dh-activity-chart-column > span { display: none; }
  .dh-activity-chart-column > small { font-size: 8px; transform: rotate(-52deg); transform-origin: center; }
  .dh-activity-chart-column:nth-child(even) > small { visibility: hidden; }
}
@media (max-width: 420px) {
  .dh-activity-kpis { grid-template-columns: 1fr; }
  .dh-activity-kpis article { min-height: 105px; }
}
@media (prefers-reduced-motion: reduce) {
  .dh-activity-shell { transition: none; }
  [data-activity-panel]:not([hidden]) { animation: none; }
  .dh-activity-chart-column > i { animation: none; }
  .dh-activity-tabs button,
  .dh-activity-kpis article,
  .dh-activity-grid .dh-card,
  .dh-activity-action-list > div,
  .dh-activity-client-list > div,
  .dh-activity-feed article,
  .dh-activity-table-link,
  .dh-activity-chart-column > i,
  .dh-activity-bars b,
  .dh-activity-client-list i b { transition: none; }
}

/* 1.99.96: manter esta regra no fim para vencer os estilos base do cartão. */
.dh-social-draft-preview .dh-social-post-card__media {
  display: block;
  min-height: 0;
  background: #fff;
}
.dh-social-draft-preview .dh-social-post-card__media > img,
.dh-social-draft-preview .dh-social-post-card__media > video {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  background: #fff;
}
.dh-social-draft-preview .dh-social-post-card__media.is-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.dh-social-draft-preview .dh-social-post-card__media.is-carousel > * {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  scroll-snap-align: start;
  object-fit: contain;
}

/* Rodapé: ícones SVG a cores e layout seguro em ecrãs de portátil */
.dh-footer-social a {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: transparent;
  box-shadow: 0 4px 12px rgba(0,0,0,.22);
}
.dh-footer-social a:hover,
.dh-footer-social a:focus-visible {
  background: transparent;
}
.dh-footer-social img {
  width: 31px;
  height: 31px;
  border-radius: 9px;
}
@media (min-width: 1401px) and (max-width: 1750px) {
  .dh-site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .dh-footer-social {
    flex: none;
    gap: 7px;
  }
  .dh-footer-legal {
    flex: none;
    gap: 18px;
    justify-content: flex-end;
  }
}
@media (min-width: 901px) and (max-width: 1400px) {
  .dh-site-footer {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 14px;
    column-gap: 26px;
  }
  .dh-footer-social {
    justify-self: start;
    justify-content: flex-start;
  }
  .dh-footer-legal {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Sinal de itens pendentes no menu e pílula clicável no Dashboard */
.dh-nav-item .dh-nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #ff4d5e;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 3px rgba(255, 77, 94, 0.18);
}
a.dh-dashboard-attention {
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
a.dh-dashboard-attention:hover,
a.dh-dashboard-attention:focus-visible {
  background: #ffe3e3;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(142, 63, 67, 0.16);
  outline: none;
}
a.dh-dashboard-attention span {
  margin-left: 4px;
}

/* Aprovações: leitura mais rápida, estado visível e decisão sempre à mão */
.dh-approval-workspace,
.dh-approval-item { overflow: clip; }
.dh-approval-item { border-left: 4px solid #c9d6e3; }
.dh-approval-item[data-status="awaiting_approval"] { border-left-color: #f5a524; }
.dh-approval-item[data-status="changes_requested"] { border-left-color: #e5484d; }
.dh-approval-item[data-status="approved"] { border-left-color: #18a76a; }
.dh-approval-item > header { background: linear-gradient(180deg, #fbfdff, #fff); }
.dh-approval-item > header h2 { font-size: 20px; letter-spacing: -.01em; }
.dh-approval-kpis article[data-approval-kpi] { cursor: pointer; }
.dh-approval-kpis article[data-approval-kpi]:hover,
.dh-approval-kpis article[data-approval-kpi]:focus-visible {
  transform: translateY(-2px);
  border-color: #8fc3ef;
  box-shadow: 0 14px 30px rgba(20, 58, 94, .12);
  outline: none;
}
.dh-approval-text.is-clamped { position: relative; max-height: 150px; overflow: hidden; }
.dh-approval-text.is-clamped::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 56px;
  background: linear-gradient(rgba(255,255,255,0), #fff);
  pointer-events: none;
}
.dh-approval-text-wrap.is-open .dh-approval-text.is-clamped { max-height: none; }
.dh-approval-text-wrap.is-open .dh-approval-text.is-clamped::after { display: none; }
.dh-approval-more {
  margin-top: 8px;
  padding: 6px 12px;
  border: 1px solid #cfe0f1;
  border-radius: 999px;
  background: #f3f9ff;
  color: #1d63b8;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.dh-approval-more:hover { background: #e6f2ff; }
.dh-approval-body.is-solo { grid-template-columns: 1fr; }
.dh-approval-body.is-solo > section + section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-left: 0;
  border-top: 1px solid #edf2f6;
}
.dh-approval-body.is-solo > section + section h3 { margin: 0; font-size: 12px; white-space: nowrap; }
.dh-approval-body.is-solo > section + section p { margin: 0; }
.dh-approval-item > footer {
  position: sticky;
  bottom: 0;
  z-index: 6;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  box-shadow: 0 -10px 22px rgba(15, 51, 86, .07);
}
.dh-approval-actions .dh-btn-primary { min-width: 150px; }
@media (max-width: 760px) {
  .dh-approval-item > footer { flex-wrap: wrap; }
  .dh-approval-actions { width: 100%; justify-content: flex-end; }
}

/* Menu lateral recolhível (ecrãs grandes): fechado por defeito, só com ícones */
.dh-sidebar-toggle { display: none; }
@media (min-width: 901px) {
  .dh-app { transition: grid-template-columns .22s ease; }
  .dh-sidebar { transition: padding .22s ease; }
  .dh-sidebar-toggle {
    display: grid;
    place-items: center;
    position: absolute;
    top: 30px;
    right: -14px;
    z-index: 30;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #cfe0f1;
    border-radius: 50%;
    background: #fff;
    color: #0b2138;
    box-shadow: 0 6px 16px rgba(7, 22, 42, .24);
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
  }
  .dh-sidebar-toggle:hover { background: #eaf4ff; transform: scale(1.08); }
  .dh-sidebar-toggle:focus-visible { outline: 3px solid rgba(102, 225, 255, .6); outline-offset: 2px; }
  .dh-sidebar-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .22s ease;
  }
  html[data-sidebar="open"] .dh-sidebar-toggle svg { transform: rotate(180deg); }

  html:not([data-sidebar="open"]) .dh-app { grid-template-columns: 78px minmax(0, 1fr); }
  html:not([data-sidebar="open"]) .dh-sidebar { padding-left: 12px; padding-right: 12px; }
  html:not([data-sidebar="open"]) .dh-logo { justify-content: center; gap: 0; padding: 0 0 22px; }
  html:not([data-sidebar="open"]) .dh-logo > span:last-child { display: none; }
  html:not([data-sidebar="open"]) .dh-logo .dh-brand-mark { width: 17px; background-size: auto 100%; background-position: left center; }
  html:not([data-sidebar="open"]) .dh-nav-item { position: relative; justify-content: center; gap: 0; padding: 11px 0; }
  html:not([data-sidebar="open"]) .dh-nav-item em { display: none; }
  html:not([data-sidebar="open"]) .dh-nav-item > span { width: auto; font-size: 19px; }
  html:not([data-sidebar="open"]) .dh-nav-item > span svg { width: 21px; height: 21px; }
  html:not([data-sidebar="open"]) .dh-nav-item .dh-nav-badge {
    position: absolute;
    top: 3px;
    right: 9px;
    min-width: 17px;
    height: 17px;
    margin: 0;
    padding: 0 4px;
    font-size: 10px;
    box-shadow: 0 0 0 2px #0b2138;
  }
  html:not([data-sidebar="open"]) .dh-nav-sub { display: none; }
  html:not([data-sidebar="open"]) .dh-user-mini { justify-content: center; padding: 8px 0; }
  html:not([data-sidebar="open"]) .dh-user-mini > span:last-child { display: none; }
  html:not([data-sidebar="open"]) .dh-logout { font-size: 0; text-align: center; padding: 9px 0; }
  html:not([data-sidebar="open"]) .dh-logout::before { content: ""; display: block; width: 21px; height: 21px; margin: 0 auto; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2391a7bb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/><path d='m16 17 5-5-5-5'/><path d='M21 12H9'/></svg>") center / contain no-repeat; }
}
@media (prefers-reduced-motion: reduce) {
  .dh-app, .dh-sidebar, .dh-sidebar-toggle svg { transition: none !important; }
}

/* Etiqueta ao passar o rato nos ícones do menu fechado */
.dh-nav-tip {
  position: fixed;
  z-index: 200;
  transform: translateY(-50%);
  padding: 7px 12px;
  border-radius: 9px;
  background: #0b2138;
  color: #fff;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 10px 26px rgba(7, 22, 42, .3);
}
.dh-nav-tip::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #0b2138;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 2px;
}
.dh-nav-tip[hidden] { display: none; }
@media (max-width: 900px) { .dh-nav-tip { display: none; } }

/* Ícones SVG do menu (traço, herdam a cor do item) */
.dh-nav-item > span svg {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Ícones SVG nos cartões de módulos do Dashboard (iguais aos do menu) */
.dh-project-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Redes Sociais para clientes: 1 empresa, utilizadores e admins da empresa */
.dh-social-hub-stats.is-client { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dh-social-company-grid.is-client { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dh-social-company-card--hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  padding: 26px 24px;
  text-align: center;
  border-style: dashed;
  border-color: #c4d8ec;
  background: linear-gradient(180deg, #fbfdff, #f4f9ff);
  box-shadow: none;
}
.dh-social-company-card--hint:hover { transform: none; box-shadow: none; border-color: #c4d8ec; }
.dh-social-company-card--hint h3 { margin: 4px 0 0; color: #2c4a68; font-size: 15px; }
.dh-social-company-card--hint p { max-width: 320px; margin: 0; color: #7a8da2; font-size: 12px; line-height: 1.55; }
.dh-social-hint-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px dashed #9fc3e6;
  border-radius: 14px;
  background: #eaf4ff;
  color: #3b82c4;
}
.dh-social-hint-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 760px) { .dh-social-company-grid.is-client, .dh-social-hub-stats.is-client { grid-template-columns: 1fr; } }

