/* Character portraits are display-only. Do not crop transparent images. */
/* Links and buttons share the same outer box even under host anchor/reset styles. */
#al-widget #al-panel .al-window-actions .al-icon-btn{box-sizing:border-box;flex-shrink:0;min-width:0;min-height:0;padding:0;text-decoration:none;line-height:1;font-size:12px}
@media(max-width:600px),(pointer:coarse){#al-widget #al-panel .al-window-actions .al-icon-btn{font-size:14px}}
#al-widget .al-mini{border-radius:4px;background:color-mix(in srgb,var(--accent) 14%,var(--panel-bg));border:1px solid color-mix(in srgb,var(--accent) 55%,var(--panel-bg));box-shadow:0 2px 0 color-mix(in srgb,var(--accent) 30%,transparent);padding:6px 11px;min-height:30px;cursor:pointer}
#al-widget .al-mini:not(:disabled):hover{background:color-mix(in srgb,var(--accent) 25%,var(--panel-bg))}
#al-widget .al-mini:not(:disabled):active{transform:translateY(1px);box-shadow:none}
#al-widget .al-mini.main{background:var(--accent);color:var(--accent-ink,#fff)}
#al-widget .al-mini:disabled{opacity:.45;cursor:default}
.al-themed[data-theme] .al-character-icon{display:flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;border:0;background:transparent;}
.al-themed[data-theme] .al-character-icon.al-has-profile{opacity:1;}
.al-themed[data-theme] .al-character-icon>svg{width:100%;height:100%;max-width:48px;max-height:48px;}
/* Closed retro pixels are filled blocks, not individually outlined squares. */
.al-themed[data-theme="retro"] .al-character-icon>svg.al-pixel-icon:not(.al-open-envelope){stroke:none;}
/* Preserve Claude's nested wax-seal viewport inside the royal envelope. */
.al-themed:is([data-theme="hanji"],[data-theme="royal"]) .al-character-icon svg{fill:initial;stroke:none;stroke-width:1;}
.al-themed[data-theme="royal"] :is(.al-character-icon,#notice-envelope,#al-envelope) svg svg{width:23px;height:23px;}
.al-themed .al-profile-image{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;object-position:center;border-radius:4px;background:transparent;clip-path:none;}
.al-image-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;}
.al-profile-editor{display:flex;align-items:center;flex-wrap:nowrap;gap:12px;max-width:100%;}
.al-image-controls .al-profile-url{display:flex;align-items:center;flex:1 1 350px;gap:8px;margin-top:0;min-width:0;}
.al-image-controls .al-profile-url>label{flex:0 0 auto;margin-bottom:0;white-space:nowrap;}
.al-image-controls .al-profile-url-row{flex:1 1 0;flex-wrap:nowrap;min-width:0;}
.al-image-controls .al-profile-editor input[type=file]{width:220px;max-width:100%;flex:1 1 220px;}
.al-image-controls button{flex-shrink:0;white-space:nowrap;}
@media(max-width:480px){.al-image-controls .al-profile-url{flex-wrap:wrap;}.al-image-controls .al-profile-url-row{flex-basis:100%;}.al-image-controls .al-profile-editor{flex-wrap:wrap;}}
.al-profile-preview{display:block;width:auto;height:auto;max-width:80px;max-height:80px;object-fit:contain;object-position:center;border-radius:4px;background:transparent;}
.al-profile-url{margin-top:12px;}
.al-profile-url-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;}
.al-profile-url-row input{flex:1 1 220px;min-width:0;max-width:100%;}
.al-profile-url-row button{flex:0 0 auto;}
.al-profile-editor input[type=file]{max-width:100%;min-width:0;}
.al-profile-editor [hidden]{display:none!important;}
#notice-envelope.al-has-profile{animation:none;display:flex;align-items:center;justify-content:center;}
#notice-envelope .al-profile-image{width:auto;height:auto;max-width:80px;max-height:64px;border-radius:4px;}
#notice-open strong{max-width:100%;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.5;}
#al-widget #al-envelope .al-live-envelope-icon.al-has-profile{display:flex;align-items:center;justify-content:center;width:100%;height:100%;}
#al-widget #al-envelope .al-profile-image{max-width:80px;max-height:64px;border-radius:4px;}
/* Supplied SVG read-state artwork replaces the temporary CSS envelope family. */
.al-themed[data-theme] .al-character-icon>svg.al-open-envelope{display:block;width:48px;height:48px;max-width:48px;max-height:48px;}
.al-themed[data-theme] .al-character-icon svg.al-open-envelope:not(.al-line-icon){fill:initial;stroke:none;stroke-width:1;}
.al-themed[data-theme] .al-character-icon svg.al-line-icon--open *{fill:none;stroke:var(--accent);stroke-width:3;stroke-linejoin:miter;stroke-linecap:butt;}
.al-themed[data-theme="hanji"] .al-hanji-envelope.al-hanji-envelope--open{height:96px;}
.al-themed[data-theme="hanji"] .al-hanji-envelope--open>svg{width:64px;height:96px;max-width:none;max-height:none;}
.al-themed[data-theme="hanji"] .al-hanji-envelope--open .envelope-css-charm{top:48.72px;}
.al-themed[data-theme="hanji"] .al-hanji-envelope--open .envelope-css-charm>.css-charm{transform:scale(.16);}
.al-themed[data-theme="hanji"] .al-character-icon .al-hanji-envelope.al-hanji-envelope--open{transform:translate(-50%,-50%) scale(.48);}

.al-themed .al-letter-signature{display:flex;justify-content:flex-end;align-items:center;margin:16px 0 18px;max-width:100%;}
.al-themed .al-letter-signature[hidden]{display:none!important;}
.al-themed .al-letter-signature img{display:block;width:auto;height:auto;max-width:min(120px,100%);max-height:80px;object-fit:contain;border:0;border-radius:0;clip-path:none;background:transparent;filter:none;}
.al-signature-preview{max-width:160px;max-height:80px;border-radius:0;}

