* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: #05080d;
  color: #c7cad1;
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  height: 100%;
}

a { color: inherit; }
code { font-family: "Courier New", monospace; font-size: 11px; background: #161b24; padding: 1px 5px; border-radius: 4px; color: #8fd0a6; }

/* ============ TOPBAR ============ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 18px;
  background: #0a0e15;
  border-bottom: 1px solid #1c2330;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left { display: flex; align-items: center; gap: 10px; }

.logo-icon {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #2e9bd6; color: #2e9bd6;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}

.logo-title { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.1; }
.logo-tagline { font-size: 9.5px; color: #5d6573; line-height: 1.1; }

.topbar-right { display: flex; align-items: center; gap: 14px; }
.flags { display: flex; gap: 4px; }
.flag {
  font-size: 9.5px; padding: 3px 6px; border-radius: 4px;
  background: #141a24; color: #6b7280; border: 1px solid #1c2330;
  cursor: pointer; letter-spacing: .02em;
}
.flag.active { background: #14304a; color: #6cc1f0; border-color: #2e75b6; }
.bell { font-size: 14px; opacity: .8; cursor: pointer; }
.badge-admin {
  font-size: 11px; padding: 4px 10px; border-radius: 5px;
  background: #16202e; color: #9fb3d9; border: 1px solid #233047;
}
.user-pill { font-size: 11px; color: #5dcaa5; white-space: nowrap; }

/* ============ LAYOUT ============ */
.layout { display: flex; min-height: calc(100vh - 48px); }

.sidebar {
  width: 168px; flex-shrink: 0;
  background: #070b11; border-right: 1px solid #1c2330;
  padding: 14px 8px; overflow-y: auto;
}
.nav-group-label {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em;
  color: #4a5160; margin: 16px 8px 6px;
}
.nav-group-label:first-child { margin-top: 0; }
.nav-item {
  font-size: 12px; color: #aab0bc; padding: 7px 10px; border-radius: 6px;
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-item:hover { background: #11161f; color: #fff; }
.nav-item.active { background: #14304a; color: #6cc1f0; font-weight: 600; }

.main { flex: 1; min-width: 0; padding: 20px 22px 60px; overflow-x: auto; }

.page { display: none; }
.page.active { display: block; }

.page-title { font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.page-subtitle { font-size: 12px; color: #6b7280; margin-bottom: 16px; }

/* ============ SUBTABS ============ */
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.subtab {
  font-size: 11.5px; padding: 6px 13px; border-radius: 6px;
  background: #11161f; color: #9499a3; border: 1px solid #1c2330; cursor: pointer;
}
.subtab:hover { color: #fff; }
.subtab.active { background: #185fa5; color: #fff; border-color: #185fa5; }
.subtab-secondary { margin-left: auto; background: transparent; border-style: dashed; }

.subtabs-flat { display: flex; gap: 4px; margin-bottom: 0; }
.subtab-flat {
  font-size: 11px; padding: 5px 11px; border-radius: 5px; color: #9499a3; cursor: pointer;
}
.subtab-flat.active { background: #185fa5; color: #fff; }

.subview { display: none; }
.subview.active { display: block; }

/* ============ CARD ============ */
.card {
  background: #0d1117; border: 1px solid #1c2330; border-radius: 10px;
  padding: 16px 18px; margin-bottom: 14px;
}
.card-accent-blue { border-left: 3px solid #2e75b6; }
.card-accent-red { border-left: 3px solid #c0392b; }
.card-accent-purple { border-left: 3px solid #7f77dd; }

.card-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.card-title { font-size: 16px; font-weight: 700; color: #fff; margin: 4px 0 8px; }
.card-title-sm { font-size: 12px; font-weight: 700; color: #d6d9de; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .03em; }
.card-title-sm.ok { color: #5dcaa5; }
.card-title-sm.danger { color: #e0726f; }
.eyebrow { font-size: 10px; color: #5d6573; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }

.quote { font-style: italic; color: #aab0bc; border-left: 2px solid #233047; padding-left: 12px; margin: 10px 0 14px; line-height: 1.6; }

p { line-height: 1.6; color: #aab0bc; }

.muted { color: #6b7280; }
.small-text { font-size: 11px; }
.ok { color: #5dcaa5; }
.amber { color: #ef9f27; }
.danger { color: #e0726f; }
.purple { color: #afa9ec; }

/* ============ TWO COL ============ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two-col-wide { grid-template-columns: 1.1fr 1fr; }
@media (max-width: 760px) { .two-col, .two-col-wide { grid-template-columns: 1fr; } }

/* ============ PILLS / MINI BOX ============ */
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.mini-pill {
  background: #11161f; border: 1px solid #1c2330; border-radius: 8px;
  padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 110px;
}
.mini-pill strong { font-size: 12px; color: #fff; }
.mini-pill span { font-size: 10px; color: #6b7280; }
.mini-pill-green { border-color: #27500a55; }
.mini-pill-green strong { color: #97c459; }
.mini-pill-amber strong { color: #ef9f27; }
.mini-pill-red strong { color: #e0726f; }

.info-box {
  background: #0e1622; border: 1px solid #1c3147; border-radius: 8px;
  padding: 12px 14px; margin-top: 10px;
}
.info-box-blue { background: #0e1622; border-color: #1c3147; color: #9fb3d9; }
.info-box-title { font-size: 11.5px; font-weight: 700; color: #6cc1f0; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .03em; }

.warning-box { display: flex; gap: 10px; align-items: flex-start; background: #221512; border: 1px solid #4a1b0c; border-radius: 8px; padding: 12px 14px; }
.warning-icon { font-size: 18px; }
.warning-title { font-weight: 700; color: #e0726f; margin-bottom: 4px; }
.warning-box-flat { background: #221c0f; border: 1px solid #412402; color: #fac775; border-radius: 6px; padding: 8px 12px; font-size: 11.5px; margin-bottom: 12px; }

.code-block {
  background: #05080d; border: 1px solid #1c2330; border-radius: 6px;
  padding: 10px 12px; font-family: "Courier New", monospace; font-size: 11px;
  color: #8fd0a6; white-space: pre-wrap; word-break: break-word; margin-top: 8px;
}

/* ============ LISTS ============ */
.check-list, .warn-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li, .warn-list li { display: flex; flex-direction: column; padding-left: 18px; position: relative; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: #5dcaa5; }
.warn-list li::before { content: "\26A0"; position: absolute; left: 0; color: #e0726f; }
.check-list li strong, .warn-list li strong { font-size: 12px; color: #fff; }
.check-list li span, .warn-list li span { font-size: 11px; color: #6b7280; }

.check-list-flat { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #aab0bc; }

.preview-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.preview-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; }
.pi-icon { flex-shrink: 0; }
.preview-list .dash { color: #4a5160; margin-left: 4px; }

.bullet-list { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #aab0bc; }
.bullet-list li::before { content: "\2013\0020"; color: #5d6573; }
.ok-list li { color: #9fc98a; }
.ok-list li::before { content: ""; }

.ranked-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ranked-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; border-bottom: 1px solid #161b24; padding-bottom: 6px; }
.ranked-list li:last-child { border-bottom: none; }

.step-list { list-style: decimal; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #aab0bc; }

/* ============ BUTTONS ============ */
.btn {
  font-size: 11.5px; padding: 7px 14px; border-radius: 6px; cursor: pointer;
  border: 1px solid #1c2330; background: #11161f; color: #c7cad1;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { background: #161b24; }
.btn-primary { background: #185fa5; border-color: #185fa5; color: #fff; }
.btn-primary:hover { background: #1a6cba; }
.btn-outline { background: transparent; border-color: #2c3645; }
.btn-ghost { background: transparent; border-color: transparent; color: #9499a3; }
.btn-sm { font-size: 11px; padding: 5px 11px; }
.btn-block { width: 100%; justify-content: center; margin: 8px 0 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-cluster { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============ FORM FIELDS ============ */
.field-label { display: block; font-size: 10.5px; color: #6b7280; text-transform: uppercase; letter-spacing: .03em; margin: 10px 0 4px; }
.field, .field-input {
  width: 100%; background: #05080d; border: 1px solid #1c2330; border-radius: 6px;
  color: #c7cad1; padding: 8px 10px; font-size: 12px; font-family: inherit;
}
.field { min-height: 50px; resize: vertical; margin-bottom: 4px; }
.input-with-btn { display: flex; gap: 8px; align-items: center; }
.input-with-btn .field-input { flex: 1; }
.unit-suffix { font-size: 11px; color: #6b7280; padding: 8px; }
.wizard-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }

/* ============ WIZARD STEPS ============ */
.wizard-steps { display: flex; gap: 18px; flex-wrap: wrap; }
.wizard-step { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: #4a5160; opacity: .5; }
.wizard-step.current { opacity: 1; color: #6cc1f0; }
.wizard-dot {
  width: 30px; height: 30px; border-radius: 50%; background: #11161f;
  border: 1px solid #1c2330; display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.wizard-step.current .wizard-dot { border-color: #2e75b6; background: #14304a; }

/* ============ TABLES ============ */
.dt { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.dt th {
  text-align: left; padding: 8px 10px; color: #6b7280; font-weight: 600;
  text-transform: uppercase; font-size: 10px; letter-spacing: .03em;
  border-bottom: 1px solid #1c2330;
}
.dt td { padding: 9px 10px; border-bottom: 1px solid #161b24; color: #c7cad1; }
.dt tbody tr:last-child td { border-bottom: none; }
.dt-compact td { padding: 6px 8px; }
.empty-row { text-align: center; color: #4a5160; padding: 30px 0; }
.link { color: #6cc1f0; text-decoration: none; }

/* ============ BADGES / TAGS / CHIPS ============ */
.badge { font-size: 10px; padding: 3px 9px; border-radius: 5px; font-weight: 700; letter-spacing: .02em; }
.badge-green { background: #1d3a24; color: #97c459; }
.badge-green-soft { background: #16241a; color: #7fb86a; }
.badge-blue { background: #122a40; color: #6cc1f0; }
.badge-blue-soft { background: #0e2236; color: #5aa8de; }
.badge-amber { background: #3a2c0f; color: #fac775; }
.badge-red { background: #3a1414; color: #f09595; }
.badge-gray { background: #1c1f26; color: #9499a3; }
.badge-gray-soft { background: #161922; color: #6b7280; }

.tag {
  display: inline-block; font-size: 10.5px; padding: 4px 9px; border-radius: 5px;
  background: #11161f; border: 1px solid #1c2330; color: #aab0bc; margin: 2px;
}
.tag-blue { background: #122a40; color: #6cc1f0; border-color: #1c3147; }
.tag-amber { background: #3a2c0f; color: #fac775; border-color: #412402; }
.tag-purple { background: #251f3d; color: #afa9ec; border-color: #3c3489; }
.tag-teal { background: #0e2922; color: #5dcaa5; border-color: #085041; }
.tag-gray { background: #1c1f26; color: #9499a3; border-color: #2c2c2a; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.tag-cloud.small .tag { font-size: 9.5px; padding: 3px 7px; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip { font-size: 11px; padding: 5px 11px; border-radius: 14px; background: #11161f; border: 1px solid #1c2330; color: #aab0bc; }
.chip.ok { color: #97c459; border-color: #27500a55; }
.chip.amber { color: #fac775; border-color: #41240255; }

/* ============ STAT GRID ============ */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .stat-grid, .stat-grid-4 { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: #11161f; border: 1px solid #1c2330; border-radius: 8px; padding: 12px 14px; }
.stat-label { font-size: 10px; color: #6b7280; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.stat-value { font-size: 20px; font-weight: 700; color: #fff; }
.stat-value.ok { color: #97c459; }
.stat-value.amber { color: #fac775; }
.stat-value.danger { color: #f09595; }
.stat-value.purple { color: #af9eec; }
.stat-unit { font-size: 12px; color: #6b7280; font-weight: 400; }
.stat-sub { font-size: 10px; color: #4a5160; margin-top: 4px; }

/* ============ TIMELINE ============ */
.timeline { display: flex; justify-content: space-between; gap: 10px; margin: 16px 0 10px; flex-wrap: wrap; }
.timeline-point { display: flex; flex-direction: column; gap: 3px; font-size: 11px; flex: 1; min-width: 140px; }
.timeline-point strong { color: #fff; font-size: 12px; }
.timeline-point span { color: #6b7280; }
.t-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-bottom: 4px; }
.t-dot-gray { background: #4a5160; }
.t-dot-blue { background: #2e75b6; }
.t-dot-green { background: #5dcaa5; }

.progress { height: 6px; background: #1c2330; border-radius: 4px; overflow: hidden; margin: 6px 0; }
.progress-fill { height: 100%; background: linear-gradient(90deg,#2e75b6,#5dcaa5); }

.info-mini { background: #11161f; border: 1px solid #1c2330; border-radius: 8px; padding: 10px 12px; font-size: 12px; }
.info-mini strong { color: #fff; }

/* ============ PLAN CARDS ============ */
.plan-name { font-size: 18px; font-weight: 700; color: #af9eec; }
.plan-price { font-size: 22px; font-weight: 700; color: #fff; }

.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 10px; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plan-grid { grid-template-columns: 1fr; } }

.plan-card {
  background: #11161f; border: 1px solid #1c2330; border-radius: 10px; padding: 14px;
  display: flex; flex-direction: column; position: relative;
}
.plan-card-featured { border-color: #185fa5; }
.plan-card-business { border-color: #41240255; }
.plan-card-enterprise { border-color: #7f77dd; }
.plan-badge {
  position: absolute; top: -9px; right: 12px; font-size: 9px; padding: 3px 9px;
  border-radius: 10px; font-weight: 700;
}
.plan-badge-blue { background: #185fa5; color: #fff; }
.plan-badge-purple { background: #7f77dd; color: #1c1530; }
.plan-card-name { font-size: 13px; font-weight: 700; color: #fff; }
.plan-card-price { font-size: 19px; font-weight: 700; color: #fff; margin: 2px 0 6px; }
.plan-feat { list-style: none; font-size: 11px; color: #aab0bc; display: flex; flex-direction: column; gap: 4px; margin: 8px 0 10px; }
.plan-feat li::before { content: "\2022\0020"; color: #5d6573; }

/* ============ CONNECTOR GRID ============ */
.connector-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.connector-pill {
  font-size: 11.5px; padding: 8px 13px; border-radius: 7px;
  background: #11161f; border: 1px solid #1c2330; color: #c7cad1; cursor: pointer;
}
.connector-pill:hover { border-color: #2e75b6; color: #fff; }

/* ============ PIPELINE ============ */
.pipeline-list { list-style: none; display: flex; flex-direction: column; gap: 14px; position: relative; }
.pipeline-list li { display: flex; gap: 10px; align-items: flex-start; }
.pl-dot {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  background: #11161f; border: 1px solid #1c2330; color: #6b7280;
}
.pl-done .pl-dot { background: #16241a; border-color: #27500a; color: #97c459; }
.pl-current .pl-dot { background: #0e2236; border-color: #185fa5; color: #6cc1f0; }
.pl-wait .pl-dot { color: #4a5160; }
.pipeline-list strong { font-size: 12px; color: #fff; margin-right: 6px; }

.step-dots { display: flex; gap: 6px; }
.step-dots span { width: 6px; height: 6px; border-radius: 50%; background: #1c2330; display: inline-block; }
.step-dots span.on { background: #5dcaa5; }

/* ============ INVOICE ============ */
.invoice-card { background: #f4f6f9; border-radius: 10px; overflow: hidden; max-width: 640px; margin: 0 auto; color: #1c2330; }
.invoice-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  background: #11161f; color: #c7cad1; padding: 10px 16px; font-size: 12px;
}
.invoice-body { padding: 24px 28px; }
.invoice-logo { font-size: 18px; font-weight: 700; color: #185fa5; }
.invoice-meta { text-align: right; font-size: 12px; color: #444; }
.invoice-rule { border: none; border-top: 2px solid #185fa5; margin: 14px 0; }
.invoice-body .card-title-sm { color: #555; }
.invoice-body .dt th { color: #fff; background: #185fa5; }
.invoice-body .dt td { color: #222; border-bottom: 1px solid #e2e6ec; }
.invoice-totals { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; font-size: 12px; color: #444; }
.invoice-totals div { display: flex; gap: 30px; width: 220px; justify-content: space-between; }
.invoice-total-ttc { background: #185fa5; color: #fff; padding: 6px 10px; border-radius: 4px; font-weight: 700; }
.invoice-footer { font-size: 10px; color: #888; margin-top: 20px; text-align: center; line-height: 1.6; }

/* ============ PLACEHOLDER ============ */
.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; height: 320px; border: 1px dashed #233047; border-radius: 10px;
  background: #0a0e15; color: #4a5160; text-align: center;
}
.ph-icon { font-size: 28px; opacity: .5; }
.ph-title { font-size: 13px; color: #aab0bc; font-weight: 700; }
.ph-sub { font-size: 11px; color: #4a5160; max-width: 320px; }

/* ============ SCROLLBAR ============ */
.sidebar::-webkit-scrollbar, .main::-webkit-scrollbar { width: 8px; height: 8px; }
.sidebar::-webkit-scrollbar-thumb, .main::-webkit-scrollbar-thumb { background: #1c2330; border-radius: 4px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; }
  .nav-group-label { display: none; }
  .topbar-left .logo-tagline { display: none; }
}

/* ============ SIDEBAR FOOTER WIDGET ============ */
.sidebar-footer { margin-top: 22px; padding: 12px 10px; border-top: 1px solid #1c2330; }
.sf-name { font-size: 12px; font-weight: 700; color: #fff; }
.sf-meta { font-size: 9.5px; color: #4a5160; margin-bottom: 6px; }
.sf-label { font-size: 9.5px; color: #6b7280; text-transform: uppercase; letter-spacing: .03em; margin: 8px 0 3px; }
.progress-sm { height: 4px; margin: 2px 0; }
.progress-amber .progress-fill, .progress-fill.progress-amber { background: linear-gradient(90deg,#ef9f27,#fac775); }

/* ============ TOGGLE SWITCH ============ */
.toggle {
  width: 34px; height: 18px; border-radius: 10px; background: #1c2330;
  display: inline-flex; align-items: center; padding: 2px; cursor: pointer;
  flex-shrink: 0; transition: background .15s;
}
.toggle.on { background: #185fa5; justify-content: flex-end; }
.toggle:not(.on) { justify-content: flex-start; }
.toggle-knob { width: 14px; height: 14px; border-radius: 50%; background: #fff; display: block; }

.module-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #161b24; }
.module-row:last-child { border-bottom: none; }
.module-row .module-info { flex: 1; min-width: 0; }
.module-row .module-name { font-size: 12px; color: #fff; font-weight: 600; }
.module-row .module-slug { font-size: 10px; color: #4a5160; }
.module-row .module-status { font-size: 10px; color: #6b7280; text-align: right; min-width: 150px; }
.module-section-label { font-size: 10px; color: #4a5160; text-transform: uppercase; letter-spacing: .04em; margin: 14px 0 4px; }
.module-section-label:first-child { margin-top: 0; }

/* ============ COLOR SWATCHES ============ */
.swatch-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.swatch { width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.swatch.selected { border-color: #fff; }
.color-field-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 10px 0; }
.color-field { display: flex; flex-direction: column; gap: 4px; }
.color-field-label { font-size: 10px; color: #6b7280; text-transform: uppercase; }
.color-swatch-input { display: flex; align-items: center; gap: 8px; background: #05080d; border: 1px solid #1c2330; border-radius: 6px; padding: 6px 10px; }
.color-dot { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; border: 1px solid #2c3645; }
.upload-box {
  border: 1px dashed #2c3645; border-radius: 8px; padding: 14px; text-align: center;
  color: #4a5160; font-size: 11px; background: #05080d; margin: 6px 0;
}

/* ============ SEVERITY BADGES ============ */
.sev-high { background: #3a1414; color: #f09595; }
.sev-medium { background: #3a2c0f; color: #fac775; }
.sev-critical { background: #4a1313; color: #ff8a8a; font-weight: 700; }
.sev-low { background: #1c1f26; color: #9499a3; }

.alert-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.alert-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; background: #11161f; border: 1px solid #1c2330; border-radius: 8px; padding: 10px 12px; }
.alert-item strong { display: block; font-size: 12px; color: #fff; }
.alert-item span.alert-sub { font-size: 10.5px; color: #6b7280; }

/* ============ HEALTH BAR ============ */
.health-bar { width: 50px; height: 5px; border-radius: 3px; background: #1c2330; display: inline-block; overflow: hidden; vertical-align: middle; }
.health-fill { height: 100%; }
.health-green { background: #5dcaa5; }
.health-amber { background: #ef9f27; }
.health-red { background: #e0726f; }

/* ============ MINI CHART (CSS only) ============ */
.mini-chart { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding: 6px 0; }
.mini-chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.mini-chart .bar { width: 100%; max-width: 26px; background: linear-gradient(180deg,#5dcaa5,#185fa5); border-radius: 3px 3px 0 0; }
.mini-chart .bar-label { font-size: 9px; color: #4a5160; }

.heatmap-row { display: grid; grid-template-columns: 40px repeat(24,1fr); gap: 2px; align-items: center; margin-bottom: 2px; }
.heatmap-row .hm-label { font-size: 9px; color: #6b7280; }
.heatmap-cell { height: 12px; border-radius: 2px; background: #161b24; }
.heatmap-cell.lvl1 { background: #0e2922; }
.heatmap-cell.lvl2 { background: #16453a; }
.heatmap-cell.lvl3 { background: #1d5d4d; }
.heatmap-cell.lvl4 { background: #27c294; }

/* ============ CALENDAR ============ */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-day-head { font-size: 10px; color: #6b7280; text-align: center; padding-bottom: 4px; text-transform: uppercase; }
.calendar-cell { min-height: 64px; background: #11161f; border: 1px solid #1c2330; border-radius: 6px; padding: 4px; font-size: 9.5px; color: #4a5160; }
.cal-post { border-radius: 3px; padding: 2px 4px; margin-top: 2px; font-size: 9px; color: #05080d; font-weight: 600; }
.cal-num { font-size: 10px; color: #6b7280; }

.legend-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: #9499a3; }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* ============ CONNECTOR CARD (System) ============ */
.connector-card { background: #11161f; border: 1px solid #1c2330; border-radius: 10px; padding: 14px; }
.connector-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.connector-card-name { font-size: 13px; font-weight: 700; color: #fff; }
.connector-card-sub { font-size: 10.5px; color: #6b7280; }
.connector-fields { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 10px; font-size: 10px; color: #6b7280; }
.connector-fields span { background: #05080d; border: 1px solid #1c2330; border-radius: 4px; padding: 3px 7px; }
.connector-grid-system { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .connector-grid-system { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .connector-grid-system { grid-template-columns: 1fr; } }

/* ============ VISIBILITY TABS (plan editor) ============ */
.vis-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.vis-tab { flex: 1; background: #11161f; border: 1px solid #1c2330; border-radius: 8px; padding: 10px 14px; cursor: pointer; }
.vis-tab.active { border-color: #185fa5; background: #0e2236; }
.vis-tab strong { display: block; font-size: 12px; color: #fff; }
.vis-tab span { font-size: 10.5px; color: #6b7280; }

.price-period-card { background: #11161f; border: 1px solid #1c2330; border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.price-period-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 11px; color: #9499a3; }
.price-fields { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.price-fields .field-input { width: auto; flex: 1; min-width: 60px; }

.swatch-strip { display: flex; gap: 5px; flex-wrap: wrap; margin: 8px 0 14px; }
.swatch-strip .swatch { width: 16px; height: 16px; }
