/* Refinements that keep headings typographically consistent. */
em{font-style:normal}
.unavailable-panel{margin-bottom:80px;padding:45px;background:var(--soft);border:1px solid var(--border);border-radius:10px;text-align:center}
.unavailable-panel p{max-width:720px;margin:0 auto 18px}
@media(max-width:760px){.unavailable-panel{padding:30px 22px;margin-bottom:50px}}

.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}
.prof-heading{display:flex;justify-content:space-between;align-items:end;gap:45px;padding-block:52px 32px}
.prof-heading h1{font-size:clamp(2.25rem,3.6vw,3.7rem);margin:14px 0 0}
.prof-heading>p{max-width:460px;margin:0 0 8px}
.prof-layout{display:grid;grid-template-columns:270px minmax(0,1fr);min-height:670px;margin-bottom:70px;border:1px solid var(--border);border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 18px 55px #173e3320}
.prof-sidebar{padding:24px 18px;background:#f1f6f1;border-right:1px solid var(--border)}
.prof-sidebar .prof-new{width:100%;margin-bottom:28px}
.prof-sidebar h2{font:700 .76rem/1.4 'Segoe UI',sans-serif;letter-spacing:.12em;text-transform:uppercase;margin:0 8px 12px;color:var(--muted)}
.conversation-list{display:grid;gap:5px}
.conversation-list a{display:block;padding:11px 12px;border-radius:7px;text-decoration:none;color:var(--ink);overflow:hidden}
.conversation-list a:hover,.conversation-list a[aria-current]{background:#fff;box-shadow:0 2px 10px #163f3e12}
.conversation-list strong,.conversation-list small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.conversation-list strong{font-size:.87rem;font-weight:600}.conversation-list small{font-size:.72rem;margin-top:3px}
.conversation-list p{font-size:.83rem;padding:10px 8px}
.prof-chat-panel{min-width:0;display:grid;grid-template-rows:auto 1fr auto;background:#fbfdfb}
.prof-chat-topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 24px;background:#fff;border-bottom:1px solid var(--border)}
.prof-chat-topbar strong,.prof-chat-topbar small{display:block}.prof-chat-topbar small{font-size:.76rem}.prof-top-actions{display:flex;align-items:end;flex-direction:column;gap:4px}.prof-top-actions>span{font-size:.78rem;color:var(--muted);white-space:nowrap}.prof-delete{border:0;background:transparent;color:#8e3d3d;padding:0;min-height:0;font-size:.72rem;text-decoration:underline;cursor:pointer}
.prof-messages{padding:30px;overflow-y:auto;max-height:650px;min-height:460px}
.prof-empty{max-width:650px;margin:65px auto;text-align:center}.prof-empty h2{font-size:2rem;margin:18px 0 12px}.prof-empty>p{max-width:570px;margin-inline:auto}
.prof-mark{display:grid;place-items:center;margin:auto;width:48px;height:48px;border-radius:50% 50% 50% 8px;background:var(--green);color:#fff;font:600 1.5rem Georgia,serif}
.prof-prompts{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin-top:26px}.prof-prompts button{border:1px solid #b9cec2;background:#fff;color:var(--ink);border-radius:22px;padding:9px 14px;font-size:.82rem;cursor:pointer}.prof-prompts button:hover{background:var(--soft)}
.prof-message{display:grid;grid-template-columns:42px minmax(0,1fr);gap:14px;max-width:850px;margin:0 auto 25px}.prof-message.user{background:#edf4ed;border-radius:10px;padding:18px}.prof-message.assistant{padding:5px 18px}.prof-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#fff;border:1px solid #b9cec2;color:var(--green);font-size:.76rem;font-weight:700}.prof-message.assistant .prof-avatar{background:var(--green);color:#fff;border-color:var(--green);font:600 1.2rem Georgia,serif}.prof-message strong{font-size:.85rem}.prof-message p{color:var(--ink);line-height:1.75;margin:7px 0 0;overflow-wrap:anywhere}.prof-sources{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:13px}.prof-sources span{font-size:.75rem;color:var(--muted)}.prof-sources small{background:var(--soft);border:1px solid var(--border);border-radius:14px;padding:3px 9px}
.prof-composer{padding:18px 22px;background:#fff;border-top:1px solid var(--border);display:grid;gap:10px}.prof-input-shell{border:1px solid #acc8ba;border-radius:12px;background:#fcfdfb;overflow:hidden;transition:border-color .15s,box-shadow .15s}.prof-input-shell:focus-within{border-color:#8a650f;box-shadow:0 0 0 3px #d3a54135}.prof-composer textarea{display:block;width:100%;resize:none;border:0;padding:14px 15px 7px;min-height:62px;max-height:150px;color:var(--ink);background:transparent;outline:0}.prof-composer-actions{display:flex;align-items:center;gap:6px;padding:5px 7px 8px}.prof-composer .prof-tool{display:grid;place-items:center;min-width:38px;width:38px;height:38px;min-height:38px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink);font-size:1.05rem}.prof-composer .prof-tool:hover{background:var(--soft)}.prof-composer .prof-tool.listening{background:#f5dddd;color:#9d2d2d;box-shadow:0 0 0 4px #f5dddd80}.prof-enter-hint{margin-left:5px;color:var(--muted);font-size:.72rem}.prof-composer .prof-send{min-width:110px;margin-left:auto;min-height:40px;padding:9px 17px}.prof-composer>p{margin:0;font-size:.73rem}.prof-composer>p.error{color:#a12f2f}.prof-attachment-list{display:flex;gap:9px;flex-wrap:wrap}.prof-attachment-list:empty{display:none}.prof-attachment{display:grid;grid-template-columns:45px minmax(80px,170px) 26px;align-items:center;gap:8px;padding:6px;border:1px solid var(--border);border-radius:9px;background:var(--soft)}.prof-attachment img{width:45px;height:45px;object-fit:cover;border-radius:6px}.prof-attachment span,.prof-attachment strong,.prof-attachment small{display:block;min-width:0}.prof-attachment strong{font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.prof-attachment small{font-size:.68rem}.prof-attachment button{min-width:26px;width:26px;height:26px;min-height:26px;padding:0;border:0;border-radius:50%;background:#fff;color:var(--ink);font-size:1.1rem}.prof-message-files{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.prof-message-files small{display:inline-block;padding:4px 9px;border:1px solid #cbdcd1;border-radius:14px;background:#fff;color:var(--ink)}
.prof-configuring{margin:25px;padding:22px;background:var(--soft);border-radius:8px}.prof-configuring p{margin:4px 0 0}
@media(max-width:900px){.prof-heading{display:block}.prof-heading>p{margin-top:20px}.prof-layout{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:700px){.prof-heading{padding-block:35px 22px}.prof-layout{width:100%;border-inline:0;border-radius:0;grid-template-columns:1fr;margin-bottom:40px}.prof-sidebar{border-right:0;border-bottom:1px solid var(--border);padding:16px 18px}.prof-sidebar h2,.conversation-list{display:none}.prof-sidebar .prof-new{margin:0}.prof-chat-topbar{align-items:start;padding:15px 18px}.prof-chat-topbar>span{white-space:normal;text-align:right}.prof-messages{padding:22px 14px;min-height:420px}.prof-empty{margin:40px auto}.prof-prompts{align-items:stretch;flex-direction:column}.prof-message{grid-template-columns:34px minmax(0,1fr);gap:10px}.prof-avatar{width:32px;height:32px}.prof-message.user,.prof-message.assistant{padding:14px 10px}.prof-composer{padding:14px}.prof-enter-hint{display:none}.prof-composer .prof-send{width:auto;min-width:94px}.prof-attachment{grid-template-columns:40px minmax(70px,140px) 26px}.prof-attachment img{width:40px;height:40px}}

.password-control{position:relative;width:100%}.password-control input{padding-right:52px!important}.password-toggle{position:absolute;right:5px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:40px;height:40px;min-width:40px;min-height:40px;padding:0!important;border:0!important;border-radius:6px!important;background:transparent!important;color:var(--green)!important;box-shadow:none!important}.password-toggle:hover{background:var(--soft)!important}.password-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
