/* Alicia One: companion takes the main stage; HFS retains its own original theme. */
.brand-main span{color:#ffb2df}
.media-dialog{width:min(1440px,99vw);height:min(1000px,96vh)}
.media-switcher{display:flex;gap:10px;padding:12px 20px;border-bottom:1px solid #ffffff27;background:#11152f}
.media-switcher button{border:1px solid #6b5c94;background:#262443;color:#e5dcfa;border-radius:10px;padding:10px 18px;font-weight:700;cursor:pointer}
.media-switcher button[aria-selected="true"]{background:linear-gradient(110deg,#e98ac4,#9985eb);color:#16112d;border-color:transparent;box-shadow:0 5px 22px #bd79d94a}
.hfs-view{flex:1;min-height:0;display:flex;flex-direction:column;background:linear-gradient(140deg,#1e1535,#07162b)}
.hfs-view[hidden]{display:none!important}
.hfs-topline{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:10px 18px;font-size:.82rem;color:#d7d6f0}
.hfs-topline>div{display:flex;align-items:center;gap:9px}
.hfs-topline button,.hfs-topline a{display:inline-block;padding:8px 12px;background:#2d3155;color:#f5dfff;border:1px solid #696599;border-radius:10px;text-decoration:none;cursor:pointer}
.hfs-frame-shell{position:relative;min-height:0;flex:1;margin:0 12px 10px;border:1px solid #69618e;border-radius:13px;overflow:hidden;background:#fff}
.hfs-frame-shell iframe{display:block;width:100%;height:100%;border:0;background:#fff}
.hfs-frame-note{position:absolute;bottom:0;left:0;right:0;padding:8px 12px;background:#110e2cdc;color:#fff;font-size:11px;pointer-events:none;text-align:center}
#hfs-admin .field-columns input{padding:11px 9px;border-radius:10px;border:1px solid #6c5b94;color:#fff;background:#111b34}
.conversation-mode-bar{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-bottom:9px;padding:8px 11px;background:#c28eff0d;border:1px solid #be93ff39;border-radius:11px}
.conversation-mode-bar label{font-size:.82rem;font-weight:700;color:#f0d0fe;white-space:nowrap}
.conversation-mode-bar select{min-width:155px;flex:1;max-width:255px;background:#221c40;color:#f6eaff;border:1px solid #8664bb;padding:9px;border-radius:9px}
.conversation-mode-bar button{padding:9px;border-radius:9px;border:1px solid #7956a9;background:#44345d;color:#f7eaff;cursor:pointer}
.scene-setting{display:flex;flex-direction:column;gap:5px;padding:0 3px 8px}
.scene-setting.hidden{display:none}
.scene-setting label{font-size:.79rem;color:#ecd8ff}
.scene-setting label span{font-weight:normal;opacity:.7}
.scene-setting input{padding:9px 12px;color:#fff;border:1px solid #635080;background:#171632;border-radius:9px;font-size:.88rem}
@media(max-width:640px){.media-dialog{height:98vh}.media-switcher{padding:8px;gap:6px}.media-switcher button{flex:1;padding:10px 5px;font-size:12px}.hfs-topline{padding:9px 10px;font-size:11px}.hfs-frame-shell{margin:0 4px 7px}.hfs-frame-note{font-size:10px}.conversation-mode-bar{padding:7px;gap:7px}.conversation-mode-bar select{min-width:130px}.conversation-mode-bar button{font-size:12px}}
/* The first screen is a CONVERSATION, not a row of giant marketing cards.
   Expand the gallery at any time to reveal the full seven-character artwork. */
.gallery-tools{display:flex;align-items:center;gap:16px}
#gallery-focus{padding:10px 15px;border-radius:12px;border:1px solid #b78bef83;background:#5e477f50;color:#f7d9ff;font-size:12px;font-weight:700;white-space:nowrap}
body.chat-focus main{padding-top:11px}
body.chat-focus .section-heading{margin-bottom:6px;align-items:center}
body.chat-focus .section-heading h1{font-size:25px}
body.chat-focus .section-desc{display:none}
body.chat-focus .gallery-section .visual-picker{display:none}
body.chat-focus .card-gallery{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;margin-bottom:8px}
body.chat-focus .companion-card{padding:3px 3px 0!important;border-radius:12px;min-width:0}
body.chat-focus .companion-card .card-picture{height:86px!important;max-height:86px!important;aspect-ratio:auto!important}
body.chat-focus .card-info{padding:4px 5px 5px}
body.chat-focus .card-meta{display:none}
body.chat-focus .card-selected-mark{font-size:9px;padding:4px 6px;top:4px;right:4px}
body.chat-focus .tap-phrase{display:none}
body.chat-focus .content-grid{display:block}
body.chat-focus .chosen-panel{display:none}
body.chat-focus[data-visual-style="studio"] .conversation-panel{height:clamp(565px,calc(100dvh - 250px),980px);min-height:565px}
body.chat-focus .conversation-stage{min-height:0}
body.chat-focus[data-visual-style="studio"] .conversation-stage{grid-template-columns:minmax(280px,35%) minmax(0,1fr)}
body.chat-focus .message-scroller{min-height:55px}
body.chat-focus .conversation-top{padding:9px 16px}
body.chat-focus .voice-options{gap:5px}
body.chat-focus #instant-adult-scene{display:inline-flex}
body.chat-focus .footer{margin-top:8px}
@media(max-width:720px){
 body.chat-focus .card-gallery{display:flex;overflow-x:auto;scroll-snap-type:x mandatory}
 body.chat-focus .companion-card{flex:0 0 91px!important;scroll-snap-align:start}
 body.chat-focus .companion-card .card-picture{height:90px!important}
 body.chat-focus .section-heading h1{font-size:20px}
 body.chat-focus .gallery-counter{display:none}
 #gallery-focus{font-size:11px;padding:8px}
 body.chat-focus[data-visual-style="studio"] .conversation-panel{height:auto;min-height:0}
 body.chat-focus[data-visual-style="studio"] .conversation-stage{display:flex;flex-direction:column}
 body.chat-focus[data-visual-style="studio"] .talk-portrait-frame{height:285px;min-height:285px;flex:0 0 285px}
 body.chat-focus[data-visual-style="studio"] .conversation-stack{height:510px;min-height:510px}
}

/* Media Studio = the existing HFS backend; no secondary built-in file server. */
#media-backdrop .media-dialog.prism-dialog{display:flex;flex-direction:column;min-width:0}
.hfs-studio-header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:10px 16px;background:#101528;border-bottom:1px solid #ffffff28}
.hfs-studio-header .prism-logo{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.hfs-studio-subtitle{font-size:11px;opacity:.72;font-weight:400;color:#b7c5d9}
.hfs-studio-header .prism-top-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.hfs-studio-header .prism-top-actions button,.hfs-studio-header .prism-top-actions a{padding:9px 13px;border:1px solid #706587;border-radius:9px;background:#292744;color:#fff;text-decoration:none;cursor:pointer;font-size:12px;font-weight:650}
.hfs-studio-header .prism-top-actions .prism-exit{background:linear-gradient(110deg,#a04098,#6545b3)}
#hfs-view{display:flex;flex:1;min-height:0;background:#090b17}
#hfs-view .hfs-topline{padding:5px 15px;font-size:11px;min-height:28px}
#hfs-view .hfs-frame-shell{margin:0;min-height:0;flex:1;border:none;border-radius:0}
#hfs-view .hfs-frame-note{padding:3px 10px;font-size:10px}
#hfs-frame{height:100%;min-height:0}
@media(max-width:720px){.hfs-studio-header{padding:8px;gap:7px}.hfs-studio-header .prism-top-actions{justify-content:start}.hfs-studio-header .prism-top-actions button,.hfs-studio-header .prism-top-actions a{font-size:11px;padding:7px 9px}.hfs-studio-subtitle{display:none}}

/* Restore original edge-to-edge modal sizing after removing the old Vault CSS. */
#media-backdrop:not(.hidden){
 position:fixed!important;inset:0!important;z-index:12500;display:block!important;
 width:100%!important;height:100vh!important;height:100dvh!important;
 margin:0!important;padding:0!important;overflow:hidden!important;
 background:#090b17;box-sizing:border-box;
}
#media-backdrop > .media-dialog.prism-dialog{
 position:absolute!important;inset:0!important;display:flex!important;flex-direction:column;
 width:100%!important;height:100%!important;min-width:0!important;
 max-width:none!important;max-height:none!important;margin:0!important;
 padding:0!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;overflow:hidden!important;background:#090b17;
}
#media-backdrop #hfs-view{flex:1 1 auto;min-height:0;overflow:hidden;display:flex;flex-direction:column}
#media-backdrop #hfs-view .hfs-frame-shell{margin:0!important;border:0!important;border-radius:0!important;flex:1 1 auto;min-height:0}
#media-backdrop #hfs-view .hfs-topline{flex:0 0 auto}
#media-backdrop #hfs-view iframe{width:100%;height:100%;border:0}

/* HFS health is part of the main application, not a permanent warning footer. */
.hfs-app-health{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border:1px solid #60618280;border-radius:30px;color:#d9e0f4;background:#22243b;font-size:11px;font-weight:600;white-space:nowrap}
.hfs-health-dot{display:inline-block;width:8px;height:8px;flex:0 0 8px;border-radius:100%;background:#a1a5b6;box-shadow:0 0 0 3px #ffffff12}
.hfs-state-online .hfs-health-dot,.hfs-health-dot.hfs-state-online{background:#46d8a0;box-shadow:0 0 0 3px #46d8a022}
.hfs-state-offline .hfs-health-dot,.hfs-health-dot.hfs-state-offline{background:#fb8a91;box-shadow:0 0 0 3px #fb8a9123}
.hfs-state-warning .hfs-health-dot,.hfs-health-dot.hfs-state-warning{background:#ffcd74;box-shadow:0 0 0 3px #ffcd7423}
#hfs-view .hfs-topline{gap:12px;min-height:36px;padding:6px 14px;display:flex;align-items:center;justify-content:space-between;background:#15182d;color:#d9def5;font-size:12px}
.hfs-inline-health{display:flex;align-items:center;gap:9px}
#hfs-view .hfs-topline button{padding:5px 10px;background:#2c2948;border-radius:9px;font-size:11px}
.hfs-connection-details{background:#1c1a31;border-bottom:1px solid #ffffff24;padding:12px 18px;font-size:12px;color:#d2d7e8}
.hfs-connection-details[hidden]{display:none!important}
.hfs-connection-details dl{display:flex;flex-wrap:wrap;gap:12px 26px;margin:0 0 8px}
.hfs-connection-details dt{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#aaa7cb}
.hfs-connection-details dd{margin:3px 0 0;overflow-wrap:anywhere;max-width:min(70vw,720px)}
.hfs-connection-details p{margin:3px 0 0;line-height:1.45;color:#b7b9cd}
.hfs-frame-help{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;background:linear-gradient(140deg,#0e1424ee,#1a1834f5);z-index:3;color:#f3eafa}
.hfs-frame-help[hidden]{display:none!important}
.hfs-frame-help-inner{text-align:center;border:1px solid #ffffff24;border-radius:22px;padding:32px 28px;background:#252440;box-shadow:0 16px 40px #0005;max-width:440px}
.hfs-frame-help-icon{display:block;margin:0 auto 12px;font-size:40px;color:#dbaaef}
.hfs-frame-help-inner strong{display:block;font-size:20px}
.hfs-frame-help-inner p{line-height:1.5;color:#c9c8df}
.hfs-help-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:17px}
.hfs-help-actions button,.hfs-help-actions a{border:1px solid #9486bf;border-radius:10px;padding:9px 12px;color:#fff;background:#59427e;font-size:12px;text-decoration:none;cursor:pointer}
@media(max-width:900px){.hfs-app-health{font-size:10px;padding:5px 8px}}
@media(max-width:640px){.hfs-app-health{order:2}.hfs-connection-details dl{flex-direction:column;gap:9px}.hfs-frame-help-inner{padding:20px 14px}}

/* Accessible one-tap continue draft: insert text without submitting the conversation. */
.composer-note .quick-continue{display:inline-flex;align-items:center;margin-right:9px;padding:6px 10px;border-radius:9px;border:1px solid #cda3f47a;background:linear-gradient(110deg,#44365d,#343a6d);color:#fce7ff;font-weight:750;font-size:11px;white-space:nowrap}
.composer-note .quick-continue:hover{background:#604783;border-color:#ffd5f7}
.composer-note .quick-continue:focus-visible{outline:2px solid #ffb6ec;outline-offset:2px}
@media(max-width:640px){.composer-note .quick-continue{padding:8px 11px;font-size:12px}}
