/* Phino: visuelle Umsetzung der gelieferten Designvorlage. */
#phino{font-family:Arial,sans-serif;color:#12294b;position:fixed;inset:0;z-index:1100;pointer-events:none;font-size:14px}
#phino *{box-sizing:border-box}#phino button,#phino input,#phino textarea{font:inherit}#phino button{cursor:pointer}#phino [hidden]{display:none!important}#phino :focus-visible{outline:3px solid #048fc5;outline-offset:3px}
.phino-intro-slot{position:relative;z-index:2;display:flex;justify-content:flex-end;align-items:center;min-height:0;padding:0 0 16px}
.phino-intro{display:flex;align-items:center;gap:2px;width:max-content;max-width:100%;pointer-events:auto}
.phino-intro[hidden]{display:none}
.phino-intro-open{display:flex;align-items:center;gap:0;min-width:0;min-height:72px;padding:0;border:0;background:transparent;color:#12294b;text-align:left}
.phino-intro-figure{display:block;width:116px;height:128px;flex:0 0 auto;filter:drop-shadow(0 5px 8px #087fa02b)}
.phino-intro-figure img{display:block;width:100%;height:100%;object-fit:contain}
.phino-intro-label{position:relative;margin-left:-5px;padding:13px 17px;border:1px solid #e4f2fa;border-radius:40px;background:#fff;box-shadow:0 7px 24px #0697c526;font-size:15px;font-weight:700;white-space:nowrap}
.phino-intro-label:before{position:absolute;top:50%;left:-6px;width:10px;height:10px;transform:translateY(-50%) rotate(45deg);border-bottom:1px solid #e4f2fa;border-left:1px solid #e4f2fa;background:#fff;content:""}
.phino-intro-open:focus-visible{outline:3px solid #048fc5;outline-offset:3px}
.phino-panel{position:fixed;top:var(--phino-panel-top,120px);right:var(--phino-panel-right,16px);left:auto;display:flex;width:min(420px,var(--phino-panel-width,calc(100vw - 32px)));height:var(--phino-panel-height,min(730px,calc(100dvh - var(--phino-panel-top,120px) - 16px)));max-height:calc(100dvh - var(--phino-panel-top,120px) - 16px);min-height:0;flex-direction:column;pointer-events:auto;border:1px solid white;border-radius:23px;background:linear-gradient(145deg,#fff 65%,#f0f8ff);box-shadow:0 16px 65px #079bc42b,0 4px 18px #071c3a12;overflow:hidden}
.phino-panel.is-compact .phino-notice,.phino-panel.is-compact .phino-quick,.phino-panel.is-compact .phino-welcome-figure{display:none}
.phino-panel.is-compact .phino-log{min-height:0}
.phino-head{display:flex;align-items:center;gap:12px;padding:15px 17px;background:linear-gradient(110deg,#0079c5,#1abbdc 70%,#53dce7);color:white;flex-shrink:0}.phino-head strong{font-size:18px;letter-spacing:-.3px}.phino-head small{display:block;color:#e6faff;font-size:12px;margin-top:5px}.phino-face{display:block;width:53px;height:53px;border:2px solid white;border-radius:50%;overflow:hidden;background:#eaf9ff;flex-shrink:0}.phino-face img{width:100%;height:165%;object-fit:cover;object-position:50% 0;display:block}.phino-close{display:grid;width:44px;height:44px;flex:0 0 44px;place-items:center;margin-left:auto;border:0;background:transparent;color:white;font-size:29px!important}
.phino-notice{font-size:10px;line-height:1.45;padding:9px 17px;margin:0;color:#64758d;background:#f5faff;flex-shrink:0}.phino-log{flex:1;min-height:0;overflow-y:auto;padding:15px 23px;display:flex;flex-direction:column;gap:12px;overscroll-behavior:contain}.phino-welcome-figure{display:flex;justify-content:center;min-height:100px;flex:1;max-height:155px}.phino-welcome-figure img{height:100%;max-height:155px;min-height:100px;object-fit:contain;animation:phino-bob 5s ease-in-out infinite}.phino-msg{padding:13px 17px;border-radius:21px;background:#ecf2f8;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;max-width:96%;margin:0;font-size:14px;flex-shrink:0}.phino-welcome-figure+.phino-msg{font-size:18px;font-weight:600;line-height:1.5;align-self:stretch;max-width:100%;padding:17px 23px}.phino-msg.user{align-self:flex-end;background:linear-gradient(120deg,#087acb,#0da6ce);color:white}.phino-msg.error{border:1px solid #bc673f;background:#fff5ee}
.phino-quick{display:grid;gap:7px;padding:0 23px 11px;flex-shrink:0}.phino-quick button{display:flex;align-items:center;gap:13px;text-align:left;border:1px solid #6bdcf0;background:#ffffffd9;color:#102959;border-radius:30px;padding:10px 18px;font-size:13px!important;font-weight:600!important;transition:background .15s,transform .15s}.phino-quick button:hover{background:#ebfbff;transform:translateY(-1px)}.phino-quick button span{display:inline-grid;place-items:center;width:22px;font-size:23px;color:#00a7d7;line-height:1}
.phino-status{min-height:17px;margin:0;padding:0 23px;font-size:11px;color:#64758d;flex-shrink:0}.phino-form{display:flex;gap:8px;margin:5px 14px 9px;padding:5px;border:1px solid #d3e6f5;border-radius:35px;background:white;flex-shrink:0}.phino-form input{width:100%;min-width:0;border:0;border-radius:25px;padding:10px 14px;background:transparent;color:#12294b;font-size:var(--font-field)!important;outline-offset:0!important}.phino-form input::placeholder{color:#7a8da7}.phino-form button{display:grid;place-items:center;width:43px;height:43px;flex-shrink:0;border:0;border-radius:50%;background:#13c4de;color:white}.phino-form button:disabled{opacity:.5;cursor:wait}.phino-foot{display:flex;justify-content:space-between;align-items:center;padding:0 18px 12px;gap:8px;font-size:10px;flex-shrink:0}.phino-foot a{color:#087ab3;text-decoration:underline}.phino-reset{border:0;background:none;color:#64758d;padding:4px}
.phino-mail{position:absolute;inset:83px 0 0;background:linear-gradient(145deg,white,#f3faff);padding:20px;display:flex;flex-direction:column;gap:10px;overflow:auto;z-index:2}.phino-mail h3{font-size:19px;margin:0}.phino-mail p{font-size:12px;line-height:1.5;margin:0;color:#536278}.phino-mail label{font-size:12px;font-weight:700}.phino-mail textarea{width:100%;flex:1;min-height:150px;resize:vertical;border:1px solid #cbdceb;border-radius:13px;padding:12px;font:13px/1.6 Arial,sans-serif!important;color:#12294b;background:white}.phino-mail-actions{display:flex;flex-wrap:wrap;gap:8px}.phino-mail-actions a,.phino-mail-actions button{border:1px solid #b9dfe9;border-radius:20px;padding:10px 13px;background:white;color:#16466d;text-decoration:none;font-size:12px}.phino-mail-actions a{background:#079bcd;color:white;border-color:#079bcd}.phino-mail-status{min-height:18px}
.phino-thinking{display:flex;align-items:center;gap:12px;align-self:flex-start;max-width:100%;flex-shrink:0;padding:14px 17px;border:1px solid #8bddec;border-radius:20px;background:linear-gradient(120deg,#eaf7ff,#e5fbfc);color:#123b60;box-shadow:0 3px 12px #079bc414}.phino-thinking strong{display:block;font-size:15px;line-height:1.4}.phino-thinking small{display:block;margin-top:3px;font-size:12px;line-height:1.4;color:#48667e}.phino-thinking-gear{display:inline-grid;place-items:center;width:31px;height:31px;flex-shrink:0;font-size:30px;line-height:1;color:#008db9;animation:phino-think-spin 3s linear infinite}
@keyframes phino-think-spin{to{transform:rotate(360deg)}}
@keyframes phino-bob{50%{transform:translateY(-4px) rotate(-3deg)}}
@media(max-width:600px){.phino-intro-slot{padding-bottom:12px}.phino-intro-figure{width:88px;height:96px}.phino-intro-label{padding:10px 13px;font-size:14px}.phino-head{padding:10px 12px}.phino-head strong{font-size:16px}.phino-log{min-height:0;padding:12px 16px}.phino-quick{padding:0 16px 8px}.phino-mail{padding:16px}.phino-welcome-figure{max-height:120px}.phino-welcome-figure img{max-height:120px}}
@media(max-height:730px){.phino-welcome-figure{display:none}.phino-quick{gap:5px}.phino-quick button{padding:7px 15px}.phino-notice{font-size:9px;padding:6px 16px}}
@media(prefers-reduced-motion:reduce){.phino-welcome-figure img,.phino-thinking-gear{animation:none}.phino-quick button{transition:none}}
.phino-intro-figure img{transform-origin:50% 86%;will-change:transform}
.phino-intro-figure img.is-greeting{animation:phino-intro-greeting 720ms ease-out}
@keyframes phino-intro-greeting{0%,100%{transform:rotate(0) translateY(0)}28%{transform:rotate(-5deg) translateY(-3px)}58%{transform:rotate(4deg) translateY(-2px)}78%{transform:rotate(-2deg) translateY(0)}}
html[data-theme="dark"] #phino{color:#eef6ff}
html[data-theme="dark"] .phino-intro-open{color:#eef6ff}
html[data-theme="dark"] .phino-intro-label,html[data-theme="dark"] .phino-intro-label:before{background:#102845;border-color:#315476;color:#eff6ff}
html[data-theme="dark"] .phino-panel{background:linear-gradient(145deg,#102845 65%,#0b1c31);color:#eff6ff;border-color:#315476}
html[data-theme="dark"] .phino-head{background:linear-gradient(110deg,#064877,#075a79 70%,#08739a)}
html[data-theme="dark"] .phino-notice{background:#142f50;color:#c3d2e5}
html[data-theme="dark"] .phino-msg{background:#1b3552;color:#edf5ff}
html[data-theme="dark"] .phino-quick button{background:#102845;color:#eff6ff;border-color:#39829a}
html[data-theme="dark"] .phino-form{background:#0b1f38;border-color:#315476}
html[data-theme="dark"] .phino-form input{background:transparent;color:#eff6ff}
html[data-theme="dark"] .phino-form input::placeholder{color:#afc0d5}
html[data-theme="dark"] .phino-status,html[data-theme="dark"] .phino-foot{color:#b4c5db}
html[data-theme="dark"] .phino-foot a,html[data-theme="dark"] .phino-reset{color:#b4c5db}
html[data-theme="dark"] .phino-form button,html[data-theme="dark"] .phino-mail-actions a{background:#0065d2;color:#fff;border-color:#0065d2}
html[data-theme="dark"] .phino-mail{background:linear-gradient(145deg,#102845,#0b1c31);color:#eff6ff}
html[data-theme="dark"] .phino-mail p,html[data-theme="dark"] .phino-thinking small{color:#c3d2e5}
html[data-theme="dark"] .phino-mail textarea{background:#0b1f38;color:#eff6ff;border-color:#315476}
@media(prefers-reduced-motion:reduce){.phino-intro-figure img.is-greeting{animation:none}}
/* Recovered rule-based suggestions use the same controls as the existing widget. */
.phino-quick a{display:flex;align-items:center;min-height:40px;padding:10px 18px;border:1px solid #6bdcf0;border-radius:30px;background:#ffffffd9;color:#102959;font-size:13px;font-weight:600;line-height:1.4;text-decoration:none;overflow-wrap:anywhere}
.phino-quick a:hover{background:#ebfbff}
html[data-theme="dark"] .phino-quick a{background:#102845;color:#eff6ff;border-color:#39829a}
