* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--pic-font, system-ui, sans-serif);
  color: var(--pic-shell-ink, #2b201b);
  background: linear-gradient(145deg, #f5ede5 0%, #e4d3c4 54%, #cfb49e 100%);
}

.page {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.page-head h1 {
  margin: 2px 0 4px;
  font-size: 1.8rem;
}

.kicker {
  margin: 0;
  color: var(--pic-earth-600, #8a5a45);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.head-links {
  display: flex;
  gap: 14px;
}

a {
  color: var(--pic-earth-700, #694839);
}

.muted {
  color: var(--pic-shell-muted, #70594a);
}

.error {
  color: #9b2c1d;
  font-weight: 600;
}

.card {
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.24));
  border-radius: 14px;
  background: var(--pic-shell-surface, #fffaf5);
  box-shadow: var(--pic-shell-shadow, 0 14px 34px rgba(52, 37, 31, 0.13));
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.pick-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: end;
  gap: 12px;
}

.pick-grid label {
  display: grid;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pick-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.3));
  border-radius: var(--pic-control-radius, 10px);
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  text-transform: none;
}

.pick-arrow {
  padding-bottom: 10px;
  font-size: 1.3rem;
  color: var(--pic-earth-600, #8a5a45);
}

button,
.button-link {
  font: inherit;
  cursor: pointer;
}

.primary,
.button-link {
  display: inline-block;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--pic-control-radius, 10px);
  color: #fffaf5;
  background: var(--pic-earth-700, #694839);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.primary:hover,
.button-link:hover {
  background: var(--pic-earth-800, #4b342a);
}

.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--pic-earth-700, #694839);
  text-decoration: underline;
}

.link:disabled {
  color: var(--pic-shell-muted, #70594a);
  text-decoration: none;
  cursor: default;
}

.pick-hint {
  margin-top: 10px;
}

.pick-hint p {
  margin: 4px 0;
}

.chip-button {
  margin: 0 6px 6px 0;
  padding: 6px 10px;
  border: 1px dashed var(--pic-earth-500, #b07855);
  border-radius: 999px;
  background: var(--pic-earth-50, #faf5ef);
  color: inherit;
  font-size: 0.85rem;
}

.pair-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pair-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.18));
}

.pair-row:first-child {
  border-top: 0;
}

.pair-text {
  line-height: 1.5;
}

.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--pic-earth-200, #ddc7b6);
  font-size: 0.75rem;
  font-weight: 700;
}

.tag-soft {
  background: var(--pic-earth-100, #eee1d5);
  font-weight: 500;
}

.table-wrap {
  overflow-x: auto;
}

.archive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.archive-table th,
.archive-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.18));
  text-align: left;
  vertical-align: top;
}

.archive-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
}

.result-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.result-actions {
  grid-column: 1 / -1;
}

.side {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--pic-earth-50, #faf5ef);
}

.side-role {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pic-earth-600, #8a5a45);
}

.reason {
  font-size: 0.85rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 6px 12px;
  border: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.3));
  border-radius: 999px;
  background: #fff;
  color: var(--pic-shell-muted, #70594a);
}

.filter-chip.is-on {
  border-color: var(--pic-earth-700, #694839);
  background: var(--pic-earth-700, #694839);
  color: #fffaf5;
}

.file-list {
  display: grid;
  gap: 6px;
}

.file-item {
  border: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.2));
  border-radius: 10px;
  background: #fff;
}

.file-item summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.file-name {
  font-weight: 600;
  word-break: break-word;
}

.file-links {
  margin-left: auto;
  font-size: 0.85rem;
}

.badge {
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-modificat {
  background: #f6d9a8;
}

.badge-nou {
  background: #cfe8cf;
}

.badge-eliminat {
  background: #f3c6bd;
}

.badge-identic,
.badge-identic-ca-text {
  background: var(--pic-earth-100, #eee1d5);
}

.hunks {
  margin: 0;
  padding: 4px 12px 12px;
}

.hunk {
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 3px solid var(--pic-earth-300, #c9a890);
  background: var(--pic-earth-50, #faf5ef);
  font-size: 0.88rem;
  line-height: 1.45;
}

.hunk p {
  margin: 2px 0;
}

.hunk-page {
  margin-bottom: 4px;
  color: var(--pic-shell-muted, #70594a);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.diff-old,
del {
  color: #8f2a1c;
  background: #fbe3de;
  text-decoration: line-through;
}

.diff-new,
ins {
  color: #1e5a26;
  background: #def2de;
  text-decoration: none;
}

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

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--pic-earth-300, #c9a890);
  border-top-color: var(--pic-earth-700, #694839);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .pick-grid,
  .result-head {
    grid-template-columns: 1fr;
  }

  .pick-arrow {
    display: none;
  }
}

.badge-clarificare-noua,
.badge-clarificare-veche {
  background: #dde4f0;
}

/* ---------------------------------------------------------------- rezultat pe intelesul tuturor */

.small {
  font-size: 0.85rem;
}

.summary {
  margin: 4px 0 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--pic-earth-50, #faf5ef);
  border: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.2));
}

.summary h3,
.doc-section h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.summary-lead {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.5;
}

.facts {
  margin: 0 0 12px;
  padding-left: 20px;
  line-height: 1.6;
}

.old-val {
  color: #8f2a1c;
  text-decoration: line-through;
}

.new-val {
  color: #1e5a26;
  font-weight: 700;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.tile {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.18));
}

.tile b {
  font-size: 1.6rem;
  line-height: 1.1;
}

.tile span {
  font-size: 0.85rem;
  color: var(--pic-shell-muted, #70594a);
}

.tile-alert {
  border-color: #e0a54a;
  background: #fff6e6;
}

.tile-calm b {
  color: var(--pic-shell-muted, #70594a);
}

.howto summary,
.noise summary,
.tech summary,
.fold > summary {
  cursor: pointer;
  font-weight: 600;
}

.howto p {
  margin: 6px 0;
  line-height: 1.5;
}

.doc-section {
  margin-top: 18px;
}

.doc-list {
  display: grid;
  gap: 8px;
}

.doc {
  border: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.2));
  border-left: 5px solid var(--pic-earth-300, #c9a890);
  border-radius: 10px;
  background: #fff;
}

.doc-rank-0,
.doc-rank-1 {
  border-left-color: #d98b1f;
}

.doc-rank-3 {
  border-left-color: var(--pic-earth-100, #eee1d5);
}

.doc > summary {
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}

.doc > summary::-webkit-details-marker {
  display: none;
}

.doc > summary::after {
  content: "Vezi schimbările ▾";
  justify-self: start;
  font-size: 0.8rem;
  color: var(--pic-earth-700, #694839);
  text-decoration: underline;
}

.doc[open] > summary::after {
  content: "Ascunde ▴";
}

.doc-head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
}

.doc-kind {
  font-weight: 700;
  font-size: 1rem;
}

.doc-file {
  color: var(--pic-shell-muted, #70594a);
  font-size: 0.85rem;
  word-break: break-word;
}

.doc-what {
  font-size: 0.88rem;
}

.doc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stat {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--pic-earth-100, #eee1d5);
  font-size: 0.78rem;
  font-weight: 600;
}

.stat-cifre {
  background: #f6d9a8;
}

.stat-adaugat {
  background: #d8eed8;
}

.stat-scos {
  background: #f6d6cf;
}

.doc-note {
  font-size: 0.82rem;
  color: var(--pic-shell-muted, #70594a);
  font-style: italic;
}

.doc-body {
  padding: 0 14px 14px;
  border-top: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.14));
}

.legend {
  margin: 10px 0;
  font-size: 0.82rem;
  color: var(--pic-shell-muted, #70594a);
}

.change-group h4 {
  margin: 14px 0 2px;
  font-size: 0.95rem;
}

.change-group p.small {
  margin: 0 0 6px;
}

.change-list {
  display: grid;
  gap: 6px;
}

.change {
  padding: 8px 10px;
  border-left: 3px solid var(--pic-earth-300, #c9a890);
  border-radius: 0 8px 8px 0;
  background: var(--pic-earth-50, #faf5ef);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--pic-shell-muted, #70594a);
}

.change-cifre {
  border-left-color: #d98b1f;
  background: #fff8ec;
}

.change p {
  margin: 2px 0;
}

.change del,
.change ins,
.notice-table del,
.notice-table ins {
  font-weight: 600;
}

.change-page {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pic-earth-600, #8a5a45);
}

.more {
  justify-self: start;
  font-size: 0.85rem;
}

.noise {
  margin-top: 14px;
  font-size: 0.88rem;
}

.noise .change-list {
  margin-top: 8px;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 6px;
}

.secondary {
  padding: 7px 14px;
  border: 1px solid var(--pic-earth-700, #694839);
  border-radius: var(--pic-control-radius, 10px);
  background: #fff;
  color: var(--pic-earth-700, #694839);
  font-weight: 600;
}

.secondary:hover {
  background: var(--pic-earth-50, #faf5ef);
}

.tech {
  font-size: 0.8rem;
  color: var(--pic-shell-muted, #70594a);
}

.tech p {
  margin: 4px 0;
  word-break: break-word;
}

.notice-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.notice-table th,
.notice-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.16));
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

.notice-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
}

.notice-table tbody th {
  width: 22%;
  font-weight: 600;
}

.cell-old {
  color: #8f2a1c;
}

.cell-new {
  color: #1e5a26;
  font-weight: 600;
}

.row-routine {
  opacity: 0.6;
}

.fold {
  margin-bottom: 8px;
  padding: 10px 14px;
  border: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.18));
  border-radius: 10px;
  background: #fff;
}

.fold p.small {
  margin: 6px 0;
}

.simple-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
  font-size: 0.88rem;
}

.simple-list .doc-file {
  color: inherit;
}

.stat-citire {
  background: #e6e6ef;
  font-weight: 500;
}

.change-citire {
  border-left-color: #b9b9cc;
  background: #f6f6fa;
}

.doc-examples {
  font-size: 0.86rem;
  line-height: 1.5;
}

.example del,
.example ins {
  padding: 0 2px;
  font-weight: 600;
}

.doc-warn {
  font-size: 0.86rem;
  font-weight: 600;
  color: #8a4a00;
}

.summary-warn {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff3df;
  border: 1px solid #e8b96a;
  line-height: 1.5;
}

.doc-actions {
  align-items: center;
}

.seap-link {
  font-size: 0.88rem;
}

/* tabul cu rezultatul arata doar rezultatul */
body.mode-rezultat .only-alegere {
  display: none;
}

#back-link {
  font-weight: 700;
}

.summary-text {
  margin: 10px 0;
  line-height: 1.55;
}

.facts-table {
  width: 100%;
  margin: 4px 0 6px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.18));
  border-radius: 10px;
  font-size: 0.95rem;
}

.facts-table th,
.facts-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.14));
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

.facts-table thead th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--pic-shell-muted, #70594a);
  background: var(--pic-earth-50, #faf5ef);
}

.facts-table tbody th {
  width: 30%;
  font-weight: 600;
}

.facts-table tbody tr:last-child th,
.facts-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------------------------------------------------------------- casute pe categorii + fereastra */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.cat-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.2));
  border-left: 5px solid var(--pic-earth-300, #c9a890);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.cat-tile:hover,
.cat-tile:focus-visible {
  box-shadow: 0 8px 22px rgba(52, 37, 31, 0.14);
  transform: translateY(-1px);
}

.cat-important {
  border-left-color: #d98b1f;
}

.cat-title {
  font-weight: 700;
  font-size: 1rem;
}

.cat-what {
  font-size: 0.85rem;
  color: var(--pic-shell-muted, #70594a);
}

.cat-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cat-warn {
  font-size: 0.84rem;
  font-weight: 600;
  color: #8a4a00;
}

.cat-open {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pic-earth-700, #694839);
}

body.modal-open {
  overflow: hidden;
}

.modal {
  width: min(1100px, 96vw);
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--pic-shell-surface, #fffaf5);
  color: inherit;
  box-shadow: 0 24px 60px rgba(30, 20, 15, 0.35);
}

.modal::backdrop {
  background: rgba(40, 28, 22, 0.45);
}

.modal-inner {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 10px;
  border-bottom: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.16));
}

.modal-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.modal-head p {
  margin: 4px 0 0;
}

.modal-close {
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.24));
  border-radius: 50%;
  background: #fff;
  color: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--pic-earth-50, #faf5ef);
}

.modal-body {
  display: grid;
  gap: 8px;
  padding: 14px 20px 20px;
  overflow-y: auto;
}

/* ---------------------------------------------------------------- vechi | nou, una lângă alta */

.modal {
  width: min(1440px, 97vw);
}

.sbs {
  margin-top: 10px;
}

.sbs-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 10px 0 8px;
  font-size: 0.86rem;
}

.sbs-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sbs-counter {
  color: var(--pic-shell-muted, #70594a);
  font-weight: 600;
}

.sbs-btn {
  padding: 4px 10px;
  font-size: 0.82rem;
}

.sbs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.2));
  border-radius: 10px;
  background: #fff;
}

.sbs-head {
  position: sticky;
  top: -14px; /* lipit de marginea de sus a ferestrei (fereastra are 14px spațiu sus) */
  z-index: 1;
  padding: 8px 12px;
  background: var(--pic-earth-100, #eee1d5);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sbs-head:first-child {
  border-top-left-radius: 10px;
}

.sbs-head:nth-child(2) {
  border-top-right-radius: 10px;
  border-left: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.2));
}

.sbs-row {
  display: contents;
}

.sbs-cell {
  padding: 10px 12px;
  border-top: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.14));
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.sbs-row > .sbs-cell:nth-child(2) {
  border-left: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.2));
}

.sbs-same > .sbs-cell {
  color: #6a5649;
}

.sbs-change > .sbs-cell {
  background: #fffaf0;
}

.sbs-current > .sbs-cell {
  background: #fff1d6;
  box-shadow: inset 0 0 0 2px #e0a54a;
}

mark.sbs-del {
  padding: 0 2px;
  border-radius: 3px;
  background: #f7c6bc;
  color: #7a1d10;
}

mark.sbs-ins {
  padding: 0 2px;
  border-radius: 3px;
  background: #c6ebc6;
  color: #14501d;
}

.sbs-page {
  display: block;
  width: fit-content;
  margin: 6px 0 4px;
  padding: 1px 9px;
  border: 1px solid var(--pic-earth-300, #c9a890);
  border-radius: 999px;
  background: #fff;
  color: var(--pic-earth-700, #694839);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.sbs-page:hover {
  background: var(--pic-earth-50, #faf5ef);
}

.sbs-page-plain {
  cursor: default;
}

.sbs-more {
  display: block;
  margin: 6px 0;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--pic-earth-700, #694839);
  font: inherit;
  font-size: 0.82rem;
  font-style: italic;
  text-decoration: underline;
  cursor: pointer;
}

.sbs-empty {
  color: var(--pic-shell-muted, #70594a);
}

/* început de pagină: bandă pe toată lățimea coloanei */
.sbs-page {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  margin: 14px -12px 10px;
  padding: 6px 12px;
  border: 0;
  border-top: 3px solid #b07855;
  border-radius: 0;
  background: #f1e4d7;
  color: #5b3b2e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: default;
}

.sbs-cell > .sbs-page:first-child {
  margin-top: -10px;
}

.sbs-page-open {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pic-earth-700, #694839);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
  cursor: pointer;
}

.sbs-head-page {
  color: #8a4a00;
}

/* ---------------------------------------------------------------- pagină lângă pagină */

.pg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 16px;
}

.pg-grid > .sbs-head {
  border-radius: 8px;
}

.pg-grid > .sbs-head:nth-child(2) {
  border-left: 0;
}

.pg-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 7px 12px;
  border-top: 3px solid var(--pic-earth-300, #c9a890);
  border-radius: 8px 8px 0 0;
  background: var(--pic-earth-50, #faf5ef);
  color: #5b3b2e;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pg-bar-changed {
  border-top-color: #d98b1f;
  background: #fbead2;
}

.pg-sheet {
  min-height: 70px;
  padding: 14px 16px;
  border: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.2));
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(52, 37, 31, 0.08);
  font-size: 0.9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.pg-none {
  margin: 0;
  color: var(--pic-shell-muted, #70594a);
  font-style: italic;
}

.pg-same {
  grid-column: 1 / -1;
  margin-top: 18px;
  padding: 9px 12px;
  border: 1px dashed var(--pic-earth-300, #c9a890);
  border-radius: 8px;
  background: var(--pic-earth-50, #faf5ef);
  color: var(--pic-shell-muted, #70594a);
  font: inherit;
  font-size: 0.86rem;
  text-align: center;
  cursor: pointer;
}

.pg-same:hover {
  background: #fff;
}

/* ---------------------------------------------------------------- verificare cu Claude */

.pg-claude {
  grid-column: 1 / -1;
}

.pg-claude:empty {
  display: none;
}

.pg-claude .claude-panel {
  margin-top: 10px;
}

.pg-bar .sbs-page-open + .sbs-page-open {
  margin-left: 12px;
}

.claude-panel {
  margin: 0 0 14px;
  padding: 12px 16px;
  border: 1px solid #d9c4ef;
  border-left: 4px solid #8a5cc7;
  border-radius: 8px;
  background: #faf6fe;
}

.claude-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.claude-btn {
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: #7a4fb8;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.claude-btn:hover {
  background: #643d9c;
}

.claude-title {
  margin-bottom: 6px;
  color: #5b3a8a;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.claude-bar {
  height: 8px;
  margin: 6px 0;
  border-radius: 4px;
  background: #e6dbf3;
  overflow: hidden;
}

.claude-bar > span {
  display: block;
  height: 100%;
  background: #8a5cc7;
  transition: width 0.5s;
}

.claude-small {
  font-size: 0.82rem;
}

.claude-error {
  color: #a3261b;
}

.claude-text h4 {
  margin: 12px 0 4px;
  font-size: 0.95rem;
}

.claude-text p,
.claude-text ul {
  margin: 4px 0;
  line-height: 1.5;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: #5b3a8a;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.facts-table + .summary-grid,
.table-wrap + .summary-grid {
  margin-top: 14px;
}

/* ---------------------------------------------------------------- cât e gata */

.progress-box {
  display: grid;
  gap: 12px;
}

.progress-intro {
  margin: 0;
  color: var(--pic-shell-muted, #70594a);
}

.progress-card {
  padding: 16px 18px;
  border: 1px solid var(--pic-shell-line, rgba(91, 59, 46, 0.2));
  border-radius: 12px;
  background: #fff;
}

.progress-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 12px;
  font-size: 1.02rem;
}

.progress-bar {
  position: relative;
  height: 30px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--pic-earth-100, #eee1d5);
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c98a3b, #d98b1f);
  transition: width 0.6s ease;
}

.progress-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b2a20;
  font-size: 0.95rem;
  font-weight: 800;
}

.progress-indeterminate .progress-fill {
  width: 35%;
  animation: progress-slide 1.6s ease-in-out infinite;
}

@keyframes progress-slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(300%);
  }
}

.progress-phase {
  margin: 10px 0 2px;
  font-weight: 600;
}

.progress-card .muted.small {
  margin: 2px 0;
}

.progress-eta {
  margin: 6px 0 0;
  color: #8a4a00;
  font-weight: 700;
}

.archive-fold > summary {
  cursor: pointer;
  list-style: revert;
}

.archive-fold > summary h2 {
  display: inline;
  margin: 0;
}

.archive-fold[open] > summary {
  margin-bottom: 12px;
}

.pair-suggestions {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px dashed var(--pic-earth-300, #c9a890);
}

.pair-suggestions h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}
