.sst-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; }
.sst-nav { position: sticky; top: 1rem; align-self: start; display: grid; gap: 0.45rem; }
.sst-nav-kicker { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.sst-nav-link {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-left: 4px solid #1A6FE0;
  background: #fff;
  border-radius: 0 10px 10px 0;
  text-decoration: none;
  color: var(--navy);
  font-size: 13px;
}
.sst-nav-link span { color: var(--muted); font-size: 12px; }
.sst-cover, .sst-library, .sst-item {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 6px solid #1A6FE0;
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
  margin-bottom: 1.2rem;
}
.sst-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-deep); }
.sst-route { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; list-style: none; }
.sst-route li { background: #eef5ff; border-radius: 999px; padding: 0.25rem 0.7rem; font-size: 13px; }
.sst-library ul { margin: 0; padding-left: 1.1rem; }
.sst-done { color: #0f7b4c; font-weight: 700; }
.sst-ok { color: #0f7b4c; font-style: normal; display: block; margin-top: 0.25rem; }
.sst-bad { color: #b42318; font-style: normal; display: block; margin-top: 0.25rem; }
.sst-fixed { font-weight: 700; margin: 0.25rem 0; }
.sst-fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 0.8rem; margin: 0 0 0.8rem; }
.sst-table-wrap { overflow-x: auto; }
.sst-legend { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; padding: 0; }
.sst-legend span { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 0.3rem; vertical-align: middle; }
.sst-canvas-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; }
.sst-canvas-toolbar button, .sst-cell button, .sst-mini button, .sst-heart-zone button, .sst-note-actions button {
  font: inherit; font-size: 12px; border-radius: 999px; border: 1px solid var(--border); background: #fff; padding: 0.3rem 0.7rem; cursor: pointer;
}
.sst-canvas { transform-origin: top left; background: #f4f1ea; border: 1px solid #d9d3c7; border-radius: 8px; padding: 1rem; aspect-ratio: 16 / 10; }
.sst-canvas-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.sst-canvas-kicker { font-weight: 800; letter-spacing: 0.08em; margin: 0; }
.sst-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr auto 1fr; gap: 0.45rem; min-height: 70%; }
.sst-cell, .sst-heart, .sst-mini { background: #fff; border: 2px solid #222; border-radius: 6px; padding: 0.5rem; min-height: 120px; }
.sst-cell h3, .sst-heart h3, .sst-mini h4 { margin: 0 0 0.25rem; font-size: 13px; }
.sst-cell p, .sst-heart p { margin: 0 0 0.4rem; font-size: 11px; color: #444; }
.sst-mod-i { border-color: #E07A12; }
.sst-mod-ii { border-color: #0B8E8B; }
.sst-mod-iii { border-color: #7B3FCC; }
.sst-mod-iv { border-color: #228A4C; }
.sst-heart {
  grid-column: 2;
  grid-row: 2;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  min-height: 180px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  border-color: #E07A12;
}
.sst-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.sst-note { border: 1px solid #0002; border-radius: 4px; padding: 0.35rem; margin: 0.3rem 0; }
.sst-note textarea, .sst-note input, .sst-note select { width: 100%; border: 0; background: transparent; font: inherit; font-size: 12px; }
.sst-note-actions { display: flex; gap: 0.25rem; flex-wrap: wrap; margin-top: 0.25rem; }
.sst-attr { font-size: 11px; color: #444; margin: 0.75rem 0 0; }
.sst-check { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1rem; margin-top: 1rem; font-size: 13px; }
.sst-accordion { display: none; }
.sst-canvas-wrap.is-full { position: fixed; inset: 0; z-index: 40; background: #fff; overflow: auto; padding: 1rem; }
@media (max-width: 900px) {
  .sst-layout { grid-template-columns: 1fr; }
  .sst-nav { position: static; }
  .sst-canvas { display: none; }
  .sst-accordion { display: grid; gap: 0.5rem; }
}
@media print {
  @page { size: A3 landscape; margin: 12mm; }
  .sst-canvas-toolbar, .sst-nav, .repo-back-link, .plat-mini, .cdc-toolbar, .cdc-hint, .cdc-versions { display: none !important; }
  .sst-canvas { transform: none !important; aspect-ratio: auto; }
  .cdc-stage { box-shadow: none; }
}
.cdc-wrap { display: grid; gap: 0.75rem; }
.cdc-toolbar { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.cdc-toolbar button {
  font: inherit;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}
.cdc-toolbar button.is-on { border-color: #0481FD; background: #e8f3ff; }
.cdc-swatch { width: 22px; height: 22px; padding: 0 !important; border-radius: 6px !important; }
.cdc-hint { margin: 0; font-size: 13px; color: var(--muted); }
.cdc-stage {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  user-select: none;
}
.cdc-stage img { width: 100%; display: block; pointer-events: none; }
.cdc-tool-note, .cdc-tool-text, .cdc-tool-arrow { cursor: crosshair; }
.cdc-meta {
  position: absolute;
  top: 4.6%;
  right: 6%;
  display: flex;
  gap: 2.8rem;
  font-size: 12px;
  font-weight: 600;
  color: #111;
}
.cdc-arrows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cdc-arrows line, .cdc-arrows circle { pointer-events: auto; cursor: grab; }
.cdc-mark {
  position: absolute;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.12);
  padding: 0.25rem;
  cursor: grab;
}
.cdc-mark.is-note { transform: rotate(-1deg); }
.cdc-mark.is-text { background: rgba(255,255,255,0.94); border: 1px dashed #333; box-shadow: none; }
.cdc-mark.is-on { outline: 2px solid #0481FD; }
.cdc-mark textarea, .cdc-mark p {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  resize: none;
  font: inherit;
  font-size: 12px;
  margin: 0;
}
.cdc-versions { display: flex; gap: 0.5rem; align-items: end; }

.seg-wrap { display: grid; gap: 1.35rem; color: #001548; }
.seg-stack { display: grid; gap: 1.15rem; min-width: 0; }
.seg-wrap h2 { margin: 0; font-size: 1.28rem; letter-spacing: -0.03em; }
.seg-wrap h3 { margin: 0 0 0.65rem; font-size: 0.86rem; }
.seg-panel, .seg-card, .seg-doc, .seg-propose, .seg-upload {
  background: #fff;
  border: 1px solid #e4ebf5;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 21, 72, 0.05);
  padding: 1.15rem 1.25rem;
}
.seg-panel { display: grid; gap: 1rem; }
.seg-doc { display: grid; gap: 0.85rem; }
.seg-doc h3, .seg-doc p { margin: 0; }
.seg-doc a { justify-self: start; }
.seg-head { display: grid; gap: 1rem; }
.seg-switch, .seg-tabs, .seg-col-tabs, .seg-filters, .seg-load, .seg-team-list, .seg-guardians {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.seg-load li, .seg-notices li, .seg-team-list li { list-style: none; }
.seg-load { padding: 0; }
.seg-load li {
  display: grid;
  gap: 0.1rem;
  min-width: 11rem;
  padding: 0.8rem 1rem;
  background: #fff;
  border: 1px solid #e4ebf5;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 21, 72, 0.04);
}
.seg-load li strong { font-size: 0.8rem; }
.seg-load li span, .seg-hint, .seg-card .seg-meta { color: #5b6b86; font-size: 0.72rem; }
.seg-load li.is-heavy { border-color: #f3c2bc; background: #fff6f5; }
.seg-load li.is-heavy span { color: #9b1c1c; font-weight: 700; }
.seg-switch a, .seg-tabs a, .seg-col-tabs button {
  border: 1px solid #d5deee;
  background: #fff;
  color: #001548;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.seg-switch a.is-on, .seg-tabs a.is-on, .seg-col-tabs button.is-on {
  background: #001548;
  border-color: #001548;
  color: #fff;
}
.seg-wrap input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]),
.seg-wrap select,
.seg-wrap textarea {
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  border: 1px solid #d7e0ee;
  background: #f8fafc;
  color: #001548;
  border-radius: 12px;
  padding: 0.72rem 0.9rem;
  font: inherit;
  font-size: 0.8rem;
}
.seg-wrap select {
  background-image: linear-gradient(45deg, transparent 50%, #001548 50%), linear-gradient(135deg, #001548 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}
.seg-wrap textarea { min-height: 5.5rem; resize: vertical; }
.seg-wrap input:focus, .seg-wrap select:focus, .seg-wrap textarea:focus {
  outline: none;
  border-color: #0481FD;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(4, 129, 253, 0.16);
}
.seg-panel > form:not(.seg-guardian),
.seg-body > form { display: grid; gap: 0.85rem; }
.seg-wrap button {
  border: 0;
  background: #001548;
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  justify-self: start;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.seg-wrap button:hover { background: #0481FD; }
.seg-guardian {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: min(100%, 28rem);
  margin: 0;
  padding: 0.45rem 0.45rem 0.45rem 0.9rem;
  background: #f7f9fc;
  border-radius: 999px;
}
.seg-guardian span { font-weight: 600; }
.seg-guardian button {
  background: #fff;
  color: #001548;
  border: 1px solid #d5deee;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
}
.seg-filters {
  align-items: end;
  padding: 0.9rem;
  background: #fff;
  border: 1px solid #e4ebf5;
  border-radius: 18px;
}
.seg-filters label, .seg-upload label, .seg-review label, .seg-propose label, .seg-inline label, .seg-body label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #3d4d6e;
  min-width: 10rem;
  flex: 1;
}
.seg-check { display: flex !important; align-items: center; gap: 0.45rem; min-width: auto !important; font-weight: 600; }
.seg-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.seg-column {
  background: linear-gradient(#fff, #f6f8fc);
  border: 1px solid #e4ebf5;
  border-radius: 18px;
  padding: 0.95rem;
  min-height: 12rem;
}
.seg-column h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
}
.seg-column h3 span {
  min-width: 1.6rem;
  height: 1.6rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #001548;
  color: #fff;
  font-size: 0.75rem;
}
.seg-card {
  margin: 0 0 0.85rem;
  padding: 0.95rem 1rem;
  border-left: 4px solid var(--team, #0481FD);
}
.seg-card header, .seg-checks form { display: flex; gap: 0.65rem; align-items: center; flex-wrap: wrap; }
.seg-checks { display: grid; gap: 0.65rem; margin: 0; padding: 0; list-style: none; }
.seg-card h4 { margin: 0.35rem 0 0.15rem; font-size: 0.82rem; line-height: 1.3; letter-spacing: -0.02em; }
.seg-handle {
  width: 1.45rem;
  height: 1.45rem;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #f3f6fb;
  color: #5b6b86;
  cursor: grab;
  flex: 0 0 auto;
}
.seg-handle:active { cursor: grabbing; }
.seg-card.is-dragging { opacity: 0.45; }
.seg-column.is-over { outline: 2px solid #0481FD; background: #eef5ff; }
.seg-move { display: grid; gap: 0.85rem; margin-top: 0.95rem; }
.seg-move button { justify-self: start; }
.seg-open, .seg-close {
  background: #fff;
  color: #225AB8;
  border: 1px solid #d5deee;
}
.seg-open { margin-top: 0.7rem; }
.seg-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}
.seg-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(0, 21, 72, 0.46);
}
.seg-modal-backdrop:hover { background: rgba(0, 21, 72, 0.52); }
.seg-modal-card {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(86vh, 880px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 1.1rem 1.2rem 1.3rem;
  box-shadow: 0 24px 60px rgba(0, 21, 72, 0.28);
}
.seg-modal-card header { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.seg-modal-card h4 { margin: 0.45rem 0 0.15rem; font-size: 1rem; }
.seg-card header strong {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  background: #eef4ff;
  color: #225AB8;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}
.seg-light { font-style: normal; border-radius: 999px; padding: 0.15rem 0.5rem; font-size: 0.72rem; font-weight: 700; background: #f4f6fa; }
.seg-light.is-verde, .seg-ok { color: #0b5d3b; background: #e8f7ef; }
.seg-light.is-amarillo { color: #8a4b08; background: #fff4e5; }
.seg-light.is-rojo, .seg-error { color: #9b1c1c; background: #fdecec; }
.seg-card.is-proposal { box-shadow: inset 0 0 0 1px #7B3FCC; }
.seg-card details { margin-top: 0.6rem; }
.seg-card summary { cursor: pointer; font-weight: 600; color: #225AB8; }
.seg-body { display: grid; gap: 0.95rem; margin-top: 0.85rem; }
.seg-empty { margin: 1.2rem 0.3rem; color: #7b8ba6; font-size: 0.85rem; }
.seg-frame { width: 100%; height: 70vh; border: 0; border-radius: 12px; background: #fff; }
.seg-doc img { max-width: 100%; height: auto; border-radius: 12px; }
.seg-upload, .seg-review, .seg-propose, .seg-inline { display: grid; gap: 0.9rem; }
.seg-inline { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); align-items: end; }
.seg-review fieldset { display: grid; gap: 0.5rem; margin: 0; border: 1px solid #e4ebf5; border-radius: 12px; padding: 0.85rem 1rem; }
.seg-swatch { width: 0.8rem; height: 0.8rem; border-radius: 99px; display: inline-block; }
.seg-team-list { list-style: none; padding: 0; }
.seg-team-list li { display: flex; gap: 0.6rem; align-items: center; }
.seg-timeline { display: flex; flex-wrap: wrap; gap: 0.75rem; padding: 0; list-style: none; }
.seg-timeline li { padding: 0.45rem 0.7rem; border-radius: 999px; background: #fff; border: 1px solid #e4ebf5; }
.seg-timeline .is-done { background: #001548; color: #fff; font-weight: 700; }
.seg-notices { margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.seg-notices li { list-style: none; background: #eef5ff; border-radius: 12px; padding: 0.7rem 0.9rem; }
@media (max-width: 900px) {
  .seg-columns { grid-template-columns: 1fr; }
  .seg-column { display: none; }
  .seg-column.is-current { display: block; }
  .seg-col-tabs { display: flex; }
}
@media (min-width: 901px) {
  .seg-col-tabs { display: none; }
}
