

.qd-deck {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  font-family: var(--sans, 'Source Sans 3', sans-serif);
  color: #1c4652;
}

.qd-stage {
  position: relative;
  isolation: isolate;
  width: calc(100% - 24px);
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  outline-offset: 10px;
  border-radius: 31px;
}

.qd-back {
  position: absolute;
  inset: 14px -9px -6px;
  z-index: -1;
  border-radius: 35px;
  pointer-events: none;
}

.qd-back-one {
  background: linear-gradient(180deg, #e7eff0 0%, #fff 54%);
  transform: rotate(-3deg);
  box-shadow: 0 7px 9px rgba(39, 75, 79, .065);
}

.qd-back-two {
  inset: 12px -6px -7px;
  background: linear-gradient(180deg, #edf1eb 0%, #fff 54%);
  transform: rotate(2.3deg);
  box-shadow: 0 7px 10px rgba(39, 75, 79, .065);
}

.qd-card {
  position: relative;
  display: flex;
  min-height: 500px;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 31px;
  background: #fff;
  box-shadow: 0 13px 24px rgba(30, 63, 67, .08), 0 2px 4px rgba(30, 63, 67, .04);
  transition: transform 180ms ease;
  will-change: transform;
}

.qd-card.qd-dragging { transition: none; }

.qd-artwork {
  position: absolute;
  inset: 0 0 auto;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.qd-card-content {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 103px 24px 24px;
}

.qd-category {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 99px;
  background: #e6eff1;
  color: #285d6c;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.qd-category svg { width: 18px; height: 18px; flex: 0 0 auto; color: #4f6d58; }

.qd-title {
  margin: 17px 0;
  color: #193f4b;
  font-family: var(--serif, 'Playfair Display', Georgia, serif);
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -.55px;
  line-height: 1.28;
  text-wrap: pretty;
}

.qd-help {
  margin: 0 0 30px;
  color: #4f6e79;
  font-family: inherit;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
}

.qd-answer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  margin: auto 0 0;
  padding: 15px 18px;
  border: 0;
  border-radius: 20px;
  background: #4f6d58;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  transition: background 180ms ease, transform 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.qd-answer:hover { background: #405b49; }
.qd-answer:active { transform: scale(.985); }

.qd-swipe-hint {
  margin: 25px 0 0;
  color: #6b7b79;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.qd-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 12px auto 0;
}

.qd-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 11px;
  border: 1px solid #d9dfd9;
  border-radius: 50%;
  background: #fffdf8;
  color: #405b49;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.qd-arrow svg { display: block; width: 24px; height: 24px; }
.qd-arrow:hover:not(:disabled) { background: #e8f0ef; border-color: #b8ced0; }
.qd-arrow:disabled { opacity: .3; cursor: default; }

.qd-position {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 70px;
  color: #526e75;
  font-size: 14px;
  line-height: 1;
}

.qd-dots { display: flex; gap: 5px; }
.qd-dot { width: 5px; height: 5px; border-radius: 50%; background: #cdd8d6; }
.qd-dot-active { width: 16px; border-radius: 4px; background: #4f6d58; }

.qd-reassurance {
  margin: 14px 0 0;
  color: #6b7b79;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

.qd-stage:focus-visible,
.qd-answer:focus-visible,
.qd-arrow:focus-visible { outline: 3px solid #4f6d58; outline-offset: 4px; }
.qd-empty { padding: 32px; border-radius: 24px; background: #fff; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .qd-card,
  .qd-answer,
  .qd-arrow { transition: none; }
  .qd-answer:active { transform: none; }
}




@font-face{font-family:'Source Sans 3';src:url("assets/20ab9752bd19a373db.ttf") format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:'Source Sans 3';src:url("assets/950e66c48e5e60c940.ttf") format('truetype');font-weight:600;font-display:swap}
@font-face{font-family:'Source Sans 3';src:url("assets/83a72786970a93a8c4.ttf") format('truetype');font-weight:700;font-display:swap}
@font-face{font-family:'Playfair Display';src:url("assets/b60ffb0ee2b4e09d71.ttf") format('truetype');font-weight:500;font-display:swap}
:root{--bg:#FFFFFF;--surface:#FCF9F6;--ink:#344642;--muted:#64736A;--accent:#4E6A5B;--soft:#E8EEE8;--line:#E3E7E2;--terra:#B87560;--gold:#D5B779;--serif:'Playfair Display',Georgia,serif;--sans:'Source Sans 3',sans-serif;--device-width:390px;--bar:72px;--nav:84px;--safe-top:0px;--safe-bottom:0px;--ease:cubic-bezier(.22,.61,.36,1)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg)}body{font:16px/1.45 var(--sans);color:var(--ink);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit;color:inherit}button{border:0;background:none;padding:0;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.45}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,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}h1,h2,h3,h4,p{margin:0}h1,h2,h3{font-weight:600;line-height:1.25}img{display:block;max-width:100%}svg{display:block;flex-shrink:0}a{color:var(--accent)}textarea{resize:none}button svg{pointer-events:none}button>*{pointer-events:none}button select,button input{pointer-events:auto}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.hidden{display:none!important}.muted{color:var(--muted)}.small{font-size:13px}.eyebrow{font-size:11px;letter-spacing:1.7px;font-weight:600;color:var(--muted)}
.prototype-workspace{display:flex;align-items:center;justify-content:center;gap:100px;min-height:100dvh;padding:28px 44px;background:#F3F2EE}.preview-panel{width:304px;align-self:center}.preview-logo{width:190px;height:auto;margin-bottom:38px}.preview-panel h1{font:500 39px/1.16 var(--serif);letter-spacing:-1.2px;margin:15px 0 17px}.preview-intro{color:var(--muted);font-size:16px;line-height:1.6;max-width:280px}.preview-divider{height:1px;background:#DEE3DA;margin:26px 0}.preview-label{font-size:10px;font-weight:700;letter-spacing:1.5px;color:var(--muted);margin:23px 0 10px}.preview-roles{display:grid;grid-template-columns:1fr 1fr;gap:8px}.preview-role{border:1px solid #D6DED3;border-radius:12px;padding:11px 12px;text-align:left;background:#FFFFFF55;min-height:60px}.preview-role strong{display:block;font-size:14px;font-weight:600}.preview-role small{color:var(--muted);font-size:12px}.preview-role.selected{background:#E4EBE1;border-color:#A3B49F}.scenario{width:100%;display:flex;gap:12px;align-items:center;padding:12px 0;text-align:left}.scenario>span{font:500 15px var(--serif);color:#718078}.scenario>div{flex:1;font-size:15px}.scenario small{display:block;font-size:12px;color:var(--muted);margin-top:2px}.scenario b{font-weight:400;color:var(--muted)}.preview-bottom{margin-top:24px;padding-top:19px;border-top:1px solid #DEE3DA}.preview-sizes{display:flex;gap:6px;align-items:center}.preview-sizes button{padding:5px 11px;border-radius:6px;border:1px solid transparent;font-size:12px}.preview-sizes button.selected{background:#fff;border-color:var(--line)}.preview-sizes span{font-size:11px;color:var(--muted);margin-left:4px}.motion-option{display:flex;align-items:center;gap:7px;margin:14px 0 8px;font-size:12px;color:var(--muted)}.motion-option input{accent-color:var(--accent)}.reset-link{font-size:12px;text-decoration:underline;text-underline-offset:3px;color:var(--muted)}.prototype-note{font-size:9px;line-height:1.7;color:#6B786E;letter-spacing:.3px;margin-top:18px}.device-wrap{display:flex;flex-direction:column;align-items:center}.device{position:relative;width:var(--device-width);height:min(852px,calc(100dvh - 64px));min-height:620px;background:var(--bg);border:7px solid #EBEDE6;border-radius:48px;box-shadow:0 24px 66px #31483816,0 0 0 1px #DADFD6;overflow:hidden;container-type:inline-size}.device-status{height:33px;padding:12px 25px 0;display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:700;color:#344642}.status-right{display:flex;gap:7px;align-items:center}.status-right i{font-style:normal;font-size:10px;letter-spacing:-1px}.status-right svg{width:16px;height:12px}.status-right b{width:20px;height:10px;border:1px solid currentColor;border-radius:3px;position:relative;background:linear-gradient(90deg,currentColor 80%,transparent 80%);background-clip:content-box;padding:1px}.status-right b:after{content:'';position:absolute;right:-3px;top:3px;width:2px;height:3px;background:currentColor}.app{position:absolute;inset:33px 0 17px;overflow:hidden}.device-caption{font-size:9px;font-weight:600;letter-spacing:1.5px;color:var(--muted);margin-top:18px}.home-indicator{position:absolute;bottom:8px;left:calc(50% - 57px);height:4px;width:114px;border-radius:4px;background:#344642}
.appbar{position:absolute;top:0;left:0;right:0;height:calc(var(--bar) + var(--safe-top));padding:var(--safe-top) 17px 0;display:flex;align-items:center;justify-content:space-between;gap:8px;background:#FFFAFAB8;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);z-index:20}.brand-button{min-height:48px;display:flex;align-items:center;flex-shrink:0}.brand-button img{width:142px;height:40px;object-fit:contain}.appbar-actions{display:flex;align-items:center;gap:5px}.profile-toggle{display:flex;align-items:center;justify-content:center;gap:5px;min-height:48px;padding:0 9px;border-radius:12px;font-size:13px;max-width:120px}.profile-toggle span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:73px}.profile-toggle:hover{background:var(--soft)}.icon-button{height:48px;width:48px;display:inline-flex;align-items:center;justify-content:center;border-radius:14px;flex-shrink:0}.icon-button:hover{background:#E8EEE877}.icon-button.profile{width:44px}.icon-button svg{max-width:25px;max-height:25px}.app-main{position:absolute;inset:0;overflow-y:auto;overflow-x:hidden;padding:calc(var(--bar) + var(--safe-top) + 5px) 18px calc(var(--nav) + var(--safe-bottom) + 22px);scrollbar-width:none;scroll-padding-top:90px;overscroll-behavior:contain}.app-main::-webkit-scrollbar{display:none}.page{min-height:100%;animation:page-in 260ms var(--ease)}@keyframes page-in{from{opacity:.3;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.bottom-nav{position:absolute;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:9px 8px calc(6px + var(--safe-bottom));min-height:calc(var(--nav) + var(--safe-bottom));background:#FFFFFF;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-top:1px solid #E6E8E2;z-index:21}.nav-button{min-height:62px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:11.5px;line-height:1.2;letter-spacing:-.15px;position:relative;border-radius:16px;font-weight:400;transition:background 250ms var(--ease),color 250ms var(--ease);color:#5F6F65}.nav-button.selected{background:var(--soft);font-weight:600;color:var(--accent)}.nav-button .nav-icon{height:28px;width:30px;display:flex;align-items:center;justify-content:center}.nav-button svg{max-width:30px;max-height:28px;transition:fill 250ms var(--ease)}.nav-badge{position:absolute;right:calc(50% - 24px);top:4px;width:7px;height:7px;border-radius:50%;background:var(--terra);border:1.5px solid var(--bg)}
.profile-card{background:var(--surface);border:1px solid var(--line);border-radius:21px;padding:17px 16px 0;overflow:hidden}.person-top{display:flex;align-items:center;gap:13px}.person-avatar{height:60px;width:60px;border-radius:21px;background:#ECEFE7;display:flex;align-items:center;justify-content:center;flex-shrink:0;position:relative;font:500 22px var(--serif);color:#65765E}.person-avatar:after{content:'';position:absolute;inset:4px;border:1px solid #C2CFBC;border-radius:19px 15px 20px 16px;transform:rotate(-5deg)}.person-avatar.ole{background:#F3E9DF;color:#916C55}.person-avatar.ole:after{border-color:#DBCBBA}.person-avatar.alma{background:#F0ECDF;color:#8A7855}.person-avatar.alma:after{border-color:#D7CEB9}.person-heading{min-width:0;flex:1}.person-name{font-size:21px;font-weight:600;letter-spacing:-.4px}.person-group{font-size:13px;color:var(--muted);margin-top:4px;line-height:1.35}.person-group strong{font-weight:600}.card-selected{font-size:10px;background:var(--soft);border-radius:7px;padding:3px 6px;color:var(--accent);display:inline-block;margin-bottom:4px}.person-relatives{display:flex;gap:7px;align-items:flex-start;font-size:12px;line-height:1.4;color:var(--muted);margin-top:13px}.person-relatives svg{width:16px;height:16px}.person-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:12px}.person-tag{font-size:11px;line-height:1.35;padding:4px 7px;background:#F4F5F0;border:1px solid #E9ECE4;border-radius:7px;color:#52614F}.person-tag.diagnosis{background:#F7F2EA;border-color:#ECE5D9;color:#76644D}.intro-toggle{display:flex;align-items:center;justify-content:space-between;min-height:45px;width:100%;text-align:left;margin-top:9px;border-top:1px solid #EEF0EB;color:var(--accent);font-size:13px;font-weight:600}.intro-toggle svg{transition:transform 250ms var(--ease)}.intro-toggle[aria-expanded=true] svg{transform:rotate(180deg)}.person-introduction{display:grid;grid-template-rows:0fr;transition:grid-template-rows 280ms var(--ease)}.person-introduction.expanded{grid-template-rows:1fr}.person-introduction>div{overflow:hidden}.person-introduction p{font-size:14px;line-height:1.6;padding:2px 0 12px;color:#4E6057}.intro-source{font-size:11px;color:var(--muted);padding-bottom:15px}.profile-select-button{border-top:1px solid var(--line);width:calc(100% + 32px);margin:0 -16px;padding:12px 16px;font-size:14px;font-weight:600;color:var(--accent);background:#F6F8F3;text-align:left;display:flex;justify-content:space-between;align-items:center}
.assistant-section{margin-top:26px}.assistant-heading{font:500 26px/1.25 var(--serif);letter-spacing:-.6px}.assistant-explanation{font-size:13px;line-height:1.5;color:var(--muted);margin:7px 0 13px;max-width:310px}.composer{background:#fff;border:1px solid #C9D4C8;border-radius:18px;transition:box-shadow 180ms,border-color 180ms;overflow:hidden}.composer:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px #4E6A5B0A}.composer textarea{width:100%;min-height:71px;max-height:180px;border:0;background:none;outline:none;padding:15px 15px 3px;line-height:1.5;font-size:16px;display:block;overflow-y:auto}.composer textarea:focus-visible{outline:none}.composer textarea::placeholder{color:#78857C}.composer textarea:disabled{color:var(--muted);opacity:1}.composer-footer{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:6px 9px 9px 14px}.context-hint{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:11px}.context-hint .small-avatar{width:19px;height:19px;font-size:8px}.composer-tools{display:flex;align-items:center;gap:3px}.composer-tools .icon-button{width:43px;height:43px}.send-button{width:43px;height:43px;border-radius:12px;background:var(--accent);color:white;display:flex;align-items:center;justify-content:center}.send-button:hover{background:#405A4B}.send-button:disabled{background:#CBD5C7;opacity:1;color:#65775E}.quick-prompts{display:flex;gap:7px;margin-top:10px;flex-wrap:wrap}.quick-prompt{font-size:11px;border:1px solid #DEE5DA;border-radius:99px;min-height:32px;padding:5px 10px;color:#62765F;background:#FFFFFF77}.quick-prompt:hover{background:var(--soft)}.busy-message{display:flex;gap:9px;align-items:center;font-size:12px;color:var(--accent);padding:10px 1px}.busy-message p{flex:1}.busy-message button{font-size:12px;min-height:36px;text-decoration:underline;text-underline-offset:3px}.spinner{width:15px;height:15px;border:1.5px solid #CAD8C7;border-top-color:var(--accent);border-radius:50%;animation:spin 1.1s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.global-busy{position:sticky;top:0;margin:0 0 12px;background:var(--soft);border-radius:10px;padding:10px 12px;z-index:5}.history-block{margin-top:19px}.minor-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.minor-heading h3{font-size:12px;font-weight:600;color:var(--muted)}.text-button{font-size:12px;font-weight:600;color:var(--accent);min-height:32px;display:inline-flex;align-items:center;gap:5px}.history-list{border:1px solid var(--line);border-radius:16px;background:var(--surface);overflow:hidden;max-height:286px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#D4DCD1 transparent}.history-row{display:flex;align-items:center;gap:10px;min-height:69px;padding:10px 10px 10px 13px;border-bottom:1px solid #EEF0EA}.history-row:last-child{border:0}.history-symbol{width:26px;height:29px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.history-symbol svg{max-width:25px;max-height:26px}.history-copy{flex:1;min-width:0}.history-copy strong{font-size:13px;font-weight:600;line-height:1.3;display:block}.history-copy small{font-size:10px;line-height:1.4;color:var(--muted);display:block;margin-top:3px}.history-actions{display:flex;gap:0}.history-actions button{width:33px;height:44px;display:flex;align-items:center;justify-content:center;color:var(--accent);border-radius:8px}.history-actions button:hover{background:var(--soft)}.history-actions button svg{width:17px;height:17px}
.news-section{margin-top:29px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.section-heading h2{font:500 24px var(--serif);letter-spacing:-.3px;display:flex;align-items:center;gap:9px}.count{display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;font:600 11px var(--sans);color:var(--accent);background:var(--soft);border-radius:8px;padding:0 6px}.news-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:4px;gap:2px;border-radius:14px;background:#EEF1EC;min-height:60px;margin-bottom:4px}.news-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:7px 1px;border-radius:10px;font-size:9.5px;font-weight:600;color:#596D60;min-width:0;position:relative}.news-tab svg{width:19px;height:19px}.news-tab[aria-selected=true]{background:#fff;box-shadow:0 2px 5px #40583D08}.news-tab .tab-total{font-size:16px;height:19px;line-height:19px;font-weight:600}.news-row{display:flex;align-items:flex-start;gap:12px;padding:17px 2px;border-bottom:1px solid var(--line);position:relative}.news-open{display:flex;align-items:flex-start;gap:12px;flex:1;min-width:0;text-align:left;min-height:64px}.news-symbol{width:31px;flex-shrink:0;display:flex;align-items:center;justify-content:center;padding-top:4px}.news-symbol svg{width:28px;height:28px}.news-copy{flex:1;min-width:0}.news-meta{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:10px;line-height:1.3;margin-bottom:5px;flex-wrap:wrap}.news-copy h3{font-size:15px;font-weight:600;line-height:1.3;letter-spacing:-.15px}.news-copy p{font-size:12px;line-height:1.4;color:var(--muted);margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.news-side{display:flex;align-items:center;flex-direction:column;gap:4px;flex-shrink:0;margin-left:-5px}.news-side time{font-size:9px;color:var(--muted)}.seen-button{width:29px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:8px}.unread-dot{display:block;width:6px;height:6px;background:var(--terra);border-radius:50%}.seen-button .seen-check{display:none}.seen-button:hover .unread-dot{display:none}.seen-button:hover .seen-check{display:block}.show-more{width:100%;min-height:47px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--accent);font-size:13px}.information-entry{margin-top:26px;padding:15px;border:1px solid var(--line);border-radius:16px;background:var(--surface);display:flex;align-items:center;gap:12px;width:100%;text-align:left}.information-entry>div{flex:1}.information-entry strong{display:block;font-size:15px;font-weight:600}.information-entry small{font-size:12px;color:var(--muted);display:block;margin-top:2px}.information-entry svg{width:29px;height:29px}.information-entry .chev{width:16px;height:16px}
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:8px 0 20px}.page-heading h1{font:500 29px var(--serif);letter-spacing:-.65px}.page-heading p{font-size:12px;color:var(--muted);margin-top:5px}.page-heading .icon-button{border:1px solid var(--line);background:#fff}.page-heading button.add{height:43px;width:43px;border-radius:13px;background:var(--accent);color:white}.subsection{margin-top:27px}.subsection-title{font-size:16px;font-weight:600;margin-bottom:11px;display:flex;align-items:center;justify-content:space-between}.info-rail{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:3px 0 12px;scrollbar-width:thin;scrollbar-color:#D9E1D4 transparent}.info-card{flex:0 0 85%;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:17px;text-align:left;scroll-snap-align:start;display:flex;flex-direction:column;min-height:191px}.info-card .card-topic{font-size:10px;color:var(--muted);display:flex;gap:6px;align-items:center;margin-bottom:11px}.info-card .card-topic svg{width:15px;height:15px}.info-card h3{font-size:18px;line-height:1.3;font-weight:600;letter-spacing:-.3px}.info-card p{font-size:13px;color:var(--muted);line-height:1.45;margin:7px 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.info-card .card-meta{margin-top:auto;font-size:10px;color:var(--muted);padding-top:9px;border-top:1px solid #EFF1EB;line-height:1.6}.contact-list{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}.contact-row{padding:12px 14px;border-bottom:1px solid #EDF0E9;display:flex;gap:10px;align-items:center}.contact-row:last-child{border:0}.small-avatar{display:inline-flex;width:32px;height:32px;border-radius:11px;background:#E9EEE5;align-items:center;justify-content:center;font-size:11px;color:#61745B;flex-shrink:0}.contact-row strong{font-size:14px;font-weight:600;display:block}.contact-row small{font-size:12px;color:var(--muted)}.contact-row>div{flex:1}.contact-row button{width:40px;height:40px;display:flex;align-items:center;justify-content:center}.contact-row button svg{width:22px;height:22px}.rail-controls{display:flex;gap:3px}.rail-controls button{width:32px;height:32px;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;justify-content:center}.rail-controls svg{width:14px;height:14px}
.segmented{display:flex;background:#EEF1EB;padding:4px;border-radius:12px;gap:3px;min-height:44px}.segmented button{flex:1;min-width:0;border-radius:9px;padding:7px 8px;font-size:13px;color:var(--muted);display:flex;align-items:center;justify-content:center;gap:6px}.segmented button.selected{background:#fff;color:var(--accent);box-shadow:0 1px 3px #31483808;font-weight:600}.segmented button svg{width:17px;height:17px}.scope-row{display:flex;gap:7px;align-items:center;margin:13px 0}.filter-chip{display:inline-flex;gap:6px;align-items:center;border:1px solid var(--line);padding:6px 9px;border-radius:9px;background:#fff;min-height:35px;font-size:11px;color:var(--muted)}.filter-chip.selected{background:var(--soft);border-color:#CFDCCA;color:var(--accent)}.filter-chip svg{width:14px;height:14px}.scope-row .spacer{flex:1}.task-group-title{font-size:12px;font-weight:600;color:var(--muted);margin:21px 0 8px}.task-list{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}.task-row{display:flex;align-items:flex-start;gap:9px;padding:14px 10px;border-bottom:1px solid var(--line)}.task-row:last-child{border:0}.task-check{width:36px;min-height:44px;display:flex;align-items:flex-start;justify-content:center;padding-top:2px;flex-shrink:0}.task-check>span{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border:1.5px solid #BDCCB8;border-radius:7px;color:white}.task-check.done>span{background:var(--accent);border-color:var(--accent)}.task-check svg{height:15px;width:15px}.task-open{flex:1;text-align:left;min-width:0}.task-open h3{font-size:15px;font-weight:600;line-height:1.35}.task-open.done h3{text-decoration:line-through;color:var(--muted)}.task-open p{font-size:11px;color:var(--muted);margin-top:5px;line-height:1.4}.task-person{display:inline-flex;align-items:center;gap:4px;font-size:10px;margin-top:7px;border-radius:6px;padding:3px 6px;background:#F0F3EC;color:#65745F}.task-time{font-size:11px;color:var(--muted);margin-top:2px;white-space:nowrap}.calendar{margin-top:15px;border:1px solid var(--line);border-radius:18px;background:var(--surface);padding:12px}.month-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.month-heading h2{font-size:16px;font-weight:600;text-transform:capitalize}.month-heading button{width:39px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:10px}.month-heading button:hover{background:var(--soft)}.weekday-row,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.weekday-row span{font-size:10px;color:var(--muted);text-align:center;padding-bottom:7px}.calendar-day{height:37px;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:13px}.calendar-day.outside{color:#A4ADA1}.calendar-day.today{box-shadow:inset 0 0 0 1px #B2C3AB}.calendar-day.selected{background:var(--accent);color:white;box-shadow:none}.calendar-day .event-dot{width:3px;height:3px;border-radius:50%;background:var(--terra)}.calendar-day.selected .event-dot{background:#E7DDC8}.calendar-day .blank-dot{width:3px;height:3px}.calendar-day:hover:not(.selected){background:var(--soft)}.calendar-legend{font-size:10px;color:var(--muted);margin-top:10px;text-align:center}.search-bar{display:flex;gap:9px;align-items:center;margin:14px 0 9px}.search-field{display:flex;align-items:center;gap:8px;flex:1;min-width:0;background:#fff;border:1px solid var(--line);border-radius:12px;min-height:45px;padding:0 11px}.search-field svg{width:18px;height:18px;color:var(--muted)}.search-field input{font-size:14px;min-width:0;width:100%;border:0;outline:0;background:none;padding:10px 0}.search-bar>.icon-button{border:1px solid var(--line);height:45px;width:45px;border-radius:12px;background:#fff}.filter-summary{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);margin:11px 1px}.message-row{display:flex;align-items:flex-start;gap:11px;padding:17px 0;border-bottom:1px solid var(--line);width:100%;text-align:left;position:relative}.message-icon{width:28px;padding-top:5px}.message-icon svg{width:26px;height:26px}.message-copy{flex:1;min-width:0}.message-meta{display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:10px;color:var(--muted);margin-bottom:6px}.message-row h3{font-size:15px;font-weight:600;line-height:1.35}.message-row p{font-size:12px;color:var(--muted);margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.message-profile{font-size:10px;color:var(--muted);margin-top:7px;display:inline-flex;align-items:center;gap:4px}.message-profile .unread-dot{width:5px;height:5px}.message-row.is-unread h3{font-weight:700}.back-link{display:inline-flex;align-items:center;gap:5px;min-height:43px;font-size:13px;color:var(--accent);margin-top:-4px}.back-link svg{width:17px;height:17px}.profile-account{display:flex;align-items:center;gap:13px;margin:10px 0 24px}.account-avatar{width:55px;height:55px;background:#F2E7DE;border-radius:19px;display:flex;align-items:center;justify-content:center;font:500 20px var(--serif);color:#956B56}.profile-account h1{font-size:22px}.profile-account p{color:var(--muted);font-size:13px;margin-top:4px}.profile-list{display:flex;flex-direction:column;gap:15px}.account-settings{border:1px solid var(--line);border-radius:16px;background:#fff;padding:15px;margin-top:27px}.account-settings>p{font-size:11px;color:var(--muted);margin-bottom:10px}.account-settings .segmented{margin-bottom:9px}.account-settings .text-button{margin-right:14px}.empty-state{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:27px 16px;gap:10px}.empty-state h3{font-size:16px;font-weight:600}.empty-state p{font-size:13px;color:var(--muted);max-width:240px;line-height:1.5}.empty-state svg{width:30px;height:30px;margin-bottom:3px}.offer-section{margin-top:25px}.offer-section h2{font-size:16px;margin-bottom:12px}.offer-card{flex:0 0 86%;scroll-snap-align:start;background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:17px;min-height:170px;text-align:left;display:flex;flex-direction:column;align-items:flex-start}.offer-card svg{width:27px;height:27px;margin-bottom:12px}.offer-card h3{font-size:17px;font-weight:600;line-height:1.3}.offer-card p{color:var(--muted);font-size:13px;line-height:1.45;margin-top:6px}.offer-card span{font-size:11px;color:var(--accent);margin-top:15px}.info-disclaimer{font-size:11px;line-height:1.5;color:var(--muted);margin-top:23px}
.modal-root:empty{display:none}.modal-root{position:absolute;inset:0;z-index:50}.modal-backdrop{position:absolute;inset:0;background:#263D353D;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);animation:fade-in 180ms var(--ease)}@keyframes fade-in{from{opacity:0}to{opacity:1}}.modal{position:absolute;bottom:0;left:0;right:0;max-height:96%;display:flex;flex-direction:column;border-radius:25px 25px 0 0;background:var(--bg);box-shadow:0 -10px 40px #34464218;animation:sheet-in 280ms var(--ease);overflow:hidden}.modal.full{top:0;border-radius:0;max-height:none}.modal.short{max-height:80%}.modal-handle{flex-shrink:0;height:4px;width:36px;border-radius:3px;background:#D3DCD0;margin:9px auto 0}.modal-header{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:14px 16px 11px;border-bottom:1px solid #E8EBE4;flex-shrink:0}.modal-header>div{flex:1;min-width:0}.modal-header h2{font-size:18px;font-weight:600;letter-spacing:-.3px}.modal-header p{font-size:11px;color:var(--muted);margin-top:4px;display:flex;align-items:center;gap:6px}.modal-header .icon-button{width:40px;height:42px}.modal-content{overflow-y:auto;padding:20px 19px 22px;min-height:0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#CCD8C6 transparent}.modal-footer{padding:13px 18px calc(14px + var(--safe-bottom));border-top:1px solid var(--line);background:var(--bg);flex-shrink:0;display:flex;flex-direction:column;gap:9px}.modal-footer small{font-size:10px;text-align:center;line-height:1.4;color:var(--muted)}@keyframes sheet-in{from{transform:translateY(24px);opacity:.5}to{transform:translateY(0);opacity:1}}.primary-button,.secondary-button,.danger-button{min-height:47px;border-radius:13px;font-size:14px;font-weight:600;padding:12px 16px;display:flex;align-items:center;justify-content:center;gap:8px;width:100%}.primary-button{background:var(--accent);color:#fff}.primary-button:hover{background:#405A4B}.secondary-button{background:#fff;border:1px solid var(--line);color:var(--accent)}.danger-button{background:#F3E5DE;color:#874F3A}.button-row{display:flex;gap:8px}.button-row>*{flex:1}.modal-eyebrow{font-size:10px;font-weight:600;color:var(--muted);letter-spacing:.8px;text-transform:uppercase;margin-bottom:8px}.modal-title{font:500 26px/1.3 var(--serif);letter-spacing:-.4px;margin-bottom:14px}.detail-body{font-size:16px;line-height:1.7;color:#485B52;white-space:pre-line}.detail-meta{display:grid;grid-template-columns:auto 1fr;gap:9px 14px;font-size:12px;line-height:1.5;margin-top:21px;padding-top:17px;border-top:1px solid var(--line)}.detail-meta dt{color:var(--muted)}.detail-meta dd{margin:0;color:var(--ink)}.field{margin-bottom:16px}.field label{display:block;font-size:12px;font-weight:600;margin-bottom:6px}.field input,.field textarea,.field select{display:block;width:100%;border:1px solid #D6DFD0;background:#fff;border-radius:11px;padding:11px 12px;font-size:15px;min-height:45px}.field textarea{line-height:1.6;min-height:134px;resize:vertical}.field select{appearance:auto}.field small{display:block;font-size:11px;color:var(--muted);margin-top:6px;line-height:1.5}.field .char-count{text-align:right}.field-row{display:flex;gap:12px}.field-row>*{flex:1;min-width:0}.request-context{display:flex;align-items:center;gap:9px;background:var(--soft);border-radius:12px;padding:10px 12px;font-size:12px;margin-bottom:18px}.request-context svg{width:18px;height:18px}.request-context strong{font-weight:600}.context-warning{font-size:12px;background:#F5EEE3;padding:12px;border-radius:10px;margin-bottom:16px;line-height:1.5;color:#725E42}.original-query{font-size:13px;line-height:1.6;padding:12px 14px;border-left:2px solid #BCCDB3;background:#F3F6F0;border-radius:0 9px 9px 0;margin-bottom:20px;white-space:pre-line}.answer-box{font-size:16px;line-height:1.65;white-space:pre-line}.source-card{display:flex;gap:11px;align-items:center;text-align:left;width:100%;margin-top:18px;padding:13px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}.source-card>div{flex:1}.source-card strong{font-size:13px;font-weight:600;display:block}.source-card span{font-size:11px;color:var(--muted);display:block;margin-top:4px}.source-card svg{width:24px;height:24px}.followup-button{padding:13px 0 0;margin-top:14px;border-top:1px solid var(--line);font-size:13px;color:var(--accent);display:flex;align-items:center;justify-content:space-between;width:100%;gap:9px;text-align:left;line-height:1.45;min-height:49px}.followup-button svg{width:17px;height:17px}.notice{font-size:12px;line-height:1.6;background:#F0F3EC;border-radius:12px;padding:12px 13px;color:#53634B;margin:13px 0}.dialog-options{display:grid;gap:8px;margin-top:17px}.dialog-option{display:flex;gap:12px;align-items:center;text-align:left;border:1px solid var(--line);padding:13px;border-radius:12px;background:#fff;min-height:54px}.dialog-option svg{width:24px;height:24px}.dialog-option strong{display:block;font-size:14px;font-weight:600}.dialog-option small{font-size:11px;color:var(--muted)}.profile-choice{display:flex;align-items:center;gap:11px;min-height:67px;padding:12px 0;border-bottom:1px solid var(--line);width:100%;text-align:left}.profile-choice>div{flex:1}.profile-choice strong{font-size:15px;font-weight:600;display:block}.profile-choice small{font-size:11px;color:var(--muted)}.profile-choice .chosen{height:19px;width:19px;border:1px solid var(--accent);border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--soft)}.profile-choice .chosen svg{width:13px;height:13px}.confirm-layer{position:absolute;inset:0;z-index:80;background:#263D3561;display:flex;align-items:center;justify-content:center;padding:22px;backdrop-filter:blur(3px)}.confirm-dialog{width:100%;border-radius:21px;padding:22px;background:var(--bg);box-shadow:0 12px 45px #263D3529;animation:fade-in 170ms}.confirm-dialog h3{font-size:21px;font-weight:600;margin-bottom:10px}.confirm-dialog p{font-size:14px;color:var(--muted);line-height:1.6;margin-bottom:21px}.confirm-dialog .button-row{flex-direction:column}.toast{position:absolute;left:18px;right:18px;bottom:calc(var(--nav) + var(--safe-bottom) + 12px);background:#344C3F;color:white;padding:11px 15px;border-radius:12px;box-shadow:0 6px 18px #344C3F1A;z-index:90;font-size:13px;line-height:1.45;opacity:0;transform:translateY(7px);pointer-events:none;transition:opacity 180ms,transform 180ms}.toast.visible{opacity:1;transform:translateY(0)}.success-mark{width:52px;height:52px;border-radius:18px;background:var(--soft);display:flex;align-items:center;justify-content:center;color:var(--accent);margin-bottom:17px}.success-mark svg{width:27px;height:27px}.confirmation-copy h3{font:500 25px var(--serif);margin-bottom:12px}.confirmation-copy p{font-size:14px;line-height:1.65;color:var(--muted)}
/* Existing question widget: CSS and mechanics retained; only section spacing belongs to the new shell. */
.question-section{padding-top:7px}.question-section .subsection-title{margin-bottom:18px}
@container(max-width:355px){.app-main{padding-inline:14px}.appbar{padding-inline:12px}.brand-button img{width:132px}.profile-toggle{padding-inline:6px}.profile-toggle span{max-width:57px}.person-name{font-size:20px}.person-avatar{height:52px;width:52px;font-size:20px}.person-top{gap:10px}.person-tag{font-size:10px}.assistant-heading{font-size:24px}.nav-button{font-size:10.5px}.news-tab{font-size:9px}.history-row{padding-left:10px;gap:8px}.history-symbol{width:22px}.history-copy strong{font-size:12px}.history-actions button{width:30px}}
@media(max-width:900px){.prototype-workspace{gap:45px;padding-inline:24px}.preview-panel{width:265px}.preview-panel h1{font-size:35px}.preview-logo{width:170px}}
@media(max-width:700px){:root{--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}html,body{overflow:hidden;height:100%;background:var(--bg)}.prototype-workspace{padding:0;display:block;min-height:100%;height:100dvh;background:var(--bg)}.preview-panel,.device-caption,.device-status,.home-indicator{display:none}.device-wrap{display:block;width:100%;height:100%}.device{width:100%!important;height:100%!important;min-height:0;border:0;box-shadow:none;border-radius:0;max-width:none}.app{inset:0}.app-main{padding-top:calc(var(--bar) + var(--safe-top) + 8px)}.bottom-nav{min-height:calc(var(--nav) + var(--safe-bottom))}.modal.full{padding-top:var(--safe-top)}.modal.short{max-height:calc(100% - var(--safe-top))}.brand-button img{width:146px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}body.reduce-motion *,body.reduce-motion *:before,body.reduce-motion *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}

/* Accessible hit areas stay generous while the handdrawn marks remain small. */
.history-actions button{width:48px;height:48px}.intro-toggle{min-height:48px}.icon-button.profile{width:48px}.composer-tools .icon-button,.send-button{width:48px;height:48px}.nav-button>span:last-child{white-space:nowrap}.news-side{margin-left:0}.seen-button{width:44px;height:44px}.person-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.history-row{padding-right:6px}.history-copy small{font-size:11px}

.composer textarea::placeholder{color:#6B776E}.calendar-day.outside{color:#6F7A6B}.history-executions{margin-top:20px;border-top:1px solid var(--line);padding-top:14px}.history-executions summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--accent);min-height:38px}.history-execution{padding:14px 0;border-top:1px solid var(--line)}.history-execution strong{font-size:12px;display:block}.history-execution p{font-size:13px;line-height:1.55;margin-top:8px;white-space:pre-line}.history-execution small{font-size:11px;color:var(--muted)}

/* Light reusable cards; Home has a separate screen header backed by the same profile data. */
.profile-card,.history-list,.information-entry,.info-card,.contact-list,.task-list,.calendar,.offer-card,.source-card{
  background:#FCF9F6;
  border-color:#E5D8D1;
  box-shadow:none;
}
:is(.profile-card,.home-profile-facts) .person-tag{background:#FFFFFF;border-color:#E9E0D9}
.profile-card .profile-select-button{background:transparent}
.profile-card .intro-toggle,.profile-card .profile-select-button,.info-card .card-meta{border-top-color:#EEE5DF}
.history-list .history-row,.contact-list .contact-row,.task-list .task-row{border-bottom-color:#EEE5DF}

/* Full-width organic Home header. Its content starts below the fixed appbar and safe area. */
.app-main.home-content{--home-gutter:18px;padding-top:calc(var(--bar) + var(--safe-top))}
.home-profile{position:relative}
.home-hero{position:relative;isolation:isolate;margin-inline:calc(-1 * var(--home-gutter));padding:18px var(--home-gutter) 32px;color:#FFFFFF}
.home-hero-backdrop{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
.home-hero-person{position:relative;display:flex;align-items:center;gap:17px;min-width:0}
.home-hero .home-avatar{width:66px;height:66px;border-radius:24px;font-size:24px;box-shadow:0 0 0 1px #FFFFFF33}
.home-hero .home-avatar:after{border-radius:22px 18px 23px 20px}
.home-hero-heading{flex:1;min-width:0}
.home-person-name{font-size:24px;line-height:1.2;font-weight:600;letter-spacing:-.45px;color:#FFFFFF;overflow-wrap:anywhere}
.home-person-group{font-size:13px;line-height:1.4;margin-top:4px;color:#FFFFFF;overflow-wrap:anywhere}
.home-person-group strong{font-weight:600}
.home-intro-button{display:inline-flex;align-items:center;gap:6px;min-height:48px;margin-top:2px;padding:0 2px 0 0;font-size:13px;font-weight:600;color:#FFFFFF;text-decoration:underline;text-decoration-color:#FFFFFF66;text-underline-offset:4px;border-radius:6px}
.home-intro-button svg{width:16px;height:16px}
.home-intro-button:hover{background:#FFFFFF0D;text-decoration-color:#FFFFFF}
.home-intro-button:focus-visible{outline-color:#FFFFFF}
.home-profile-facts{padding-top:10px}
.home-profile-facts .person-relatives{margin-top:0}
.home-profile-facts .person-tags{margin-top:9px;gap:5px}
@container(max-width:355px){
  .app-main.home-content{--home-gutter:14px}
  .home-hero{padding-top:16px;padding-bottom:30px}
  .home-hero-person{gap:13px}
  .home-hero .home-avatar{width:58px;height:58px;font-size:21px;border-radius:21px}
  .home-person-name{font-size:22px}
  .home-person-group{font-size:12px}
}
@media(max-height:650px){
  .home-hero{padding-top:12px;padding-bottom:24px}
  .home-person-name{font-size:21px}
  .home-person-group{font-size:12px;line-height:1.35}
  .home-intro-button{margin-top:1px}
}

/* Read-only introduction: the existing global dialog owns focus, close and back behavior. */
.intro-dialog .modal-header{border-bottom:0;padding-bottom:5px}
.intro-dialog .modal-content{padding-top:12px}
.intro-dialog-person{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.intro-dialog .intro-avatar{width:56px;height:56px;font-size:21px;border-radius:19px}
.intro-dialog-person h3{font:500 25px/1.25 var(--serif);letter-spacing:-.4px;margin:0}
.intro-dialog-group{font-size:13px;line-height:1.45;color:var(--muted);margin-top:5px}
.intro-dialog-text{font-size:16px;line-height:1.75;color:var(--ink);white-space:pre-line}
.intro-dialog .intro-source{margin-top:20px;padding:13px 0 0;border-top:1px solid #EEE5DF;font-size:12px;line-height:1.5}
.intro-dialog .modal-footer{border-top:0;padding-top:5px}

/* 3.2: the existing Home shape grows to contain contact, diagnosis and support rows. */
.home-hero{padding-bottom:64px}
.home-hero-facts{display:grid;gap:9px;margin-top:13px}
.home-fact-row{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;align-items:start}
.home-fact-label{display:flex;align-items:center;gap:5px;min-height:27px;font-size:12px;line-height:1.35;font-weight:600;color:#FFFFFF}
.home-fact-label svg{width:15px;height:15px;fill:#FFFFFF}
.home-fact-label svg path{fill:#FFFFFF}
.home-contact-list{display:flex;flex-wrap:wrap;gap:0 10px;margin:-8px 0 -8px}
.home-contact-button{min-height:44px;max-width:100%;font-size:14px;line-height:1.3;font-weight:600;color:#FFFFFF;text-align:left;text-decoration:underline;text-decoration-color:#FFFFFF55;text-underline-offset:4px;border-radius:5px;overflow-wrap:anywhere}
.home-contact-button:hover{background:#FFFFFF10;text-decoration-color:#FFFFFF}
.home-contact-button:focus-visible{outline-color:#FFFFFF}
.home-fact-tags{display:flex;flex-wrap:wrap;gap:5px;align-items:flex-start;padding-top:1px;min-width:0}
.home-fact-tags .person-tag{background:#FFFFFF;border-color:#FFFFFF33;font-size:12px;line-height:1.35;padding:4px 7px;white-space:normal}
.home-fact-empty{font-size:13px;line-height:1.5;color:#FFFFFF;opacity:.9;padding-top:4px}
.confirmed-diagnosis{display:inline-flex;align-items:center;gap:4px}
.confirmed-diagnosis>svg{width:13px;height:13px;color:#4E6A5B}
.profile-toggle{gap:4px;padding-inline:7px;max-width:126px}
.profile-toggle>svg{width:18px;height:18px}
.profile-toggle>svg:last-child{width:15px;height:15px}
.profile-toggle .selected-kartotek-name{min-width:0;max-width:64px}
@container(max-width:355px){
  .home-hero{padding-bottom:68px}
  .home-fact-row{grid-template-columns:105px minmax(0,1fr);gap:8px}
  .home-fact-label{font-size:11.5px}
  .home-contact-list{column-gap:8px}
  .home-contact-button{font-size:13px}
  .home-fact-tags .person-tag{font-size:11px;padding:4px 6px}
  .profile-toggle{padding-inline:4px;max-width:95px}
  .profile-toggle .selected-kartotek-name{max-width:44px}
}
.contact-detail-list{display:grid;gap:16px;margin:0}
.contact-detail-list>div{padding-top:13px;border-top:1px solid #EEE5DF}
.contact-detail-list dt{font-size:12px;color:var(--muted);margin-bottom:4px}
.contact-detail-list dd{margin:0;font-size:16px;line-height:1.5;color:var(--ink);overflow-wrap:anywhere}
.contact-example{font-size:12px;color:var(--muted);margin-top:18px}

/* Answered questions use the same quiet card surface. The original question deck is unchanged. */
.answered-questions{display:grid;gap:9px}
.answered-question{background:#FCF9F6;border:1px solid #E5D8D1;border-radius:17px;overflow:hidden}
.answered-question>summary{display:flex;align-items:center;gap:10px;padding:14px;min-height:78px;cursor:pointer;list-style:none;border-radius:16px}
.answered-question>summary::-webkit-details-marker{display:none}
.answered-question>summary>svg:first-child{width:22px;height:22px;flex-shrink:0}
.answered-question>summary>svg:last-child{width:17px;height:17px;color:var(--accent);transition:transform 250ms var(--ease)}
.answered-question[open]>summary>svg:last-child{transform:rotate(180deg)}
.answered-question>summary:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.answered-question-copy{flex:1;min-width:0}
.answered-question-copy strong{display:block;font-size:15px;line-height:1.35;font-weight:600;overflow-wrap:anywhere}
.answered-question-copy small{display:block;font-size:12px;color:var(--muted);margin-top:5px}
.question-answer-content{padding:0 14px 5px}
.question-answer{padding:13px 0;border-top:1px solid #EEE5DF}
.question-answer p{font-size:15px;line-height:1.65;white-space:pre-line;overflow-wrap:anywhere}
.question-answer-author{margin-top:10px;font-size:12px;line-height:1.5;color:var(--muted)}
.question-answer-author strong{display:block;font-weight:600;color:var(--ink)}
.question-answer-author span{display:block}
.question-contribute{display:flex;align-items:center;gap:6px;min-height:48px;width:100%;border-top:1px solid #EEE5DF;color:var(--accent);font-size:14px;font-weight:600}
.question-contribute svg{width:17px;height:17px}
.question-deck-toggle{display:flex;align-items:center;justify-content:center;gap:7px;min-height:48px;width:100%;margin-top:13px;border:1px solid #D6DED3;border-radius:12px;color:var(--accent);font-size:14px;font-weight:600;background:#FFFFFF}
.question-deck-toggle svg{width:17px;height:17px}
.question-deck-wrap{margin-top:16px}
.answered-subheading{margin-top:25px}
.question-dialog-title{font:500 24px/1.3 var(--serif);letter-spacing:-.3px;margin-bottom:10px}
.question-dialog-help{font-size:14px;line-height:1.6;color:var(--muted);margin-bottom:20px}
@media(prefers-reduced-motion:reduce){.answered-question>summary>svg:last-child{transition:none}}
.reduce-motion .answered-question>summary>svg:last-child{transition:none}

/* 3.2.1: one contact line and one compact, combined facts block in the same Home hero. */
/* 3.2.2: increase only the label-to-contact-name gap; retain the single-line overflow logic. */
.contacts-row{column-gap:16px}
@container(max-width:355px){.contacts-row{column-gap:14px}}
.home-contact-list{flex-wrap:nowrap;align-items:center;min-width:0;overflow:hidden}
.home-contact-list [hidden]{display:none}
.home-contact-button{flex:0 0 auto;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-contacts-more{flex:0 0 auto;min-width:44px;min-height:44px;padding:0 8px;border:1px solid #FFFFFF38;border-radius:22px;background:#FFFFFF12;color:#FFFFFF;font-size:13px;font-weight:600;white-space:nowrap}
.home-contacts-more:hover{background:#FFFFFF22}
.home-contacts-more:focus-visible{outline-color:#FFFFFF;outline-offset:-3px}
.combined-facts-row{grid-template-columns:1fr;gap:6px}
.combined-facts-row .home-fact-label{min-height:0}
.combined-facts-row .home-fact-tags{padding-top:0}
.contact-overview-list{display:grid;gap:10px}
.contact-overview-card{padding:14px;border:1px solid #E5D8D1;border-radius:17px;background:#FCF9F6}
.contact-overview-heading{display:flex;align-items:center;gap:11px;margin-bottom:13px}
.contact-overview-heading>div:last-child{min-width:0;flex:1}
.contact-overview-heading h3{font-size:16px;font-weight:600;line-height:1.35;color:var(--ink);overflow-wrap:anywhere}
.contact-overview-heading p{margin-top:3px;font-size:13px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}
.contact-overview-avatar{width:44px;height:44px;min-width:44px;font-size:19px;border-radius:15px}
.contact-overview-data{display:grid;grid-template-columns:52px minmax(0,1fr);gap:7px 10px;padding-top:11px;border-top:1px solid #EEE5DF;margin:0;line-height:1.5}
.contact-overview-data dt{font-size:14px;color:var(--muted)}
.contact-overview-data dd{margin:0;font-size:16px;color:var(--ink);overflow-wrap:anywhere}
.contacts-overview-dialog .modal-content{padding-top:14px}

