/* Área do cliente / admin — reaproveita os tokens de assets/css/main.css */

:root {
  --info: #6FA9C4; /* usado só pra distinguir "entrega" de "gravação" nas Gravações agendadas */
}

* , *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--stock);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--tungsten); }

.portal-shell {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) var(--gut);
}

.portal-shell--wide { max-width: 64rem; }

.portal-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.portal-header h1 {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  margin: 0;
}

.portal-header a.logout {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ash);
  text-decoration: none;
  cursor: pointer;
}

/* ---- App shell do admin: sidebar fixa + faixa de trilha/contexto ---- */

.admin-shell {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
}

.admin-sidebar {
  flex: none;
  width: 14rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--gate);
  border-right: 1px solid var(--line);
  padding: 1.5rem 1rem;
}

.admin-sidebar__brand {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--bone);
  margin-bottom: 2rem;
  padding: 0 0.7rem;
}

.admin-sidebar__group { display: flex; flex-direction: column; }

.admin-sidebar__group-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ash);
  margin: 0 0 0.6rem 0.7rem;
}

.admin-sidebar__item {
  display: block;
  font-family: var(--body);
  font-size: 0.92rem;
  color: var(--ash);
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  margin-bottom: 0.15rem;
}
.admin-sidebar__item:hover { background: var(--line-2); color: var(--bone); }
.admin-sidebar__item.is-active { background: rgba(224, 138, 60, 0.16); color: var(--tungsten); font-weight: 500; }

.admin-sidebar__logout {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  border-radius: 0;
}

.admin-shell__main { flex: 1 1 auto; min-width: 0; }

.admin-context-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--stock);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-context-bar__crumb {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ash);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.admin-context-bar__crumb a { color: var(--ash); text-decoration: none; }
.admin-context-bar__crumb a:hover { color: var(--tungsten); }
.admin-context-bar__current { color: var(--bone); font-weight: 500; }
.admin-context-bar__sep { color: var(--ash); opacity: 0.5; }

.admin-context-bar__jumpnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.admin-context-bar__jumpnav:empty { display: none; }
.admin-context-bar__jumpnav a {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ash);
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.admin-context-bar__jumpnav a:hover { color: var(--bone); border-color: var(--ash); }
.admin-context-bar__jumpnav a.is-active { color: var(--tungsten); border-color: var(--tungsten); }

.admin-shell .portal-card { scroll-margin-top: 6rem; }

@media (max-width: 768px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem;
  }
  .admin-sidebar__brand { display: none; }
  .admin-sidebar__group { flex-direction: row; }
  .admin-sidebar__group-label { display: none; }
  .admin-sidebar__logout { margin-top: 0; margin-left: auto; border-top: none; padding-top: 0; }
}

.portal-card {
  background: var(--shadow);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
}

.portal-card h2 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

label {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ash);
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="url"],
textarea,
select {
  width: 100%;
  background: var(--gate);
  border: 1px solid var(--line);
  color: var(--bone);
  padding: 0.65rem 0.75rem;
  border-radius: 4px;
  font-family: var(--body);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

textarea { min-height: 8rem; resize: vertical; }

button, .btn {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--tungsten);
  color: var(--gate);
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.15s var(--e);
}

button:hover, .btn:hover { opacity: 0.85; }

button.secondary {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--line);
}

button:disabled { opacity: 0.4; cursor: not-allowed; }

.error {
  color: var(--tungsten);
  font-size: 0.85rem;
  margin: -0.5rem 0 1rem;
}

.hint { color: var(--ash); font-size: 0.85rem; }

.recording-list, .project-list { list-style: none; padding: 0; margin: 0; }

.recording-list li, .project-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-2);
}

.recording-list li:last-child, .project-list li:last-child { border-bottom: none; }

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge--ok { background: rgba(241, 233, 222, 0.12); color: var(--bone); }
.badge--warn { background: rgba(224, 138, 60, 0.2); color: var(--tungsten); }
.badge--expired { background: rgba(194, 94, 30, 0.25); color: var(--ember); }

.badge--today { background: rgba(224, 138, 60, 0.22); color: var(--tungsten); }
.badge--soon { background: rgba(241, 233, 222, 0.1); color: var(--bone); }
.badge--later { background: rgba(241, 233, 222, 0.07); color: var(--ash); }
.badge--done { background: rgba(127, 216, 160, 0.14); color: #7fd8a0; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line-2); }
th { font-family: var(--mono); font-size: 0.75rem; color: var(--ash); text-transform: uppercase; }
tr td a { text-decoration: none; }

.signature-pad {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--gate);
  touch-action: none;
  width: 100%;
  height: 180px;
  margin-bottom: 0.75rem;
}

.contract-text {
  white-space: pre-wrap;
  background: var(--gate);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1rem;
  font-size: 0.9rem;
  max-height: 20rem;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.checkbox-row input { width: auto; margin: 0.2rem 0 0; }
.checkbox-row label { margin: 0; color: var(--bone); font-family: var(--body); font-size: 0.9rem; }

.kind-toggle { display: flex; gap: 1.5rem; margin-bottom: 1rem; }
.kind-toggle__option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--body);
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--bone);
  margin: 0;
  cursor: pointer;
}
.kind-toggle__option input { width: auto; margin: 0; accent-color: var(--tungsten); }

/* ---- Cards de serviço/projeto (área do cliente) ---- */

.service-card {
  background: var(--shadow);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 1.75rem;
  overflow: hidden;
}

.service-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(135deg, var(--gate) 0%, var(--shadow) 100%);
  border-bottom: 1px solid var(--line);
}

.service-card__header h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0;
  text-transform: none;
  letter-spacing: 0.01em;
}

.service-card__body { padding: clamp(1.25rem, 3vw, 2rem); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill--active { background: rgba(224, 138, 60, 0.18); color: var(--tungsten); }
.status-pill--completed { background: rgba(120, 200, 150, 0.16); color: #7fd8a0; }
.status-pill--archived { background: rgba(241, 233, 222, 0.1); color: var(--ash); }

/* Rótulo pequeno em caixa alta acima de cada subseção do card */
.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ash);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1.75rem 0 0.75rem;
}
.section-label:first-child { margin-top: 0; }

/* Subseções recolhíveis dentro de um service-card (área do cliente) */
.service-section { margin-top: 1.75rem; }
.service-section:first-child { margin-top: 0; }
.service-section > summary { margin-bottom: 0.75rem; }
.service-section[open] > summary { margin-bottom: 1rem; }
.card-summary__head .section-label { margin: 0; }

/* Linha de documento/entregável: ícone + texto + ação, ao estilo Globalfy */
.doc-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-2);
}
.doc-row:last-child { border-bottom: none; }

.doc-row__icon {
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 6px;
  background: rgba(241, 233, 222, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tungsten);
}
.doc-row__icon svg { width: 1.1rem; height: 1.1rem; }

.doc-row__body { flex: 1 1 auto; min-width: 0; }
.doc-row__title { font-size: 0.95rem; color: var(--bone); }
.doc-row__subtitle { font-size: 0.78rem; color: var(--ash); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.03em; }

.doc-row__action { flex: none; font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.doc-row__note { color: var(--ash); font-size: 0.85rem; line-height: 1.45; margin-top: 0.25rem; }

.empty-hint {
  color: var(--ash);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.recordings-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin: -0.35rem 0 0.85rem;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ash);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.legend-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--stock);
  border: 1px solid var(--line);
}
.legend-swatch svg { width: 0.62rem; height: 0.62rem; }
.legend-swatch--rec { color: var(--tungsten); border-color: var(--tungsten); }
.legend-swatch--del { color: var(--info); border-color: var(--info); }

/* Gravações agendadas: cartão de agenda ao estilo canhoto de ingresso */
.ticket-row {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-2);
}
.ticket-row:last-child { border-bottom: none; }

.ticket-stub {
  position: relative;
  flex: none;
  width: 3.6rem;
  border-radius: 6px;
  background: rgba(241, 233, 222, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0;
  border: 1px solid var(--line-2);
}
.ticket-row--today .ticket-stub { background: var(--tungsten); border-color: var(--tungsten); }
.ticket-row--done .ticket-stub { opacity: 0.55; }

.stub-kind {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--stock);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stub-kind svg { width: 0.68rem; height: 0.68rem; }
.stub-kind--rec { color: var(--tungsten); border-color: var(--tungsten); }
.stub-kind--del { color: var(--info); border-color: var(--info); }

.ticket-stub__month {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ash);
}
.ticket-row--today .ticket-stub__month { color: rgba(0, 0, 0, 0.6); }

.ticket-stub__day {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.ticket-row--today .ticket-stub__day { color: var(--gate); }

.ticket-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 0.3rem; }
.ticket-body__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.ticket-body__title { font-size: 0.95rem; color: var(--bone); }
.ticket-row--done .ticket-body__title { color: var(--ash); }
.ticket-body__loc { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--ash); font-family: var(--mono); }
.ticket-body__loc .icon,
.ticket-body__loc svg { width: 0.85rem; height: 0.85rem; flex: none; }

/* Navegador de arquivos do Drive: pastas numa coluna fixa à esquerda,
   conteúdo da pasta selecionada à direita — como um gerenciador de
   arquivos, em vez de uma árvore expansível inteira de uma vez. */
.drive-explorer {
  display: flex;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  overflow: hidden;
  min-height: 220px;
}
.drive-explorer__sidebar {
  flex: none;
  width: 200px;
  background: rgba(241, 233, 222, 0.03);
  border-right: 1px solid var(--line-2);
  padding: 0.5rem;
  overflow-y: auto;
  max-height: 420px;
}
.drive-node {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  padding: 0.42rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ash);
}
.drive-node svg { width: 0.95rem; height: 0.95rem; flex: none; }
.drive-node:hover { background: var(--line-2); color: var(--bone); }
.drive-node.is-active { background: rgba(224, 138, 60, 0.14); color: var(--tungsten); }

.drive-explorer__main { flex: 1 1 auto; padding: 0.9rem 1rem; min-width: 0; }
.drive-explorer__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.drive-explorer__title { font-size: 0.95rem; color: var(--bone); }
.drive-explorer__meta { flex: none; font-family: var(--mono); font-size: 0.72rem; color: var(--ash); }

.drive-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0.3rem;
  border-radius: 6px;
}
.drive-row--folder { cursor: pointer; }
.drive-row--folder:hover { background: var(--line-2); }
.drive-row__body { flex: 1 1 auto; min-width: 0; }
.drive-row__title { font-size: 0.86rem; color: var(--bone); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-row__meta { font-family: var(--mono); font-size: 0.68rem; color: var(--ash); margin-top: 0.1rem; }

.drive-thumb {
  flex: none;
  width: 3rem;
  height: 2rem;
  border-radius: 4px;
  background: rgba(241, 233, 222, 0.06);
  background-size: cover;
  background-position: center;
  position: relative;
}
.drive-thumb--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tungsten);
}
.drive-thumb--icon svg { width: 1.1rem; height: 1.1rem; }
.drive-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: rgba(241, 233, 222, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

@media (max-width: 640px) {
  .drive-explorer { flex-direction: column; }
  .drive-explorer__sidebar { width: auto; border-right: none; border-bottom: 1px solid var(--line-2); max-height: 160px; }
}

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}
.video-modal[hidden] { display: none; }
.video-modal__box {
  width: min(1180px, 100%);
  max-height: 90vh;
  display: flex;
  gap: 1.25rem;
  position: relative;
}
.video-modal__frame {
  flex: 1 1 65%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  align-self: center;
}
.video-modal__frame video { width: 100%; height: 100%; border: none; background: #000; }
.video-modal__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 0.85rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.video-modal__comments {
  flex: 1 1 35%;
  max-width: 360px;
  background: var(--panel, #16181c);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
.video-comments-list {
  flex: 1 1 auto;
  overflow-y: auto;
  margin-bottom: 1rem;
}
.video-comment {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 0.85rem;
}
.video-comment:last-child { border-bottom: none; }
.video-comment__body { color: var(--bone); }
.video-comment__date { color: var(--ash); font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.03em; margin-top: 0.25rem; }
#video-comment-form textarea { min-height: 90px; resize: vertical; }

/* ---- Cards de projeto (admin — lista) ---- */

.admin-project-card {
  display: block;
  background: var(--shadow);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s var(--e);
}
.admin-project-card:hover { border-color: var(--tungsten); }

.admin-project-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--gate) 0%, var(--shadow) 100%);
  border-bottom: 1px solid var(--line);
}

.admin-project-card__header h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0;
  font-weight: 400;
}

.admin-project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0.9rem 1.5rem;
}

.meta-item { display: flex; flex-direction: column; gap: 0.25rem; }

.meta-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ash);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-value { font-size: 0.9rem; color: var(--bone); }

/* ---- Linha do tempo de prazos (admin) ---- */

.timeline { position: relative; padding-left: 1.75rem; }

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}

.timeline-item { position: relative; padding-bottom: 1.5rem; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.4rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tungsten);
  box-shadow: 0 0 0 3px var(--stock);
}

.timeline-date {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ash);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.timeline-card {
  background: var(--shadow);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  text-decoration: none;
  color: inherit;
  display: block;
}
.timeline-card:hover { border-color: var(--tungsten); }
.timeline-card__title { color: var(--bone); font-size: 0.95rem; margin-bottom: 0.35rem; }

/* ---- Linhas de campo label/valor (perfil do cliente) ---- */

.field-row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-2);
}
.field-row:has(textarea) { align-items: start; padding-top: 0.9rem; }
.field-row:last-of-type { border-bottom: none; }
.field-row label { margin: 0; }
.field-row input,
.field-row textarea { margin-bottom: 0; }
.field-row textarea { min-height: 3rem; }

/* ---- Análise estratégica (IA) ---- */

.status-pill--idle { background: var(--line-2); color: var(--ash); }
.status-pill--generating { background: rgba(224, 138, 60, 0.18); color: var(--tungsten); }
.status-pill--ready { background: rgba(127, 216, 160, 0.16); color: #7fd8a0; }
.status-pill--error { background: rgba(194, 94, 30, 0.25); color: var(--ember); }

details.portal-card { padding: 0; }
details.portal-card > .card-summary { padding: 1.25rem clamp(1.25rem, 3vw, 2rem); }
details.portal-card[open] > .card-summary { border-bottom: 1px solid var(--line-2); }
details.portal-card > *:not(.card-summary) { padding-left: clamp(1.25rem, 3vw, 2rem); padding-right: clamp(1.25rem, 3vw, 2rem); }
details.portal-card > .card-summary + * { padding-top: 1.5rem; }
details.portal-card > *:last-child { padding-bottom: clamp(1.25rem, 3vw, 2rem); }

.card-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.card-summary::-webkit-details-marker { display: none; }
.card-summary__head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.card-summary__head h2 { margin: 0; }

.card-chev {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid var(--ash);
  border-bottom: 1.5px solid var(--ash);
  transform: rotate(-45deg);
  transition: transform 0.15s var(--e);
  flex: none;
}
details[open] .card-chev { transform: rotate(45deg); }

.swot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0.75rem 0 1rem; }
.swot-grid--full { margin-top: 0; }
@media (max-width: 640px) { .swot-grid { grid-template-columns: 1fr; } }

.swot-box {
  border-left: 2px solid var(--line);
  border-radius: 4px;
  background: var(--shadow);
  padding: 0.7rem 0.9rem;
}
.swot-box h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
}
.swot-box ul { margin: 0; padding-left: 1.05rem; font-size: 0.85rem; color: var(--ash); line-height: 1.6; }
.swot-box--strengths { border-color: #7fd8a0; } .swot-box--strengths h4 { color: #7fd8a0; }
.swot-box--weaknesses { border-color: var(--ash); } .swot-box--weaknesses h4 { color: var(--bone); }
.swot-box--opportunities { border-color: var(--tungsten); } .swot-box--opportunities h4 { color: var(--tungsten); }
.swot-box--threats { border-color: var(--ember); } .swot-box--threats h4 { color: var(--ember); }

.analysis-view-full { margin: 1rem 0 0; font-size: 0.85rem; }
.analysis-view-full a { font-weight: 500; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1rem 1.85rem; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--tungsten);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 0.05rem;
}
.steps li b { display: block; color: var(--bone); font-weight: 500; margin-bottom: 0.2rem; }
.steps li span { color: var(--ash); font-size: 0.88rem; }
