html {
  scroll-padding-top: 96px;
}

.owner-brief-page {
  background:
    linear-gradient(180deg, rgba(239, 246, 241, 0.9), rgba(247, 244, 238, 0.98)),
    var(--paper);
  overflow-x: hidden;
}

.owner-brief-shell {
  padding-top: 86px;
  overflow-x: hidden;
}

.owner-brief-hero {
  min-width: 0;
  padding: clamp(72px, 10vw, 118px) clamp(18px, 5vw, 72px) clamp(34px, 5vw, 58px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(32, 61, 52, 0.98), rgba(143, 104, 50, 0.72)),
    var(--forest);
}

.owner-brief-hero h1 {
  max-width: 1040px;
  margin-bottom: 22px;
  color: #fff;
  text-shadow: none;
}

.owner-brief-hero p:not(.section-kicker) {
  max-width: 840px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.62;
}

.owner-brief-workspace {
  display: grid;
  gap: 24px;
  min-width: 0;
  padding: clamp(28px, 5vw, 72px);
  background:
    radial-gradient(circle at 16% 6%, rgba(214, 168, 79, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(245, 249, 246, 0.94), rgba(255, 252, 246, 0.98));
}

.owner-brief-header {
  max-width: 1320px;
  width: 100%;
  margin-inline: auto;
}

.owner-brief-header h2 {
  max-width: 880px;
  margin: 0;
  color: var(--forest);
  font-size: clamp(1.9rem, 3.2vw, 3.15rem);
  line-height: 1.08;
}

.owner-brief-header p:not(.section-kicker) {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.55;
}

.owner-brief-stage {
  display: none;
  place-items: center;
  min-width: 0;
}

.desktop-demo-app .brief-detail-back {
  display: none;
}

.desktop-demo-app .brief-action-card:hover,
.desktop-demo-app .brief-action-card:focus-visible,
.desktop-demo-app .brief-action-card.is-selected {
  border-color: rgba(18, 106, 91, 0.58);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(18, 106, 91, 0.08);
}

.owner-brief-phone-unit {
  display: grid;
  width: min(100%, 430px);
}

.owner-brief-device {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: clamp(620px, 78vh, 760px);
  min-width: 0;
  border: 1px solid rgba(15, 24, 22, 0.22);
  border-radius: 34px;
  padding: 11px;
  background:
    linear-gradient(145deg, #24342f, #070b0a 62%),
    #111;
  box-shadow:
    0 28px 80px rgba(20, 36, 31, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.owner-brief-phone-top {
  display: flex;
  justify-content: space-between;
  padding: 7px 18px 9px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 850;
}

.owner-brief-screen {
  display: grid;
  gap: 12px;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow-y: auto;
  border-radius: 26px;
  padding: 16px;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f8faf5, #eef4ee 54%, #f7f4ee);
  scrollbar-width: thin;
}

.owner-brief-screen.is-detail-open {
  display: block;
  background: #fff;
}

.owner-brief-screen.is-detail-open .brief-app-header {
  margin-bottom: 12px;
}

.owner-brief-screen.is-detail-open .brief-scan-panel,
.owner-brief-screen.is-detail-open .brief-metrics,
.owner-brief-screen.is-detail-open .brief-priorities {
  display: none;
}

.owner-brief-screen.is-pending .brief-metrics,
.owner-brief-screen.is-pending .brief-priorities {
  display: none;
}

.owner-brief-screen.is-pending .brief-app-header {
  display: none;
}

.owner-brief-screen.is-pending {
  align-content: start;
}

.owner-brief-screen:not(.is-detail-open) .brief-detail {
  display: none;
}

.brief-app-header,
.brief-scan-panel,
.brief-metrics,
.brief-action-card,
.brief-detail {
  border: 1px solid rgba(32, 61, 52, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 1px 0 rgba(23, 33, 31, 0.04);
}

.brief-app-header {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.brief-app-header img {
  width: 30px;
  height: 30px;
}

.brief-app-header strong,
.brief-app-header span {
  display: block;
}

.brief-app-header strong {
  color: var(--forest);
  line-height: 1;
}

.brief-app-header span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.brief-scan-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(32, 61, 52, 0.97), rgba(111, 137, 119, 0.88)),
    var(--forest);
  color: #fff;
}

.brief-scan-panel span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brief-scan-panel strong {
  display: block;
  margin-top: 3px;
  font-size: 1.34rem;
  line-height: 1.08;
}

.brief-scan-panel p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.38;
}

.brief-scan-button {
  width: fit-content;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 0 13px;
  color: #1e1707;
  background: var(--gold);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
}

.brief-scan-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.brief-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
}

.brief-metrics div {
  display: grid;
  gap: 4px;
  justify-items: center;
  min-width: 0;
  padding: 12px 6px;
  background: rgba(255, 255, 255, 0.66);
}

.brief-metrics strong {
  color: var(--forest);
  font-size: 1.4rem;
  line-height: 1;
}

.brief-metrics span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.brief-priorities {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.brief-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brief-section-heading strong {
  color: var(--forest);
}

.brief-action-list {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.brief-action-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  min-width: 0;
  padding: 12px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.brief-action-card:hover,
.brief-action-card:focus-visible,
.brief-action-card.is-selected {
  border-color: rgba(214, 168, 79, 0.86);
  outline: none;
  background:
    linear-gradient(135deg, rgba(255, 247, 231, 0.78), rgba(255, 255, 255, 0.96)),
    #fff;
}

.brief-rank {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #1e1707;
  background: var(--gold);
  font-size: 0.82rem;
  font-weight: 950;
}

.brief-card-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.brief-card-copy h3,
.brief-card-copy p {
  margin: 0;
}

.brief-card-copy h3 {
  color: var(--forest);
  font-size: 0.96rem;
  line-height: 1.18;
}

.brief-card-copy p {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
}

.brief-card-meta,
.brief-detail-meta,
.brief-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.brief-pill {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  color: var(--forest);
  background: rgba(111, 137, 119, 0.14);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.brief-pill.is-high {
  color: #8f2f1e;
  background: #fff0e8;
}

.brief-pill.is-value {
  color: #755113;
  background: #fff7dc;
}

.brief-detail {
  display: grid;
  gap: 12px;
  box-sizing: border-box;
  min-height: 260px;
  padding: 14px;
  align-content: start;
  background: #fff;
}

.brief-detail-back {
  width: fit-content;
  min-height: 34px;
  border: 0;
  padding: 0;
  color: var(--forest);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
}

.brief-detail-back::before {
  content: "<";
  margin-right: 7px;
}

.brief-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  text-align: center;
}

.brief-empty p,
.brief-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.45;
}

.brief-detail h3 {
  margin: 0;
  color: var(--forest);
  font-size: 1.18rem;
  line-height: 1.16;
}

.brief-detail-section {
  display: grid;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid rgba(32, 61, 52, 0.11);
}

.brief-detail-section h4 {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.brief-detail-section p {
  color: var(--forest);
  font-weight: 600;
}

.brief-message-draft {
  border: 1px solid rgba(32, 61, 52, 0.12);
  border-radius: 8px;
  padding: 11px;
  background: rgba(247, 244, 238, 0.82);
}

.brief-detail-actions button {
  min-height: 38px;
  border: 1px solid rgba(32, 61, 52, 0.2);
  border-radius: 6px;
  padding: 0 11px;
  color: var(--forest);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
}

.brief-detail-actions button:first-child {
  border-color: var(--gold);
  color: #1e1707;
  background: var(--gold);
}

@media (max-width: 760px) {
  .owner-brief-stage {
    display: grid;
  }
}

@media (max-width: 620px) {
  .owner-brief-shell {
    padding-top: 78px;
  }

  .owner-brief-workspace {
    padding-inline: 16px;
  }

  .owner-brief-header h2 {
    max-width: 760px;
    font-size: 2rem;
  }

  .owner-brief-device {
    border-radius: 28px;
    padding: 8px;
  }

  .owner-brief-screen {
    height: auto;
    min-height: 0;
    border-radius: 22px;
    padding: 13px;
  }
}

@media (max-width: 560px) {
  .owner-brief-phone-unit {
    width: min(100%, calc(100vw - 56px), 340px);
  }
}
