/* Scoped additions only: existing marketplace, profiles, auth and chat layout unchanged. */
#journey .jy-shell,#journeys .jy-shell{max-width:900px;padding-top:24px;padding-bottom:calc(40px + env(safe-area-inset-bottom));overflow-wrap:anywhere}
#journey .jy-header,#journeys .jy-header{position:static;background:transparent;box-shadow:none;border:0;backdrop-filter:none;z-index:auto;margin:24px 0}
#journey h1,#journeys h1{font-size:clamp(30px,5vw,42px);line-height:1.2;margin:16px 0}
#journey h2,#journeys h2{font-size:23px;line-height:1.3;display:flex;align-items:center;gap:10px}
#journey h3{font-size:21px;line-height:1.4}
#journey p,#journeys p{font-size:16px;line-height:1.65}
#journey .panel,#journeys .panel{margin:18px 0;min-width:0}
#journey .jy-symbol,#journeys .jy-symbol{display:grid;place-items:center;width:56px;height:56px;border-radius:18px;background:color-mix(in srgb,var(--teal) 10%,transparent);color:var(--teal)}
#journey .jy-toolbar,#journeys .jy-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:16px 0}
#journey .btn,#journeys .btn,.jy-chat-materials .btn{min-height:44px;white-space:normal;font-size:16px}
#journey .jy-state{display:flex;gap:10px;align-items:center;color:var(--teal)}
#journey .jy-next{border:1px solid var(--teal)}
#journey .jy-note,.jy-chat-materials .jy-note{font-size:14px;line-height:1.6;opacity:.85}
#journey details,.jy-chat-materials details{margin-top:18px}
#journey summary,.jy-chat-materials summary{cursor:pointer;padding:12px 0;min-height:44px;font-size:16px;font-weight:600}
#journey input,.jy-chat-materials input,.jy-chat-materials select{display:block;box-sizing:border-box;width:100%;min-width:0;font:inherit;font-size:16px;color:inherit;background:transparent;border:1px solid var(--linea);border-radius:12px;padding:12px;margin:8px 0 16px}
#journey label,.jy-chat-materials label{display:block;font-size:16px}
#journey .jy-previews{border-left:3px solid var(--linea);padding-left:14px;margin:16px 0}
#journey .jy-notice{border-left:3px solid var(--teal);padding:12px}
#journeys .jy-list-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
#journeys .jy-empty{text-align:center;padding:32px 24px}
#journeys .jy-empty h2{justify-content:center}
.jy-material-list{display:grid;gap:12px;margin:16px 0}
.jy-material{display:flex;align-items:center;gap:12px;box-sizing:border-box;max-width:100%;width:100%;min-width:0;min-height:48px;padding:14px;border:1px solid var(--linea);border-radius:14px;background:transparent;color:inherit;text-decoration:none;text-align:left;cursor:pointer;font:inherit;overflow-wrap:anywhere}
.jy-material>span{flex:1;min-width:0}.jy-material strong,.jy-material small{display:block}.jy-material small{font-size:13px;margin-top:4px}.jy-material svg{flex-shrink:0;width:20px;height:20px;color:var(--teal)}
.jy-chat-materials{border-top:1px solid var(--linea);padding:16px;min-width:0}.jy-chat-materials [hidden]{display:none!important}
.jy-chat-materials form{max-width:560px}.jy-chat-materials summary svg{vertical-align:middle}
.jy-file-status:empty{display:none}
#journey :focus-visible,#journeys :focus-visible,.jy-chat-materials :focus-visible,.jy-material:focus-visible{outline:3px solid var(--teal);outline-offset:3px}
@media(max-width:540px){#journey .panel,#journeys .panel{padding:20px 16px}#journey .jy-toolbar>.btn,#journeys .jy-toolbar>.btn{flex:1 1 150px}#journeys .jy-list-row{align-items:stretch;flex-direction:column}}
@media(prefers-reduced-motion:reduce){#journey *,#journeys *,.jy-chat-materials *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
