* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px
}

a {
  color: inherit;
  text-decoration: none
}

button,
input,
select,
textarea {
  font: inherit
}

button {
  cursor: pointer
}

h1,
h2,
h3,
h4,
p {
  margin: 0
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading)
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8
}

.app {
  display: flex;
  min-height: 100vh
}

.sidebar {
  width: 238px;
  flex-shrink: 0;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 27px 16px 17px;
  z-index: 4
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -.8px;
  font-size: 19px
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--color-dark);
  display: grid;
  place-items: center;
  color: var(--color-primary);
  font-size: 19px;
  line-height: 1
}

.brand small {
  display: block;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .1px;
  margin-top: 1px
}

.side-brand {
  padding: 0 4px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.side-label {
  font-size: 11px;
  color: #64748B;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 17px 12px 10px
}

.nav {
  display: grid;
  gap: 4px
}

.nav a {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  color: #64748B;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9px
}

.nav a:hover {
  background: var(--color-bg)
}

.nav a.active {
  background: var(--color-soft);
  color: #1E3A5F
}

.nav a.active svg {
  color: #2563EB
}

.nav .count {
  margin-left: auto;
  font-size: 10px;
  background: #DBEAFE;
  border-radius: 5px;
  padding: 3px 6px
}

.sidebar-bottom {
  margin-top: auto
}

.help-card {
  background: #EFF6FF;
  padding: 14px;
  border-radius: 11px;
  margin-bottom: 17px
}

.help-card strong {
  display: block;
  font-size: 12px;
  margin-bottom: 5px
}

.help-card p {
  font-size: 11px;
  color: #64748B;
  line-height: 1.5
}

.help-card a {
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  margin-top: 10px
}

.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding: 17px 3px 0
}

.avatar {
  width: 34px;
  height: 34px;
  background: #E2E8F0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #64748B;
  font-size: 11px;
  font-weight: 700
}

.profile strong {
  display: block;
  font-size: 12px
}

.profile small {
  color: var(--color-muted);
  font-size: 10px
}

.profile svg {
  margin-left: auto;
  width: 15px
}

.main {
  margin-left: 238px;
  width: calc(100% - 238px)
}

.topbar {
  height: 69px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding: 0 34px;
  gap: 20px;
  background: rgba(255, 255, 255, .7)
}

.crumb {
  color: #94A3B8;
  font-size: 12px
}

.crumb b {
  color: #3a453a;
  font-weight: 600
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #64748B
}

.icon-btn {
  height: 34px;
  width: 34px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: var(--color-surface);
  display: grid;
  place-items: center
}

.icon-btn svg {
  width: 16px
}

.top-avatar {
  width: 31px;
  height: 31px
}

.content {
  padding: 30px 34px 45px;
  max-width: 1600px;
  margin: auto
}

.heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #94A3B8;
  font-weight: 700;
  margin-bottom: 8px
}

.heading-row h1 {
  font-size: 25px;
  letter-spacing: -1px;
  line-height: 1.2
}

.sub {
  color: #94A3B8;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 6px
}

.btn {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  min-height: 40px;
  padding: 0 15px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap
}

.btn svg {
  width: 15px;
  height: 15px
}

.btn-dark {
  background: #3E6AE1;
  border-color: #3E6AE1;
  color: #ffffff;
  border-radius: 4px;
  min-height: 40px
}

.btn-lime {
  background: #ffffff;
  border-color: #ffffff;
  color: #171A20;
  border-radius: 4px;
  min-height: 40px
}

.btn-light {
  background: #EFF6FF
}

.btn-sm {
  min-height: 34px;
  padding: 0 12px
}

.grid {
  display: grid;
  gap: 16px
}

.metrics {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius)
}

.metric {
  padding: 18px 18px 16px;
  min-height: 126px
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748B;
  font-size: 12px;
  font-weight: 600
}

.metric-icon {
  height: 32px;
  width: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #EFF6FF;
  color: #2563EB
}

.metric-icon svg {
  width: 16px
}

.metric-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -1px;
  margin: 11px 0 5px
}

.metric-foot {
  font-size: 10px;
  color: #94A3B8
}

.positive {
  color: #10B981;
  font-weight: 700
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.85fr) minmax(260px, 1fr);
  align-items: stretch
}

.panel {
  padding: 21px
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px
}

.panel-head h2 {
  font-size: 14px;
  letter-spacing: -.25px
}

.panel-head p {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 5px
}

.select {
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: white;
  padding: 8px 10px;
  color: #475569;
  font-size: 11px
}

.legend {
  display: flex;
  gap: 17px;
  margin-top: 22px;
  font-size: 10px;
  color: #94A3B8
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  background: #475569
}

.dot.lime {
  background: #93C5FD
}

.chart {
  width: 100%;
  height: 180px;
  margin-top: 8px;
  overflow: visible
}

.chart text {
  font-family: var(--font-body);
  font-size: 10px;
  fill: #a6afa6
}

.chart line {
  stroke: #eef1ec;
  stroke-width: 1
}

.chart .line1 {
  fill: none;
  stroke: #2563EB;
  stroke-width: 2.3
}

.chart .line2 {
  fill: none;
  stroke: #93C5FD;
  stroke-width: 2.3
}

.summary-line {
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  margin-top: 5px;
  color: #94A3B8;
  font-size: 10px
}

.text-link {
  color: #475569;
  font-weight: 700
}

.quick-list {
  display: grid;
  gap: 10px;
  margin-top: 20px
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px
}

.quick-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  background: #EFF6FF;
  border-radius: 9px;
  color: #2563EB;
  flex-shrink: 0
}

.quick-item strong {
  display: block;
  font-size: 11px
}

.quick-item p {
  font-size: 10px;
  color: #94A3B8;
  margin-top: 4px
}

.quick-item>svg {
  margin-left: auto;
  width: 14px;
  color: #94A3B8
}

.notice {
  background: #EFF6FF;
  border-radius: 10px;
  padding: 13px;
  margin-top: 14px;
  display: flex;
  gap: 10px;
  color: #475569
}

.notice svg {
  width: 16px;
  flex-shrink: 0
}

.notice strong {
  font-size: 11px;
  display: block;
  color: #2563EB
}

.notice p {
  font-size: 10px;
  line-height: 1.5;
  margin-top: 4px
}

.lower-grid {
  grid-template-columns: 1.6fr 1fr;
  margin-top: 17px
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin-top: 17px
}

.table th {
  font-size: 10px;
  color: #94A3B8;
  font-weight: 600;
  padding: 10px 9px;
  border-bottom: 1px solid var(--color-border)
}

.table td {
  font-size: 11px;
  color: #475569;
  padding: 12px 9px;
  border-bottom: 1px solid #E2E8F0
}

.table tr:last-child td {
  border-bottom: 0
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #354135;
  font-weight: 700
}

.thumb {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  object-fit: cover;
  background: #F1F5F9
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  background: #EFF6FF;
  color: #2563EB
}

.pill.amber {
  background: #fbf3df;
  color: #a48646
}

.pill.gray {
  background: #f2f3f1;
  color: #94A3B8
}

.pill.blue {
  background: #DBEAFE;
  color: #3B82F6
}

.activity {
  display: flex;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid #E2E8F0
}

.activity:last-child {
  border: 0
}

.activity .quick-icon {
  width: 30px;
  height: 30px
}

.activity .quick-icon svg {
  width: 14px
}

.activity strong {
  font-size: 11px
}

.activity p {
  font-size: 10px;
  color: #94A3B8;
  margin-top: 4px
}

.content-narrow {
  max-width: 1060px
}

.two-col {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr)
}

.section-title {
  font-size: 15px;
  letter-spacing: -.3px
}

.section-desc {
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.6;
  margin-top: 6px
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  margin: 20px 0 8px
}

.field {
  width: 100%;
  min-height: 42px;
  border: 1px solid #e3e9e1;
  border-radius: 8px;
  background: white;
  padding: 11px 12px;
  color: #425042;
  outline: none
}

.field::placeholder {
  color: #94A3B8
}

.field:focus {
  border-color: #3B82F6
}

.field-row {
  display: flex;
  gap: 9px
}

.field-row .field {
  flex: 1;
  min-width: 0
}

.hint {
  font-size: 10px;
  color: #94A3B8;
  line-height: 1.6;
  margin-top: 8px
}

.divider {
  height: 1px;
  background: var(--color-border);
  margin: 23px 0
}

.steps {
  display: grid;
  gap: 20px;
  margin-top: 22px
}

.step {
  display: flex;
  gap: 13px
}

.step-num {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0
}

.step strong {
  font-size: 12px
}

.step p {
  font-size: 11px;
  color: #94A3B8;
  line-height: 1.5;
  margin-top: 5px
}

.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--color-border);
  margin: 0 0 20px
}

.tabs a {
  font-size: 12px;
  color: #94A3B8;
  padding: 0 0 13px;
  font-weight: 600
}

.tabs a.current {
  color: #1D4ED8;
  border-bottom: 2px solid #2563EB
}

.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px
}

.toolbar .field {
  max-width: 300px
}

.toolbar .select {
  font-size: 12px
}

.toolbar .spacer {
  flex: 1
}

.empty-detail {
  padding: 20px 0;
  text-align: center;
  color: #94A3B8;
  font-size: 11px
}

.status-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.status-box {
  padding: 15px 18px;
  flex: 1;
  min-width: 150px
}

.status-box span {
  display: block;
  color: #94A3B8;
  font-size: 11px
}

.status-box strong {
  display: block;
  font-size: 21px;
  margin-top: 8px
}

.review-list {
  display: grid;
  gap: 10px
}

.review-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px
}

.review-item .thumb {
  width: 54px;
  height: 54px
}

.review-info {
  flex: 1
}

.review-info h3 {
  font-size: 12px
}

.review-info p {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 6px
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  margin-top: 20px
}

.calendar>* {
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 11px;
  font-size: 11px;
  min-height: 80px;
  color: #94A3B8
}

.calendar .day {
  min-height: 0;
  background: #F8FAFC;
  text-align: center;
  font-weight: 700;
  font-size: 10px
}

.calendar .event {
  display: block;
  background: #DBEAFE;
  color: #2563EB;
  padding: 7px;
  border-radius: 6px;
  margin-top: 7px;
  font-size: 10px;
  line-height: 1.4
}

.calendar .event.blue {
  background: #DBEAFE;
  color: #3B82F6
}

.settings-grid {
  grid-template-columns: 1.3fr .8fr
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 17px
}

.provider {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 10px
}

.provider.selected {
  border-color: #93C5FD;
  background: #EFF6FF
}

.provider-logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #EFF6FF;
  font-weight: 800;
  font-size: 13px;
  color: #475569
}

.provider strong {
  display: block;
  font-size: 11px
}

.provider small {
  color: #94A3B8;
  font-size: 10px
}

.radio {
  margin-left: auto;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #d6dfd3
}

.selected .radio {
  border: 5px solid #2563EB
}

.security-note {
  padding: 14px;
  background: #f8faf6;
  border: 1px solid #DBEAFE;
  border-radius: 9px;
  display: flex;
  gap: 10px;
  margin-top: 18px;
  color: #64748B;
  font-size: 11px;
  line-height: 1.5
}

.security-note svg {
  flex-shrink: 0;
  width: 16px
}

.cloud-card {
  background: #1E3A5F;
  color: white;
  padding: 22px
}

.cloud-card .eyebrow {
  color: #b5c8ae
}

.cloud-card h3 {
  font-size: 16px;
  margin-bottom: 8px
}

.cloud-card p {
  color: #c0cec0;
  font-size: 11px;
  line-height: 1.7
}

.cloud-card .pill {
  margin-top: 17px;
  background: #405141;
  color: #DBEAFE
}

.cloud-list {
  margin-top: 16px
}

.cloud-list div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #64748B;
  padding: 11px 0;
  border-bottom: 1px solid var(--color-border)
}

.cloud-list svg {
  width: 15px;
  color: #3B82F6
}

.public {
  background: #F8FAFC
}

.public-wrap {
  max-width: 1160px;
  margin: auto;
  padding: 0 28px
}

.public-header {
  height: 76px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  border: 0
}

.public-header .public-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 12px;
  font-weight: 600;
  color: #64748B
}

.public-nav .active {
  color: #1E3A5F
}

.public-hero {
  background: #171A20;
  margin-top: 0;
  border-radius: 0;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  overflow: hidden;
  position: relative
}
.public-hero .hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 40px 28px
}
.public-hero .hero-copy h1 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  color: #ffffff;
  margin: 0 0 16px
}
.public-hero .hero-copy p {
  font-size: 14px;
  line-height: 1.43;
  color: #ffffff;
  max-width: 520px;
  opacity: 0.9
}
.public-hero .hero-image {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1503602642458-232111445657?auto=format&fit=crop&w=1600&q=85') center/cover;
  min-height: 100vh
}
.public-hero .hero-label { color: #ffffff; opacity: .85; font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 14px; margin-bottom: 12px; }
.public-hero .hero-label:before { display: none }

.product-details .hero-label { color: #2563EB; font-size: 12px; font-weight: 600; letter-spacing: .3px; }

.trust-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--color-border);
  color: #94A3B8;
  font-size: 11px
}

.trust-row span {
  display: flex;
  gap: 8px;
  align-items: center
}

.trust-row svg {
  width: 15px;
  color: #2563EB
}

.public-section {
  padding: 38px 0 50px
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px
}

.section-head h2 {
  font-size: 23px;
  letter-spacing: -.8px
}

.section-head p {
  color: #94A3B8;
  font-size: 12px;
  margin-top: 6px
}

.categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px
}

.chip {
  padding: 9px 14px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 30px;
  color: #64748B;
  font-size: 11px;
  font-weight: 600
}

.chip.on {
  background: #1E3A5F;
  color: white;
  border-color: #1E3A5F
}

.public-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px
}

.public-product {
  background: white;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  transition: color .33s, background-color .33s
}

.public-product:hover {
  background: #F4F4F4
}

.product-image {
  height: 174px;
  background: #F1F5F9;
  position: relative;
  overflow: hidden
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.product-image .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: white;
  border-radius: 5px;
  padding: 6px 8px;
  font-size: 9px;
  font-weight: 700;
  color: #475569
}

.product-copy {
  padding: 15px
}

.product-copy .store {
  font-size: 10px;
  color: #94A3B8
}

.product-copy h3 {
  font-size: 13px;
  line-height: 1.45;
  min-height: 39px;
  margin: 7px 0
}

.product-copy p {
  font-size: 11px;
  color: #94A3B8;
  line-height: 1.5;
  min-height: 32px
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #E2E8F0;
  margin-top: 13px;
  padding-top: 12px
}

.product-bottom strong {
  font-size: 13px
}

.product-bottom span {
  color: #2563EB;
  font-size: 10px;
  font-weight: 700
}

.public-footer {
  background: #1E3A5F;
  color: #c1cec0;
  padding: 35px 0
}

.public-footer .public-wrap {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center
}

.public-footer .brand {
  color: white
}

.public-footer p {
  font-size: 11px;
  line-height: 1.6;
  max-width: 500px
}

.product-page {
  padding: 24px 0 55px
}

.breadcrumb {
  font-size: 11px;
  color: #94A3B8;
  margin: 4px 0 22px
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px
}

.product-main-image {
  width: 100%;
  height: 430px;
  object-fit: contain;
  border-radius: 14px;
  background: #FFFFFF;
  border: 2px solid #3E6AE1;
  box-shadow: 0 10px 28px rgba(62, 106, 225, 0.14);
  padding: 12px;
}

.product-details {
  padding: 12px 0
}

.product-details h1 {
  font-size: 31px;
  line-height: 1.25;
  letter-spacing: -1.3px;
  margin: 14px 0
}

.product-details .lead {
  color: #64748B;
  font-size: 13px;
  line-height: 1.7
}

.detail-box {
  background: #EFF6FF;
  border-radius: 11px;
  padding: 17px;
  margin: 21px 0
}

.detail-box strong {
  display: block;
  font-size: 12px
}

.detail-box p {
  font-size: 11px;
  color: #64748B;
  line-height: 1.6;
  margin-top: 5px
}

.price {
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 800;
  margin: 13px 0 3px
}

.disclosure {
  font-size: 10px;
  line-height: 1.6;
  color: #94A3B8;
  margin: 10px 0
}

.editorial {
  display: grid;
  grid-template-columns: 1.5fr .8fr;
  gap: 35px;
  margin-top: 44px
}

.editorial h2 {
  font-size: 20px;
  letter-spacing: -.6px;
  margin-bottom: 12px
}

.editorial p {
  font-size: 13px;
  line-height: 1.8;
  color: #64748B
}

.editorial .card {
  padding: 20px
}

.editorial ul {
  padding-left: 18px;
  color: #64748B;
  font-size: 12px;
  line-height: 2
}

.mobile-menu {
  display: none
}

@media(max-width:1000px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr)
  }

  .dashboard-grid,
  .lower-grid,
  .two-col,
  .settings-grid {
    grid-template-columns: 1fr
  }

  .public-products {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:700px) {
  .topbar {
    padding: 0 14px;
    height: 56px;
    gap: 10px;
  }

  .crumb {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
  }

  .top-actions .pill,
  .top-actions .btn-example-hide {
    display: none;
  }

  .content {
    padding: 20px 14px 36px;
  }

  .heading-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .heading-row h1 {
    font-size: 24px;
  }

  .metric {
    min-height: 110px;
  }

  .table-wrap {
    overflow-x: auto;
    max-width: 100%;
  }

  .table {
    min-width: 600px;
  }

  .public-nav a:not(.btn) {
    display: none;
  }

  .public-wrap {
    padding: 0 16px;
  }

  .public-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 32px 25px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-image {
    min-height: 190px;
  }

  .trust-row {
    flex-wrap: wrap;
  }

  .product-layout,
  .editorial {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-main-image {
    height: 280px;
  }

  .public-footer .public-wrap {
    display: block;
  }

  .public-footer p {
    margin-top: 15px;
  }

  .calendar>* {
    padding: 5px;
    font-size: 10px;
    min-height: 60px;
  }

  .calendar .event {
    padding: 4px;
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .provider-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Collapsible sidebar & Mobile Drawer ---- */
.side-toggle {
  margin-left: auto;
  background: none;
  border: 0;
  color: #64748B;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.side-toggle:hover { background: var(--color-soft); color: var(--color-text); }
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--color-text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.side-close-btn {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: #475569;
  cursor: pointer;
  padding: 6px;
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  z-index: 45;
}
body.sidebar-open .sidebar-backdrop { display: block; }

body.sidebar-collapsed .sidebar { width: 72px; padding: 18px 8px; transition: width .2s ease; }
body.sidebar-collapsed .main { margin-left: 72px; width: calc(100% - 72px); }
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .side-label,
body.sidebar-collapsed .sidebar-bottom .help-card,
body.sidebar-collapsed .profile > div,
body.sidebar-collapsed .profile svg,
body.sidebar-collapsed .brand-text,
body.sidebar-collapsed .nav .count { display: none; }
body.sidebar-collapsed .nav a { justify-content: center; padding: 0; }
body.sidebar-collapsed .brand { justify-content: center; }
body.sidebar-collapsed .side-brand {
  padding: 0 0 18px;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
body.sidebar-collapsed .side-toggle { margin-left: 0; }

@media (max-width: 1000px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    height: 100vh;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 50;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .mobile-menu-btn { display: inline-flex; }
  .side-close-btn { display: inline-flex; }
  .side-toggle { display: none; }
  .main { margin-left: 0; width: 100%; min-width: 0; }
}


/* ===== Editorial Precision Studio Extensions ===== */
body:not(.public) {
  background: var(--color-bg-subtle);
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(23, 26, 32, 0.06);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-dark:hover:not(:disabled) {
  background: #2f57c8;
  border-color: #2f57c8;
}

.btn-outline-danger {
  color: var(--color-danger);
  border-color: #FECACA;
  background: #FEF2F2;
}

.btn-outline-danger:hover:not(:disabled) {
  background: #FEE2E2;
  border-color: #FCA5A5;
}

.pill.emerald {
  background: #ECFDF5;
  color: #059669;
}

.pill.danger {
  background: #FEF2F2;
  color: #DC2626;
}

/* Dashboard Pipeline */
.pipeline-steps {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.pipeline-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-subtle);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pipeline-step:hover {
  border-color: #CBD5E1;
  background: #FFFFFF;
}

.pipeline-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-dark);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pipeline-step strong {
  display: block;
  font-size: 12px;
  color: var(--color-text);
}

.pipeline-step p {
  font-size: 11px;
  color: var(--color-subtle);
  margin-top: 2px;
}

/* AI Model Registry (/orquestrador) */
.model-grid {
  display: grid;
  gap: 12px;
}

.model-card {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.model-card.is-default {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(62, 106, 225, 0.12);
}

.model-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.model-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.model-provider-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #EFF6FF;
  color: var(--color-primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.model-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--color-subtle);
}

.model-card-meta code {
  background: var(--color-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--color-text);
}

.model-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.status-banner {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
}

.status-banner.success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.status-banner.error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.status-banner.info {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

/* AI Link-to-Page Generator (/cadastro) */
.mode-switch {
  display: inline-flex;
  background: var(--color-soft);
  padding: 4px;
  border-radius: 8px;
  gap: 4px;
}

.mode-switch button {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-subtle);
  white-space: nowrap;
}

.mode-switch button.active {
  background: #FFFFFF;
  color: var(--color-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.generator-bar {
  display: grid;
  grid-template-columns: 1.8fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.example-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}

.example-chip {
  border: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
  color: var(--color-muted);
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
}

.example-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #EFF6FF;
}

/* Generation Stepper */
.gen-stepper {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.gen-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--color-subtle);
}

.gen-step.active {
  color: var(--color-primary);
  font-weight: 600;
}

.gen-step.done {
  color: #059669;
  font-weight: 600;
}

.gen-step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex-shrink: 0;
}

.gen-step.active .gen-step-dot {
  border-color: var(--color-primary);
  background: #EFF6FF;
  color: var(--color-primary);
  animation: pulseDot 1s infinite ease-in-out;
}

.gen-step.done .gen-step-dot {
  border-color: #10B981;
  background: #10B981;
  color: #FFFFFF;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Editor Tabs & Google SERP Preview */
.editor-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 18px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.editor-tab {
  border: 1px solid transparent;
  background: transparent;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-subtle);
}

.editor-tab.active {
  background: #EFF6FF;
  color: var(--color-primary);
  border-color: #BFDBFE;
}

.serp-card {
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 16px 18px;
  background: #FFFFFF;
  max-width: 620px;
}

.serp-url {
  font-size: 12px;
  color: #202124;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.serp-favicon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-primary);
  font-size: 10px;
  display: grid;
  place-items: center;
}

.serp-title {
  font-size: 18px;
  color: #1A0DAB;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 5px;
}

.serp-desc {
  font-size: 13px;
  color: #4D5156;
  line-height: 1.5;
}

.char-counter {
  float: right;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-subtle);
}

.char-counter.over {
  color: var(--color-danger);
}

.thumb-preview-box {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #F1F5F9;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-top: 8px;
}

.thumb-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 5-CTA Product Page (/produto) */
.cta-mid-banner {
  background: linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 100%);
  border: 1px solid #BFDBFE;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-mid-banner strong {
  display: block;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 4px;
}

.cta-mid-banner p {
  font-size: 12px;
  color: var(--color-subtle);
  margin: 0;
}

.cta-bottom-bar {
  margin-top: 36px;
  padding: 24px;
  border-radius: 12px;
  background: var(--color-dark);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-bottom-bar h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: #FFFFFF;
}

.cta-bottom-bar p {
  font-size: 12px;
  color: #CBD5E1;
  max-width: 560px;
}

.sticky-aside {
  position: sticky;
  top: 24px;
  align-self: start;
}

@media (max-width: 900px) {
  .generator-bar {
    grid-template-columns: 1fr;
  }
}


/* ===== Evaluator Priority Fixes: Contrast, Hierarchy, Overflow & Form Polish ===== */
.main,
.grid > *,
.panel,
.model-card,
.editorial > *,
.product-details {
  min-width: 0;
}

.model-card-meta code,
.url-wrap {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* WCAG AA Contrast & Typography Scale */
.crumb,
.eyebrow,
.sub,
.metric-foot,
.panel-head p,
.legend,
.summary-line,
.quick-item p,
.table th,
.activity p,
.section-desc,
.breadcrumb,
.disclosure,
.hint,
.product-copy .store,
.product-copy p {
  color: #475569;
}

.eyebrow,
.metric-foot,
.panel-head p,
.legend,
.summary-line,
.quick-item p,
.table th,
.activity p,
.disclosure,
.hint,
.breadcrumb {
  font-size: 11px;
}

.sub,
.section-desc {
  font-size: 13px;
}

.heading-row h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.9px;
}

.panel-head h2,
.section-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.chart text {
  fill: #475569;
  font-size: 11px;
}

/* Deepened Pill Contrast */
.pill {
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 6px;
}
.pill.blue {
  background: #DBEAFE;
  color: #1D4ED8;
}
.pill.amber {
  background: #FEF3C7;
  color: #92400E;
}
.pill.gray {
  background: #F1F5F9;
  color: #475569;
}

/* Unified Border Radius & Select Arrow Padding */
.card,
.btn,
.btn-dark,
.btn-lime,
.field,
.select,
.model-card,
.pipeline-step,
.notice,
.detail-box,
.serp-card {
  border-radius: var(--radius);
}

select.field,
.select {
  padding-right: 34px;
}

.heading-actions {
  flex-wrap: nowrap;
}

@media (max-width: 900px) {
  .heading-actions {
    flex-wrap: wrap;
  }
  .product-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sticky-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .metrics {
    grid-template-columns: 1fr;
  }
  .cta-mid-banner .btn,
  .cta-bottom-bar .btn,
  .btn-wrap-mobile {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    padding: 10px 14px;
    width: 100%;
    max-width: 100%;
  }
  .generator-bar .btn {
    width: 100%;
  }
}

/* ===== Model Discovery Picker (/orquestrador) ===== */
.model-picker-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #DBEAFE;
  border-radius: var(--radius);
  background: #F8FAFC;
}

.picker-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.picker-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #FFFFFF;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
}

.picker-chip.active {
  background: #171A20;
  color: #FFFFFF;
  border-color: #171A20;
}

.discovered-model-list {
  margin-top: 10px;
  max-height: 240px;
  overflow-y: auto;
  display: grid;
  gap: 6px;
  padding-right: 4px;
}

.discovered-model-item {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: #FFFFFF;
  transition: border-color 0.15s, background 0.15s;
}

.discovered-model-item:hover {
  border-color: #3E6AE1;
  background: #EFF6FF;
}

.discovered-model-item.selected {
  border-color: #3E6AE1;
  background: #EFF6FF;
  box-shadow: 0 0 0 1px #3E6AE1;
}

.discovered-model-item code {
  font-size: 12px;
  font-weight: 700;
  color: #171A20;
  word-break: break-all;
}

.discovered-model-item small {
  display: block;
  font-size: 11px;
  color: #475569;
  margin-top: 2px;
}

/* ============================================================
   OFERTAS DO DIA (/ofertas-do-dia)
   ============================================================ */

.ofertas-hero {
  background: linear-gradient(135deg, #171A20 0%, #1E3A5F 100%);
  padding: 36px 0 32px;
  color: #fff;
}
.ofertas-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.ofertas-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #93C5FD;
  margin-bottom: 10px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  animation: livePulse 1.4s infinite ease-in-out;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}
.ofertas-hero h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 8px;
  color: #fff;
}
.ofertas-hero p {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  margin: 0;
  line-height: 1.6;
}
.ofertas-hero-stats {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}
.ofertas-stat {
  text-align: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 14px 20px;
  min-width: 80px;
}
.ofertas-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
}
.ofertas-stat span {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 3px;
  display: block;
}

/* Barra de período */
.period-bar {
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
  padding: 10px 0;
  position: sticky;
  top: 76px;
  z-index: 9;
}
.period-bar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.period-bar-inner::-webkit-scrollbar { display: none; }
.period-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  white-space: nowrap;
  margin-right: 4px;
  flex-shrink: 0;
}
.period-label svg { width: 12px; height: 12px; }
.period-chip {
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #64748B;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  flex-shrink: 0;
}
.period-chip:hover { background: #EFF6FF; border-color: #BFDBFE; color: #1D4ED8; }
.period-chip.active { background: #171A20; border-color: #171A20; color: #fff; }

/* Bloco de urgência */
.ofertas-urgencia {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 28px;
  color: #92400E;
  font-size: 12px;
  line-height: 1.5;
}
.ofertas-urgencia svg { width: 16px; height: 16px; color: #F59E0B; flex-shrink: 0; margin-top: 1px; }
.ofertas-urgencia strong { display: block; font-size: 12px; margin-bottom: 3px; }
.ofertas-urgencia p { margin: 0; color: #B45309; }

/* Responsive */
@media (max-width: 700px) {
  .ofertas-hero-inner { flex-direction: column; align-items: flex-start; }
  .ofertas-hero-stats { gap: 10px; }
  .ofertas-stat { padding: 10px 14px; min-width: 70px; }
  .ofertas-stat strong { font-size: 20px; }
  .period-bar { top: 56px; }
  .ofertas-hero h1 { font-size: 26px; }
}
   ============================================================ */

/* Header compacto ao rolar */
.public-header { transition: box-shadow .2s ease, background .2s ease; }
.public-header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  background: rgba(255,255,255,.97);
}
.hdr-inner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.hdr-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 30px;
  padding: 8px 14px;
  flex: 1;
  max-width: 340px;
  margin-left: auto;
}
.hdr-search svg { width:14px;height:14px;color:#94A3B8;flex-shrink:0 }
.hdr-search input {
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 12px;
  color: #171A20;
  width: 100%;
}
.hdr-search input::placeholder { color: #94A3B8; }

/* Hero compacto */
.home-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 60%, #2563EB 100%);
  padding: 48px 0 44px;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?auto=format&fit=crop&w=1600&q=60') center/cover;
  opacity: .10;
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.home-hero-copy { color: #fff; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #93C5FD;
  margin-bottom: 14px;
}
.hero-eyebrow svg { width:12px;height:12px; }
.home-hero-copy h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.18;
  margin: 0 0 12px;
  color: #fff;
}
.home-hero-copy p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.75);
  max-width: 480px;
  margin: 0 0 22px;
}
.hero-actions { display:flex;gap:10px;flex-wrap:wrap; }
.btn-outline-hero {
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 9px;
  min-height: 40px;
  padding: 0 15px;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.btn-outline-hero:hover { background: rgba(255,255,255,.16); }
.btn-outline-hero svg { width:15px;height:15px; }
.home-hero-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 10px 14px;
  color: rgba(255,255,255,.85);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.hero-badge svg { width:14px;height:14px;color:#93C5FD; }

/* Filtros + sort */
.home-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.home-filter-row .categories { margin-bottom: 0; gap: 6px; }
.home-filter-row .chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
}
.home-filter-row .chip svg { width:12px;height:12px; }
.filter-sort .select { font-size:11px;padding:7px 10px;border-radius:20px; }

/* Cabeçalho da seção de achados */
.home-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}
.home-section-head h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.6px;
}
.achados-count {
  font-size: 11px;
  font-weight: 600;
  color: #94A3B8;
}

/* Feed grid — inspirado no Achadinhos mas com card mais editorial */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feed-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
  color: inherit;
}
.feed-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.09);
  transform: translateY(-2px);
  border-color: #CBD5E1;
}
.feed-card-img {
  position: relative;
  height: 165px;
  background: #FFFFFF;
  border-bottom: 2px solid #3E6AE1;
  padding: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.feed-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}
.feed-card:hover .feed-card-img img { transform: scale(1.04); }
.feed-no-img {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #CBD5E1;
}
.feed-no-img svg { width:32px;height:32px; }
.feed-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #EF4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
}
.feed-new {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #10B981;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 20px;
}
.feed-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.feed-store {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
  margin-bottom: 6px;
}
.feed-store-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.feed-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #171A20;
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-desc {
  font-size: 11px;
  color: #64748B;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 10px;
}
.feed-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #F1F5F9;
  padding-top: 10px;
  margin-top: auto;
}
.feed-price { display:flex;align-items:baseline;gap:6px; }
.feed-price strong { font-size: 14px; font-weight: 800; color: #171A20; }
.feed-price del { font-size: 10px; color: #94A3B8; text-decoration: line-through; }
.feed-price-link { font-size:12px;color:#3E6AE1;font-weight:700; }
.feed-time { font-size: 10px; color: #94A3B8; white-space: nowrap; }

/* Feed vazio */
.feed-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 56px 20px;
  color: #94A3B8;
  text-align: center;
  border: 1px dashed #E2E8F0;
  border-radius: 12px;
  margin-top: 8px;
}
.feed-empty svg { width:40px;height:40px;color:#CBD5E1; }
.feed-empty h3 { font-size:16px;color:#475569;margin:0; }
.feed-empty p { font-size:12px;line-height:1.6;max-width:340px;margin:0; }

/* Destaques por categoria */
.destaque-row { margin-bottom: 36px; }
.destaque-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.destaque-row-head h3 { font-size:16px;font-weight:700;letter-spacing:-.4px; }
.destaque-row-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.destaque-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px;
  transition: box-shadow .15s, border-color .15s;
  color: inherit;
}
.destaque-card:hover { box-shadow:0 4px 14px rgba(0,0,0,.07);border-color:#CBD5E1; }
.destaque-img {
  width: 50px;
  height: 50px;
  border-radius: 7px;
  background: #F1F5F9;
  overflow: hidden;
  flex-shrink: 0;
}
.destaque-img img { width:100%;height:100%;object-fit:cover; }
.destaque-info { display:flex;flex-direction:column;gap:3px;min-width:0; }
.destaque-price { font-size:13px;font-weight:800;color:#171A20; }
.destaque-name { font-size:11px;color:#64748B;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }

/* Footer v2 */
.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { font-size:11px;line-height:1.7;color:rgba(255,255,255,.5);margin:0;max-width:340px; }
.footer-links { display:flex;flex-direction:column;gap:7px; }
.footer-links strong { font-size:11px;font-weight:700;color:rgba(255,255,255,.5);text-transform:uppercase;letter-spacing:.8px;margin-bottom:4px; }
.footer-links a { font-size:12px;color:rgba(255,255,255,.65);font-weight:500; }
.footer-links a:hover { color:#fff; }

/* Responsive */
@media(max-width:1000px) {
  .feed-grid { grid-template-columns: repeat(3, 1fr); }
  .destaque-row-items { grid-template-columns: repeat(2, 1fr); }
  .home-hero-inner { grid-template-columns: 1fr; }
  .home-hero-badges { flex-direction: row; flex-wrap: wrap; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media(max-width:700px) {
  .feed-grid { grid-template-columns: repeat(2, 1fr); }
  .destaque-row-items { grid-template-columns: repeat(2, 1fr); }
  .hdr-search { display: none; }
  .home-hero-copy h1 { font-size: 26px; }
  .home-hero { padding: 32px 0 28px; }
  .hero-badge span { display:none; }
  .hero-badge { padding: 8px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media(max-width:480px) {
  .feed-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feed-card-img { height: 130px; }
  .home-filter-row { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   ORQUESTRADOR v2
   ============================================================ */

/* Modos do orquestrador */
.orq-modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 0;
}
.orq-mode-card {
  border: 2px solid var(--color-border);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--color-bg-subtle);
  text-align: left;
}
.orq-mode-card:hover { border-color: #93C5FD; background: #EFF6FF; }
.orq-mode-card.active { border-color: var(--color-primary); background: #EFF6FF; }
.orq-mode-card .orq-mode-icon { font-size: 20px; margin-bottom: 6px; }
.orq-mode-card strong { display: block; font-size: 12px; color: var(--color-text); margin-bottom: 3px; }
.orq-mode-card p { font-size: 10px; color: var(--color-subtle); line-height: 1.5; margin: 0; }

/* Linha de config do orquestrador */
.orq-config-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
.orq-config-row .orq-cfg-field { display: flex; flex-direction: column; gap: 5px; }
.orq-config-row label { font-size: 11px; font-weight: 700; color: #475569; }
.orq-config-row input[type="number"] { width: 90px; }

/* Toggle switch */
.orq-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
  background: #CBD5E1;
}
.orq-toggle.on { background: #10B981; }
.orq-toggle::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: left .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.orq-toggle.on::after { left: 19px; }

/* Log toggle */
.log-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  user-select: none;
}

/* Model card v2 */
.model-card-v2 {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.model-card-v2:hover { border-color: #CBD5E1; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.model-card-v2.is-default { border-color: var(--color-primary); box-shadow: 0 0 0 1px rgba(62,106,225,.12); }
.model-card-v2.inactive { opacity: .55; }

.model-card-v2-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.model-priority-badge {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--color-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .15s;
}
.model-priority-badge:hover { background: var(--color-primary); }

.model-card-v2-info { flex: 1; min-width: 0; }
.model-card-v2-info strong { display: block; font-size: 13px; font-weight: 700; }
.model-card-v2-info small { font-size: 10px; color: #64748B; }

.model-card-v2-badges { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }

.model-card-v2-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #64748B;
  padding-top: 8px;
  border-top: 1px solid #F1F5F9;
  align-items: center;
}
.model-card-v2-meta code {
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  color: #334155;
}
.model-fail-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FEF2F2;
  color: #DC2626;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
}

.model-card-v2-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #F1F5F9;
  flex-wrap: wrap;
}

/* Priority inline select */
.priority-inline-select {
  position: absolute;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  padding: 6px;
  min-width: 120px;
}
.priority-inline-select button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border: 0;
  background: none;
  font-size: 12px;
  cursor: pointer;
  border-radius: 5px;
  font-weight: 600;
  color: #334155;
}
.priority-inline-select button:hover { background: #EFF6FF; color: var(--color-primary); }

/* Tags input */
.tags-input-wrap {
  border: 1px solid #e3e9e1;
  border-radius: 8px;
  background: white;
  padding: 6px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 42px;
  cursor: text;
}
.tags-input-wrap:focus-within { border-color: #3B82F6; }
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #EFF6FF;
  color: #1D4ED8;
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
}
.tag-pill button {
  border: 0;
  background: none;
  cursor: pointer;
  color: #93C5FD;
  font-size: 13px;
  line-height: 1;
  padding: 0;
}
.tag-pill button:hover { color: #1D4ED8; }
.tags-input-wrap input {
  border: 0;
  outline: none;
  font: inherit;
  font-size: 12px;
  min-width: 100px;
  flex: 1;
  background: none;
}

/* Log de decisões */
.orq-log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-top: 12px;
}
.orq-log-table th {
  text-align: left;
  font-size: 10px;
  color: #94A3B8;
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.orq-log-table td {
  padding: 9px 10px;
  color: #475569;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}
.orq-log-table tr:last-child td { border-bottom: 0; }
.orq-log-ok { color: #059669; font-weight: 700; }
.orq-log-fail { color: #DC2626; font-weight: 700; }
.orq-log-fallback { color: #D97706; font-weight: 700; }

/* Mini health dashboard */
.orq-health-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.orq-health-card {
  flex: 1;
  min-width: 150px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  padding: 12px 14px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.orq-health-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.orq-health-card strong { display: block; font-size: 12px; font-weight: 700; }
.orq-health-card small { font-size: 10px; color: #94A3B8; }

@media (max-width: 1000px) {
  .orq-modes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .orq-modes { grid-template-columns: 1fr 1fr; }
  .orq-config-row { flex-direction: column; align-items: flex-start; }
}

/* ===== Orquestrador Compact Horizontal Cards, Inline Edit Drawer & Modal ===== */
.model-list-compact {
  display: grid;
  gap: 10px;
}

.model-row-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #FFFFFF;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.model-row-card.is-default {
  border-color: #93C5FD;
}

.model-row-card.inactive {
  opacity: 0.72;
  background: #F8FAFC;
}

.model-row-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  flex-wrap: wrap;
}

.model-row-summary:hover {
  background: #F8FAFC;
}

.model-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 280px;
}

.model-row-title {
  min-width: 0;
}

.model-row-title strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #171A20;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.model-row-title small {
  display: block;
  font-size: 11px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.model-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.model-inline-drawer {
  border-top: 1px solid var(--color-border);
  background: #F8FAFC;
  border-radius: 0 0 8px 8px;
  padding: 14px;
}

.orq-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.orq-modal-dialog {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.orq-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

/* ============================================================
   Dark Obsidian Studio + Pop-Out White Cards (Admin Only)
   Scoped to body:not(.public) so public storefront stays light
   ============================================================ */

body:not(.public) {
  background: #0F172A;
  background-image: radial-gradient(ellipse at 50% 0%, rgba(30, 58, 138, 0.16) 0%, transparent 65%);
  color: #F8FAFC;
}

/* Sidebar */
body:not(.public) .sidebar {
  background: #0B1120;
  border-right: 1px solid #1E293B;
  color: #F8FAFC;
}

body:not(.public) .brand {
  color: #F8FAFC;
}

body:not(.public) .brand small {
  color: #94A3B8;
}

body:not(.public) .brand-mark {
  background: #1E293B;
  border: 1px solid #334155;
  color: #60A5FA;
}

body:not(.public) .side-label {
  color: #94A3B8;
}

body:not(.public) .nav a {
  color: #CBD5E1;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

body:not(.public) .nav a:hover {
  background: #1E293B;
  color: #FFFFFF;
}

body:not(.public) .nav a.active {
  background: #2563EB;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.38);
}

body:not(.public) .nav a.active svg {
  color: #FFFFFF;
}

body:not(.public) .nav .count {
  background: rgba(255, 255, 255, 0.16);
  color: #F8FAFC;
}

body:not(.public) .nav a.active .count {
  background: rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
}

body:not(.public) .side-toggle,
body:not(.public) .side-close-btn {
  color: #CBD5E1;
}

body:not(.public) .side-toggle:hover,
body:not(.public) .side-close-btn:hover {
  background: #1E293B;
  color: #FFFFFF;
}

body:not(.public) .help-card {
  background: #1E293B;
  border: 1px solid #334155;
}

body:not(.public) .help-card strong {
  color: #F8FAFC;
}

body:not(.public) .help-card p {
  color: #E2E8F0;
}

body:not(.public) .help-card a {
  color: #60A5FA;
}

body:not(.public) .profile {
  border-top-color: #1E293B;
}

body:not(.public) .profile strong {
  color: #F8FAFC;
}

body:not(.public) .profile small,
body:not(.public) .profile svg {
  color: #94A3B8;
}

body:not(.public) .avatar {
  background: #1E293B;
  border: 1px solid #334155;
  color: #F8FAFC;
}

body:not(.public) .sidebar-backdrop {
  background: rgba(2, 6, 23, 0.72);
}

/* Topbar */
body:not(.public) .topbar {
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #1E293B;
}

body:not(.public) .crumb {
  color: #CBD5E1;
}

body:not(.public) .crumb b {
  color: #F8FAFC;
}

body:not(.public) .mobile-menu-btn,
body:not(.public) .topbar .icon-btn,
body:not(.public) .topbar .btn {
  background: #1E293B;
  border-color: #334155;
  color: #F8FAFC;
}

body:not(.public) .topbar .btn:hover:not(:disabled),
body:not(.public) .topbar .icon-btn:hover,
body:not(.public) .mobile-menu-btn:hover {
  background: #334155;
  border-color: #475569;
  color: #FFFFFF;
}

body:not(.public) .topbar .pill.blue {
  background: #1E3A8A;
  border: 1px solid #3B82F6;
  color: #EFF6FF;
}

/* Page Header on Dark Canvas */
body:not(.public) .heading-row .eyebrow {
  color: #60A5FA;
}

body:not(.public) .heading-row h1 {
  color: #FFFFFF;
}

body:not(.public) .heading-row .sub {
  color: #CBD5E1;
}

body:not(.public) .heading-row .btn-dark {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

body:not(.public) .heading-row .btn-dark:hover:not(:disabled) {
  background: #1D4ED8;
  border-color: #1D4ED8;
}

body:not(.public) .heading-row .btn:not(.btn-dark):not(.btn-outline-danger) {
  background: #1E293B;
  border-color: #334155;
  color: #F8FAFC;
}

body:not(.public) .heading-row .btn:not(.btn-dark):not(.btn-outline-danger):hover:not(:disabled) {
  background: #334155;
  border-color: #475569;
  color: #FFFFFF;
}

/* Tabs on Dark Canvas */
body:not(.public) .tabs {
  border-bottom: 1px solid #1E293B;
  gap: 8px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}

body:not(.public) .tabs a {
  color: #CBD5E1;
  padding: 8px 14px;
  border-radius: 8px;
  border-bottom: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

body:not(.public) .tabs a:hover {
  background: #1E293B;
  color: #FFFFFF;
}

body:not(.public) .tabs a.current {
  background: #2563EB;
  color: #FFFFFF;
  border-bottom: 0;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

body:not(.public) .tabs a.current span {
  color: #EFF6FF !important;
}

/* Pop-Out White Cards & Modals */
body:not(.public) .card,
body:not(.public) .panel,
body:not(.public) .metric,
body:not(.public) .orq-modal-dialog {
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.35);
}

body:not(.public) .orq-health-card,
body:not(.public) .model-row-card,
body:not(.public) .model-card,
body:not(.public) .model-card-v2 {
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid #CBD5E1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

body:not(.public) .model-row-card.is-default,
body:not(.public) .model-card.is-default,
body:not(.public) .model-card-v2.is-default {
  border-color: #2563EB;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2), 0 4px 12px rgba(15, 23, 42, 0.08);
}

body:not(.public) .model-row-card.inactive {
  background: #F8FAFC;
  opacity: 0.85;
}

/* Dark Cloud Info Card inside Settings */
body:not(.public) .card.cloud-card,
body:not(.public) .cloud-card {
  background: #1E293B;
  border: 1px solid #334155;
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.4);
}

body:not(.public) .cloud-card .eyebrow {
  color: #60A5FA;
}

body:not(.public) .cloud-card h3 {
  color: #FFFFFF;
}

body:not(.public) .cloud-card p {
  color: #E2E8F0;
}

body:not(.public) .cloud-card .pill {
  background: #0F172A;
  color: #93C5FD;
  border: 1px solid #334155;
}

/* High-Contrast Typography Inside White Cards */
body:not(.public) .card h2,
body:not(.public) .card h3,
body:not(.public) .card h4,
body:not(.public) .orq-modal-dialog h2,
body:not(.public) .orq-modal-dialog h3,
body:not(.public) .metric-value,
body:not(.public) .section-title,
body:not(.public) .product-cell,
body:not(.public) .model-row-title strong,
body:not(.public) .model-card-v2-info strong,
body:not(.public) .orq-health-card strong,
body:not(.public) .status-box strong,
body:not(.public) .quick-item strong,
body:not(.public) .activity strong,
body:not(.public) .step strong,
body:not(.public) .provider strong,
body:not(.public) .pipeline-step strong,
body:not(.public) .orq-mode-card strong,
body:not(.public) .table td strong {
  color: #0F172A;
}

body:not(.public) .panel-head p,
body:not(.public) .section-desc,
body:not(.public) .form-label,
body:not(.public) .table th,
body:not(.public) .table td,
body:not(.public) .orq-log-table th,
body:not(.public) .orq-log-table td,
body:not(.public) .metric-top,
body:not(.public) .metric-foot,
body:not(.public) .legend,
body:not(.public) .summary-line,
body:not(.public) .quick-item p,
body:not(.public) .activity p,
body:not(.public) .hint,
body:not(.public) .step p,
body:not(.public) .review-info p,
body:not(.public) .provider small,
body:not(.public) .cloud-list div,
body:not(.public) .empty-detail,
body:not(.public) .orq-health-card small,
body:not(.public) .model-row-title small,
body:not(.public) .model-card-v2-info small,
body:not(.public) .model-card-v2-meta,
body:not(.public) .model-card-meta,
body:not(.public) .status-box span,
body:not(.public) .pipeline-step p,
body:not(.public) .orq-mode-card p,
body:not(.public) .orq-config-row label,
body:not(.public) .log-toggle,
body:not(.public) .char-counter,
body:not(.public) .text-link,
body:not(.public) .card small {
  color: #334155;
}

body:not(.public) .text-link:hover {
  color: #1D4ED8;
}

body:not(.public) .quick-item > svg {
  color: #475569;
}

body:not(.public) .positive {
  color: #047857;
}

body:not(.public) .chart text {
  fill: #334155;
}

body:not(.public) .chart line {
  stroke: #E2E8F0;
}

body:not(.public) .calendar > * {
  color: #334155;
  border-color: #CBD5E1;
}

body:not(.public) .calendar .day {
  background: #F1F5F9;
  color: #0F172A;
}

body:not(.public) .calendar .event,
body:not(.public) .calendar .event.blue {
  background: #DBEAFE;
  color: #1E40AF;
  font-weight: 600;
}

/* Form Inputs, Inline Drawers & Modals */
body:not(.public) .field,
body:not(.public) .select,
body:not(.public) textarea.field,
body:not(.public) .tags-input-wrap {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  color: #0F172A;
}

body:not(.public) .field::placeholder {
  color: #64748B;
}

body:not(.public) .field:focus,
body:not(.public) .select:focus,
body:not(.public) .tags-input-wrap:focus-within {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

body:not(.public) .model-inline-drawer {
  background: #F1F5F9;
  border-top: 1px solid #CBD5E1;
  color: #0F172A;
}

body:not(.public) .orq-modal-backdrop {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(3px);
}

/* High-Contrast Status Pills (WCAG AA+) */
body:not(.public) .pill,
body:not(.public) .pill.emerald {
  background: #D1FAE5;
  color: #065F46;
}

body:not(.public) .pill.blue {
  background: #DBEAFE;
  color: #1E40AF;
}

body:not(.public) .pill.amber {
  background: #FEF3C7;
  color: #92400E;
}

body:not(.public) .pill.danger {
  background: #FEE2E2;
  color: #991B1B;
}

body:not(.public) .pill.gray {
  background: #E2E8F0;
  color: #334155;
}

/* Buttons Inside White Cards & Modals */
body:not(.public) .card .btn-dark,
body:not(.public) .orq-modal-dialog .btn-dark {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
}

body:not(.public) .card .btn-dark:hover:not(:disabled),
body:not(.public) .orq-modal-dialog .btn-dark:hover:not(:disabled) {
  background: #1E293B;
  border-color: #1E293B;
}

body:not(.public) .card .btn:not(.btn-dark):not(.btn-outline-danger),
body:not(.public) .orq-modal-dialog .btn:not(.btn-dark):not(.btn-outline-danger) {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
}

body:not(.public) .card .btn:not(.btn-dark):not(.btn-outline-danger):hover:not(:disabled),
body:not(.public) .orq-modal-dialog .btn:not(.btn-dark):not(.btn-outline-danger):hover:not(:disabled) {
  background: #F8FAFC;
  border-color: #94A3B8;
}

body:not(.public) .btn-outline-danger {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #991B1B;
}

body:not(.public) .btn-outline-danger:hover:not(:disabled) {
  background: #FECACA;
  border-color: #F87171;
}

/* Refinamentos finais de contraste e alinhamento */
body:not(.public) .nav a.active .count {
  background: #FFFFFF;
  color: #1E40AF;
  font-weight: 700;
}

body:not(.public) .mode-switch {
  background: #1E293B;
  border: 1px solid #334155;
}

body:not(.public) .mode-switch button {
  color: #CBD5E1;
}

body:not(.public) .mode-switch button.active {
  background: #2563EB;
  color: #FFFFFF;
}

body:not(.public) .model-provider-badge {
  color: #1D4ED8;
}

body:not(.public) .orq-health-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1100px) {
  body:not(.public) .orq-health-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body:not(.public) .orq-health-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body:not(.public) .toolbar .field,
  body:not(.public) .toolbar .select {
    width: 100%;
    min-width: 0;
  }
}

body:not(.public) .text-link {
  white-space: nowrap;
  flex-shrink: 0;
}