:root {
  --ink: #18232e;
  --muted: #607080;
  --brand: #1c4c72;
  --brand-dark: #102d45;
  --soft: #f2f6f9;
  --line: #d8e0e7;
  --warm: #fbfaf7;
  --paper: #ffffff;
  --blue-pale: #e9f1f8;
  --danger: #9b332d;
  font-family: "Manrope", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #fff; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #4f8dc0; outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .7rem; z-index: 2; }
.skip-link:focus { left: .5rem; }

.shell { max-width: 1120px; margin: 0 auto; min-height: 100vh; padding: 1.35rem 1.5rem 3rem; }
.shell-minimal { max-width: 720px; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 2.4rem; }
.brand { align-items: center; border: 0; background: none; color: var(--brand-dark); display: flex; font-family: "Manrope", "Segoe UI", ui-sans-serif, system-ui, sans-serif; font-size: 1.35rem; font-weight: 500; gap: .46rem; letter-spacing: -.05em; padding: 0; }
.brand img { display: block; height: 43px; object-fit: contain; width: 35px; }.brand > span > span, .landing-logo p span { color: #a77c40; }
.mode-tag { border: 1px solid #cad8e4; border-radius: 999px; background: #f5f8fb; color: var(--brand-dark); font-size: .74rem; font-weight: 800; letter-spacing: .06em; padding: .42rem .7rem; }
.mode-tag.practice { background: #fff9ed; border-color: #e9d6a8; color: #745000; }

.eyebrow { color: var(--brand); font-size: .72rem; font-weight: 850; letter-spacing: .1em; margin: 0 0 .7rem; text-transform: uppercase; }
.button { border: 1px solid #9badbc; border-radius: .7rem; background: #fff; color: var(--brand-dark); font-weight: 780; min-height: 46px; padding: .7rem 1rem; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { background: var(--soft); border-color: var(--brand); transform: translateY(-1px); }
.button-primary { background: var(--brand); border-color: var(--brand); box-shadow: 0 8px 18px #1c4c721c; color: #fff; }
.button-primary:hover { background: var(--brand-dark); }
.button-secondary { background: #fff; }
.button-link { border-color: transparent; background: transparent; box-shadow: none; color: var(--brand); margin-top: .25rem; padding-inline: .1rem; text-decoration: underline; }
.button-large { font-size: 1.03rem; min-height: 58px; }
.button-small { min-height: 34px; font-size: .85rem; padding: .35rem .55rem; }

/* Local demo access */
.login-shell { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); min-height: 100vh; }
.login-brand { display: flex; flex-direction: column; justify-content: center; max-width: 680px; padding: 10vh clamp(1.5rem, 8vw, 8rem); }
.landing-logo { align-items: center; display: flex; gap: .8rem; margin: 0 0 4rem; }.landing-logo img { display: block; height: 94px; object-fit: contain; width: 76px; }.landing-logo p { color: var(--brand-dark); font-family: "Manrope", "Segoe UI", ui-sans-serif, system-ui, sans-serif; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: -.06em; line-height: 1; margin: 0; }
.login-brand h1 { color: var(--brand-dark); font-size: clamp(2.7rem, 6vw, 5.4rem); letter-spacing: -.07em; line-height: .95; margin: .15rem 0 1.4rem; max-width: 650px; }
.login-brand > p:not(.wordmark):not(.eyebrow) { color: var(--muted); font-size: 1.15rem; line-height: 1.7; max-width: 560px; }
.login-principles { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2rem; }
.login-principles span { border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .78rem; font-weight: 700; padding: .45rem .7rem; }
.access-options { align-self: center; display: grid; gap: .9rem; margin: 2rem clamp(1.5rem, 6vw, 5rem) 2rem 0; }
.access-card { background: #fff; border: 1px solid var(--line); border-radius: 1.05rem; box-shadow: 0 14px 32px #1425360c; display: grid; gap: .9rem; padding: clamp(1.35rem, 3vw, 1.8rem); }.access-card.public-access { background: #f7fafc; border-color: #d4e0e9; }
.access-card h2 { color: var(--brand-dark); font-size: 1.7rem; font-weight: 700; letter-spacing: -.05em; margin: -.15rem 0 0; }.access-card > p:not(.eyebrow):not(.login-note) { color: var(--muted); line-height: 1.55; margin: 0; }
.form-panel label { display: grid; font-size: .9rem; font-weight: 750; gap: .45rem; }.form-panel input, .form-panel textarea, .form-panel select { background: #fff; border: 1px solid #b8c6d1; border-radius: .55rem; color: var(--ink); padding: .78rem; }
.login-note { color: var(--muted); font-size: .8rem; line-height: 1.5; margin: .2rem 0 0; }

/* Home and selectors */
.hero { padding: 3rem 0 2.6rem; max-width: 720px; }
.hero-rich { align-items: center; display: grid; gap: 3rem; grid-template-columns: minmax(0, 1.22fr) minmax(290px, .78fr); max-width: none; padding: 2.2rem 0 4rem; }
.hero h1, .page-heading h1, .session h1 { color: var(--brand-dark); font-family: "Manrope", "Segoe UI", ui-sans-serif, system-ui, sans-serif; font-size: clamp(2.1rem, 7vw, 4.5rem); font-weight: 800; letter-spacing: -.075em; line-height: .98; margin: .2rem 0 1.25rem; }
.hero h1 em { color: #477aa6; font-family: Georgia, serif; font-weight: 400; }
.lead, .page-heading > p:not(.eyebrow) { color: var(--muted); font-size: 1.13rem; line-height: 1.65; max-width: 610px; }
.quick-actions, .form-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.hero > .button { margin-top: .9rem; }
.panel, .protocol-card { background: #fff; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 7px 26px #18232e0a; padding: 1.3rem; }
.panel h2, .support-panel h2 { margin-top: 0; }
.fine-print, .session-note { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.calm-card { background: linear-gradient(150deg, #183f60, #102d45 72%); border-radius: 1.45rem; box-shadow: 0 22px 50px #102d4529; color: #f4f8fb; min-height: 390px; overflow: hidden; padding: 1.35rem; position: relative; }
.calm-card::after { background: linear-gradient(130deg, transparent, #a7c9e215); content: ""; inset: 0; pointer-events: none; position: absolute; }
.calm-card-head, .calm-footer { align-items: center; display: flex; font-size: .66rem; font-weight: 800; gap: .45rem; justify-content: space-between; letter-spacing: .07em; position: relative; z-index: 1; }
.calm-card-head span:nth-child(2) { margin-right: auto; }
.soft-dot { background: #c9e1f3; border-radius: 50%; height: .55rem; width: .55rem; }
.orbit { align-items: center; display: flex; height: 182px; justify-content: center; position: relative; z-index: 1; }
.orbit::before, .orbit::after { border: 1px solid #c5dcf044; border-radius: 50%; content: ""; position: absolute; }
.orbit::before { height: 138px; width: 138px; }.orbit::after { height: 190px; width: 190px; }
.orbit span { background: radial-gradient(circle at 35% 30%, #ffffff, #82b3d9 47%, #396b98 73%); border-radius: 50%; box-shadow: 0 0 0 13px #e4f2fd0c, 0 20px 40px #061b2d6b; height: 94px; width: 94px; }
.calm-kicker { color: #b7d6ee; font-size: .67rem; font-weight: 800; letter-spacing: .12em; margin: 1.1rem 0 .45rem; position: relative; z-index: 1; }
.calm-quote { font-family: Georgia, serif; font-size: 1.28rem; line-height: 1.35; margin: 0; max-width: 270px; position: relative; z-index: 1; }
.calm-footer { border-top: 1px solid #c5dcf033; bottom: 1.35rem; color: #c3d9eb; left: 1.35rem; padding-top: .85rem; position: absolute; right: 1.35rem; }
.home-details { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.principle { border-right: 1px solid var(--line); display: grid; gap: .85rem; grid-template-columns: auto 1fr; padding: 1.7rem 1.5rem 1.7rem 0; }
.principle + .principle { padding-left: 1.5rem; }.principle:last-child { border-right: 0; }
.principle-number { color: #729fc5; font-family: Georgia, serif; font-size: 1.4rem; }
.principle h2 { color: var(--brand-dark); font-size: 1.05rem; margin: 0 0 .45rem; }.principle p { color: var(--muted); font-size: .9rem; line-height: 1.6; margin: 0; }
.home-note { align-items: baseline; background: #f3f7fa; border: 1px solid #e0e8ee; border-radius: .85rem; color: #506576; display: flex; font-size: .86rem; gap: .7rem; line-height: 1.5; margin-top: 1.4rem; padding: .85rem 1rem; }.home-note strong { color: var(--brand-dark); white-space: nowrap; }
.page-heading { margin: 1rem 0 2rem; }.page-heading h1 { font-size: clamp(2rem, 6vw, 3.3rem); }
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); margin-bottom: 1.4rem; }
.protocol-card { align-items: flex-start; border-top: 4px solid #7ca7cb; display: flex; flex-direction: column; }.protocol-card:nth-child(2) { border-top-color: #b7865d; }.protocol-card:nth-child(3) { border-top-color: #917ca5; }
.protocol-card h2 { font-size: 1.35rem; line-height: 1.16; margin: .1rem 0 .6rem; }.protocol-card p:not(.eyebrow):not(.status) { color: var(--muted); flex: 1; line-height: 1.5; }.protocol-card .button { width: 100%; }.protocol-card.disabled { opacity: .62; }
.status { background: #eaf2f9; border-radius: 999px; color: #24557e; font-size: .78rem; font-weight: 700; padding: .24rem .55rem; }.status.draft { background: #fff6df; color: #745000; }

/* Protocol execution */
.session { max-width: 620px; padding: 2rem 0 0; }.session .progress { color: var(--muted); display: flex; font-size: .88rem; justify-content: space-between; margin-bottom: 2rem; }
.session h1 { font-size: clamp(2rem, 7vw, 3.5rem); }.instruction { font-size: 1.27rem; line-height: 1.55; max-width: 600px; }
.actions { display: grid; gap: .75rem; margin: 2rem 0 1rem; }.actions .button { text-align: left; }
.orientation-card { align-items: center; background: linear-gradient(135deg, #f4f8fb, #fff); border: 1px solid #d7e4ee; border-radius: 1.15rem; display: grid; gap: 1.25rem; grid-template-columns: auto 1fr; margin-top: 1.7rem; min-height: 164px; overflow: hidden; padding: 1.35rem; position: relative; }
.orientation-card::after { background: radial-gradient(circle, #80afd51c 0 23%, transparent 24% 100%); content: ""; height: 240px; position: absolute; right: -50px; top: -72px; width: 240px; }
.orientation-mark { align-items: center; background: #d9e9f5; border-radius: 50%; display: flex; height: 82px; justify-content: center; overflow: hidden; position: relative; width: 82px; z-index: 1; }.orientation-mark::before, .orientation-mark::after { border: 1px solid #4f86b46b; border-radius: 50%; content: ""; position: absolute; }.orientation-mark::before { height: 52px; width: 52px; }.orientation-mark::after { height: 68px; width: 68px; }.orientation-mark span { background: #3f759f; border-radius: 50%; box-shadow: 0 0 0 9px #ffffff8f; height: 17px; width: 17px; }
.orientation-look .orientation-mark { background: #edf1e4; }.orientation-look .orientation-mark::before, .orientation-look .orientation-mark::after { border-color: #758d506e; }.orientation-look .orientation-mark span { background: #718955; height: 24px; width: 24px; }.orientation-place .orientation-mark { background: #f3e9e1; }.orientation-place .orientation-mark::before { border-radius: 47% 53% 50% 50%; height: 48px; width: 56px; }.orientation-place .orientation-mark::after { border-color: #9a72576b; border-radius: 40% 60% 45% 55%; height: 66px; width: 70px; }.orientation-place .orientation-mark span { background: #966e53; }
.orientation-label { color: var(--brand); font-size: .69rem; font-weight: 850; letter-spacing: .11em; margin: 0 0 .55rem; }.orientation-prompt { color: #344d61; font-family: Georgia, serif; font-size: 1.18rem; line-height: 1.45; margin: 0; max-width: 410px; position: relative; z-index: 1; }
.orientation-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .15rem .9rem; margin-top: 1.25rem; }.orientation-actions .button { min-height: auto; padding: .55rem .75rem; }.orientation-actions .button:first-child { border-color: #b2c8da; color: #274f70; font-size: .92rem; }.orientation-actions .button-link { color: var(--muted); font-size: .88rem; margin: 0; text-decoration: none; }.orientation-actions .button-link:hover { background: transparent; color: var(--brand); text-decoration: underline; transform: none; }
.exit { background: transparent; border: 0; color: var(--muted); display: block; margin: 2rem auto; text-decoration: underline; }
.practice-note { border-left: 4px solid #c88a00; color: #735100; padding-left: .8rem; }
.emergency-banner { background: #fff1e9; border-left: 4px solid var(--danger); color: #6f211d; line-height: 1.45; margin: 0 0 1.5rem; padding: .8rem 1rem; }
.resource { align-items: center; background: var(--warm); border: 1px solid #eee7dc; border-radius: .8rem; display: flex; flex-wrap: wrap; gap: .7rem; justify-content: space-between; margin-top: 1.5rem; padding: 1rem; }.resource span { color: var(--muted); display: block; font-size: .9rem; }.resource strong { font-size: 1.6rem; }.audio-resource { background: #f6f8fb; border-color: #dce5ed; }.audio-resource > div { max-width: 330px; }.audio-resource strong { color: var(--brand-dark); display: block; font-family: Georgia, serif; font-size: 1.2rem; font-weight: 400; margin-top: .22rem; }.audio-resource .fine-print { margin: .4rem 0 0; }.audio-resource audio { height: 38px; max-width: 100%; }
.breathing-card { align-items: center; background: #f3f7fb; border: 1px solid #d6e2ed; border-radius: 1rem; display: flex; gap: 1.15rem; margin-top: 1.5rem; padding: 1rem; }.breathing-card p { margin: .25rem 0; }.breathing-label { color: var(--brand); font-size: .7rem; font-weight: 800; letter-spacing: .09em; }
.breathing-orb { align-items: center; background: #dbeaf5; border-radius: 50%; display: flex; flex: 0 0 auto; height: 104px; justify-content: center; position: relative; width: 104px; }.breathing-orb::before { border: 1px solid #5686aa66; border-radius: 50%; content: ""; height: 76px; position: absolute; width: 76px; }.breathing-orb span { animation: breathe 10s ease-in-out infinite; background: radial-gradient(circle at 38% 30%, #fff, #8fbcdd 52%, #3972a3); border-radius: 50%; height: 48px; width: 48px; }
.grounding-progress { align-items: center; background: #f5f8fb; border: 1px solid #dbe5ed; border-radius: .75rem; display: flex; gap: .8rem; justify-content: space-between; margin-top: 1.5rem; padding: .85rem 1rem; }.grounding-progress > span { color: var(--brand); font-size: .68rem; font-weight: 800; letter-spacing: .08em; }.grounding-progress > div { display: flex; gap: .3rem; }.grounding-progress div span { background: #d1dce5; border-radius: 99px; height: .42rem; width: .42rem; }.grounding-progress div span.complete { background: #3972a3; }.grounding-progress strong { color: var(--muted); font-size: .8rem; }.timer-resource { margin-top: .75rem; }
.support-panel { background: #f3f7fb; border: 1px solid #dae5ed; border-radius: .9rem; margin-top: 1.4rem; padding: 1rem; }.support-list { display: grid; gap: .55rem; }.support-list > div { align-items: center; background: #fff; border: 1px solid #e1e8ee; border-radius: .6rem; display: grid; gap: .2rem; grid-template-columns: 1fr auto; padding: .75rem; }.support-list span { color: var(--muted); font-size: .88rem; grid-column: 1; }.support-list .button { grid-column: 2; grid-row: 1 / span 2; }.message-template { background: #fff; border-left: 3px solid var(--brand); line-height: 1.45; padding: .7rem; }.places { color: var(--muted); line-height: 1.55; }
.form-panel { display: grid; gap: 1rem; max-width: 700px; }.close { margin: 5rem auto; text-align: center; }.close .instruction { margin-inline: auto; }
.configuration-guide { max-width: 700px; }.configuration-guide ol { color: #40586b; display: grid; gap: .8rem; line-height: 1.55; margin: 0 0 1.5rem; padding-left: 1.4rem; }.public-support p { color: #40586b; line-height: 1.55; margin-bottom: 0; }

@media (max-width: 760px) {
  .shell { padding-inline: 1rem; }.topbar { margin-bottom: 1rem; }
  .login-shell { grid-template-columns: 1fr; }.login-brand { min-height: auto; padding: 2.6rem 1.4rem 1.5rem; }.landing-logo { margin-bottom: 2.2rem; }.login-brand h1 { font-size: clamp(2.6rem, 14vw, 4rem); }.access-options { margin: 1rem; }
  .hero-rich { gap: 1.8rem; grid-template-columns: 1fr; padding-top: 2rem; }.calm-card { min-height: 330px; }.home-details { grid-template-columns: 1fr; }.principle, .principle + .principle { border-bottom: 1px solid var(--line); border-right: 0; padding: 1.25rem 0; }.principle:last-child { border-bottom: 0; }.home-note { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .quick-actions, .form-actions { display: grid; }.quick-actions .button, .form-actions .button { width: 100%; }.session .progress { gap: .8rem; }.orientation-card { align-items: flex-start; grid-template-columns: 1fr; min-height: 0; }.orientation-actions { align-items: flex-start; flex-direction: column; gap: .35rem; }.orientation-actions .button:first-child { width: 100%; }.support-list > div { grid-template-columns: 1fr; }.support-list .button { grid-column: 1; grid-row: auto; width: 100%; }.audio-resource .button { margin-left: 0; width: 100%; }.breathing-card { align-items: flex-start; flex-direction: column; }
}

@keyframes breathe { 0%, 100% { transform: scale(.8); } 40%, 60% { transform: scale(1.45); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
