﻿/* Only the dedicated compatibility view uses this presentation. */
#home-view[data-view][data-view="saderiba"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-rows: min-content min-content 1fr;
  max-width: none;
  margin: 0;
  padding-bottom: 0;
}
#home-view[data-view][data-view="saderiba"] #saderiba { display: none; }
#home-view[data-view="saderiba"] > .horoscope-nav { margin-bottom: 0; }
#home-view[data-view="saderiba"] .horoscope-nav a[href="#saderiba"] { color: white; background: #0866ed; }
#home-view[data-view="saderiba"] .periods button { background: white; color: #101b42; border-color: #dbe6f7; }
#compatibility-preview { grid-column: 1; grid-row: 3; min-width: 0; padding: 0 24px 24px; display: grid; gap: 18px; }
#compatibility-sidebar { grid-column: 2; grid-row: 1 / 4; align-self: stretch; min-width: 0; display: flex; flex-direction: column; gap: 14px; margin: 12px 0 24px; background: #f7faff; border-radius: 10px; }
#compatibility-preview[hidden], #compatibility-sidebar[hidden] { display: none; }
.cp-top, .cp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cp-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cp-panel { min-width: 0; padding: 18px; border: 1px solid #dce7f8; border-radius: 9px; background: white; }
#compatibility-preview h2 { font-size: 20px; margin: 0 0 12px; }
#compatibility-sidebar h2 { font-size: 17px; line-height: 1.5; margin: 0 0 12px; }
.cp-panel h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; margin: 0 0 10px; }
.cp-panel h3 strong { color: #0866ed; }
.cp-panel p { font-size: 13px; line-height: 1.65; margin: 8px 0; color: #53698b; }
.cp-demo, .cp-muted { font-size: 11px; line-height: 1.5; color: #53698b; margin: 6px 0; }
.cp-sign { width: 36px; height: 36px; flex-shrink: 0; }
#compatibility-preview .cp-pair-title { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 16px; }
.cp-score-layout { display: grid; grid-template-columns: 105px minmax(0, 1fr); align-items: center; gap: 16px; }
.cp-ring { display: grid; place-items: center; width: 105px; height: 105px; border-radius: 50%; background: conic-gradient(#00aeb5 var(--score), #e6edf7 0); }
.cp-ring strong { display: grid; place-items: center; background: white; width: 85px; height: 85px; border-radius: 50%; font-size: 27px; }
.cp-bar { --bar-color: #00ac8a; display: grid; grid-template-columns: 67px minmax(0, 1fr) 30px; align-items: center; gap: 6px; font-size: 11px; margin: 8px 0; }
.cp-pink { --bar-color: #fa2870; }
.cp-blue { --bar-color: #0866ed; }
.cp-purple { --bar-color: #8024e8; }
.cp-bar meter { appearance: none; width: 100%; min-width: 0; height: 8px; background: #e5ecf6; border: 0; border-radius: 8px; overflow: hidden; }
.cp-bar meter::-webkit-meter-bar { height: 8px; background: #e5ecf6; border: 0; }
.cp-bar meter::-webkit-meter-optimum-value { background: var(--bar-color); border-radius: 8px; }
.cp-bar meter::-moz-meter-bar { background: var(--bar-color); }
#cp-form-slot .select-grid { display: grid; grid-template-columns: minmax(0,1fr) 16px minmax(0,1fr); gap: 8px; margin: 14px 0; }
#cp-form-slot label { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 12px; }
#cp-form-slot select { width: 100%; min-width: 0; padding: 9px 4px; font-size: 13px; }
#cp-form-slot .pair-mark { align-self: center; font-size: 0; }
#cp-form-slot .pair-mark::before { font-size: 20px; }
#cp-form-slot .button { display: block; margin: 16px auto 0; }
.cp-selection-icon { display: block; width: 56px; height: 56px; }
#cp-selection-note { font-size: 11px; margin-bottom: 0; }
.cp-notes { list-style: none; padding: 0; margin: 0; }
.cp-notes li + li { border-top: 1px solid #edf2fa; padding-top: 10px; margin-top: 10px; }
.cp-notes strong { font-size: 14px; }
#cp-matrix .cp-matrix-list { list-style: none; margin: 0; padding: 0; width: 100%; }
#cp-matrix .cp-matrix-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr); gap: 24px; align-items: center; padding: 12px 0; }
#cp-matrix .cp-matrix-row + .cp-matrix-row { border-top: 1px solid #edf2fa; }
#cp-matrix .cp-matrix-label { min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.45; color: #101b42; }
#cp-matrix .cp-matrix-value { display: grid; grid-template-columns: minmax(0, 1fr) 4ch; gap: 12px; align-items: center; min-width: 0; }
#cp-matrix strong { text-align: right; color: #0866ed; font-size: 13px; font-variant-numeric: tabular-nums; }
#cp-matrix meter { appearance: none; width: 100%; min-width: 0; height: 9px; border: 0; border-radius: 8px; background: #e5ecf6; overflow: hidden; }
#cp-matrix meter::-webkit-meter-bar { height: 9px; border: 0; border-radius: 8px; background: #e5ecf6; }
#cp-matrix meter::-webkit-meter-optimum-value { border-radius: 8px; background: linear-gradient(90deg, #0866ed, #00aeb5); }
#cp-matrix meter::-moz-meter-bar { border-radius: 8px; background: #0866ed; }
.cp-combinations { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.cp-pair { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; min-width: 0; border: 1px solid #dce7f8; background: white; color: #101b42; border-radius: 8px; text-align: left; cursor: pointer; }
.cp-pair small { font-size: 12px; color: #53698b; }
.cp-pair > span:last-child { color: #0866ed; }
.cp-ranking { list-style: none; margin: 0; padding: 0; }
.cp-ranking li { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #edf2fa; font-size: 12px; }
.cp-ranking li:last-child { border-bottom: 0; }
.cp-ranking li > div { flex: 1; min-width: 0; }
.cp-ranking .cp-bar { grid-template-columns: minmax(0,1fr) 30px; }
.cp-ranking .cp-bar > span { display: none; }
.cp-advice { flex: 1; background: linear-gradient(#f5ecff, #fcfaff); }
.cp-advice small { color: #77658c; font-size: 10px; }
#compatibility-sidebar details { margin-top: 15px; font-size: 12px; }
#compatibility-sidebar summary { cursor: pointer; color: #0866ed; }
#cp-existing-slot .result { padding: 0; border: 0; background: transparent; overflow-wrap: anywhere; }
@media (max-width: 1200px) {
  .cp-top { grid-template-columns: minmax(0,1fr); }
  .cp-score-layout { grid-template-columns: 105px minmax(0,1fr); }
  .cp-three { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 800px) {
  #home-view[data-view][data-view="saderiba"] { grid-template-columns: minmax(0,1fr); grid-template-rows: none; }
  #compatibility-preview { padding: 0 16px 24px; }
  #compatibility-sidebar { grid-column: 1; grid-row: 4; margin: 0 16px 24px; }
}
@media (max-width: 520px) {
  .cp-two, .cp-combinations { grid-template-columns: minmax(0,1fr); }
  .cp-panel { padding: 14px; }
  .cp-score-layout { grid-template-columns: minmax(0,1fr); }
  .cp-ring { margin: 8px auto; }
  #cp-matrix .cp-matrix-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px; padding: 10px 0; }
  #cp-matrix .cp-matrix-label, #cp-matrix strong { font-size: 12px; }
  #cp-matrix .cp-matrix-value { gap: 6px; }
}
