:root {
  color-scheme: light;
  --bg: #123c41;
  --panel: #fbf7eb;
  --text: #344b3d;
  --muted: #68735e;
  --line: #c9cfb69c;
  --accent: #426d58;
  --paper-shadow: 0 18px 60px #344b3d1a, 0 2px 7px #344b3d12;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); min-width: 320px; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid #9aaf79; outline-offset: 3px;
}
button { transition: background-color .15s, box-shadow .15s; }
.app-header { height: 80px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #f4ecd1; }
.app-header .findings-button { color: #e0e6d0; }
.app-header .primary-button { background: #e6d9a9; color: #234e49; border-color: #f3e7bd; box-shadow: 0 3px 12px #07272d33; }
.app-header .primary-button:hover:not(:disabled) { background: #f2e7c4; }
.header-actions { display: flex; align-items: center; gap: 18px; min-width: 0; }
.header-actions .primary-button { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.findings-button { display: flex; align-items: center; gap: 7px; border: 0; background: transparent; color: #526c54; font-size: 12px; padding: 11px 5px; }
.findings-button span { border-radius: 50%; background: #d8e0c5; color: #345c43; padding: 3px 6px; font-size: 10px; }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand > span { display: grid; place-items: center; width: 39px; height: 43px; color: #ead9a2; background: #2c5750; border: 1px solid #a8ba89; border-radius: 17px 17px 12px 12px; font: italic 28px Georgia, serif; box-shadow: inset 0 0 0 3px #20473f; }
.brand strong { font: bold 24px Georgia, serif; letter-spacing: -.045em; }
.brand small { display: block; font: 9px ui-sans-serif, sans-serif; color: #b9c8b0; letter-spacing: .045em; margin-top: 4px; }
.primary-button { background: var(--accent); color: #fff8e5; border: 1px solid #345741; border-radius: 12px; padding: 12px 20px; font-size: 13px; font-weight: 600; box-shadow: inset 0 1px #96b49866, 0 3px 0 #31533b20; }
.primary-button:hover:not(:disabled) { background: #345b47; box-shadow: 0 4px 10px #36584028; }
main { padding: 0 18px 18px; }
.world-shell { position: relative; border: 1px solid #719787; border-radius: 24px; overflow: hidden; background: #80aa86; box-shadow: 0 12px 45px #062d3555; }
.world-shell::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 75px #0b534517; }
.floor-stage { position: relative; height: calc(100dvh - 100px); min-height: 440px; overflow: hidden; isolation: isolate; }
.floor-canvas, .floor-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.floor-canvas canvas { display: block; touch-action: none; }
.arrival-artwork { display: none; position: absolute; inset: 0; pointer-events: none; }
.arrival-artwork > img { width: 100%; height: 100%; object-fit: cover; object-position: 57% 50%; }
.world-shell:has(#welcomeCard:not([hidden])) .arrival-artwork,
body[data-world-loading] .arrival-artwork,
body:has(#loginDialog[open]) .arrival-artwork { display: block; }
.world-shell:has(#welcomeCard:not([hidden])) :is(.floor-canvas, .floor-overlay, .map-place, .map-controls),
body[data-world-loading] :is(.floor-canvas, .floor-overlay, .map-place, .map-controls) { visibility: hidden; }
body:has(#loginDialog[open]) :is(.floor-canvas, .floor-overlay, .map-place, .map-controls, .world-status) { visibility: hidden; }
.artwork-caption { position: absolute; right: 24px; bottom: 15px; color: #dfebce; font-size: 9px; letter-spacing: .05em; text-shadow: 0 1px 4px #083b3e; }
.arrival-copy { display: none; position: absolute; top: 14%; left: 5%; color: #fff1c9; text-shadow: 0 3px 24px #15414b; }
.arrival-copy > p { font-size: 10px; letter-spacing: .22em; }
.arrival-copy h1 { font: 500 clamp(48px, 5.5vw, 88px)/1.04 Georgia, serif; letter-spacing: -.055em; margin: 25px 0; }
.arrival-copy > span { font-size: 15px; line-height: 1.8; }
body:has(#loginDialog[open]) .arrival-copy { display: block; }
#loginDialog { margin-right: 5vw; width: min(440px, calc(100% - 28px)); background: #fbf7ebf5; }
#loginDialog::backdrop { backdrop-filter: none; background: linear-gradient(90deg, #062e3633, #062e3600 50%, #062e3655); }
.welcome-explore { width: 100%; background: none; border: 0; color: #567b65; padding: 9px 6px 0; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.floor-overlay { pointer-events: none; overflow: hidden; }
.map-place { position: absolute; top: 22px; left: 24px; background: #fcf4dded; border: 1px solid #b8c5a8; border-radius: 12px; padding: 12px 17px; display: grid; gap: 3px; pointer-events: none; box-shadow: 0 4px 12px #49634612; }
.map-kicker { font-size: 7px; letter-spacing: .15em; color: #8b9278; }
.map-place strong { font: 18px Georgia, serif; font-weight: 600; }
.map-place small { color: #7e8b72; font-size: 9px; text-transform: capitalize; }
.map-controls { position: absolute; top: 22px; right: 24px; display: flex; gap: 7px; }
.map-controls button { border: 1px solid #bbc6a8; border-radius: 50%; background: #faf4e4f2; min-width: 36px; height: 36px; padding: 0 11px; font-size: 16px; box-shadow: 0 2px 5px #4e644b15; }
.map-controls button:hover { background: #e7edda; }
#followAgent, #locationIndicator { border-radius: 12px; font-size: 11px; }
#openDialogue { position: absolute; top: max(10px, calc(var(--map-height, 400px) - 50px)); right: 15px; z-index: 2500; border: 1px solid #a9bc9a; border-radius: 12px; padding: 10px 14px; background: #fff8e8f5; color: #436c51; font-size: 12px; box-shadow: 0 3px 12px #2b50312b; }
#locationIndicator { border-color: #c39e65; color: #795830; background: #fff0c8; }
.world-status { position: absolute; bottom: 137px; left: 50%; transform: translateX(-50%); margin: 0; padding: 8px 17px; border: 1px solid #b8c5a7; border-radius: 20px; background: #fbf4e0ed; color: #536b51; font-size: 11px; text-align: center; max-width: min(640px, calc(100% - 28px)); width: max-content; pointer-events: none; }
.world-shell:has(#welcomeCard:not([hidden])) .world-status { display: none; }
.task-composer { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: minmax(0, 1fr) 128px auto; align-items: center; gap: 8px 10px; width: min(900px, calc(100% - 36px)); padding: 13px 14px 10px; border: 1px solid #b7c4a2; border-radius: 18px; background: #fcf7e8f7; box-shadow: var(--paper-shadow); }
.task-composer-label { grid-column: 1 / -1; font-size: 8px; letter-spacing: .12em; color: #8c947a; padding-left: 3px; }
.task-composer select { width: 100%; min-width: 0; background: #e6ebd7; color: #4f6a4b; border: 1px solid #c5cfb4; border-radius: 9px; padding: 10px 7px; font-size: 11px; cursor: pointer; }
.task-composer input { min-width: 0; width: auto; padding: 10px 7px; border-color: transparent; background: transparent; }
.task-composer .primary-button { padding: 11px 19px; }
.task-suggestions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.task-suggestions button { background: transparent; border: 0; color: #7e8971; font-size: 9px; padding: 3px 5px; }
.task-suggestions button::before { content: "＋ "; color: #8ca879; }
.task-allowance { grid-column: 1 / -1; color: #66795f; font-size: 10px; line-height: 1.4; }
.launch-readiness p { font-size: 12px; line-height: 1.6; padding: 8px 10px; border-left: 3px solid #8eaa78; background: #edf2df; }
.launch-readiness p[data-ready="false"] { border-color: #b99159; background: #f4ead2; }
.world-shell:has(#taskForm:not([hidden])) { display: grid; grid-template-rows: minmax(300px, 1fr) auto auto; height: calc(100dvh - 100px); min-height: 490px; background: #f7f2e3; }
.world-shell:has(#taskForm:not([hidden])) .floor-stage { height: 100%; min-height: 0; }
.world-shell:has(#taskForm:not([hidden])) .world-status { position: relative; bottom: auto; left: auto; transform: none; justify-self: center; margin: 8px 0 0; }
.world-shell .task-composer { position: relative; bottom: auto; left: auto; transform: none; justify-self: center; margin: 8px 0 12px; }
.welcome-card { position: absolute; bottom: 40px; left: 38px; width: 350px; padding: 25px 28px 22px; border: 1px solid #d7ddb9; border-radius: 8px 27px 12px 25px; background: linear-gradient(135deg, #fffbeaf5, #e9efd9ed); backdrop-filter: blur(8px); box-shadow: 0 18px 70px #153e4166; }
.welcome-card::before { content: ""; position: absolute; width: 76px; height: 18px; background: #a7bb8977; top: -9px; left: calc(50% - 38px); transform: rotate(-3deg); }
@media (min-width: 601px) and (max-height: 850px) {
  .welcome-card { max-height: calc(100% - 138px); overflow-y: auto; overscroll-behavior: contain; }
  .welcome-card .welcome-portrait { height: 118px; }
  .welcome-card .welcome-portrait canvas { width: 88px; height: 117px; }
  .welcome-card .portrait-orbit { width: 108px; height: 108px; }
}
.welcome-card h1 { position: relative; z-index: 1; margin: 9px 0 0; font: 44px/1.04 Georgia, serif; letter-spacing: -.055em; color: #3e634a; }
.welcome-card h1 em { color: #9e7955; font-weight: 400; }
.welcome-card > p:not(.eyebrow) { color: #7c816c; font-size: 12px; line-height: 1.75; margin: 8px 0 15px; }
.welcome-card > small { display: block; color: #788368; font-size: 10px; line-height: 1.5; margin-top: 12px; }
.welcome-card > .primary-button { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.welcome-portrait { position: relative; height: 186px; display: flex; justify-content: center; align-items: center; margin-top: 7px; background: radial-gradient(ellipse at 50% 60%, #d9e8ba 0, #e9eedb88 48%, transparent 70%); }
.welcome-portrait canvas { position: relative; width: 132px; height: 176px; animation: portrait-breathe 5s ease-in-out infinite; }
.portrait-orbit { position: absolute; width: 160px; height: 160px; border: 1px solid #a9bc8877; border-radius: 50%; transform: rotate(-18deg) scaleX(1.35); }
.orbit-two { width: 176px; height: 150px; transform: rotate(24deg) scaleX(1.2); border-style: dashed; border-color: #bbaf8766; }
.portrait-orbit::before, .portrait-orbit::after { content: "✦"; position: absolute; color: #be9b58; font-style: normal; font-size: 16px; left: 14px; top: 11px; }
.portrait-orbit::after { left: auto; top: auto; right: 10px; bottom: 9px; color: #87a164; font-size: 12px; }
.welcome-portrait span { position: absolute; right: -6px; bottom: 16px; width: 112px; font: italic 13px/1.4 Georgia, serif; color: #8d8b6a; transform: rotate(-7deg); }
.welcome-wishes { margin-top: 12px; display: grid; gap: 4px; }
.welcome-wishes button { border: 0; border-bottom: 1px dashed #cbd0b5; text-align: left; padding: 8px 0; background: transparent; font-size: 11px; color: #627b58; }
.welcome-wishes button::before { content: "↗ "; color: #a3ad83; margin-right: 4px; }
.agent-badge { position: absolute; top: 120px; left: 24px; width: 260px; padding: 6px 12px; border: 1px solid #c3ceb0; border-radius: 18px; background: #fcf7e6ed; box-shadow: 0 8px 24px #244f3c22; backdrop-filter: blur(10px); }
.journey-panel { margin: 0; font-size: 11px; }
.journey-panel[open] { max-height: min(370px, 48dvh); overflow-y: auto; }
.journey-panel > summary { list-style: none; }
.journey-panel > summary::-webkit-details-marker { display: none; }
.badge-expand { margin-left: auto; font: 18px Georgia, serif; transition: transform .2s; }
.journey-panel[open] .badge-expand { transform: rotate(180deg); }
#journeyTitle { font: 10px/1.4 ui-sans-serif, sans-serif; max-width: 180px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.editor-tools-entry { display: block; width: 100%; text-align: left; padding: 17px 18px; margin: 18px 0; border: 1px solid #b9c8a6; border-radius: 14px; background: linear-gradient(120deg, #e8efda, #f9f3df); color: #3b654d; font-size: 14px; }
.editor-tools-entry small { display: block; margin-top: 5px; font-size: 11px; color: #748669; }
.task-results h3 { font: 24px Georgia, serif; }
.weather-location { padding: 14px; border: 1px solid #c4d0b4; border-radius: 12px; background: #f7f6e9; }
.connector-help { padding: 12px; border: 1px solid #d4c5a2; border-radius: 10px; background: #f8f0db; }
.connector-help code { display: block; margin: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; font-size: 11px; }
.weather-city-results { display: grid; gap: 7px; margin: 10px 0; }
.weather-city-results button { text-align: left; border: 1px solid #c7d4b8; border-radius: 8px; background: #edf3e3; overflow-wrap: anywhere; }
.work-artifact summary { cursor: pointer; color: #456f54; font-weight: 600; overflow-wrap: anywhere; }
.work-artifact pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow-y: auto; font: 12px/1.7 ui-monospace, monospace; padding: 12px; background: #f7f5e8; border-radius: 8px; }
.work-artifact a { display: block; font-size: 11px; overflow-wrap: anywhere; margin: 7px 0; }
.teamwork-dialog { width: min(760px, calc(100% - 28px)); }
.network-dialog { width: min(520px, calc(100% - 24px)); }
.network-dialog h2 { font: 30px Georgia, serif; margin: 0 20px 16px 0; }
.network-dialog h3, .network-dialog h4 { color: #446d52; }
.network-dialog select { padding: 10px; background: #fffdf5; color: #455e46; border: 1px solid #b9c9a8; border-radius: 8px; }
.network-card, .network-proposal { margin: 12px 0; padding: 16px; border: 1px solid #c5d1b4; border-radius: 12px; background: #f5f5e7; }
.network-proposal:empty { display: none; }
#networkRequestTitle { overflow-wrap: anywhere; }
.network-card p, .network-proposal p, .network-proposal li { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.7; }
.network-dialog label { display: block; margin: 9px 0; }
.network-dialog strong { overflow-wrap: anywhere; }
.network-dialog .account-form { gap: 6px; }
.network-dialog .intro-consent { display: flex; margin: 8px 0; }
.network-dialog label { margin: 5px 0; font-size: 12px; }
.network-dialog input, .network-dialog textarea { padding: 9px 10px; }
.network-dialog .native-section { margin: 10px 0; padding: 10px 0; }
.network-dialog .native-section > summary { font-size: 15px; }
.network-dialog h3 { margin: 10px 0 6px; font-size: 18px; }
.network-dialog h2 { font-size: 23px; margin-bottom: 8px; }
.network-task-setup { padding: 0; border: 0; background: transparent; }
.network-task-setup ul { margin: 8px 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.network-inline-field { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.network-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.network-actions .primary-button, .network-actions .quiet-button { padding: 8px 12px; font-size: 12px; }
#networkTaskSetup .intro-consent { margin: 6px 0; font-size: 12px; line-height: 1.45; }
#networkTaskSetup .field-hint, #networkRequestStatus { margin: 6px 0; font-size: 12px; line-height: 1.45; }
#networkTaskSetup textarea { margin: 4px 0; padding: 8px 10px; line-height: 1.45; }
#networkRequestTitle { padding-right: 22px; margin-top: 0; font-size: 20px; line-height: 1.3; }
.network-task-setup details > summary { cursor: pointer; font-size: 12px; color: #4f6a4b; }
.network-task-setup details[open] > summary { margin-bottom: 8px; }
#networkRefresh { font-size: 11px; padding: 4px 6px; }
#networkContacts { display: flex; flex-wrap: wrap; gap: 6px 14px; }
#networkContacts p { font-size: 12px; }
#networkChooseContacts, #networkContacts button { font-size: 12px; padding: 4px 7px; }
#networkContacts button { border: 1px solid #c5d1b4; border-radius: 12px; }
.network-inline-field { flex-wrap: wrap; }
.contacts-dialog { width: min(460px, calc(100% - 24px)); }
.contacts-dialog h2 { margin: 0 28px 12px 0; font: 23px Georgia, serif; }
.contacts-dialog .dialog-close { position: sticky; float: right; top: 0; margin: -8px -8px 0 0; }
#contactSearch { margin: 0 0 10px; padding: 9px 10px; }
#contactList { max-height: 45vh; overflow-y: auto; }
.contact-row { display: flex; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.contact-name input { width: 16px; margin: 0; }
.contact-row button { padding: 5px 7px; font-size: 12px; }
#contactsApply { margin-top: 12px; float: right; }
#toast button { margin-left: 10px; padding: 4px 8px; border: 1px solid currentColor; border-radius: 6px; color: inherit; font-size: 12px; }
.chat-workspace { width: min(1200px, calc(100% - 32px)); margin: 10px auto 20px; }
.chat-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); height: calc(100dvh - 112px); min-height: 440px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.chat-sidebar { min-height: 0; overflow-y: auto; padding: 16px 12px; border-right: 1px solid var(--line); background: #f0f1e5; }
.chat-sidebar-heading, .chat-conversation-heading { display: flex; align-items: center; gap: 10px; }
.chat-sidebar-heading h1 { margin: 0; flex: 1; font-size: 18px; font-weight: 650; }
.chat-sidebar-heading button { font-size: 12px; }
#chatSearch { padding: 9px 10px; margin: 14px 0 8px; }
.chat-filter { display: flex; align-items: center; gap: 6px; margin: 6px 0 12px; font-size: 12px; color: var(--muted); }
.chat-filter input { width: 14px; margin: 0; }
.chat-list-item { display: flex; gap: 9px; align-items: center; width: 100%; padding: 12px 8px; text-align: left; border-radius: 10px; border: 0; background: transparent; color: var(--text); }
.chat-list-item[data-active="true"] { background: #dee8d5; }
.chat-list-row { display: flex; align-items: center; min-width: 0; }
.chat-list-row > .chat-list-item { flex: 1; min-width: 0; width: 0; }
.chat-sidebar .chat-list-remove { flex: 0 0 32px; width: 32px; min-height: 36px; padding: 4px; font-size: 18px; color: var(--muted); border-radius: 8px; }
.chat-list-remove:hover, .chat-list-remove:focus-visible { background: #e5e7da; color: var(--text); }
.chat-question-controls { display: grid; gap: 8px; }
.chat-question-controls:empty { display: none; }
.chat-full-plan { margin-top: 10px; }
.chat-full-plan summary { cursor: pointer; font-weight: 600; }
.chat-full-plan ol { padding-left: 20px; }
.chat-full-plan li { margin: 12px 0; }
.chat-full-plan li > strong, .chat-full-plan li > small { display: block; }
.chat-full-plan p { margin: 5px 0; }
.chat-full-plan a { display: inline-block; margin: 4px 10px 4px 0; overflow-wrap: anywhere; }
.plan-gap { padding-left: 8px; border-left: 2px solid #b88f55; }
.chat-private-review { font-size: 13px; color: var(--muted); }
.website-view { display: grid; gap: 10px; }
.website-frame { width: 100%; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.website-viewport { max-height: 60vh; overflow: auto; }
.website-frame { max-width: none; }
.website-controls, .website-manual { display: flex; flex-wrap: wrap; gap: 7px; }
.website-manual select, .website-manual input { width: 100%; }
.chat-question-controls > button { justify-self: start; }
.chat-action-dialog .chat-question-option { display: flex; align-items: center; gap: 8px; margin: 0; }
.chat-action-dialog .chat-question-option input { width: auto; margin: 0; }
.chat-avatar { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #d3dfc5; font: 16px Georgia, serif; }
.chat-list-text { flex: 1; min-width: 0; }
.chat-list-text strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.chat-list-text small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.chat-unread { font-size: 12px; border-radius: 12px; padding: 3px 6px; background: #426f57; color: white; }
.chat-conversation { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #faf7eb; }
.chat-conversation-heading { padding: 11px 18px; border-bottom: 1px solid var(--line); background: #f5f3e7; }
.chat-conversation-heading > div { flex: 1; min-width: 0; }
.chat-conversation-heading > button { font-size: 11px; padding: 5px 7px; }
.chat-roster { position: relative; font-size: 11px; color: var(--muted); }
.chat-roster > summary { cursor: pointer; }
.chat-roster > div { position: absolute; z-index: 5; top: 24px; right: 0; width: 210px; max-height: 240px; overflow-y: auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf5; box-shadow: var(--paper-shadow); }
.chat-roster p { font-size: 12px; margin: 8px 0; }
.chat-conversation-heading h2 { font-size: 16px; margin: 0; overflow-wrap: anywhere; }
.chat-conversation-heading p { font-size: 12px; margin: 4px 0 0; color: var(--muted); }
#chatBack { display: none; }
#chatError { margin: 8px 16px; }
.chat-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chat-messages { background: radial-gradient(ellipse at 92% 15%, #efd6d219, transparent 55%), radial-gradient(ellipse at 5% 80%, #c6d9ce25, transparent 60%); }
.chat-nook { position: relative; height: 68px; flex: 0 0 68px; overflow: hidden; border-bottom: 1px solid #ccd3b5; background: linear-gradient(180deg, #d5e8df, #f1ebce 75%, #c4d5a7); }
.chat-nook::before, .chat-nook::after { content: ""; position: absolute; bottom: -38px; width: 75%; height: 80px; border-radius: 50%; background: #acc69b88; }
.chat-nook::before { left: -20%; transform: rotate(6deg); }
.chat-nook::after { right: -22%; bottom: -45px; background: #93b8a16e; transform: rotate(-8deg); }
.chat-nook-moon { position: absolute; top: 15px; right: 13%; width: 25px; height: 25px; border-radius: 50%; background: #fff8dc; box-shadow: 0 0 22px #ffefae88; }
.chat-nook-fireflies { position: absolute; inset: 0; pointer-events: none; opacity: .7; background-image: radial-gradient(circle at 15% 36%, #fff4bf 0 2px, transparent 3px), radial-gradient(circle at 76% 60%, #fff0a9 0 1px, transparent 3px), radial-gradient(circle at 88% 29%, #ffeac1 0 1px, transparent 2px), radial-gradient(circle at 29% 73%, #fff2b9 0 1px, transparent 3px); animation: conversation-fireflies 7s ease-in-out infinite alternate; }
.chat-companions { position: relative; z-index: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 4vw, 36px); padding: 4px 12px 7px; }
.chat-companion { position: relative; flex: 0 1 62px; min-width: 0; margin: 0; text-align: center; }
.chat-keepsake-star { position: absolute; right: 5px; bottom: 19px; color: #a16a24; font-size: 13px; text-shadow: 0 0 8px #fff4ac; }
.chat-companion canvas { display: block; margin: 0 auto; width: 30px; height: 40px; filter: drop-shadow(0 3px 4px #526e4730); }
.chat-companion[data-speaking="true"] canvas { filter: drop-shadow(0 0 6px #ffe4a6); }
.chat-companion figcaption { max-width: 78px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: #4a674f; padding: 1px 4px; border-radius: 8px; background: #fff8e899; }
.chat-message { position: relative; box-shadow: 0 2px 6px #49644308; }
.chat-message-portrait { float: left; width: 30px; height: 40px; margin: 0 8px 3px -4px; }
.chat-message:not(.is-event) > small:first-of-type { padding-top: 4px; }
@keyframes conversation-fireflies { from { opacity: .35; transform: translateY(2px); } to { opacity: .8; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .chat-nook-fireflies { animation: none; } }
.chat-message { align-self: flex-start; max-width: min(88%, 660px); padding: 10px 13px; border: 1px solid #d5dcc8; border-radius: 13px 13px 13px 3px; background: #fffdf6; }
.chat-message.is-mine { align-self: flex-end; background: #e4edd9; border-radius: 13px 13px 3px 13px; }
.chat-message.is-event { align-self: center; max-width: 90%; padding: 5px 8px; border: 0; background: transparent; text-align: center; }
.chat-message > small { display: block; font-size: 12px; color: var(--muted); }
.chat-time { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; text-align: right; }
.chat-message p { margin: 5px 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message a, .chat-message button { font-size: 12px; margin: 5px 5px 0 0; }
.chat-card { border: 1px solid #c4d1b7; border-radius: 12px; background: #f0f5e7; padding: 12px; font-size: 13px; }
.chat-card small { display: block; margin: 7px 0; font-size: 12px; line-height: 1.5; }
.chat-card button { margin: 7px 7px 0 0; padding: 8px 12px; font-size: 12px; }
.chat-empty { margin: auto; max-width: 350px; color: var(--muted); text-align: center; font-size: 14px; line-height: 1.7; }
.chat-empty h3 { font: 24px Georgia, serif; color: #345745; margin: 0 0 10px; letter-spacing: -.3px; }
.chat-empty p { white-space: pre-line; }
.chat-compose { padding: 12px 16px; border-top: 1px solid var(--line); background: #f5f3e7; }
.chat-compose textarea { margin: 0; resize: vertical; min-height: 42px; max-height: 160px; padding: 10px 12px; font-size: 14px; background: #fffdf6; }
.chat-compose-actions { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.chat-compose-actions button { font-size: 12px; padding: 7px 10px; }
#chatSend { margin-left: auto; }
#chatComposerContext { display: flex; gap: 5px; flex-wrap: wrap; padding-bottom: 7px; }
#chatComposerContext button, .chat-context { font-size: 11px; padding: 3px 8px; border-radius: 12px; background: #e1e9d8; }
.chat-queue-notice { margin: 0; padding: 6px 16px; font-size: 11px; color: var(--muted); }
.chat-claim { max-width: 420px; margin: 12vh auto; padding: 28px; background: var(--panel); border-radius: 18px; }
.chat-settings-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.chat-icon-button svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chat-icon-button[aria-pressed="true"] { color: #a84838; background: #f4d9cf; border-radius: 50%; }
.chat-image { display: block; max-width: min(100%, 300px); max-height: 240px; border-radius: 9px; margin-top: 8px; object-fit: contain; }
.chat-image-preview { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.chat-image-preview img { width: 44px; height: 44px; object-fit: cover; border-radius: 7px; }
.chat-action-dialog { max-height: min(85dvh, 680px); overflow-y: auto; }
.chat-action-dialog p { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-action-dialog small { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; margin: 8px 0; }
.chat-action-dialog label { display: grid; gap: 6px; font-size: 12px; margin: 12px 0; }
.chat-action-dialog button:not(.dialog-close) { margin: 8px 8px 0 0; padding: 8px 12px; font-size: 12px; }
.chat-action-dialog details { font-size: 12px; margin: 10px 0; }
.chat-next-steps { margin-top: 10px; font-size: 11px; }
.chat-next-steps summary, .chat-action-dialog summary { cursor: pointer; color: #426e58; }
.chat-next-steps button { display: block; padding: 5px 0; }
.chat-work-proposal strong { display: block; margin-top: 12px; font-size: 12px; }
.chat-story-canvas { display: block; width: 100%; max-width: 380px; height: auto; border-radius: 10px; margin-top: 8px; }
.chat-message.is-keepsake { max-width: min(94%, 410px); background: #f8efdf; }
.chat-roster button { display: block; padding: 7px 0; font-size: 12px; }
.chat-directory-actions { display: flex; gap: 8px; margin-top: 10px; }
.chat-directory-actions button { padding: 5px 8px; font-size: 12px; background: #e4e9dc; border-radius: 8px; }
.chat-list-item[data-kind="business"] .chat-avatar { background: #d8e6ed; color: #35596d; }
.chat-list-item[data-kind="social"] .chat-avatar { background: #eddfdd; color: #855b5d; }
.agent-role { display: inline-block; margin: 5px 5px 0 0; padding: 2px 6px; border-radius: 6px; background: #dde9ed; color: #3d606e; font-size: 12px; }
.platform-directory { max-height: 45dvh; overflow-y: auto; }
.platform-directory-row { border-top: 1px solid var(--line); padding: 10px 0; }
.platform-directory-row strong { font-size: 14px; }
.platform-directory-row p { margin: 6px 0; }
.platform-check { display: flex !important; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 8px; line-height: 1.5; }
.platform-check input { width: 16px; margin: 0; }
.platform-replay-stage { height: min(45dvh, 360px); position: relative; overflow: hidden; border-radius: 10px; background: #cbd6bd; }
.platform-replay-canvas, .platform-replay-overlay { position: absolute; inset: 0; }
.platform-replay-overlay { pointer-events: none; }
.platform-replay-caption { min-height: 42px; max-height: 130px; overflow: auto; }
.chat-action-dialog:has(.platform-replay-stage) { width: min(850px, calc(100% - 24px)); max-height: 90dvh; }
.chat-action-dialog h2, .contacts-dialog h2 { font: 600 18px/1.4 system-ui, sans-serif; margin-bottom: 10px; }
.chat-action-dialog p, .chat-action-dialog textarea, .chat-action-dialog input, .chat-action-dialog select { font-size: 14px; }
.chat-action-dialog small, .chat-action-dialog label, .chat-queue-notice, .chat-context, #chatComposerContext button { font-size: 12px; }
body[data-surface="chats"] .brand strong { font-size: 18px; }
body[data-surface="chats"] .brand small { font-size: 12px; }
body[data-surface="chats"] #editAgent, body[data-surface="chats"] #openFindings, body[data-surface="chats"] #openCouple { display: none !important; }
@media (max-width: 680px) {
  .chat-workspace { width: 100%; margin: 0; }
  .chat-layout { height: calc(100dvh - 70px); border: 0; border-radius: 0; grid-template-columns: 1fr; min-height: 360px; }
  .chat-conversation { display: none; }
  .conversation-open .chat-sidebar { display: none; }
  .conversation-open .chat-conversation { display: flex; }
  #chatBack { display: block; font-size: 11px; padding: 4px; }
  .chat-conversation-heading { padding: 11px 12px; }
  .chat-nook { height: 62px; flex-basis: 62px; }
  .chat-companion canvas { width: 27px; height: 36px; }
  .chat-companions { gap: 10px; }
  .chat-messages { padding: 12px; gap: 9px; }
  .chat-message { max-width: 94%; }
  .chat-compose { padding: 9px 12px; }
}
.network-time-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.network-time-pair input { min-width: 0; width: 100%; font-size: 11px; }
#networkExtraConstraints > summary { font-size: 12px; cursor: pointer; color: var(--muted); }
#networkRequests .network-card { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; margin: 6px 0; }
#networkRequests .network-card strong { flex: 1 1 200px; font-size: 13px; }
#networkRequests .network-card p { margin: 0; font-size: 11px; }
.task-people { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; }
.task-people button { font-size: 11px; padding: 4px 8px; border: 1px solid #c5d1b4; border-radius: 12px; }
#networkCityResults button { display: block; text-align: left; margin: 6px 0; }
#networkInviteLink { user-select: all; }
@media (max-width: 520px) {
  .brand strong { display: none; }
  .app-header { height: auto; min-height: 66px; gap: 8px; }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
  .header-actions .primary-button { max-width: 82px; }
}
.teamwork-dialog h2 { font: 28px Georgia, serif; margin: 0 0 14px; }
.teamwork-dialog h3 { margin-top: 24px; color: #496f53; }
.teamwork-item { padding: 16px; margin: 12px 0; border: 1px solid #c1cfae; border-radius: 12px; background: #f6f5e7; }
.teamwork-item p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.7; }
.teamwork-item strong, #teamworkTitle { overflow-wrap: anywhere; }
.teamwork-item small { color: #74816a; font-size: 11px; }
.teamwork-dialog select { padding: 10px; border: 1px solid #bdc7ad; border-radius: 9px; background: #fffdf5; color: #435c43; }
.task-result { border: 1px solid #bdc9ad; border-radius: 14px; margin: 12px 0; padding: 16px; background: #f7f5e8; }
.task-result summary { cursor: pointer; }
.task-result summary strong { font: 16px/1.5 Georgia, serif; overflow-wrap: anywhere; }
.task-result summary small { display: block; margin-top: 7px; color: #748269; }
.task-result-body { white-space: pre-wrap; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.task-result > a { display: block; font-size: 11px; margin: 9px 0; overflow-wrap: anywhere; }
.journey-panel summary { cursor: pointer; font: 15px/1.4 Georgia, serif; color: #355f4c; }
.journey-panel[data-tone="error"] summary { color: #a05335; }
.journey-panel[data-tone="waiting"] summary { color: #83683c; }
.journey-panel[data-tone="warning"] summary { color: #83683c; }
.latest-interaction { margin-top: 14px; padding: 12px; border: 1px solid #bdd0aa; border-radius: 10px; background: #eef3e4; }
.latest-interaction > small { display: block; font-size: 8px; line-height: 1.5; color: #677e5d; }
.latest-interaction > strong { display: block; font-size: 12px; color: #365d46; margin: 6px 0; }
.latest-interaction time { font-size: 10px; color: #718169; }
.suggestion-notice { border-left: 3px solid #c4a76c; padding: 10px 12px; background: #f5ecd6; color: #7d6844; font-size: 12px; line-height: 1.6; }
.journey-panel[data-tone="ready"] summary { color: #39735b; }
.journey-panel p { line-height: 1.65; color: #5f735d; margin: 10px 0; overflow-wrap: anywhere; }
.journey-panel .journey-wish { padding-left: 8px; border-left: 2px solid #bbcba2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-style: italic; }
.journey-steps { display: flex; list-style: none; padding: 0; margin: 15px 0 8px; }
.journey-steps li { flex: 1; position: relative; padding-top: 11px; font-size: 8px; color: #6d8063; text-align: center; border-top: 2px solid #d0d8bc; }
.journey-steps li::before { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; top: -4px; left: calc(50% - 3px); background: #d0d8bc; }
.journey-steps li[data-reached="true"] { border-color: #76a17c; color: #365c44; }
.journey-steps li[data-reached="true"]::before { background: #527d60; }
.journey-steps li[aria-current]::before { box-shadow: 0 0 0 3px #8fb78c44; }
#journeyAction { width: 100%; padding: 8px 10px; background: #e4ecd4; color: #3b6248; border: 1px solid #a4ba93; border-radius: 9px; font-size: 11px; }
.journey-panel[data-tone="ready"] #journeyAction { background: #426d58; color: #fff8e5; border-color: #345741; }
#agentBadge:has(#journeyPanel[open] #journeyAction[data-action="invite"]) #shareAgent { display: none; }
.experience-dialog > .eyebrow { padding-right: 25px; }
.interaction-dialog > .eyebrow { padding-right: 25px; }
.interaction-dialog > p { font-size: 13px; line-height: 1.7; }
.interaction-replay { padding: 16px; margin: 18px 0; background: #e7eed8; border: 1px solid #a9bd95; border-radius: 13px; }
.interaction-replay p { font-size: 12px; line-height: 1.6; color: #526c4e; margin: 10px 0 0; }
.agent-transcript { border-top: 1px solid var(--line); padding-top: 16px; margin: 22px 0; }
.agent-transcript > summary { cursor: pointer; font: 20px Georgia, serif; color: #42644c; }
.agent-transcript ol { list-style: none; padding: 0; margin: 16px 0; }
.agent-transcript li { padding: 14px 17px; background: #eef1e1; border: 1px solid #d0dac0; border-radius: 13px 13px 13px 3px; margin: 10px 0; }
.agent-transcript li:nth-child(even) { background: #f5eedb; border-radius: 13px 13px 3px 13px; }
.agent-transcript small { color: #687e59; font-size: 10px; }
.agent-transcript p { color: #405b47; font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; margin: 7px 0 0; }
.human-starter { display: grid; gap: 6px; padding: 13px; margin-bottom: 12px; border: 1px dashed #b7c6a0; border-radius: 10px; background: #edf2df; }
.human-starter button { text-align: left; padding: 0; color: #426c50; }
.human-starter small { color: #637b5f; font-size: 10px; line-height: 1.5; }
.agent-badge-person { display: flex; gap: 8px; align-items: center; width: 100%; padding: 0; background: none; border: 0; text-align: left; }
.agent-badge-person canvas { width: 30px; height: 40px; flex: 0 0 auto; }
.agent-badge-person > span { min-width: 0; display: grid; gap: 4px; }
.agent-badge-person small { font-size: 7px; letter-spacing: .1em; color: #8c957c; }
.agent-badge-person strong { font: 16px Georgia, serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-badge-person em { font-size: 9px; font-style: normal; color: #7c896f; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.badge-invite { width: 100%; border: 0; border-top: 1px dashed #cbd3b9; background: transparent; font-size: 9px; padding: 7px 4px 4px; color: #6e8660; text-align: right; }
.floor-overlay-item { position: absolute; top: 0; left: 0; width: 0; height: 0; }
.floor-tag { position: absolute; top: 4px; left: var(--label-shift, 0px); transform: translateX(-50%); font: 600 11px ui-sans-serif, sans-serif; color: #405a46; background: #f9f0dced; border: 1px solid #aab99a; border-radius: 12px; padding: 3px 8px; pointer-events: auto; max-width: 176px; overflow: hidden; white-space: nowrap; display: flex; align-items: center; gap: 5px; box-shadow: 0 2px 3px #435e3720; }
.floor-tag b { color: #426f51; font-size: 8px; text-transform: uppercase; }
.debug-badge { font-size: 8px; color: #96886b; font-style: normal; border: 1px solid #b8b69a; border-radius: 4px; padding: 1px 3px; }
.floor-tag:hover { background: #eaf0da; }
.floor-bubble { position: absolute; top: 0; left: 0; width: min(220px, calc(var(--map-width, 100vw) - 24px)); padding: 10px 13px; border: 1.5px solid #7d977a; border-radius: 17px 17px 15px 4px; background: #fff9e8; color: #4d6550; font: 12px/1.5 Georgia, serif; box-shadow: 3px 4px 0 #5a784522; pointer-events: auto; }
.floor-bubble::after { content: ""; position: absolute; top: 100%; left: 48%; border: 6px solid transparent; border-top-color: #fff9e8; }
.floor-bubble[data-displaced="true"]::after { display: none; }
.bubble-speaker { display: block; font: 600 10px/1.4 ui-sans-serif, sans-serif; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #708060; }
.bubble-text { margin: 5px 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; white-space: pre-wrap; }
.bubble-read { display: block; border: 0; padding: 3px 0; background: transparent; color: #3d7357; font-size: 10px; text-decoration: underline; text-underline-offset: 2px; }
.dialogue-dialog { width: min(720px, calc(100% - 24px)); }
.dialogue-dialog h2 { font: 28px Georgia, serif; margin: 0 25px 14px 0; }
#dialogueMessages { list-style: none; padding: 0; margin: 18px 0 0; max-height: 65dvh; overflow-y: auto; overscroll-behavior: contain; }
#dialogueMessages li { margin: 10px 0; padding: 15px 18px; border: 1px solid #c6d2b4; background: #f4f6e9; border-radius: 12px; }
#dialogueMessages strong { font-size: 12px; color: #628062; }
#dialogueMessages p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.8; margin: 8px 0 0; }
dialog { color: var(--text); background: var(--panel); border: 1px solid #b7c5a3; border-radius: 22px; padding: 30px; box-shadow: 0 24px 100px #263d3a44; max-height: calc(100dvh - 32px); overflow-y: auto; }
dialog::backdrop { background: #314c3b55; backdrop-filter: blur(6px); }
.agent-dialog { width: min(510px, calc(100% - 28px)); }
.profile-dialog { width: min(390px, calc(100% - 28px)); }
.findings-dialog { width: min(620px, calc(100% - 28px)); }
.experience-dialog { width: min(960px, calc(100% - 28px)); }
#coupleDialog, #accountDialog { width: min(610px, calc(100% - 28px)); }
dialog h1, dialog h2 { font-family: Georgia, serif; font-weight: 500; letter-spacing: -.035em; }
.agent-dialog h1 { margin: 0; font-size: 29px; }
.findings-dialog h2, .experience-dialog h2, .invitation-card-dialog h2 { margin: 0 0 12px; font-size: 28px; }
.dialog-close { position: absolute; right: 15px; top: 13px; padding: 5px 9px; background: transparent; border: 0; color: #7a8b70; font-size: 21px; }
.eyebrow { margin: 0 0 10px; color: #799064; font-size: 8px; font-weight: 700; letter-spacing: .17em; }
.findings-intro { margin: 0 0 20px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.findings-empty { padding: 28px 4px; color: var(--muted); font: italic 17px/1.7 Georgia, serif; }
.finding-card { padding: 18px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 8px 17px 10px 17px; background: #fffaf0; box-shadow: 0 3px 0 #cad2b82b; }
.finding-heading { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; cursor: pointer; list-style: none; }
.finding-heading::-webkit-details-marker { display: none; }
.finding-choice { grid-column: 1 / -1; color: #69795c; font-size: 10px; line-height: 1.5; }
.finding-card[data-choice="interested"] { border-color: #9eaf86; background: #f1f5e5; }
.finding-card[data-choice="interested"] .finding-choice { color: #507443; }
.finding-card[data-choice="pass"] { background: #eeeee2; border-color: #ccd0bd; }
.finding-card:not([open]) .finding-choice::after { content: " · open history"; color: var(--muted); }
.person-connection { border-top: 1px dashed var(--line); margin-top: 16px; padding-top: 4px; }
.person-connection > button { padding: 10px 14px; border: 1px solid #a3ba92; border-radius: 10px; background: #e7efd8; color: #365f46; }
.person-history { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.person-history > summary { cursor: pointer; color: #536f51; font: 17px Georgia, serif; }
.person-timeline { list-style: none; margin: 20px 0 8px 7px; padding: 0 0 0 18px; border-left: 1px solid #afc09d; }
.person-timeline li { position: relative; padding-bottom: 24px; }
.person-timeline li::before { content: ""; position: absolute; top: 3px; left: -23px; width: 9px; height: 9px; background: #809b6c; border: 2px solid #fbf7eb; border-radius: 50%; }
.person-timeline time { display: block; color: #73806b; font-size: 10px; margin-bottom: 7px; }
.person-timeline li > strong { font-size: 17px; }
.person-timeline .quiet-button { font-size: 11px; padding: 4px 0; color: #476947; }
.timeline-error { color: #a05335 !important; }
.native-life-dialog { width: min(720px, calc(100% - 28px)); }
.native-life-dialog > .eyebrow { padding-right: 25px; }
.native-life-dialog > .dialog-close, .dialogue-dialog > .dialog-close, .teamwork-dialog > .dialog-close, .network-dialog > .dialog-close, #teamTaskActionDialog > .dialog-close, #agentDialog > .dialog-close, #profileDialog > .dialog-close { position: sticky; float: right; top: -12px; right: 0; z-index: 2; margin: -12px -8px 0 0; border-radius: 50%; background: var(--panel); box-shadow: 0 2px 8px #37513c22; }
.native-life-dialog h2 { margin: 0 0 15px; font: 29px Georgia, serif; }
.native-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.native-section > summary, .native-section > h3 { font: 21px Georgia, serif; color: #42664e; margin: 0 0 12px; }
.native-section > summary { cursor: pointer; }
.tool-section { padding: 17px; border: 1px solid #b7c8a5; border-radius: 14px; display: grid; gap: 12px; min-width: 0; }
.tool-section legend { font: 22px Georgia, serif; color: #42664e; padding: 0 7px; }
.tool-section select { max-width: 100%; background: #f7f5e9; color: var(--text); padding: 10px; border: 1px solid var(--line); border-radius: 9px; }
#realWorldTools { background: #eef2e2; }
#lifeCardText { font-size: 14px; line-height: 1.7; }
#nativeCardUpdates pre { font-family: inherit; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.native-section select { width: 100%; padding: 10px; background: #f7f5e9; color: var(--text); border: 1px solid var(--line); border-radius: 9px; }
.native-section input[type="datetime-local"] { max-width: 100%; min-width: 0; }
.native-item { margin: 12px 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #f5f3e5; }
.native-item > strong { font-size: 13px; color: #49684d; }
.native-item p { font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.native-item small { display: block; margin: 7px 0; font-size: 10px; color: #667958; line-height: 1.5; }
.native-item .quiet-button { padding: 6px 8px; margin: 6px 6px 0 0; font-size: 11px; }
#nativeQuestions > p, #nativeMemories > p, #nativeAvailability > p, #smallPlanList > p { font-size: 12px; line-height: 1.6; color: #64775b; }
#nativeInboxCount { color: #8b6632; }
#interactionToolList { font-size: 12px; line-height: 1.6; }
.plan-templates { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-templates button { border: 1px solid #bdcaaa; border-radius: 16px; background: #edf1df; padding: 7px 10px; color: #4a6950; font-size: 11px; }
#personChoiceDialog p { font-size: 13px; line-height: 1.7; }
.finding-card[aria-busy="true"] .finding-choice { color: #9d7851; }
.finding-card .finding-error { font-size: 12px; color: #a56044; border-left: 2px solid #bf8064; padding-left: 8px; }
.finding-card strong { font: 20px Georgia, serif; }
.finding-card small { color: #7c8d68; font-size: 9px; padding: 4px 7px; border-radius: 8px; background: #e9edda; }
.finding-card p { font-size: 13px; line-height: 1.7; color: #6b7863; margin: 10px 0 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.finding-actions { display: flex; gap: 8px; }
.finding-actions button { border: 1px solid #b4c3a0; background: #edf2de; border-radius: 9px; padding: 8px 13px; color: #4c6e42; font-size: 12px; }
.finding-actions button:last-child { background: transparent; color: #899078; }
.finding-actions button[aria-pressed="true"] { border-color: #698a56; background: #dce8c9; }
.finding-experience { margin-top: 13px; padding-top: 13px; border-top: 1px dashed #cbd2bb; }
.finding-experience .finding-plan { display: block; font-size: 17px; }
.finding-experience .finding-intro-state { display: block; padding: 5px 0; background: transparent; color: #8a8e76; line-height: 1.5; }
.finding-experience button { margin: 7px 7px 0 0; padding: 8px 12px; border: 1px solid #aeba98; border-radius: 9px; color: #46643d; background: #e5edd5; font-size: 11px; }
.finding-experience .experience-replay { border: 0; background: transparent; color: #85916f; }
.introduction-inbox-item { width: 100%; margin-bottom: 12px; padding: 14px; border: 1px solid #d2bd8b; border-radius: 12px; text-align: left; background: #f3e9c9; color: #8a7348; font-size: 12px; line-height: 1.5; }
.experience-dialog > p, #voiceSuggestion { font-size: 13px; line-height: 1.7; }
.experience-question { padding-left: 12px; border-left: 2px solid #acb887; color: #6c805b; }
.experience-evidence { font-size: 12px; margin: 16px 0 7px; color: var(--muted); }
.experience-evidence summary { cursor: pointer; color: #657959; }
.experience-evidence blockquote { margin: 10px 0; padding: 12px 15px; border-radius: 12px; background: #eaf0dd; }
.experience-evidence p { margin: 0 0 5px; font-size: 13px; line-height: 1.6; color: #52694c; }
.experience-evidence small { font-size: 10px; }
.intro-state { color: #8f7751; }
.intro-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.intro-consent input { flex: 0 0 auto; width: 16px; margin-top: 3px; accent-color: #597b4d; }
.intro-consent > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.human-chat { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.human-messages { max-height: 240px; overflow-y: auto; margin: 10px 0; }
.human-message { padding: 10px 13px; margin: 7px 24px 7px 0; border-radius: 13px 13px 13px 3px; background: #eaeedc; }
.human-message.is-you { margin: 7px 0 7px 24px; background: #dce7cf; border-radius: 13px 13px 3px 13px; }
.human-message small { font-size: 9px; color: #809471; }
.human-message p { margin: 4px 0 0; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
#humanChatForm { display: flex; gap: 8px; }
#humanChatForm textarea { min-width: 0; flex: 1; }
#humanChatForm button { align-self: flex-end; }
.preview-controls { position: absolute; top: 84px; right: 24px; max-width: calc(100% - 48px); padding: 11px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fcf5dfed; border: 1px solid #bac8a6; border-radius: 12px; font-size: 11px; }
.preview-controls progress { width: 90px; accent-color: #6f9461; }
.preview-controls button { background: #dfe9ce; color: #526c46; border: 0; padding: 7px 10px; border-radius: 7px; font-size: 11px; }
.shared-section { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.shared-section h3 { font: 19px Georgia, serif; margin: 0 0 8px; }
.shared-section > summary { cursor: pointer; color: #52754b; font: 19px Georgia, serif; }
#locationPeople { white-space: pre-line; overflow-wrap: anywhere; }
#temporaryLocation select, #momentKind, #checkinHours { background: #eef1e0; color: var(--text); padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
#checkinForm, #sharedPlanForm { display: grid; gap: 8px; margin-top: 12px; }
.couple-checkin, .couple-plan { margin: 12px 0; padding: 15px; border: 1px solid var(--line); background: #fef9ed; border-radius: 12px; }
.couple-checkin strong, .couple-plan strong { font: 17px Georgia, serif; color: #516f4c; }
.couple-checkin p, .couple-plan p, .couple-plan li { font-size: 12px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.couple-checkin small { font-size: 10px; color: #969777; }
.couple-plan ol { padding-left: 20px; }
.profile-dialog h2 { margin: 8px 0 12px; }
.profile-dialog > p:last-child { font-size: 14px; line-height: 1.7; color: var(--muted); white-space: pre-wrap; }
.identity-editor { display: flex; align-items: center; gap: 24px; margin: 20px 0; }
.avatar-editor { flex: 0 0 115px; border: 1px solid #c4ceb0; border-radius: 40px 40px 14px 14px; background: radial-gradient(ellipse at 50% 60%, #dce8bd 0, #e7edda88 60%, #f8f1de 100%); display: flex; flex-direction: column; align-items: center; padding: 8px 0; }
.avatar-editor canvas { width: 86px; height: 115px; }
.avatar-editor button { color: #718667; border: 0; background: transparent; padding: 6px 8px; font-size: 10px; }
.identity-editor > label { flex: 1; min-width: 0; }
label { display: grid; gap: 8px; font-size: 12px; color: #66785b; }
input:not([type="radio"], [type="checkbox"]), textarea { width: 100%; padding: 11px 12px; background: #fffdf5; border: 1px solid #bdc7ad; border-radius: 10px; color: #435c43; font-size: 13px; line-height: 1.5; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #a0a58e; }
.goal-options { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.goal-options legend { font-size: 12px; margin-bottom: 10px; color: #66795b; }
#goalOptions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.goal-choice { position: relative; display: block; cursor: pointer; }
.goal-choice input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; z-index: 1; cursor: pointer; }
.goal-choice span { display: block; text-align: center; padding: 11px 3px; font-size: 11px; border: 1px solid #c5cfb4; border-radius: 9px; background: #f1f2e4; }
.goal-choice input:checked + span { background: #dbe7c9; border-color: #90aa7c; color: #456742; box-shadow: inset 0 0 0 1px #bccda9; }
.goal-choice input:focus-visible + span { outline: 2px solid #789965; outline-offset: 3px; }
.task-label { display: block; margin-bottom: 8px; }
.field-hint { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 8px 0 0; }
.editor-details { border-top: 1px dashed var(--line); padding: 13px 0; margin-top: 13px; }
.editor-details summary { font-size: 12px; color: #6b805b; cursor: pointer; }
.editor-details summary span { color: #a1a58c; font-size: 10px; margin-left: 6px; }
.editor-details label { margin-top: 12px; }
.profile-section { margin: 14px 0; padding: 16px; border: 1px solid #cbd6ba; border-radius: 12px; background: #f1f4e7; }
.profile-section h3 { font: 17px Georgia, serif; color: #466b52; margin: 0 0 14px; }
.profile-section > summary { font: 15px Georgia, serif; color: #466b52; }
#editorLifeCard { padding: 16px; border: 1px solid #c6c5ac; border-radius: 13px; background: #f6f0df; }
#editorLifeCard > summary { color: #6f6950; }
#editorLifeCard .intro-consent { margin-top: 0; }
#lifeCardStatus { margin-bottom: 12px; }
#profileDialog { width: min(520px, calc(100% - 28px)); }
#profileAbout, #profileSections p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.75; }
#profileSections section { border-top: 1px solid var(--line); padding: 12px 0; }
#profileSections h3 { font: 16px Georgia, serif; color: #496b50; margin: 3px 0; }
#profileSections a { color: #3c755e; text-underline-offset: 3px; }
.editor-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.quiet-button { padding: 10px; background: transparent; border: 0; color: #718361; font-size: 12px; }
.consent-note { margin-top: 12px; font-size: 10px; }
.form-error { border-left: 2px solid #bd896a; padding-left: 10px; color: #9b644d; font-size: 12px; line-height: 1.5; }
.form-error:empty { display: none; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 13px 19px; background: #fcf8e9; border: 1px solid #adc19a; border-radius: 13px; color: #536b47; box-shadow: var(--paper-shadow); font-size: 12px; line-height: 1.5; z-index: 3000; }
#emailLoginForm, #joinWorldForm, .account-form { display: grid; gap: 13px; }
#accountReference { overflow-wrap: anywhere; user-select: all; }
#registrationRecoveryCode, #renewedRecoveryCode { font-family: ui-monospace, monospace; }
#providerLoginOptions { display: grid; gap: 12px; margin-top: 14px; }
#githubLogin { text-align: center; text-decoration: none; }
#googleLogin { text-align: center; }
.login-illustration { display: flex; align-items: center; justify-content: center; gap: 16px; border-radius: 15px; margin: 10px 0 18px; background: linear-gradient(120deg, #edf0da, #e2ead2); }
.login-illustration canvas { width: 66px; height: 88px; }
.login-illustration span { font: 24px/1.25 Georgia, serif; color: #51704c; }
.login-illustration em { font-size: 20px; color: #8b9475; }
.story-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.story-panel { position: relative; display: flex; flex-direction: column; padding: 19px; min-height: 340px; border: 1.5px solid #a9b99a; border-radius: 3px 17px 5px 15px; background: #fffaf0; box-shadow: 4px 5px 0 #ccd7b94a; overflow: hidden; }
.story-panel::before { content: ""; position: absolute; right: -12px; top: -12px; width: 72px; height: 72px; transform: rotate(20deg); background: repeating-linear-gradient(90deg, transparent 0 5px, #a5b99225 5px 6px); pointer-events: none; }
.story-panel:nth-child(2) { transform: rotate(-.7deg); background: #f1f3e4; }
.story-panel:nth-child(3) { background: radial-gradient(circle at 80% 24%, #eed5ae88, transparent 38%), #f7eedc; }
.story-chapter { color: #9bac80; font: italic 31px Georgia, serif; }
.story-panel h3 { font: 20px/1.15 Georgia, serif; margin: 7px 0 13px; }
.story-panel > p { font-size: 12px; line-height: 1.75; color: #788365; }
.story-scene { position: relative; height: 146px; display: flex; justify-content: center; background: radial-gradient(ellipse at center, #d9e5c6, #eef2df); border-radius: 35px 35px 5px 5px; margin-bottom: 7px; }
.story-scene canvas { height: 132px; width: 99px; object-fit: contain; min-width: 0; }
.story-scene span { position: absolute; bottom: 4px; font: italic 10px Georgia, serif; color: #87946d; }
.story-panel blockquote { margin: 0 0 13px; padding: 11px; border: 1px solid #b9c5a6; border-radius: 15px 15px 15px 2px; background: #fffced; }
.story-panel blockquote small { color: #94a07e; font-size: 9px; }
.story-panel blockquote p { font: 14px/1.5 Georgia, serif; margin: 6px 0 0; color: #546e49; overflow-wrap: anywhere; }
.story-panel .story-question { border-top: 1px dashed #c7c4a6; padding-top: 13px; font-style: italic; }
.story-footnote { margin-top: auto; font-size: 10px; color: #7b876b; line-height: 1.5; }
.story-privacy { color: #8b957a; font-size: 10px !important; }
.invitation-card-dialog { width: min(850px, calc(100% - 28px)); }
.invitation-card-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 26px; }
#invitationCardPreview { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--paper-shadow); }
.policy-page main { max-width: 820px; margin: 32px auto; padding: 24px; line-height: 1.7; }
.policy-page nav { margin-bottom: 24px; }
.policy-page h1 { font: 36px Georgia, serif; }
.policy-page h2 { margin-top: 28px; font: 24px Georgia, serif; }
.policy-page p { overflow-wrap: anywhere; }
.policy-warning { padding: 16px; border: 1px solid #d4bc84; background: #f5e9c7; color: #8d7446; border-radius: 12px; }
.policy-page, body:has(.admin-main) { background: #f1eddf; }
@media (max-width: 1050px) {
  .arrival-copy { display: none !important; }
}
@media (max-width: 950px) {
  .welcome-card { left: 24px; width: 300px; padding: 22px; }
  .welcome-card h1 { font-size: 36px; }
  .welcome-portrait { height: 142px; }
  .welcome-portrait canvas { width: 105px; height: 140px; }
  .welcome-portrait span { font-size: 11px; width: 92px; right: -9px; }
  .story-strip { grid-template-columns: 1fr; }
  .story-panel { min-height: 0; }
  .story-scene { height: 160px; }
  .story-panel:nth-child(2) { transform: none; }
  .story-footnote { margin-top: 12px; }
}
@media (max-width: 600px) {
  .app-header { height: 66px; padding: 0 15px; }
  .arrival-artwork > img { object-position: 65% 35%; }
  .arrival-copy { display: none !important; }
  .artwork-caption { display: none; }
  #loginDialog { margin: auto; }
  .header-actions { gap: 7px; }
  .header-actions .primary-button { max-width: 128px; padding: 10px 11px; }
  .brand { gap: 7px; }
  .brand > span { width: 29px; height: 34px; font-size: 24px; }
  .brand strong { font-size: 20px; }
  .brand small { display: none; }
  .findings-button { font-size: 10px; padding: 9px 2px; }
  .primary-button { padding: 11px 14px; font-size: 12px; }
  main { padding: 0 8px 8px; }
  .world-shell { border-radius: 17px; }
  .floor-stage { height: calc(100dvh - 76px); }
  .world-shell:has(#taskForm:not([hidden])) { height: calc(100dvh - 76px); }
  .map-place { top: 13px; left: 13px; max-width: 57%; padding: 9px 12px; }
  .map-place strong { font-size: 15px; }
  .map-place small { font-size: 8px; }
  .map-kicker { font-size: 6px; }
  .map-controls { top: 13px; right: 13px; gap: 4px; max-width: 47%; justify-content: flex-end; flex-wrap: wrap; }
  .map-controls button { min-width: 30px; height: 30px; padding: 0 7px; font-size: 12px; }
  #locationIndicator { font-size: 9px; }
  .agent-badge { top: 98px; left: 13px; width: 215px; padding: 6px 9px; }
  .agent-badge-person canvas { width: 27px; height: 36px; }
  .agent-badge-person strong { font-size: 16px; }
  .agent-badge-person small { font-size: 6px; }
  .agent-badge-person em { font-size: 8px; }
  .journey-panel summary { font-size: 12px; }
  .journey-panel[open] { max-height: 240px; overflow-y: auto; }
  .badge-invite { font-size: 8px; }
  .welcome-card { top: auto; bottom: 17px; left: 12px; width: calc(100% - 24px); padding: 22px; }
  .welcome-card h1 { font-size: 34px; margin-bottom: 10px; }
  .welcome-card > p:not(.eyebrow) { font-size: 11px; max-width: none; margin-top: 20px; }
  .welcome-portrait { position: absolute; top: 17px; right: 8px; width: 116px; height: 122px; margin: 0; overflow: hidden; background: radial-gradient(ellipse at center, #dce6beaa, transparent 72%); }
  .welcome-portrait canvas { width: 84px; height: 112px; }
  .portrait-orbit { width: 87px; height: 106px; }
  .orbit-two { width: 92px; height: 117px; }
  .welcome-portrait span { display: none; }
  .welcome-wishes { gap: 3px; }
  .welcome-wishes button { font-size: 10px; padding: 7px 0; }
  .welcome-card > small { font-size: 9px; margin-top: 10px; }
  .world-status { font-size: 10px; bottom: 140px; }
  .task-composer { bottom: 13px; grid-template-columns: minmax(0, 1fr) 96px auto; gap: 7px 4px; padding: 11px 8px 7px; width: calc(100% - 22px); border-radius: 14px; }
  .task-composer #taskInput { grid-column: 1 / -1; }
  .task-composer #taskType { grid-column: 2; }
  .task-composer-label { font-size: 7px; }
  .task-composer select { padding: 9px 4px; font-size: 10px; }
  .task-composer input { font-size: 11px; padding: 9px 5px; }
  .task-composer .primary-button { padding: 10px 12px; }
  .task-suggestions { gap: 3px; }
  .task-suggestions button { font-size: 8px; padding: 3px; }
  dialog { padding: 27px 21px; }
  .identity-editor { gap: 16px; }
  .agent-dialog h1 { font-size: 27px; }
  .experience-dialog h2 { font-size: 25px; }
  .invitation-card-layout { grid-template-columns: 1fr; gap: 20px; }
  #invitationCardPreview { max-width: 240px; justify-self: center; }
  .login-illustration span { font-size: 22px; }
}
@media (max-width: 360px) {
  .header-actions { gap: 5px; }
  .brand strong { font-size: 17px; }
  .header-actions .primary-button { max-width: 112px; font-size: 10px; }
  .welcome-card h1 { font-size: 30px; }
  .welcome-portrait { right: 0; width: 100px; }
}
@media (max-width: 600px) and (max-height: 700px) {
  .agent-badge { top: 91px; width: 165px; }
  .agent-badge-person canvas { width: 21px; height: 28px; }
  .agent-badge-person small:not(.task-scope), .agent-badge-person em { display: none; }
  .journey-panel { margin: 3px 0; padding-top: 5px; }
  .journey-panel summary { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  dialog::backdrop { backdrop-filter: none; }
}
@keyframes portrait-breathe { 0%, 100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(-3px) rotate(.5deg); } }
