.v360-workbench {
  display: grid;
  gap: 16px;
  max-width: 1180px;
  margin-inline: auto;
}

.legacy-weekly-report,
#review > .review-tabs {
  display: none !important;
}

.v360-head,
.v360-card-head,
.v360-final-head,
.v360-summary,
.v360-actions,
.v360-fact-actions,
.v360-status-line {
  display: flex;
  align-items: center;
}

.v360-head,
.v360-card-head,
.v360-final-head {
  justify-content: space-between;
  gap: 16px;
}

.v360-head h3,
.v360-final-head h4,
.v360-card-head h4 {
  margin: 0;
}

.v360-head p,
.v360-final-head p,
.v360-card-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.v360-version {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.v360-status {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.v360-status.final {
  color: #17633f;
  border-color: #b9d7c6;
  background: #edf7f1;
}

.v360-summary {
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #dce7df;
  border-radius: 14px;
  background: #f5f8f6;
}

.v360-summary strong {
  color: var(--green);
  font-size: 15px;
}

.v360-summary span {
  color: var(--muted);
  font-size: 11px;
}

.v360-summary .v360-summary-sep {
  width: 1px;
  height: 16px;
  background: #d6e1d9;
}

.v360-card,
.v360-final {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}

.v360-review-list,
.v360-evidence-list,
.v360-excluded-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.v360-fact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid #e6eae6;
}

.v360-fact:first-child {
  padding-top: 0;
  border-top: 0;
}

.v360-fact textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  max-height: 190px;
  overflow-y: auto;
  padding: 9px 10px;
  resize: none;
  border: 1px solid #d8e1da;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.v360-fact-copy {
  min-width: 0;
}

.v360-fact-copy > p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.v360-fact-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.v360-fact-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.v360-choice {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #d6dfd8;
  border-radius: 9px;
  color: #4e5b53;
  background: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.v360-choice.primary {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.v360-choice:active,
.v360-actions .btn:active {
  transform: translateY(1px);
}

.v360-empty {
  padding: 16px;
  border-radius: 11px;
  color: var(--muted);
  background: #f7f8f6;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.v360-final-editor {
  box-sizing: border-box;
  width: 100%;
  min-height: 430px;
  margin-top: 14px;
  padding: 18px;
  resize: vertical;
  border: 1px solid #ccd9cf;
  border-radius: 12px;
  color: #202a24;
  background: #fff;
  font: inherit;
  font-size: 13px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.v360-final-editor:focus,
.v360-fact textarea:focus,
.v360-advanced textarea:focus,
.v360-manual input:focus {
  outline: 3px solid rgba(31, 112, 76, .13);
  border-color: var(--green);
}

.v360-status-line {
  justify-content: space-between;
  gap: 10px;
  min-height: 24px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.v360-save-state.ok {
  color: #17633f;
}

.v360-actions {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.v360-actions .btn {
  min-width: 0;
  white-space: nowrap;
}

.v360-actions .btn.accent {
  min-width: 180px;
}

.v360-advanced {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafbf9;
}

.v360-advanced > summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

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

.v360-advanced > summary b,
.v360-advanced > summary small {
  display: block;
}

.v360-advanced > summary small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.v360-advanced-body {
  display: grid;
  gap: 16px;
  padding: 0 16px 16px;
}

.v360-business-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.v360-business-grid label {
  display: grid;
  gap: 7px;
  color: #4d5a52;
  font-size: 10px;
  font-weight: 700;
}

.v360-business-grid textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 110px;
  padding: 10px 11px;
  resize: vertical;
  border: 1px solid #d8e1da;
  border-radius: 9px;
  font: inherit;
  font-size: 11px;
  line-height: 1.65;
}

.v360-manual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.v360-manual input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #d8e1da;
  border-radius: 9px;
  font: inherit;
}

.v360-note {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .v360-head,
  .v360-card-head,
  .v360-final-head,
  .v360-fact {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .v360-head,
  .v360-card-head,
  .v360-final-head {
    display: grid;
  }

  .v360-status {
    justify-self: start;
  }

  .v360-fact-actions {
    justify-content: flex-start;
  }

  .v360-business-grid,
  .v360-manual {
    grid-template-columns: 1fr;
  }

  .v360-final-editor {
    min-height: 360px;
    padding: 14px;
    font-size: 12px;
  }

  .v360-summary .v360-summary-sep {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v360-choice,
  .v360-actions .btn {
    transition: none !important;
  }
}
