.home-composer input { min-width:0; flex:1; min-height:42px; padding-inline:4px; border:0; background:transparent; color:var(--ink); font:inherit; }
.home-composer input::placeholder {color:#526b88}
.home-composer:focus-within {box-shadow:inset 0 0 0 2px #628db9}
.home-composer input:focus {outline:none}
.home-composer .send {flex-basis:44px; width:44px; height:44px; border:0; cursor:pointer}
.preview-text-action {padding:0; min-height:44px; color:#28486d; background:none; border:0; font:inherit; text-decoration:underline; text-underline-offset:4px; cursor:pointer}
.personal-links {display:flex; gap:16px; align-items:center; flex-wrap:wrap}
.personal-links a,.tab[href] {text-decoration:none}
.personal-links a {display:inline-flex; align-items:center; color:#28486d; min-height:44px}
#personal-chat {display:flex; flex-direction:column; min-height: min(730px,100dvh); padding:0 20px 16px; background:var(--hepai-chat-canvas)}
#personal-chat[hidden] {display:none}
.pc-header {display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:64px}
.pc-header a {min-height:44px; display:flex; align-items:center; color:var(--ink); text-decoration:none}
.pc-thread {display:flex; flex-direction:column; gap:14px; margin:18px 0; padding:0; list-style:none; flex:1; min-height:116px}
.pc-thread li {max-width:91%; overflow-wrap:anywhere; white-space:pre-wrap; margin:0; border-radius:13px 13px 13px 3px; padding:10px 13px; background:#fff; color:#153555; font-size:15px; line-height:1.65}
.pc-thread li[data-from="self"] {align-self:flex-end; border-radius:13px 13px 3px 13px; background:#dbe9f9}
.pc-thread li strong {display:block; font-size:12px; font-weight:600; color:#34577d}
.pc-ideas {display:grid; gap:0; margin:0 0 12px; border-top:1px solid #d5e0ee}
.pc-ideas button {min-height:46px; text-align:left; padding:7px 0; border:0; border-bottom:1px solid #d5e0ee; color:#21476f; background:none; cursor:pointer; font:inherit}
.pc-compose {display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:8px; margin-top:6px}
.pc-compose label {grid-column:1/-1}
.pc-compose textarea {min-width:0; min-height:54px; resize:vertical; padding:10px; border:1px solid #8ba6c6; border-radius:12px; font:inherit; color:#163757; background:#fff; caret-color:#365f8c}
.pc-compose textarea:focus {outline:none; box-shadow:inset 0 0 0 2px #7798bf}
.pc-button {min-height:48px; border:1px solid #a3b9d5; border-radius:12px; padding-inline:13px; background:#eff6ff; color:#143759; font:inherit; cursor:pointer}
.pc-button:disabled {opacity:.6; cursor:default}
.pc-progress,.pc-error {display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; margin:0 0 8px; color:#294b71; min-height:48px}
.pc-progress img {height:35px; width:35px}
.pc-error {color:#873a47}
.pc-progress[hidden],.pc-error[hidden],.pc-ideas[hidden],.pc-compose[hidden] {display:none}
.pc-history-actions {display:flex; gap:12px; flex-wrap:wrap}
.pc-history-actions button:disabled {opacity:.55; cursor:default}
.pc-dialog {color:#193657; border:1px solid #8daaca; border-radius:14px; max-width:min(330px,calc(100% - 32px)); background:#fafdff; padding:20px}
.pc-dialog::backdrop {background:#10243d70}
.pc-dialog h2 {margin:0 0 10px; font-size:21px}
.pc-dialog p {margin:0 0 13px}
.pc-tag {display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:3px 0 10px; padding:8px; color:#23466b; background:#e9f3ff; border-radius:12px}
.pc-tag[hidden] {display:none}

a.plan {color:var(--ink);text-decoration:none}
a.plan:hover .plan-name {text-decoration:underline;text-underline-offset:4px}
.pc-thread:empty {display:none}
.pc-ideas {margin-top:20px;margin-bottom:auto}
.pc-compose {margin-top:14px}
.home-composer .send {width:48px;height:48px;flex-basis:48px}

.pc-loading {width:36px;height:36px;background:url("../../../../packages/motion/loading/static.png") center/contain no-repeat}
@media(prefers-reduced-motion:no-preference) {
  .pc-progress:not([hidden]) .pc-loading {
    background-image:url("../../../../packages/motion/loading/sprite.png");
    background-size:216px 180px;
    animation:pc-sprite-column 250ms steps(6,end) infinite,pc-sprite-row 1250ms steps(5,end) infinite;
  }
}
@keyframes pc-sprite-column {from{background-position-x:0}to{background-position-x:-216px}}
@keyframes pc-sprite-row {from{background-position-y:0}to{background-position-y:-180px}}

#personal-chat {
  position:relative; background:var(--hepai-chat-canvas); color:#17345b;
  min-height: min(780px,100dvh);
}
#personal-chat .pc-header {
  position:sticky;top:0;z-index:3;
  display:grid;grid-template-columns:1fr auto 1fr;justify-content:initial;
  background:var(--hepai-chat-canvas);border-bottom:1px solid #cad8e7;
}
#personal-chat .pc-header a {color:#284c74}
#personal-chat .pc-header h1 {margin:0;font-size:21px;font-weight:650;white-space:nowrap}
.pc-header h1:focus {outline:none}
.pc-menu {justify-self:end;width:48px;height:48px;display:grid;place-items:center;border:0;background:transparent;color:#284c74;cursor:pointer}
.pc-menu span {display:flex;width:19px;flex-direction:column;gap:4px}
.pc-menu i {width:100%;height:1.5px;border-radius:2px;background:currentColor}
#personal-chat .pc-lead {display:grid;justify-items:center;padding:18px 8px 3px;background:none;border:0;text-align:center;overflow:visible}
#personal-chat .pc-lead[hidden] {display:none}
#personal-chat .pc-lead .mascot {position:relative;inset:auto;width:87px;height:64px}
#personal-chat .pc-lead p {margin-top:1px;color:#24486b;font-size:17px}
#personal-chat .pc-ideas {margin-top:14px}
#personal-chat .pc-ideas button,#personal-chat .preview-text-action,#pc-denied a {color:#294b71}
#personal-chat .pc-error {color:#873a47}
#personal-chat .pc-progress {color:#294b71}
#personal-chat .pc-dialog {background:#fff}
.pc-thread img {display:block;width:auto;max-width:100%;max-height:218px;object-fit:contain;margin-top:6px;border-radius:8px}
.pc-thread li:focus {outline:2px solid #6b94bd}
.pc-thread li span:empty {display:none}
.pc-thread a {display:block;color:#294f79;text-underline-offset:3px}
.pc-compose {border-top:1px solid #c9d9e9;padding-top:9px}
.pc-tools {grid-column:1/-1;display:flex;align-items:center;gap:7px}
.pc-tools button {min-height:44px;border:0;background:transparent;color:#244c76;padding-inline:10px;font:inherit;cursor:pointer}
.pc-tools button:hover {background:#e5effc;border-radius:8px}
.pc-media-status {font-size:13px;color:#355775}
.pc-media-status:empty {display:none}
.pc-attachment {grid-column:1/-1;display:flex;gap:9px;align-items:center;padding:5px 9px;border:1px solid #adbed4;border-radius:10px;background:#fafdff}
.pc-attachment[hidden],.pc-attachment img[hidden] {display:none}
.pc-attachment img {width:44px;height:44px;object-fit:cover;border-radius:5px}
.pc-attachment span {min-width:0;overflow-wrap:anywhere;flex:1}
.pc-drawer {
  position:fixed;inset:0 0 0 auto;margin:0;padding:0;
  width:min(350px,92vw);height:100dvh;max-width:none;max-height:none;
  border:0;border-inline-start:1px solid #b6c8dd;background:#fbfdff;color:#17345b;
}
.pc-drawer::backdrop {background:#10253957}
.pc-drawer-inner {padding:14px 18px 20px;min-height:100%;display:flex;flex-direction:column}
.pc-drawer header {display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:7px}
.pc-drawer h2 {margin:0;font-size:23px;font-weight:650}
.pc-drawer-action,.pc-thread-link {min-height:48px;width:100%;border:0;background:transparent;color:#18395d;font:inherit;padding:8px;text-align:left;cursor:pointer}
.pc-drawer-action {border-bottom:1px solid #d1ddeb}
.pc-drawer-action:hover,.pc-thread-link:hover,.pc-thread-link[aria-current] {background:#eaf2fc}
.pc-search {padding:10px 0 0;color:#315979}
.pc-search input {width:100%;min-height:46px;padding-inline:10px;border:1px solid #a3b7cf;border-radius:9px;color:#17345b;background:#fff;font:inherit}
.pc-search[hidden] {display:none}
.pc-search label {display:block;font-size:14px;margin-bottom:3px}
.pc-recent {padding:19px 0 14px;flex:1}
.pc-recent h3 {font-size:15px;font-weight:650;color:#385979;margin:0 0 5px}
.pc-recent p {font-size:14px;color:#526980}
.pc-recent p:empty {display:none}
.pc-recent ul {list-style:none;margin:0;padding:0}
.pc-thread-link {overflow-wrap:anywhere;border-radius:8px}
.pc-thread-link small {display:block;color:#49617c;line-height:1.4;margin-top:3px}
#pc-delete {align-self:flex-start}
#pc-delete:disabled,.pc-tools button:disabled {opacity:.55;cursor:default}
#pc-settings form {margin-top:12px}
@media(prefers-reduced-motion:no-preference) {
  .pc-drawer[open] {animation:hepai-drawer-in 230ms cubic-bezier(.2,.8,.25,1)}
  @keyframes hepai-drawer-in {from {transform:translateX(100%)} to {transform:translateX(0)}}
}
