:root {
  --green: #173c33;
  --green-deep: #102f28;
  --green-soft: #285448;
  --gold: #c89a4b;
  --gold-light: #dfbd7a;
  --cream: #f7f2e8;
  --cream-light: #fcfaf5;
  --paper: #fffdf8;
  --ink: #1d2b27;
  --muted: #68736e;
  --line: rgba(23, 60, 51, 0.13);
  --shadow: 0 18px 50px rgba(16, 47, 40, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream-light);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  min-height: 88px;
  padding: 16px 5vw;
  display: flex;
  align-items: center;
  gap: 34px;
  background: rgba(252, 250, 245, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 19px;
}

.brand strong {
  display: block;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  letter-spacing: 0.18em;
  line-height: 1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-top: 5px;
}

nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
  color: #4f5f59;
}

nav a:hover {
  color: var(--gold);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  background: var(--green);
  color: white;
}

.button-gold {
  background: var(--gold);
  color: #172b25;
}

.button-outline {
  color: white;
  border: 1px solid rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.05);
}

.hero {
  min-height: 660px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 80px 8vw;
  color: white;
  background:
    radial-gradient(
      circle at 78% 45%,
      rgba(200,154,75,0.18),
      transparent 30%
    ),
    linear-gradient(
      105deg,
      #102f28 0%,
      #173c33 52%,
      #285448 100%
    );
}

.hero::after {
  content: "E";
  position: absolute;
  right: 8%;
  top: 42px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 510px;
  line-height: 1;
  color: rgba(255,255,255,0.035);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 710px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(72px, 9vw, 132px);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 0.92;
}

.hero h2 {
  max-width: 690px;
  margin: 28px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 400;
  line-height: 1.06;
}

.hero-copy {
  max-width: 630px;
  color: rgba(255,255,255,0.82);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
}

.hero-quote {
  position: absolute;
  z-index: 2;
  right: 7vw;
  bottom: 54px;
  padding-left: 22px;
  border-left: 2px solid var(--gold);
  color: rgba(255,255,255,0.84);
}

.hero-quote em {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.hero-quote span {
  display: block;
  margin-top: 8px;
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.trust-strip {
  width: min(1180px, 92%);
  margin: -38px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.trust-strip article {
  min-height: 190px;
  padding: 30px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.trust-strip article:last-child {
  border-right: 0;
}

.icon {
  color: var(--gold);
  font-size: 30px;
}

.trust-strip h3 {
  margin: 12px 0 6px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.trust-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.section {
  width: min(1180px, 88%);
  margin: 0 auto;
  padding: 110px 0;
}

.gold-text {
  color: var(--gold);
}

.intro-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}

.section-heading h2,
.promise-section h2,
.security-section h2,
.closing-section h2 {
  margin: 0;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.05;
}

.intro-copy {
  color: #586761;
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-top: 0;
}

.feature-card {
  min-height: 270px;
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(16,47,40,0.05);
}

.feature-number {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: 0.14em;
}

.feature-card h3 {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
}

.feature-card p {
  color: var(--muted);
}

.promise-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.promise-section p {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--green);
  font-weight: 800;
  border-bottom: 1px solid var(--gold);
}

blockquote {
  margin: 0;
  padding: 48px;
  background: var(--green);
  color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.45;
}

.security-section {
  text-align: center;
}

.security-section > h2 {
  max-width: 800px;
  margin: 0 auto;
}

.security-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.security-grid div {
  padding: 30px;
  background: var(--cream);
  border-radius: 16px;
}

.security-grid strong {
  display: block;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.security-grid p {
  color: var(--muted);
  font-size: 14px;
}

.future-section {
  padding: 110px 8vw;
  text-align: center;
  color: white;
  background:
    radial-gradient(
      circle at center top,
      rgba(200,154,75,0.18),
      transparent 35%
    ),
    var(--green-deep);
}

.future-badge {
  display: inline-block;
  margin-bottom: 24px;
  padding: 7px 15px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.future-section h2 {
  margin: 5px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 400;
}

.future-copy {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255,255,255,0.76);
  font-size: 18px;
}

.future-section h3 {
  margin: 34px 0;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
}

.future-features {
  max-width: 900px;
  margin: 0 auto 38px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.future-features span {
  padding: 10px 17px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
}

.closing-section {
  text-align: center;
}

.closing-section p:last-child {
  max-width: 620px;
  margin: 25px auto 0;
  color: var(--muted);
  font-size: 18px;
}

footer {
  padding: 45px 6vw;
  background: #0d2923;
  color: rgba(255,255,255,0.65);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.footer-brand strong {
  display: block;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  letter-spacing: 0.16em;
}

.footer-brand span {
  font-size: 12px;
}

footer div:nth-child(2) {
  display: flex;
  gap: 24px;
  font-size: 13px;
}

footer small {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.09);
}

@media (max-width: 980px) {
  nav {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero-quote {
    display: none;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip article {
    border-bottom: 1px solid var(--line);
  }

  .intro-section,
  .promise-section {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand small {
    display: none;
  }

  .site-header .button {
    padding: 0 14px;
  }

  .hero {
    min-height: 650px;
    padding: 70px 24px;
  }

  .hero h1 {
    font-size: 66px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .section {
    width: 88%;
    padding: 75px 0;
  }

  blockquote {
    padding: 32px;
    font-size: 23px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer div:nth-child(2) {
    flex-direction: column;
    gap: 10px;
  }
}

/* =========================================================
   ECHO HOMEPAGE — FAMILY FUTURE HERO
   ========================================================= */

.hero {
  min-height: 660px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 80px 8vw;
  color: white;

  background-image:
    linear-gradient(
      90deg,
      rgba(8, 31, 26, 0.94) 0%,
      rgba(8, 31, 26, 0.82) 26%,
      rgba(8, 31, 26, 0.48) 48%,
      rgba(8, 31, 26, 0.10) 70%,
      rgba(8, 31, 26, 0.02) 100%
    ),
    url("../images/echo-family-future-hero.png");

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero::after {
  content: none;
}

.hero-content {
  max-width: 660px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

.hero h1 {
  color: #fffdf7;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.28);
}

.hero h2 {
  color: #ffffff;
  max-width: 620px;
}

.hero-copy {
  max-width: 600px;
  color: rgba(255,255,255,0.92);
}

.hero-quote {
  padding: 14px 0 14px 22px;
  background: rgba(10, 35, 29, 0.16);
  backdrop-filter: blur(2px);
}

@media (max-width: 980px) {
  .hero {
    background-position: 58% center;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 700px;
    background-position: 62% center;

    background-image:
      linear-gradient(
        90deg,
        rgba(8,31,26,0.94) 0%,
        rgba(8,31,26,0.78) 58%,
        rgba(8,31,26,0.28) 100%
      ),
      url("../images/echo-family-future-hero.png");
  }
}

/* =========================================================
   ECHO FAMILY LOGIN
   ========================================================= */

.login-page {
  min-height: 100vh;
  background: var(--cream);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(520px, 1.1fr);
}

.login-visual {
  min-height: 100vh;
  position: relative;
  padding: 54px;
  display: flex;
  flex-direction: column;
  color: white;

  background-image:
    linear-gradient(
      180deg,
      rgba(8,31,26,0.86) 0%,
      rgba(8,31,26,0.54) 48%,
      rgba(8,31,26,0.88) 100%
    ),
    url("../images/echo-family-future-hero.png");

  background-size: cover;
  background-position: 62% center;
}

.login-brand {
  width: fit-content;
  color: white;
}

.login-tree {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  color: var(--gold-light);
  display: grid;
  place-items: center;
}

.login-brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.login-brand small {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  letter-spacing: 0.13em;
}

.login-message {
  max-width: 480px;
  margin: auto 0;
}

.login-message .eyebrow {
  color: var(--gold-light);
}

.login-quote {
  margin: 20px 0 16px;
  padding: 0;
  background: none;
  box-shadow: none;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.25;
}

.login-message > span {
  color: var(--gold-light);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.login-values {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.65);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.login-panel {
  min-height: 100vh;
  position: relative;
  padding: 48px 7vw 34px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(
      circle at 92% 32%,
      rgba(200,154,75,0.08),
      transparent 24%
    ),
    var(--cream-light);
}

.back-link {
  align-self: flex-end;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.login-form-wrap {
  width: min(520px, 100%);
  margin: auto;
}

.login-form-wrap h1 {
  margin: 0;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 5vw, 68px);
  font-weight: 400;
  line-height: 1;
}

.login-subtitle {
  margin: 14px 0 38px;
  color: var(--muted);
  font-size: 17px;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form > label {
  margin-top: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.input-wrap {
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.input-wrap span {
  color: var(--gold);
  font-size: 18px;
}

.input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.input-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,154,75,0.10);
}

.login-options {
  margin: 10px 0 14px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-options a {
  color: var(--green);
  font-weight: 700;
}

.login-submit {
  min-height: 58px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.login-submit:hover {
  background: var(--green-soft);
}

.login-security {
  margin-top: 30px;
  padding: 20px;
  display: flex;
  gap: 14px;
  background: rgba(23,60,51,0.055);
  border-radius: 12px;
}

.security-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: #3c9a69;
  box-shadow: 0 0 0 5px rgba(60,154,105,0.10);
}

.login-security strong {
  color: var(--green);
}

.login-security p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.invitation-note {
  margin-top: 24px;
  padding-top: 24px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.invitation-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.invitation-note strong {
  display: block;
  margin: 3px 0 8px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.invitation-note span {
  display: block;
  max-width: 420px;
  margin: auto;
  color: var(--muted);
  font-size: 12px;
}

.login-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #7c8782;
  font-size: 11px;
}

@media (max-width: 850px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 390px;
    padding: 34px;
  }

  .login-message {
    margin: 70px 0 45px;
  }

  .login-quote {
    max-width: 600px;
  }

  .login-panel {
    min-height: auto;
    padding: 36px 8vw;
  }

  .login-form-wrap {
    margin: 60px auto;
  }
}

@media (max-width: 520px) {
  .login-visual {
    min-height: 350px;
    padding: 25px;
  }

  .login-brand strong {
    font-size: 34px;
  }

  .login-message {
    margin: 55px 0 30px;
  }

  .login-quote {
    font-size: 28px;
  }

  .login-values {
    gap: 10px;
  }

  .login-panel {
    padding: 28px 22px;
  }

  .login-options,
  .login-footer {
    flex-direction: column;
  }
}

/* ECHO LOGIN — lower family message composition */
@media (min-width: 851px) {
  .login-message {
    margin-top: auto;
    margin-bottom: 70px;
  }

  .login-values {
    margin-top: 0;
  }
}

/* ECHO LOGIN — final quote position */
@media (min-width: 851px) {
  .login-message {
    margin: 0;
    position: absolute;
    left: 54px;
    right: 45px;
    bottom: 105px;
    max-width: 500px;
  }

  .login-values {
    position: absolute;
    left: 54px;
    right: 54px;
    bottom: 32px;
  }
}

/* ECHO LOGIN — family identity */
.family-identity {
  margin: 0 0 7px;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: 0.12em;
}

.login-message .family-identity + .eyebrow {
  margin-bottom: 16px;
}

/* ECHO secure family authentication status */
.login-auth-message {
  min-height: 1.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted, #6f7471);
}

.login-auth-message[data-error="true"] {
  color: #a23c3c;
}


/* ==================================================
   ECHO PRIVATE FAMILY PORTAL V1
   ================================================== */

.echo-portal-page {
  min-height: 100vh;
  background:
    linear-gradient(
      135deg,
      #f8f4eb 0%,
      #fcfaf5 55%,
      #f2ede2 100%
    );
}

.portal-header {
  height: 82px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--green-deep);
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.portal-brand-mark {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.portal-brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold-light);
  font-size: 22px;
  letter-spacing: 0.18em;
  line-height: 1;
}

.portal-brand small {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,0.56);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.portal-header-account {
  display: flex;
  align-items: center;
  gap: 22px;
}

.portal-member-summary {
  text-align: right;
  line-height: 1.25;
}

.portal-member-summary strong {
  display: block;
  font-size: 14px;
}

.portal-member-summary span {
  color: var(--gold-light);
  font-size: 11px;
}

.portal-sign-out {
  min-height: 38px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: white;
  cursor: pointer;
}

.portal-layout {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: 250px 1fr;
}

.portal-sidebar {
  padding: 34px 22px 28px;
  background: #14342d;
  color: white;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.portal-sidebar-label {
  margin: 0 12px 12px;
  color: rgba(255,255,255,0.38);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.portal-navigation {
  display: grid;
  gap: 6px;
}

.portal-nav-item {
  min-height: 45px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 9px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 600;
}

.portal-nav-item span {
  width: 22px;
  color: var(--gold-light);
  text-align: center;
  font-size: 16px;
}

.portal-nav-item:hover,
.portal-nav-item.is-active {
  background: rgba(255,255,255,0.08);
  color: white;
}

.portal-owner-navigation {
  margin-top: 36px;
}

.portal-owner-link {
  border: 1px solid rgba(200,154,75,0.25);
}

.portal-sidebar-note {
  margin-top: 42px;
  padding: 17px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.035);
}

.portal-sidebar-note strong {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.portal-sidebar-note p {
  margin: 7px 0 0;
  color: rgba(255,255,255,0.52);
  font-size: 11px;
  line-height: 1.5;
}

.portal-main {
  min-width: 0;
  padding: 30px clamp(28px, 5vw, 72px) 45px;
}

.portal-session-status {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
}

.portal-welcome {
  min-height: 270px;
  padding: 48px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  overflow: hidden;
  position: relative;
  border-radius: 26px;
  background:
    radial-gradient(
      circle at 82% 50%,
      rgba(200,154,75,0.19),
      transparent 27%
    ),
    linear-gradient(
      115deg,
      var(--green-deep),
      var(--green) 58%,
      var(--green-soft)
    );
  color: white;
  box-shadow: var(--shadow);
}

.portal-welcome h1 {
  margin: 2px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 400;
  line-height: 1;
}

.portal-welcome-copy {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 16px;
}

.portal-emblem {
  width: 150px;
  height: 150px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(223,189,122,0.52);
  border-radius: 50%;
  box-shadow:
    0 0 0 18px rgba(255,255,255,0.025),
    0 0 70px rgba(200,154,75,0.12);
}

.portal-emblem span {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 74px;
}

.portal-section {
  padding: 48px 0 18px;
}

.portal-section-heading {
  margin-bottom: 23px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.portal-section-heading h2 {
  margin: 0;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
}

.portal-secure-pill {
  padding: 8px 12px;
  border: 1px solid rgba(23,60,51,0.12);
  border-radius: 999px;
  background: white;
  color: var(--green-soft);
  font-size: 10px;
  font-weight: 700;
}

.portal-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portal-card {
  min-height: 245px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 12px 35px rgba(16,47,40,0.055);
}

.portal-card-primary {
  background:
    linear-gradient(
      145deg,
      #173c33,
      #224b40
    );
  color: white;
}

.portal-card-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(200,154,75,0.34);
  border-radius: 50%;
  color: var(--gold);
  font-size: 20px;
}

.portal-card-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.portal-card h3 {
  margin: 6px 0 9px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.portal-card-primary h3 {
  color: white;
}

.portal-card p:not(.portal-card-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.portal-card-primary p:not(.portal-card-kicker) {
  color: rgba(255,255,255,0.68);
}

.portal-coming-soon {
  display: inline-block;
  margin-top: 20px;
  color: var(--green-soft);
  font-size: 10px;
  font-weight: 700;
}

.portal-card-action {
  margin-top: 20px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 7px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.65);
  font-size: 10px;
}

.portal-owner-panel {
  margin: 40px 0 20px;
  padding: 38px;
  border: 1px solid rgba(200,154,75,0.26);
  border-radius: 20px;
  background:
    linear-gradient(
      135deg,
      #fffdf8,
      #f6efe1
    );
}

.portal-owner-panel h2 {
  margin: 0;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
}

.portal-owner-panel > div > p:last-child {
  max-width: 700px;
  color: var(--muted);
  font-size: 13px;
}

.portal-owner-grid {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.portal-owner-grid > div {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.68);
}

.portal-owner-grid span {
  display: block;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
}

.portal-owner-grid strong {
  display: block;
  margin: 4px 0;
  color: var(--green);
  font-size: 13px;
}

.portal-owner-grid small {
  color: var(--muted);
  font-size: 10px;
}

.portal-owner-warning {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.portal-footer {
  margin-top: 40px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}


@media (max-width: 1050px) {

  .portal-card-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .portal-owner-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 760px) {

  .portal-header {
    height: auto;
    min-height: 76px;
    padding: 14px 18px;
  }

  .portal-member-summary {
    display: none;
  }

  .portal-layout {
    display: block;
  }

  .portal-sidebar {
    padding: 14px;
  }

  .portal-sidebar-label,
  .portal-sidebar-note,
  .portal-owner-navigation {
    display: none;
  }

  .portal-navigation {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .portal-nav-item {
    justify-content: center;
    padding: 0 7px;
    font-size: 10px;
  }

  .portal-main {
    padding: 22px 16px 35px;
  }

  .portal-welcome {
    min-height: auto;
    padding: 32px 26px;
  }

  .portal-emblem {
    display: none;
  }

  .portal-section-heading {
    display: block;
  }

  .portal-secure-pill {
    display: inline-block;
    margin-top: 12px;
  }

  .portal-card-grid {
    grid-template-columns: 1fr;
  }

  .portal-footer {
    display: block;
  }

  .portal-footer span {
    display: block;
    margin-top: 4px;
  }
}


/* ==================================================
   ECHO PRIVATE WORKSPACE V1
   ================================================== */

.portal-workspace-button {
  margin-top: 20px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(23,60,51,0.14);
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.portal-workspace-button:hover {
  background: var(--green-soft);
}

.private-workspace-panel {
  scroll-margin-top: 24px;
  margin: 46px 0 20px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.private-workspace-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.private-workspace-heading h2 {
  margin: 0;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
}

.private-workspace-heading p:last-child {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.workspace-private-badge {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(200,154,75,0.32);
  border-radius: 999px;
  background: #fbf5e9;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.workspace-compose-card,
.workspace-info-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--cream-light);
}

.workspace-compose-card h3,
.workspace-info-card h3,
.workspace-notes-heading h3 {
  margin: 7px 0 14px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
}

.workspace-label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.workspace-note-input {
  width: 100%;
  resize: vertical;
  min-height: 145px;
  padding: 16px;
  border: 1px solid rgba(23,60,51,0.16);
  border-radius: 10px;
  outline: none;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
}

.workspace-note-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,154,75,0.10);
}

.workspace-compose-footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

#echo-note-status {
  color: var(--muted);
  font-size: 10px;
}

.workspace-save-button {
  min-height: 40px;
  padding: 0 17px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.workspace-save-button:hover {
  background: var(--green-soft);
}

.workspace-save-button:disabled {
  opacity: 0.55;
  cursor: default;
}

.workspace-info-card p {
  color: var(--muted);
  font-size: 12px;
}

.workspace-info-card ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.workspace-info-card li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.workspace-info-card li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--gold);
}

.workspace-notes-section {
  margin-top: 30px;
}

.workspace-notes-heading {
  margin-bottom: 14px;
}

#echo-note-list {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.workspace-note-card {
  min-height: 135px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.workspace-note-card p {
  margin: 0;
  white-space: pre-wrap;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.workspace-note-card small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 9px;
}

.workspace-empty-state {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px dashed rgba(23,60,51,0.20);
  border-radius: 14px;
  background: rgba(247,242,232,0.48);
}

.workspace-empty-state strong {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.workspace-empty-state p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}


@media (max-width: 1000px) {

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  #echo-note-list {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 700px) {

  .private-workspace-panel {
    padding: 25px 18px;
  }

  .private-workspace-heading {
    display: block;
  }

  .workspace-private-badge {
    display: inline-block;
    margin-top: 14px;
  }

  .workspace-compose-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-save-button {
    width: 100%;
  }

  #echo-note-list {
    grid-template-columns: 1fr;
  }
}


/* ==================================================
   ECHO PRIVATE TALK TO ECHO V1
   ================================================== */

.portal-chat-button {
  margin-top: 20px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(223,189,122,0.25);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.portal-chat-button:hover {
  background: rgba(255,255,255,0.13);
}

.echo-private-chat-panel {
  scroll-margin-top: 24px;
  margin: 46px 0 20px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.echo-chat-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.echo-chat-heading h2 {
  margin: 0;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 49px);
  font-weight: 400;
}

.echo-chat-heading p:last-child {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.echo-chat-private-badge {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(200,154,75,0.32);
  border-radius: 999px;
  background: #fbf5e9;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.echo-chat-security-note {
  margin-top: 24px;
  padding: 15px 18px;
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: rgba(247,242,232,0.60);
}

.echo-chat-security-note strong {
  color: var(--green);
  font-size: 11px;
}

.echo-chat-security-note p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.echo-chat-message-list {
  min-height: 330px;
  max-height: 520px;
  overflow-y: auto;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background:
    linear-gradient(
      145deg,
      #faf7f0,
      #fffdf8
    );
}

.echo-chat-empty {
  min-height: 275px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  color: var(--muted);
}

.echo-chat-empty-emblem {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.echo-chat-empty strong {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.echo-chat-empty p {
  margin: 7px 0 0;
  font-size: 11px;
}

.echo-chat-message {
  width: min(78%, 720px);
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 14px;
}

.echo-chat-user {
  margin-left: auto;
  background: var(--green);
  color: white;
}

.echo-chat-assistant {
  margin-right: auto;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.echo-chat-message strong {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-light);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.echo-chat-assistant strong {
  color: var(--gold);
}

.echo-chat-message p {
  margin: 0;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.5;
}

.echo-chat-message small {
  display: block;
  margin-top: 7px;
  opacity: 0.58;
  font-size: 8px;
}

.echo-chat-composer {
  margin-top: 16px;
}

#echo-chat-input {
  width: 100%;
  min-height: 90px;
  max-height: 220px;
  resize: vertical;
  padding: 15px;
  border: 1px solid rgba(23,60,51,0.16);
  border-radius: 11px;
  outline: none;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}

#echo-chat-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,154,75,0.10);
}

.echo-chat-composer-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

#echo-chat-status {
  color: var(--muted);
  font-size: 10px;
}

.echo-chat-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.echo-chat-voice-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(23,60,51,0.18);
  border-radius: 8px;
  background: white;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.echo-chat-voice-button:hover {
  border-color: var(--gold);
  background: rgba(200,154,75,0.06);
}

.echo-chat-voice-button[data-listening="true"] {
  border-color: var(--gold);
  background: rgba(200,154,75,0.12);
}

.echo-chat-voice-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.echo-chat-send {
  min-height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.echo-chat-send:hover {
  background: var(--green-soft);
}

.echo-chat-send:disabled {
  opacity: 0.55;
  cursor: default;
}

.echo-chat-bridge-warning {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 9px;
}


@media (max-width: 700px) {

  .echo-private-chat-panel {
    padding: 25px 18px;
  }

  .echo-chat-heading {
    display: block;
  }

  .echo-chat-private-badge {
    display: inline-block;
    margin-top: 14px;
  }

  .echo-chat-message {
    width: 90%;
  }

  .echo-chat-composer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .echo-chat-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .echo-chat-send {
    width: 100%;
    grid-column: 1 / -1;
  }

  .echo-chat-voice-button {
    width: 100%;
  }
}

/* ==================================================
   ECHO portal voice-emblem polish — 2026-10-14
   Visual only. Does not alter authentication,
   profile permissions, Firestore or relay behaviour.
   ================================================== */

.echo-voice-emblem {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portal-emblem {
  overflow: hidden;
}

.echo-voice-emblem-hero {
  width: 118px;
  height: 118px;
  border-radius: 50%;
}

.echo-chat-empty-emblem {
  overflow: hidden;
}

.echo-voice-emblem-chat {
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

.echo-chat-status-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.echo-chat-thinking-emblem {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
}

.echo-chat-thinking-emblem[hidden] {
  display: none;
}

.echo-voice-emblem-status {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  animation:
    echoPortalThinkingPulse 1.15s ease-in-out infinite;
}

@keyframes echoPortalThinkingPulse {
  0% {
    opacity: 0.45;
    transform: scale(0.90);
    filter: brightness(0.90);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
    filter: brightness(1.22);
  }

  100% {
    opacity: 0.45;
    transform: scale(0.90);
    filter: brightness(0.90);
  }
}

@media (prefers-reduced-motion: reduce) {
  .echo-voice-emblem-status {
    animation: none;
  }
}

/* ==================================================
   ECHO living hero emblem states
   ================================================== */

.portal-emblem[data-echo-state="idle"]
.echo-voice-emblem-hero {
  opacity: 0.88;
  filter:
    brightness(1.02)
    drop-shadow(0 0 9px rgba(88,255,230,0.20));
  animation:
    echoHeroIdleBreath 3.4s ease-in-out infinite;
}

.portal-emblem[data-echo-state="speaking"]
.echo-voice-emblem-hero {
  opacity: 1;
  animation:
    echoHeroSpeakingGlow 0.82s ease-in-out infinite;
}

@keyframes echoHeroIdleBreath {
  0%,
  100% {
    transform: scale(0.97);
    filter:
      brightness(0.95)
      drop-shadow(0 0 8px rgba(88,255,230,0.16));
  }

  50% {
    transform: scale(1.03);
    filter:
      brightness(1.14)
      drop-shadow(0 0 18px rgba(88,255,230,0.38));
  }
}

@keyframes echoHeroSpeakingGlow {
  0%,
  100% {
    transform: scale(0.96);
    filter:
      brightness(0.95)
      saturate(1.05)
      drop-shadow(0 0 10px rgba(88,255,230,0.28));
  }

  50% {
    transform: scale(1.09);
    filter:
      brightness(1.55)
      saturate(1.35)
      drop-shadow(0 0 30px rgba(88,255,230,0.75))
      drop-shadow(0 0 50px rgba(157,76,255,0.38));
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-emblem[data-echo-state="idle"]
  .echo-voice-emblem-hero,

  .portal-emblem[data-echo-state="speaking"]
  .echo-voice-emblem-hero {
    animation: none;
  }
}


/* ECHO WEBSITE SHARED LIVING EMBLEMS V1 */

.echo-emblem-shell {
  display: inline-grid;
  place-items: center;
  overflow: visible;
}

.echo-emblem-image,
.echo-nav-emblem img {
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
  animation:
    echoSharedEmblemGlow 3.2s ease-in-out infinite;
}

.echo-nav-emblem {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

@keyframes echoSharedEmblemGlow {
  0%, 100% {
    opacity: 0.82;
    transform: scale(0.96);
    filter:
      brightness(0.95)
      drop-shadow(
        0 0 4px rgba(85,255,230,0.20)
      );
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
    filter:
      brightness(1.25)
      drop-shadow(
        0 0 12px rgba(85,255,230,0.50)
      );
  }
}

@media (prefers-reduced-motion: reduce) {
  .echo-emblem-image,
  .echo-nav-emblem img {
    animation: none;
  }
}


/* ==================================================
   ECHO FINAL SUNRISE DESIGN V1
   Decorative visual layers only.
   ================================================== */

.hero,
.login-visual {
  position: relative;
  isolation: isolate;
}

.echo-sunrise {
  position: absolute;
  z-index: 3;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.echo-sunrise-home {
  top: 17%;
  left: 76%;
}

.echo-sunrise-login {
  top: 35%;
  left: 70%;
}

.echo-sunrise-halo {
  position: absolute;
  inset: -55%;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(255,245,177,0.70) 0%,
      rgba(255,190,79,0.42) 23%,
      rgba(255,156,54,0.17) 43%,
      transparent 72%
    );
  filter: blur(12px);
  animation:
    echoSunriseHalo 4.5s ease-in-out infinite;
}

.echo-sunrise-symbol {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation:
    echoSunriseGlow 4.5s ease-in-out infinite;
}

@keyframes echoSunriseHalo {
  0%, 100% {
    opacity: 0.60;
    transform: scale(0.94);
  }

  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@keyframes echoSunriseGlow {
  0%, 100% {
    transform: scale(0.96);
    filter:
      brightness(1.15)
      drop-shadow(
        0 0 14px rgba(255,205,95,0.55)
      );
  }

  50% {
    transform: scale(1.07);
    filter:
      brightness(1.75)
      saturate(1.30)
      drop-shadow(
        0 0 35px rgba(255,223,125,0.95)
      );
  }
}

/* Keep page content above the decorative layer. */

/* Original hero and login positioning preserved. */

/* Tablet and mobile adjustments. */

@media (max-width: 900px) {
  .echo-sunrise-home {
    width: 86px;
    height: 86px;
    top: 15%;
    left: 79%;
  }

  .echo-sunrise-login {
    width: 86px;
    height: 86px;
    top: 32%;
    left: 72%;
  }
}

@media (max-width: 600px) {
  .echo-sunrise-home {
    width: 64px;
    height: 64px;
    top: 14%;
    left: 78%;
  }

  .echo-sunrise-login {
    width: 64px;
    height: 64px;
    top: 30%;
    left: 70%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .echo-sunrise-halo,
  .echo-sunrise-symbol {
    animation: none;
  }
}


/* ECHO SUNRISE POSITION REPAIR V1 */

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-quote {
  position: absolute;
  z-index: 2;
  right: 7vw;
  bottom: 54px;
}



/* Position ECHO over the homepage sunset. */

.echo-sunrise-home {
  top: 26%;
  left: 76%;
}

/* Login photograph uses a different crop. */

.echo-sunrise-login {
  top: 34%;
  left: 68%;
}

/* Mobile adjustments. */

@media (max-width: 900px) {
  .echo-sunrise-home {
    top: 24%;
    left: 76%;
  }

  .echo-sunrise-login {
    top: 32%;
    left: 67%;
  }
}

@media (max-width: 600px) {
  .echo-sunrise-home {
    top: 22%;
    left: 72%;
  }

  .echo-sunrise-login {
    top: 30%;
    left: 64%;
  }
}


/* ECHO LOGIN LAYOUT SAFETY RESTORE V1 */

.login-visual {
  display: flex;
  flex-direction: column;
}



.login-brand {
  position: relative;
  z-index: 2;
}



/* ECHO LOGIN SUNRISE — ISOLATED FINAL POSITION */

.login-visual {
  position: relative;
}

.login-brand {
  position: relative;
  z-index: 4;
}

@media (min-width: 851px) {
  .login-message {
    position: absolute;
    left: 54px;
    right: 45px;
    bottom: 105px;
    margin: 0;
    max-width: 500px;
    z-index: 4;
  }

  .login-values {
    position: absolute;
    left: 54px;
    right: 54px;
    bottom: 32px;
    z-index: 4;
  }
}

.echo-sunrise-login {
  position: absolute;
  z-index: 3;
  top: 34%;
  left: 68%;
  pointer-events: none;
}

@media (max-width: 850px) {
  .echo-sunrise-login {
    top: 28%;
    left: 72%;
  }
}

@media (max-width: 520px) {
  .echo-sunrise-login {
    top: 25%;
    left: 72%;
  }
}

/* Family information pages and keyboard navigation. */
.echo-information-page {max-width:1120px;margin:auto;padding:48px 24px;}
.echo-information-intro {max-width:760px;margin:40px 0;}
.echo-information-intro .brand-mark {width:82px;height:82px;background:var(--green-deep);}
.echo-information-intro h1 {font-family:Georgia,serif;font-size:clamp(32px,5vw,54px);line-height:1.15;color:var(--green);}
.echo-information-intro p {font-size:18px;}
.echo-information-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;}
.echo-information-card {background:var(--paper);border:1px solid var(--line);padding:28px;border-radius:var(--radius);}
.echo-information-card h2 {font-size:21px;color:var(--green);}
.echo-information-next {margin-top:40px;padding:32px;background:var(--cream);border-radius:var(--radius);}
a:focus-visible,button:focus-visible {outline:3px solid var(--gold);outline-offset:4px;}
@media(max-width:650px) {.echo-information-grid {grid-template-columns:1fr;} .echo-information-page {padding:30px 20px;}}

/* Family calendar and personal reading preferences. */
#family-calendar, #account-settings { scroll-margin-top: 24px; margin-top: 28px; }
#calendar-form input, #calendar-form textarea, #calendar-month, #portal-text-size {
 box-sizing:border-box;max-width:100%;width:100%;padding:12px;border:1px solid #cbd5cf;border-radius:10px;background:#fff;color:#193d34;font:inherit;
}
#portal-text-size {max-width:260px;}
.calendar-date-grid {display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.calendar-option {display:flex;align-items:center;gap:9px;margin:18px 0;}
.calendar-hint {font-size:0.85rem;color:#52665f;line-height:1.6;}
.calendar-actions {display:flex;flex-wrap:wrap;gap:10px;margin:14px 0;}
.calendar-actions button {cursor:pointer;min-height:42px;padding:9px 15px;border:1px solid #b9c9c0;border-radius:9px;color:#193d34;background:#fff;font:inherit;}
.calendar-actions .workspace-save-button {background:#193d34;color:#fff;}
.calendar-event {border-top:1px solid #d6dfda;padding:16px 0;overflow-wrap:anywhere;}
.calendar-event h4 {font-size:1.1rem;margin:0 0 7px;}
.calendar-event p {white-space:pre-wrap;}
.calendar-event-date {color:#52665f;font-size:.9rem;}
.calendar-event.is-cancelled {opacity:.72;}
html[data-echo-reading-size="large"] .portal-main p,
html[data-echo-reading-size="large"] .portal-main textarea,
html[data-echo-reading-size="large"] .workspace-note-card {font-size:1.12rem;line-height:1.7;}
@media(max-width:480px){.calendar-date-grid{grid-template-columns:1fr;}}

/* Owner alert controls follow the existing private-workspace layout. */
#owner-alerts h2 { color: var(--green); font-family: Georgia, serif; font-weight: 400; }
#owner-alert-device-label { display: block; width: min(100%, 420px); padding: 12px; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
#owner-alerts button { margin: 4px 8px 8px 0; white-space: normal; }
#owner-alerts button:disabled { opacity: .55; cursor: default; }
#owner-alert-devices > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 14px 0; }
#owner-alert-devices span { overflow-wrap: anywhere; }

/* Owner account preparation, without granting access. */
#owner-family-setup {scroll-margin-top:24px;}
#owner-family-setup h2 {font-family:Georgia,serif;color:var(--green);font-weight:400;}
#owner-account-form input {display:block;box-sizing:border-box;width:min(100%,480px);padding:12px;margin:0 0 16px;border:1px solid var(--line);border-radius:10px;font:inherit;background:white;color:var(--green);}
.owner-account-draft {border-top:1px solid var(--line);padding:18px 0;overflow-wrap:anywhere;}
.owner-account-draft h3 {font-size:1.1rem;margin:0 0 8px;}
.owner-account-draft p {margin:6px 0;}

.family-join-card {max-width:700px;margin:0 auto;}
.family-join-card h1 {font-family:Georgia,serif;color:var(--green);font-size:clamp(30px,5vw,44px);}
.family-join-card input,.owner-account-draft input {display:block;box-sizing:border-box;width:100%;padding:12px;margin:8px 0 16px;border:1px solid var(--line);border-radius:10px;font:inherit;background:white;color:var(--green);}
#family-invite-review {padding:20px;border:2px solid var(--gold);border-radius:12px;}

.family-join-card [hidden] {display:none !important;}
