/* DeepSeek-style minimal chat: one slim top bar, messages fill the screen. */
body.sc-min, html.sc-fit body.sc-min{
  display:flex !important;
  flex-direction:column !important;
  grid-template:none !important;
  height:var(--sc-vh,100dvh) !important;
  min-height:0 !important;
  overflow:hidden;
  margin:0;
  background:#0b1018;
  color:#f3e7d3;
}
body.sc-min .sc-minbar{
  flex:none;
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 44px 44px;
  align-items:center;
  height:48px;
  min-height:48px;
  max-height:48px;
  padding:0 4px 0 2px;
  box-sizing:border-box;
  border-bottom:1px solid rgba(255,238,214,.12);
  background:rgba(13,19,30,.96);
  z-index:40;
  overflow:hidden;
}
body.sc-min .sc-minbar .back,
body.sc-min .sc-minbar .ico{
  width:44px;height:44px;display:grid;place-items:center;
  color:inherit;text-decoration:none;background:none;border:0;
  border-radius:10px;cursor:pointer;font-size:1.2rem;line-height:1;
}
body.sc-min .sc-minbar .back:hover,
body.sc-min .sc-minbar .ico:hover{background:rgba(255,238,214,.08)}
body.sc-min .sc-minbar .who{
  justify-self:center;min-width:0;max-width:100%;
  background:none;border:0;color:inherit;cursor:pointer;
  font:650 1.05rem/1.2 var(--sans,Inter,sans-serif);
  padding:6px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  text-align:center;
}
body.sc-min .sc-minbar .who[data-switch]{cursor:pointer}
body.sc-min .sc-minbar .who:not(button){display:block}

/* Hide every leftover pinned banner / info row */
body.sc-min .sos,
body.sc-min .bar,
body.sc-min .sc-strip,
body.sc-min .hidebar,
body.sc-min .disclaimer-banner,
body.sc-min .beta-notice,
body.sc-min .remaining,
body.sc-min .preview-notice,
body.sc-min .nav-row,
body.sc-min .legacy .sc-strip{display:none !important}

body.sc-min .main-content,
body.sc-min .main-container{
  flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;
  background:transparent !important;
}
body.sc-min .msgs,
body.sc-min #msgs,
body.sc-min .chat-messages{
  flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;
  padding:14px 16px 8px;display:flex;flex-direction:column;gap:16px;
  background:transparent !important;
}

/* Assistant: plain full-width text, no bubble */
body.sc-min .m.bot,
body.sc-min .message.bot{
  align-self:stretch !important;
  max-width:100% !important;
  width:auto !important;
  background:none !important;
  border:none !important;
  box-shadow:none !important;
  border-radius:0 !important;
  padding:0 2px !important;
  color:inherit;
  font-size:1.04rem;
  line-height:1.55;
  white-space:pre-wrap;
  word-wrap:break-word;
}
body.sc-min .m.bot .who-l,
body.sc-min .message.bot .label,
body.sc-min .message.bot .who-l{
  display:block;font-size:.78rem;font-weight:650;color:#cbbba6;margin:0 0 4px;opacity:1;
}

/* User: subtle rounded bubble */
body.sc-min .m.user,
body.sc-min .message.user{
  align-self:flex-end !important;
  max-width:82% !important;
  background:rgba(255,238,214,.12) !important;
  border:none !important;
  box-shadow:none !important;
  border-radius:18px 18px 6px 18px !important;
  padding:10px 14px !important;
  color:inherit;
  font-size:1.04rem;
  line-height:1.5;
  white-space:normal;
  word-wrap:break-word;
}
body.sc-min .m.user > span:not(.label):not(.who-l),
body.sc-min .message.user > span:not(.label):not(.who-l){
  white-space:pre-wrap;
}
body.sc-min .m.user .who-l,
body.sc-min .message.user .label{display:none}

body.sc-min .typing,
body.sc-min .sc-thinking{
  align-self:flex-start;background:none !important;border:none !important;
  color:#cbbba6;font-size:.95rem;padding:0 2px;
}
body.sc-min .resources{
  align-self:stretch;max-width:100%;background:none;border:0;padding:0 2px;
  color:#ffe2bd;font-size:.97rem;
}
body.sc-min .resources a{color:#ffd08a;font-weight:700}

/* Slim rounded input */
body.sc-min .input,
body.sc-min .input-area,
body.sc-min form.input{
  flex:none;display:flex;gap:8px;align-items:flex-end;
  padding:6px 10px calc(6px + env(safe-area-inset-bottom,0px));
  background:rgba(13,19,30,.96);
  border-top:1px solid rgba(255,238,214,.12);
}
body.sc-min .input textarea,
body.sc-min .input-area textarea{
  flex:1;min-height:40px;max-height:120px;margin:0;
  padding:9px 14px;resize:none;
  font:inherit;font-size:1rem;color:#f3e7d3;
  background:rgba(255,238,214,.08);
  border:1px solid rgba(255,238,214,.16);
  border-radius:22px;outline:none;
}
body.sc-min .input textarea:focus,
body.sc-min .input-area textarea:focus{border-color:rgba(242,162,74,.7)}
body.sc-min .input button,
body.sc-min .input-area button[type=submit],
body.sc-min .input-area #sendBtn,
body.sc-min .input-area button:not(.attach-btn){
  min-height:40px;padding:0 16px;margin:0;border:0;cursor:pointer;
  border-radius:22px;font:700 .95rem var(--sans,Inter,sans-serif);
  color:#1b1006;background:linear-gradient(180deg,#f6b25a,#d7792f);
}
body.sc-min .attach-btn{
  width:40px;min-width:40px;height:40px;min-height:40px;padding:0;border-radius:20px;
  background:rgba(255,238,214,.08);border:1px solid rgba(255,238,214,.16);color:#f3e7d3;
}
body.sc-min .fineprint{
  display:none; /* lives in the greeting / menu so the input stays one row */
}

/* Help sheet + persona switch + menu panel */
.sc-sheet{
  display:none;position:fixed;inset:0;z-index:80;
  background:rgba(0,0,0,.5);
}
.sc-sheet.open{display:block}
.sc-sheet .sc-sheet-in{
  position:absolute;left:0;right:0;bottom:0;
  background:#16110d;border-top:1px solid rgba(255,238,214,.16);
  border-radius:16px 16px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px));
  display:flex;flex-direction:column;gap:8px;
}
.sc-sheet .sc-sheet-in p{margin:0 4px 6px;color:#cbbba6;font-size:.9rem}
.sc-sheet .sc-sheet-in a,
.sc-sheet .sc-sheet-in button.sc-help-call{
  display:flex;align-items:center;justify-content:center;
  min-height:48px;padding:10px 14px;border-radius:12px;
  background:rgba(255,238,214,.06);border:1px solid rgba(255,238,214,.16);
  color:#f7efe3;text-decoration:none;font:650 1.02rem var(--sans,Inter,sans-serif);
  cursor:pointer;
}
.sc-sheet .sc-sheet-in .sc-help-close{
  margin-top:4px;background:none;border:0;color:#cbbba6;min-height:40px;cursor:pointer;font:inherit;
}
.sc-switch{
  display:none;position:fixed;top:52px;left:50%;transform:translateX(-50%);z-index:90;
  background:#16110d;border:1px solid rgba(255,238,214,.18);border-radius:14px;
  padding:6px;min-width:180px;box-shadow:0 10px 30px rgba(0,0,0,.45);
}
.sc-switch.open{display:flex;flex-direction:column}
.sc-switch button{
  font:650 1rem var(--sans,Inter,sans-serif);color:#f3e7d3;background:none;border:0;
  min-height:44px;padding:8px 14px;border-radius:10px;cursor:pointer;text-align:left;
}
.sc-switch button[aria-pressed="true"]{background:rgba(242,162,74,.25)}
.sc-menu-panel{
  display:none;position:fixed;top:0;right:0;bottom:0;width:min(320px,92vw);z-index:85;
  background:#16110d;border-left:1px solid rgba(255,238,214,.16);
  padding:12px 14px calc(16px + env(safe-area-inset-bottom,0px));
  overflow-y:auto;box-shadow:-8px 0 30px rgba(0,0,0,.45);
}
.sc-menu-panel.open{display:block}
.sc-menu-panel h3{margin:16px 8px 6px;font-size:.82rem;letter-spacing:.08em;text-transform:uppercase;color:#e8a04a}
.sc-menu-panel a,
.sc-menu-panel button,
.sc-menu-panel .cover,
.sc-menu-panel label{
  display:block;width:100%;text-align:left;background:none;border:0;color:#f3e7d3;
  text-decoration:none;font:inherit;font-size:1rem;padding:12px 10px;border-radius:10px;cursor:pointer;
  box-sizing:border-box;
}
.sc-menu-panel a:hover,
.sc-menu-panel button:hover{background:rgba(255,238,214,.07)}
.sc-menu-panel .cover{cursor:default;color:#cbbba6;font-size:.92rem;line-height:1.45;white-space:normal}
.sc-menu-panel .note{color:#cbbba6;font-size:.88rem;padding:6px 10px}
.sc-menu-panel hr{border:0;border-top:1px solid rgba(255,238,214,.12);margin:8px 0}
/* existing door sidebars become the right-hand menu when open */
body.sc-min .sidebar{
  position:fixed;top:0;right:0;left:auto !important;bottom:0;
  width:min(320px,92vw);height:100%;z-index:85;
  background:#16110d !important;border-left:1px solid rgba(255,238,214,.16);
  color:#f3e7d3;
  transform:translateX(100%);
  visibility:hidden;
  pointer-events:none;
}
body.sc-min #menu-toggle:checked ~ .sidebar{
  transform:translateX(0);
  visibility:visible;
  pointer-events:auto;
}
body.sc-min .overlay{
  display:none !important;
  position:fixed;inset:0;z-index:84;
  background:rgba(0,0,0,.5);
}
body.sc-min #menu-toggle:checked ~ .overlay{
  display:block !important;
}

body.sc-min .menu-toggle{position:absolute !important;left:-9999px !important;width:1px;height:1px;overflow:hidden}
body.sc-min .ctools{display:none !important}
body.sc-min .sc-ai-note{
  flex:none;
  margin:0;
  padding:3px 12px 5px;
  font-size:.68rem;
  line-height:1.3;
  color:#8e8274;
  text-align:center;
}
body.sc-min #freeTry{
  flex:none !important;
  padding:3px 12px !important;
  font-size:.72rem !important;
  background:transparent !important;
  border:0 !important;
  color:#cbbba6 !important;
}
