.piltheo{--bg:#edf3fa;--panel:#ffffffb8;--ink:#203750;--muted:#52667c;--line:#cbd9e8;--accent:#244e7d;--bubble:#dce9f7;display:grid;grid-template-columns:260px minmax(0,1fr);height:100dvh;min-height:480px;width:100%;max-width:none;margin:0;background:radial-gradient(ellipse at 85% 0,#d8e8fa,transparent 55%),var(--bg);color:var(--ink);font:400 15px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow:hidden;text-align:left}.piltheo *{box-sizing:border-box}.piltheo [hidden]{display:none!important}.piltheo button,.piltheo select,.piltheo textarea{font:inherit;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:none;text-transform:none;letter-spacing:normal}.piltheo button{cursor:pointer;padding:9px 12px}.piltheo button:hover,.piltheo button.active{background:var(--bubble)}.piltheo button:disabled{opacity:.5}.piltheo a{color:var(--accent);text-decoration:none}.piltheo .pt-side{padding:22px 15px;overflow:auto;border-right:1px solid var(--line);background:var(--panel);backdrop-filter:blur(20px);display:flex;flex-direction:column;gap:8px}.piltheo .pt-brand{display:flex;align-items:center;font-size:24px;gap:8px;font-weight:500;color:var(--ink);margin-bottom:10px}.piltheo .pt-brand img{width:44px}.piltheo .pt-clear{background:var(--accent);color:#fff}.piltheo .pt-label{font-size:10px;letter-spacing:1.4px;color:var(--muted);margin:12px 0 4px;font-weight:500}.piltheo .pt-modes,.piltheo .pt-history{display:grid;gap:3px}.piltheo .pt-modes button,.piltheo .pt-history button{background:transparent;border:0;text-align:left;font-size:13px;padding:7px 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.piltheo .pt-modes button.active,.piltheo .pt-modes button:hover,.piltheo .pt-history button:hover{background:var(--bubble)}.piltheo .pt-main{display:flex;flex-direction:column;min-width:0;min-height:0;background:transparent}.piltheo .pt-top{display:flex;align-items:center;gap:12px;padding:16px 24px;border-bottom:1px solid var(--line);color:var(--muted);background:var(--panel)}.piltheo .pt-links{margin-left:auto;width:auto;max-width:145px;padding:7px}.piltheo .pt-menu{display:none}.piltheo .pt-scroll{flex:1;min-height:0;overflow:auto;padding:24px}.piltheo .pt-welcome{max-width:690px;margin:clamp(10px,5vh,70px) auto;text-align:center}.piltheo .pt-welcome img{width:150px;height:110px;object-fit:contain}.piltheo h2{font:400 clamp(25px,4vw,44px)/1.2 system-ui;color:var(--ink);margin:12px 0}.piltheo p,.piltheo small,.piltheo label{color:var(--muted);margin:5px 0}.piltheo .pt-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:28px auto}.piltheo .pt-cards button{min-height:76px;text-align:left;padding:16px;background:var(--panel);backdrop-filter:blur(12px);font-weight:400}.piltheo .pt-log,.piltheo .pt-dock{width:100%;max-width:820px;margin:0 auto}.piltheo .pt-message{padding:16px 20px;margin:14px 0;border-radius:18px;background:var(--panel);border:1px solid var(--line);overflow-wrap:anywhere;color:var(--ink)}.piltheo .pt-user{margin-left:12%;background:var(--bubble)}.piltheo .pt-line{white-space:pre-wrap;min-height:.45em}.piltheo .pt-message button{font-size:11px;margin-top:12px}.piltheo .pt-dock{padding:8px 24px 14px}.piltheo .pt-composer{border:1px solid var(--line);border-radius:20px;background:var(--panel);padding:12px;box-shadow:0 8px 32px #172d4810}.piltheo textarea{width:100%;resize:vertical;max-height:140px;border:0;background:transparent;padding:8px;display:block}.piltheo .pt-composebar{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}.piltheo [type=submit]{background:var(--accent);color:#fff;border:0;width:40px;height:40px;font-size:24px;padding:0}.piltheo .pt-consent,.piltheo .pt-save-label,.piltheo small{font-size:11px;display:block}.piltheo input[type=checkbox]{appearance:auto;width:auto;display:inline-block;margin-right:5px}.piltheo .pt-status{font-size:12px;min-height:1em}.piltheo :focus-visible{outline:2px solid #709fd1;outline-offset:2px}.piltheo[data-theme=dark]{--bg:#101c2e;--panel:#192c43ee;--ink:#edf4ff;--muted:#b8cce3;--line:#405a77;--accent:#39658f;--bubble:#294562;background:var(--bg)}html[data-pil-app-appearance="dark"] .piltheo:not([data-theme=light]){--bg:#101c2e;--panel:#192c43ee;--ink:#edf4ff;--muted:#b8cce3;--line:#405a77;--accent:#39658f;--bubble:#294562;background:var(--bg)}@media (prefers-color-scheme:dark){html:not([data-pil-app-appearance]) .piltheo:not([data-theme=light]){--bg:#101c2e;--panel:#192c43ee;--ink:#edf4ff;--muted:#b8cce3;--line:#405a77;--accent:#39658f;--bubble:#294562;background:var(--bg)}}@media(max-width:760px){.piltheo{grid-template-columns:minmax(0,1fr);position:relative}.piltheo .pt-side{display:none;position:absolute;inset:60px auto 0 0;width:min(290px,85%);z-index:5;background:var(--bg);box-shadow:12px 0 30px #0002}.piltheo.pt-open .pt-side{display:flex}.piltheo .pt-menu{display:block}.piltheo .pt-top{padding:10px;gap:7px;font-size:12px}.piltheo .pt-scroll{padding:14px}.piltheo .pt-dock{padding:6px 12px 10px}.piltheo .pt-cards{gap:8px}.piltheo .pt-cards button{font-size:13px;min-height:58px;padding:10px}.piltheo .pt-welcome img{width:110px;height:80px}.piltheo .pt-message{padding:12px}.piltheo .pt-user{margin-left:6%}}

.piltheo .pt-brand img{width:36px;height:36px;object-fit:contain}.piltheo .pt-welcome img{width:92px;height:92px;object-fit:contain}@media(max-width:600px){.piltheo .pt-welcome img{width:76px;height:76px}}
.piltheo{--bg:#f1f5fa;--panel:#ffffffd9;--ink:#18314e;--muted:#526981;--line:#d5e0ed;--accent:#244e7d;--bubble:#e1ecf8;grid-template-columns:272px minmax(0,1fr);background:radial-gradient(ellipse at 75% 12%,#c9ddf4,transparent 55%),var(--bg)}.piltheo .pt-side{background:#10243d;color:#e7f0fc;border-right:0;padding:24px 16px}.piltheo .pt-side .pt-brand,.piltheo .pt-side button,.piltheo .pt-side label{color:#e7f0fc}.piltheo .pt-side .pt-label{color:#a9bfd8}.piltheo .pt-side .pt-clear{background:#365b83;border:1px solid #6985a3}.piltheo .pt-side .pt-delete{background:transparent;border-color:#526b86;font-size:12px}.piltheo .pt-side .pt-modes button.active,.piltheo .pt-side .pt-modes button:hover,.piltheo .pt-side .pt-history button:hover{background:#304d6d}.piltheo .pt-top{backdrop-filter:blur(18px);padding:12px 24px}.piltheo .pt-welcome{max-width:850px;margin:clamp(12px,4vh,55px) auto}.piltheo .pt-welcome img{width:76px;height:76px;filter:drop-shadow(0 12px 22px #17385f25)}.piltheo .pt-welcome h2{font:400 clamp(32px,5vw,66px)/1.08 Georgia,serif;letter-spacing:-.035em}.piltheo .pt-cards{gap:14px;margin:24px auto}.piltheo .pt-cards button{border-radius:18px;min-height:88px;box-shadow:0 8px 25px #18314e09;position:relative;padding:18px 38px 18px 18px}.piltheo .pt-cards button:after{content:"↗";position:absolute;right:15px;top:15px;color:var(--muted)}.piltheo .pt-composer{border-radius:24px;box-shadow:0 12px 40px #18314e15;backdrop-filter:blur(20px)}.piltheo .pt-message{box-shadow:0 6px 20px #18314e08}.piltheo[data-theme=dark]{background:radial-gradient(ellipse at 80% 0,#294765,transparent 60%),var(--bg)}html[data-pil-app-appearance="dark"] .piltheo:not([data-theme=light]){background:radial-gradient(ellipse at 80% 0,#294765,transparent 60%),var(--bg)}@media (prefers-color-scheme:dark){html:not([data-pil-app-appearance]) .piltheo:not([data-theme=light]){background:radial-gradient(ellipse at 80% 0,#294765,transparent 60%),var(--bg)}}@media(max-width:900px){.piltheo{grid-template-columns:235px minmax(0,1fr)}}@media(max-width:760px){.piltheo{grid-template-columns:minmax(0,1fr)}.piltheo .pt-side{inset:56px auto 0 0}.piltheo .pt-top{padding:10px}.piltheo .pt-cards{gap:8px;margin:16px auto}.piltheo .pt-cards button{min-height:64px;padding:10px 25px 10px 10px}.piltheo .pt-cards button:after{right:8px;top:8px}.piltheo .pt-welcome img{width:58px;height:58px}}
.pt-modes .pt-premium-link{display:block;padding:10px 12px;color:inherit;text-decoration:none;border:1px solid rgba(183,155,101,.35);border-radius:8px;font-size:13px;margin:4px 0}.pt-modes .pt-premium-link:hover{text-decoration:underline}
/* Compact, grouped navigation and adaptive composer */
.piltheo .pt-side{gap:6px}.piltheo .pt-side .pt-clear,.piltheo .pt-side .pt-delete{text-align:left;justify-content:flex-start}.piltheo .pt-modes button,.piltheo .pt-modes .pt-premium-link{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;text-align:left;white-space:normal;overflow:visible;line-height:1.4;padding:8px 10px;margin:0;border:0;border-radius:8px;color:#e7f0fc;background:transparent;font-size:13px}.piltheo .pt-modes .pt-premium-link:hover{background:#304d6d;text-decoration:none}.piltheo .pt-plus{font-size:9px;color:#e2c894;white-space:nowrap;flex-shrink:0}.piltheo .pt-group{border-top:1px solid #ffffff20;margin-top:4px;padding-top:4px}.piltheo .pt-group summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:9px 10px;color:#bcd0e6;font-size:12px;font-weight:600;list-style:none;text-align:left}.piltheo .pt-group summary::-webkit-details-marker{display:none}.piltheo .pt-group summary:after{content:"+";font-size:16px}.piltheo .pt-group[open] summary:after{content:"−"}.piltheo .pt-group button,.piltheo .pt-group .pt-premium-link{padding-left:16px}.piltheo .pt-composer{padding:6px 12px;border-radius:18px}.piltheo .pt-composer textarea{min-height:36px;height:36px;max-height:180px;resize:none;line-height:20px;padding:8px;transition:height .15s ease;overflow-y:auto}.piltheo .pt-composer:focus-within{border-color:var(--accent)}.piltheo .pt-composebar{min-height:30px}.piltheo .pt-composebar [type=submit]{width:32px;height:32px;font-size:20px}.piltheo .pt-status:empty{display:none}@media(prefers-reduced-motion:reduce){.piltheo .pt-composer textarea{transition:none}}
.piltheo .pt-menu{display:block;flex-shrink:0}.piltheo .pt-quote-open{text-align:left;background:#304d6d;border-color:#526b86;font-size:13px}.piltheo .pt-quote-dialog{max-width:min(540px,94vw);max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:20px;background:var(--bg);color:var(--ink);padding:20px}.piltheo .pt-quote-dialog::backdrop{background:#10243db0}.piltheo .pt-quote-dialog input,.piltheo .pt-quote-dialog select,.piltheo .pt-quote-dialog textarea{width:100%;margin:4px 0 10px;padding:8px;color:var(--ink);background:var(--panel);border:1px solid var(--line)}.piltheo .pt-quote-dialog canvas{width:100%;height:auto;display:block;margin:12px 0}.piltheo .pt-quote-dialog label{display:block}.piltheo .pt-quote-dialog textarea{min-height:80px}@media(min-width:761px){.piltheo.pt-collapsed{grid-template-columns:minmax(0,1fr)}.piltheo.pt-collapsed .pt-side{display:none}}
/* Workspace typography and contrast: scoped against host theme overrides. */
.piltheo .pt-side{padding:20px 14px;gap:8px;text-align:left!important;color:#e7f0fc!important;background:#10243d!important}
.piltheo .pt-side .pt-brand{padding:0 8px;margin-bottom:8px;color:#fff!important;justify-content:flex-start!important}
.piltheo .pt-side button,.piltheo .pt-side a,.piltheo .pt-side summary,.piltheo .pt-side label,.piltheo .pt-side .pt-label{text-align:left!important;letter-spacing:normal;text-transform:none;line-height:1.45}
.piltheo .pt-side .pt-clear,.piltheo .pt-side .pt-quote-open,.piltheo .pt-side .pt-delete{display:flex!important;align-items:center;justify-content:flex-start!important;width:100%;padding:10px 12px!important;color:#f2f7ff!important;background:#294766!important;border:1px solid #587592!important;border-radius:9px;font-size:13px;font-weight:500}
.piltheo .pt-side .pt-delete{background:transparent!important;font-size:12px}
.piltheo .pt-side .pt-label{color:#b9cce1!important;font-size:10px;letter-spacing:1.1px;text-transform:uppercase;padding:0 10px;margin:12px 0 2px}
.piltheo .pt-side .pt-modes{display:flex;flex-direction:column;gap:3px;align-items:stretch}
.piltheo .pt-side .pt-modes button,.piltheo .pt-side .pt-premium-link,.piltheo .pt-side .pt-history button{display:flex!important;align-items:flex-start!important;justify-content:flex-start!important;text-align:left!important;gap:6px;padding:9px 10px!important;min-height:36px;width:100%;white-space:normal!important;overflow-wrap:anywhere;color:#e7f0fc!important;background:transparent!important;border:0!important;border-radius:8px;font-size:13px;line-height:1.45;font-weight:400}
.piltheo .pt-side .pt-modes button.active,.piltheo .pt-side .pt-modes button:hover,.piltheo .pt-side .pt-premium-link:hover,.piltheo .pt-side .pt-history button:hover{background:#304d6d!important;color:#fff!important}
.piltheo .pt-mode-name{min-width:0;display:inline;text-align:left!important}.piltheo .pt-side .pt-plus{display:inline-block;align-self:flex-start;position:static;vertical-align:super;flex:none;font:600 9px/1.15 system-ui!important;color:#f0d49e!important;border:1px solid #b99b65;border-radius:20px;padding:2px 4px;margin:0 0 0 1px;white-space:nowrap!important;background:#10243d!important}
.piltheo .pt-side .pt-group{padding:4px 0;margin:3px 0;border-top:1px solid #ffffff24}.piltheo .pt-side .pt-group summary{display:flex!important;justify-content:space-between!important;align-items:center;gap:8px;color:#c8d9ec!important;padding:10px!important;font-size:12px;font-weight:600}.piltheo .pt-side .pt-group summary::marker{content:""}.piltheo .pt-side .pt-group summary:after{margin-left:auto}.piltheo .pt-side .pt-group button,.piltheo .pt-side .pt-group .pt-premium-link{padding-left:18px!important}.piltheo .pt-side .pt-save-label{display:flex;align-items:flex-start;gap:6px;padding:4px 10px;color:#d4e2f2!important}
.piltheo .pt-top .pt-menu{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 10px!important;color:var(--ink)!important;background:var(--panel)!important;border:1px solid var(--line)!important;visibility:visible!important;opacity:1!important;font-size:12px;white-space:nowrap}.piltheo .pt-menu svg{flex:none}.piltheo .pt-top{gap:12px;min-width:0}.piltheo .pt-top>span{color:var(--muted)!important}
.piltheo .pt-main :is(h2,h3,h4,strong,.pt-line,.pt-message){color:var(--ink)!important}.piltheo .pt-main :is(p,small,label,.pt-label,.pt-current,.pt-status){color:var(--muted)!important}.piltheo .pt-main :is(button,select,textarea,input:not([type=checkbox])),.piltheo .pt-quote-dialog :is(button,select,textarea,input){color:var(--ink)!important;background:var(--panel)!important;border-color:var(--line)!important}.piltheo .pt-main textarea{background:transparent!important}.piltheo .pt-main textarea::placeholder,.piltheo .pt-quote-dialog input::placeholder{color:var(--muted)!important;opacity:1}.piltheo .pt-main [type=submit]{color:#fff!important;background:#244e7d!important}.piltheo .pt-main a{color:#245789!important}.piltheo[data-theme=dark] .pt-main a{color:#a9d0ff!important}.piltheo .pt-quote-dialog label,.piltheo .pt-quote-dialog small,.piltheo .pt-quote-dialog p{color:var(--muted)!important}.piltheo .pt-quote-dialog h2{color:var(--ink)!important}.piltheo .pt-main select option,.piltheo .pt-quote-dialog select option{background:var(--bg);color:var(--ink)}
html[data-pil-app-appearance="dark"] .piltheo:not([data-theme=light]) .pt-main a{color:#a9d0ff!important}@media (prefers-color-scheme:dark){html:not([data-pil-app-appearance]) .piltheo:not([data-theme=light]) .pt-main a{color:#a9d0ff!important}}
@media(min-width:761px){.piltheo.pt-collapsed{grid-template-columns:minmax(0,1fr)!important}.piltheo.pt-collapsed .pt-side{display:none!important}.piltheo.pt-collapsed .pt-main{grid-column:1}}
@media(max-width:760px){.piltheo .pt-menu-text{display:none}.piltheo .pt-top{gap:7px}.piltheo .pt-side{inset:56px auto 0 0;max-width:85%;z-index:20}.piltheo:not(.pt-open) .pt-side{display:none!important}.piltheo.pt-open .pt-side{display:flex!important}.piltheo .pt-top .pt-links{min-width:0;max-width:110px}}
.piltheo .pt-main .ptj-card strong,.piltheo .pt-main .ptj-card span{color:#173451!important}.piltheo .pt-main .ptj-card small{color:#486685!important}

.piltheo .pt-composebar button[type=submit],#piltheo-float .tf-compose button[type=submit]{background:#173f69!important;color:#fff!important;border:1px solid #719bc8!important;border-radius:9px!important;display:inline-flex!important;align-items:center;justify-content:center;min-width:36px;min-height:36px;font-size:22px!important;line-height:1!important;opacity:1!important}.piltheo .pt-composebar button[type=submit]:disabled,#piltheo-float .tf-compose button[type=submit]:disabled{opacity:.55!important}.piltheo .pt-composebar button[type=submit]:focus-visible{outline:2px solid #719bc8;outline-offset:3px}

.piltheo.pt-pro-compact .pt-modes button,
.piltheo.pt-pro-compact .pt-premium-link {
    padding-block: 5px !important;
}

.piltheo .pt-welcome .pt-toolkit-entry {
  display: inline-flex;
  flex-direction: column;
  gap: .25rem;
  margin: 1rem auto;
  padding: .8rem 1.2rem;
  color: #173c63;
  background: #f1f5fa;
  border: 1px solid #b6c9dc;
  border-radius: .75rem;
  text-decoration: none;
}
.piltheo .pt-toolkit-entry:focus-visible {
  outline: 2px solid #bd984d;
  outline-offset: 3px;
}

.piltheo .pt-department{padding:1rem;margin:1rem auto;width:min(92%,66rem);border:1px solid var(--line);border-radius:1rem;background:var(--panel);color:var(--ink)}
.piltheo .pt-department-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.65rem;margin:.75rem 0}
.piltheo .pt-department-tools button,.piltheo .pt-department-tools a{border:1px solid var(--line);border-radius:.65rem;padding:.75rem;text-align:start}
