:root {
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  color: #24463f;
  background: #f7f5ee;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #a68bd0; outline-offset: 3px; }
[hidden] { display: none !important; }
.site-shell { min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 91% 6%, #e9eedf 0, transparent 27rem), #f7f5ee; }
.site-header, main, footer { width: min(100% - 80px, 1280px); margin-inline: auto; }
.site-header { height: 90px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #dce2d5; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #1e453c; font-size: 22px; letter-spacing: -.065em; font-weight: 800; text-decoration: none; }
.brand-period { color: #9baee0; }
.brand-mark { position: relative; display: inline-block; width: 31px; height: 31px; border-radius: 11px; background: #dce9d8; transform: rotate(-9deg); }
.brand-mark::before { content: ""; position: absolute; inset: 6px; border: 5px solid #3b6d58; border-radius: 50%; }
.brand-mark span { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #eabf6d; right: 2px; top: 2px; }
.header-note, .section-aside { color: #687e72; font-size: 13px; font-weight: 600; }
.header-note { display: inline-flex; align-items: center; gap: 10px; }
.note-dot, .today-dot { display: inline-block; width: 8px; height: 8px; background: #80ab82; border-radius: 50%; }
.note-separator { color: #adbaab; }
main { min-height: calc(100vh - 160px); padding: 56px 0 100px; }
.eyebrow { margin: 0; color: #6e967d; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 800; }
.sparkle { color: #8cab7e; font-size: 17px; vertical-align: -2px; margin-right: 6px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(52px, 6.2vw, 88px); line-height: 1.04; font-weight: 700; letter-spacing: -.07em; }
h1 em { color: #789a80; font-family: Georgia, serif; font-weight: 400; letter-spacing: -.06em; }
h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.18; font-weight: 700; letter-spacing: -.055em; }
.lead { max-width: 570px; color: #687e72; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; }
.panel { background: #fffefa; border: 1px solid #e2e6db; border-radius: 28px; box-shadow: 0 14px 40px rgba(52, 79, 62, .035); }
.login-layout { min-height: 620px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .8fr); align-items: center; gap: clamp(50px, 8vw, 125px); }
.login-intro { position: relative; min-height: 590px; padding-top: 48px; }
.login-intro h1 { margin: 26px 0 24px; font-size: clamp(48px, 5.2vw, 72px); }
.orbit-art { position: absolute; left: 5%; bottom: -30px; width: 440px; height: 230px; pointer-events: none; }
.orbit-core { position: absolute; width: 218px; height: 218px; left: 94px; top: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #e4ede0, #8aab92 60%, #69917a); box-shadow: inset -20px -20px 40px #4b745c26, 20px 25px 50px #6b8b7522; }
.orbit { position: absolute; z-index: 2; left: 18px; top: 75px; width: 395px; height: 92px; border: 1.5px solid #729881; border-radius: 50%; transform: rotate(-24deg); }
.orbit-two { z-index: 0; left: 73px; top: 46px; width: 275px; height: 155px; border-color: #c9d9bf; transform: rotate(28deg); }
.orbit-sun { position: absolute; width: 67px; height: 67px; left: 303px; top: 2px; border-radius: 50%; background: #f7d886; box-shadow: 0 0 30px #f7d88670; }
.orbit-dot { position: absolute; z-index: 3; width: 18px; height: 18px; border-radius: 50%; background: #c4b3d8; left: 28px; top: 148px; }
.login-card { padding: clamp(30px, 4.5vw, 58px); }
.soft-badge { display: inline-flex; padding: 9px 14px; border-radius: 100px; color: #56735e; background: #eaf1e8; font-size: 12px; font-weight: 700; }
.login-card h2 { margin: 29px 0 12px; }
.login-card > p:not(.privacy-note):not(.error) { color: #6d8073; line-height: 1.6; max-width: 330px; }
.login-card form { margin-top: 32px; }
label { display: block; font-size: 13px; color: #3d5e4d; font-weight: 700; margin-bottom: 10px; }
label a { color: #2b7254; text-underline-offset: 3px; }
label a:hover { color: #205941; }
input, textarea, select { width: 100%; background: #fafbf7; color: #24463f; border: 1px solid #cbd9c8; border-radius: 13px; padding: 15px 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: #97a99b; }
input:focus, textarea:focus, select:focus { border-color: #84aa89; box-shadow: 0 0 0 4px #dcebdd; }
textarea { resize: vertical; line-height: 1.5; }
.primary-button { display: inline-flex; justify-content: space-between; align-items: center; gap: 22px; min-height: 50px; padding: 13px 19px; color: #fffefa; background: #285445; border: 1px solid #285445; border-radius: 13px; font-weight: 750; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-2px); background: #376d54; box-shadow: 0 8px 18px #396d5428; }
.primary-button span { font-size: 19px; font-weight: 400; line-height: 1; }
.login-card .primary-button { width: 100%; margin-top: 15px; }
.privacy-note { display: flex; gap: 8px; align-items: flex-start; margin: 28px 0 0; color: #819184; font-size: 12px; line-height: 1.5; }
.privacy-note span { color: #87ad8e; font-size: 20px; line-height: 13px; }
.error { color: #a23d4f !important; font-size: 13px; margin: 14px 0 0; }
.letter-section { display: grid; grid-template-columns: minmax(180px, .32fr) minmax(0, 1fr); gap: clamp(35px, 7vw, 105px); padding: 100px clamp(0px, 4vw, 55px) 50px; border-top: 1px solid #dce2d5; }
.letter-aside { padding-top: 10px; }
.letter-glyph { display: block; color: #b7caa8; font-size: 76px; line-height: 1; margin-top: 32px; }
.letter-body { max-width: 760px; }
.letter-body h2 { margin: 0 0 35px; font-size: clamp(35px, 4vw, 55px); line-height: 1.13; }
.letter-body h2 em { color: #789a80; font-family: Georgia, serif; font-weight: 400; }
.letter-body p { color: #526c5b; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.78; margin-bottom: 24px; }
.letter-body strong { color: #24483e; font-weight: 750; }
.letter-body a { color: #2b7254; text-underline-offset: 4px; }
.letter-end { display: flex; align-items: center; gap: 20px; margin: 38px 0 26px; color: #24483e; font-weight: 750; line-height: 1.45; }
.letter-end small { color: #839687; font-size: 12px; font-weight: 600; }
.letter-rule { width: 45px; height: 1px; background: #94b09a; }
.letter-link { display: inline-flex; gap: 14px; align-items: center; padding: 14px 18px; border: 1px solid #cbdcc9; border-radius: 12px; background: #ecf2e8; color: #2e6448 !important; font-size: 13px; font-weight: 750; text-decoration: none; }
.letter-link:hover { background: #e1eddf; }
.workspace-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; padding: 24px 0 68px; }
.workspace-hero h1 { margin: 21px 0 24px; font-size: clamp(52px, 5.5vw, 78px); }
.workspace-hero .lead { margin-bottom: 0; }
.today-chip { flex: none; display: flex; align-items: center; gap: 9px; max-width: 350px; margin-bottom: 9px; padding: 12px 16px; border: 1px solid #dce6d8; border-radius: 100px; background: #eef3e9; color: #5e7864; font-size: 12px; line-height: 1.5; }
.today-dot { flex: none; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 7px 0 0; }
.section-aside { margin-bottom: 4px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.card { position: relative; min-height: 180px; padding: 26px; overflow: hidden; background: #fffefa; border: 1px solid #e2e6db; border-radius: 22px; box-shadow: 0 10px 30px #34503e08; }
.card::after { content: ""; position: absolute; width: 105px; height: 105px; right: -40px; bottom: -50px; border-radius: 50%; background: #eaf1e4; }
.card:nth-child(2)::after, .card:nth-child(5)::after { background: #f4e9e2; }
.card:nth-child(3)::after, .card:nth-child(6)::after { background: #efebf7; }
.card-icon { width: 31px; height: 31px; display: grid; place-items: center; background: #eaf1e6; color: #5c8767; border-radius: 10px; margin-bottom: 17px; font-size: 18px; }
.card:nth-child(2) .card-icon, .card:nth-child(5) .card-icon { background: #f7ece7; color: #ad806d; }
.card:nth-child(3) .card-icon, .card:nth-child(6) .card-icon { background: #f0edf7; color: #8b78af; }
.card h3 { font-size: 14px; letter-spacing: -.015em; margin: 0; color: #65776b; font-weight: 650; }
.card .value { margin: 7px 0 4px; color: #24483e; font-size: 43px; letter-spacing: -.07em; font-weight: 700; line-height: 1; }
.card small { color: #91a194; font-size: 11px; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.columns .panel, .decisions { padding: clamp(27px, 3.5vw, 40px); }
.panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.panel-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px; font-size: 20px; }
.panel-icon.mint { background: #e9f1e6; color: #5c8a69; }
.panel-icon.lilac { background: #f0ebf8; color: #927db0; }
.panel-icon.peach { background: #f9eee8; color: #bb8a73; }
.panel-kicker { color: #9aaa9b; text-transform: uppercase; letter-spacing: .14em; font-size: 10px; font-weight: 800; }
.panel h2 { margin: 0 0 10px; }
.panel-intro { color: #78897b; line-height: 1.6; margin: 0 0 23px; font-size: 14px; }
.recommendation { padding: 25px 0; border-top: 1px solid #e5eadf; }
.recommendation h3 { margin: 0 0 8px; color: #2a5142; font-size: 19px; letter-spacing: -.04em; }
.recommendation p { color: #687a6d; font-size: 14px; line-height: 1.55; margin: 12px 0; }
.recommendation .evidence, .decision .evidence { color: #8a9c8d; font-size: 11px; line-height: 1.5; }
.recommendation > .evidence:first-of-type { color: #638873; font-weight: 700; }
.recommendation button { margin-top: 15px; padding: 11px 15px; background: #edf3e9; border: 1px solid #d5e4d2; border-radius: 10px; color: #376349; font-weight: 750; font-size: 12px; cursor: pointer; }
.recommendation button:hover { background: #dfeee0; }
.conversation { min-height: 148px; max-height: 340px; overflow: auto; padding: 3px 0 20px; }
.conversation-starter { margin-top: 7px; padding: 24px; background: #f5f3f7; border-radius: 16px; color: #8c81a0; font-size: 14px; line-height: 1.55; }
.message { padding: 15px 0; color: #546e5e; border-top: 1px solid #e7ebe3; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; font-size: 14px; }
.chat-panel form { padding-top: 19px; border-top: 1px solid #e7ebe3; }
.chat-panel textarea { margin-bottom: 12px; }
.chat-panel .primary-button { width: 100%; }
.hint { color: #93a093; font-size: 11px; line-height: 1.5; margin: 18px 0 0; }
.decisions { margin-top: 20px; }
.decision { padding: 20px 0; border-top: 1px solid #e5eadf; }
.decision h3 { margin: 0 0 7px; font-size: 18px; letter-spacing: -.035em; }
.decision p { margin: 7px 0; color: #6a7c70; font-size: 13px; line-height: 1.5; }
.decision select { display: block; width: auto; min-width: 145px; padding: 9px 12px; margin-top: 13px; font-size: 13px; }
.empty-state { color: #809182; font-size: 14px; line-height: 1.55; padding: 20px 0 4px; border-top: 1px solid #e5eadf; }
.learning-section { margin-top: 52px; }
.org-switch { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; color: #64806e; font-size: 13px; }
.org-switch select { width: auto; min-width: 180px; padding: 10px 13px; }
.org-switch button, .game-choice { border: 1px solid #d5e4d2; background: #edf3e9; color: #376349; border-radius: 10px; padding: 10px 13px; font-weight: 700; cursor: pointer; }
.game-choice { display: block; width: 100%; text-align: left; margin-top: 8px; }
.game-choice:disabled { opacity: .5; cursor: not-allowed; }
.protocols-panel { margin-top: 20px; margin-bottom: 20px; }
.protocol-item { border-top: 1px solid #e5eadf; padding: 16px 0; }
.protocol-item h3 { margin: 0 0 6px; font-size: 16px; text-transform: capitalize; }
.protocol-item p { margin: 0 0 6px; color: #6a7c70; font-size: 13px; }
.protocol-item small { display: block; color: #819184; margin-top: 6px; }
.settings-panel { margin: 20px 0; }
.settings-panel h3 { margin: 24px 0 14px; color: #315747; }
.settings-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.setting-field { display: grid; gap: 8px; color: #476454; font-size: 13px; font-weight: 700; }
.setting-field textarea { width: 100%; min-height: 80px; resize: vertical; border: 1px solid #d7e3d7; border-radius: 12px; padding: 12px; background: #fffefa; color: #28473c; font: inherit; font-weight: 400; }
.setting-field textarea:focus { outline: 2px solid #80af98; outline-offset: 2px; }
.settings-divider { margin-top: 32px; border-top: 1px solid #e5eadf; }
.settings-heading, .settings-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.settings-heading { justify-content: space-between; }
.settings-heading button, .settings-actions button:not(.primary-button) { border: 1px solid #d5e4d2; background: #edf3e9; color: #376349; border-radius: 10px; padding: 10px 13px; font-weight: 700; cursor: pointer; }
.persona-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 22px 0; border-top: 1px solid #e5eadf; }
.persona-form h4, .persona-form small, .persona-form .settings-actions { grid-column: 1 / -1; margin: 0; }
.persona-form small, #brand-status, #persona-status, .settings-actions span { color: #6a7c70; font-size: 13px; }
.learning-section .decision { background: #fffefa; border: 1px solid #e2e6db; border-radius: 17px; padding: 20px 25px; margin-bottom: 10px; }
footer { display: flex; justify-content: space-between; align-items: center; min-height: 70px; border-top: 1px solid #dce2d5; color: #819184; font-size: 12px; }
footer span:first-child { color: #315747; font-size: 16px; font-weight: 800; letter-spacing: -.06em; }
.footer-links { display: flex; align-items: center; gap: 22px; }
.footer-links a { color: #56735e; text-decoration: none; font-weight: 750; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: #285445; text-decoration: underline; text-underline-offset: 4px; }
.about-main { padding-top: 90px; }
.about-hero { max-width: 870px; padding: 25px 0 100px; }
.about-hero h1 { margin: 26px 0 30px; }
.about-hero .lead { max-width: 740px; }
.about-story { display: grid; grid-template-columns: minmax(180px, .32fr) minmax(0, 1fr); gap: clamp(35px, 7vw, 105px); padding: 80px clamp(0px, 4vw, 55px) 40px; border-top: 1px solid #dce2d5; }
.about-aside { padding-top: 10px; }
@media (max-width: 980px) {
  .login-layout { grid-template-columns: 1fr; gap: 0; }
  .login-intro { min-height: 430px; padding-top: 10px; }
  .orbit-art { right: -85px; left: auto; bottom: 0; opacity: .55; transform: scale(.8); transform-origin: bottom right; }
  .login-card { max-width: 610px; }
  .columns { grid-template-columns: 1fr; }
  .workspace-hero { align-items: flex-start; flex-direction: column; }
  .letter-section { grid-template-columns: 1fr; gap: 16px; padding-top: 70px; }
  .about-story { grid-template-columns: 1fr; gap: 16px; padding-top: 70px; }
  .letter-glyph { display: none; }
}
@media (max-width: 680px) {
  .settings-fields, .persona-form { grid-template-columns: 1fr; }
  .site-header, main, footer { width: min(100% - 36px, 1280px); }
  .site-header { height: 74px; }
  .header-note { font-size: 11px; gap: 5px; }
  .header-note .note-separator, .header-note .note-separator + * { display: none; }
  main { padding: 42px 0 70px; }
  .login-intro { min-height: 420px; padding: 0; }
  .login-intro h1 { white-space: normal; font-size: clamp(43px, 10vw, 64px); }
  .orbit-art { right: -95px; bottom: -18px; transform: scale(.62); }
  .login-card { padding: 28px; }
  .letter-section { padding: 55px 0 20px; }
  .about-main { padding-top: 42px; }
  .about-hero { padding: 0 0 60px; }
  .about-story { padding: 55px 0 20px; }
  .letter-body h2 { margin-bottom: 28px; }
  .workspace-hero { padding: 8px 0 45px; }
  .workspace-hero h1 { font-size: clamp(47px, 10vw, 66px); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { min-height: 150px; padding: 19px; }
  .card .value { font-size: 37px; }
  .section-aside { display: none; }
  footer { gap: 20px; }
  .footer-links { gap: 12px; flex-wrap: wrap; justify-content: flex-end; text-align: right; }
}
@media (max-width: 420px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 135px; }
  .orbit-art { display: none; }
  .login-intro { min-height: 0; padding-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
