/* ==========================================================================
   아우소 디자인 2차 (2026-11-30 저녁 대표 통화 반영)
   원칙: 검은 바탕 · 색은 짧게 · 채도 낮게 · 화면마다 아주 옅은 색조
   · 상단 띠줄 제거 → 얇은 아이콘 바(가운데 초록 아우소)
   · 하단 탭 5개 · 얇게 · 화면 맨 아래
   · 채팅방 구조(좌우 말풍선 · 시간 · 날짜 구분선 · 아래로 버튼 · 큰 글자)
   · 입력란: 네이버 그린(#03C75A) 3D 알약 (2026-11-30 저녁 지시)
   · 좌측 목차(데스크톱) / 서랍(모바일) · 친구 초대 시트
   ========================================================================== */

:root{
  --auso-green:#2F9E69;
  --auso-green-2:#4FAE7E;
  --auso-green-3:#2A7A55;
  --auso-green-deep:#16543A;
  --auso-green-glow:rgba(60,170,120,.18);

  --bub-me:#262B33;
  --bub-me-ink:#ECEEF4;
  --bub-ai:#14171D;
  --bub-ai-ink:#E6E9F0;
  --chat-bg:#0A0B0E;

  --s-tint:#0A0B0E;
  --s-accent:#8C93A6;
}
html:not([data-theme="dark"]){
  --auso-green:#2A8659;
  --auso-green-2:#2A8659;
  --bub-me:#ECEFF7;
  --bub-me-ink:#20242F;
  --bub-ai:#FFFFFF;
  --bub-ai-ink:#1B1E27;
  --chat-bg:#F3F5F9;
  --s-tint:#F3F5F9;
  --s-accent:#5A6072;
}

/* ---------- 화면별 아주 옅은 색조 (짧게) ---------- */
html[data-theme="dark"] .main{background-color:#0A0B0E;transition:background-color .28s ease;}
#app[data-view="deals"]{--s-tint:#0A0D0C;--s-accent:#5C9C82;}
#app[data-view="library"]{--s-tint:#090B10;--s-accent:#7D8CA8;}
#app[data-view="contacts"]{--s-tint:#0C0B0A;--s-accent:#A08F78;}
#app[data-view="me"]{--s-tint:#0B0A10;--s-accent:#9A8FC0;}
#app[data-view="tasks"]{--s-tint:#0A0B0E;--s-accent:#8C93A6;}
#app[data-view="explore"]{--s-tint:#0A0C0C;--s-accent:#6E9C8C;}
html[data-theme="dark"] #app[data-view="deals"] .main{background-color:var(--s-tint);}
html[data-theme="dark"] #app[data-view="library"] .main{background-color:var(--s-tint);}
html[data-theme="dark"] #app[data-view="contacts"] .main{background-color:var(--s-tint);}
html[data-theme="dark"] #app[data-view="me"] .main{background-color:var(--s-tint);}
html[data-theme="dark"] #app[data-view="tasks"] .main{background-color:var(--s-tint);}
html[data-theme="dark"] #app[data-view="explore"] .main{background-color:var(--s-tint);}
html[data-theme="dark"] #app[data-view="chat"] .main{background-color:#0A0B0E;}

/* ---------- 1. 상단 띠줄 → 얇은 아이콘 바 ---------- */
.appbar{display:none!important;}
.topbar{
  position:relative;z-index:70;flex:0 0 auto;
  height:50px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;
  gap:8px;padding:0 8px;border:0;background:transparent;
}
.tb-btn{
  position:relative;width:38px;height:38px;flex:0 0 auto;border-radius:50%;
  display:grid;place-items:center;color:#9AA1B2;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.075);
  backdrop-filter:blur(14px) saturate(1.2);-webkit-backdrop-filter:blur(14px) saturate(1.2);
  transition:transform .16s,background .18s,color .18s,border-color .18s;
}
html:not([data-theme="dark"]) .tb-btn{background:rgba(255,255,255,.7);border-color:rgba(20,24,34,.08);color:#5B6072;}
.tb-btn svg{width:21px;height:21px;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}
.tb-btn:hover{color:#E4E7EE;}
.tb-btn:active{transform:scale(.93);}
.tb-btn.invite{color:var(--auso-green-2);border-color:rgba(120,200,165,.20);}
.tb-dot{
  position:absolute;top:7px;right:7px;width:6px;height:6px;border-radius:50%;
  background:var(--auso-green-2);box-shadow:0 0 0 2px #0A0B0E;font-style:normal;
}
.tb-brand{
  justify-self:center;display:inline-flex;align-items:center;gap:7px;
  padding:3px 10px;border-radius:999px;text-decoration:none;
}
.tb-brand .char{--sz:26px;}
.tb-brand b{
  font-size:1.06rem;font-weight:800;letter-spacing:-.03em;line-height:1;
  color:var(--auso-green-2);
}
html:not([data-theme="dark"]) .tb-brand b{color:#27764F;}
.tb-brand .status{display:inline-flex;align-items:center;gap:4px;}
.tb-brand .status em{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
.tb-brand .status i{width:5px;height:5px;opacity:.75;}
.tb-acts{justify-self:end;display:flex;align-items:center;gap:6px;}

/* ---------- 2. 하단 탭 — 5개 · 얇게 · 맨 아래 ---------- */
.tabbar{
  flex:0 0 auto;z-index:80;position:relative;
  display:grid;grid-template-columns:repeat(5,1fr);
  padding:2px 6px calc(2px + env(safe-area-inset-bottom));
  border-top:1px solid rgba(255,255,255,.055);
  background:rgba(10,11,14,.86);
  backdrop-filter:saturate(1.1) blur(20px);-webkit-backdrop-filter:saturate(1.1) blur(20px);
}
html:not([data-theme="dark"]) .tabbar{background:rgba(250,251,253,.9);border-top-color:rgba(20,24,34,.07);}
.tab{
  position:relative;height:47px;border-radius:12px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  color:#767D8F;font-weight:650;letter-spacing:-.02em;
  transition:color .2s;
}
.tab svg{width:22px;height:22px;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s,stroke-width .2s;}
.tab span[data-label]{font-size:.62rem;line-height:1;white-space:nowrap;}
.tab:active{transform:scale(.96);}
.tab.on{color:#E9ECF2;}
html:not([data-theme="dark"]) .tab.on{color:#1D2230;}
.tab.on svg{stroke-width:1.8;transform:translateY(-1px);}
.tab.on::before{
  content:"";position:absolute;top:1px;width:20px;height:2px;border-radius:2px;
  background:var(--s-accent);opacity:.75;
}
.tab .badge{display:none;}

/* ---------- 3. 채팅방 ---------- */
#s-chat .chatlog{
  padding:8px 14px 18px;
  display:flex;flex-direction:column;
  background:var(--chat-bg);
}
html[data-theme="dark"] #s-chat .chatlog{background:#0A0B0E;}

.dayline{display:flex;justify-content:center;margin:10px 0 14px;}
.dayline::before,.dayline::after{display:none;}
.dayline span{
  display:inline-block;padding:5px 13px;border-radius:999px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.055);
  font-size:12px;font-weight:600;color:#8D94A6;letter-spacing:-.01em;
}
html:not([data-theme="dark"]) .dayline span{background:rgba(255,255,255,.8);border-color:rgba(20,24,34,.07);color:#6A7080;}

.msg{display:flex;gap:8px;margin-bottom:12px;align-items:flex-start;animation:msgIn .26s cubic-bezier(.2,.8,.2,1);}
.msg.me{justify-content:flex-end;align-items:flex-end;}
.msg.ai .mins{width:34px;height:34px;flex:0 0 auto;margin-top:18px;}
.msg.ai .mbody{display:flex;flex-direction:column;min-width:0;max-width:min(80%,560px);}
.msg.ai .who-n{
  display:block;margin:0 0 4px 2px;font-size:12px;font-weight:650;
  color:#8D94A6;letter-spacing:-.01em;
}
.msg .mline{display:flex;align-items:flex-end;gap:6px;min-width:0;}
.msg .mt{flex:0 0 auto;font-size:11.5px;line-height:1.2;color:#6E7587;margin-bottom:4px;white-space:nowrap;}
.msg.me .mt{margin:0 6px 4px 0;}

.bubble{
  max-width:min(80%,560px);
  padding:11px 15px;
  border-radius:18px;
  background:var(--bub-ai);
  color:var(--bub-ai-ink);
  border:1px solid rgba(255,255,255,.05);
  box-shadow:0 1px 2px rgba(0,0,0,.25);
  font-size:17px;line-height:1.6;letter-spacing:-.01em;
  white-space:pre-wrap;overflow-wrap:anywhere;
  border-bottom-left-radius:6px;
}
html:not([data-theme="dark"]) .bubble{border-color:rgba(20,24,34,.06);box-shadow:0 1px 3px rgba(20,24,34,.06);}
.msg.me .bubble{
  background:var(--bub-me);
  color:var(--bub-me-ink);
  border-color:rgba(255,255,255,.06);
  border-radius:18px;border-bottom-right-radius:6px;
  box-shadow:0 1px 2px rgba(0,0,0,.22);
}
html:not([data-theme="dark"]) .msg.me .bubble{border-color:rgba(20,24,34,.05);}
.bubble .meta{display:block;font-size:12px;color:#8A91A3;margin-top:6px;}
.msg.me .bubble .meta{color:#A8AFBF;}
.bubble .icard{background:rgba(255,255,255,.035);border-color:rgba(255,255,255,.06);}
html:not([data-theme="dark"]) .bubble .icard{background:#F6F7FB;}
.bubble .icard .ih b{font-size:.95rem;}
.bubble .icard li,.bubble .icard p{font-size:.88rem;}

.sugg{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px 42px;}

/* 아래로 버튼 */
.scrolldown{
  position:absolute;left:50%;transform:translateX(-50%) translateY(6px);
  bottom:12px;z-index:20;
  width:38px;height:38px;border-radius:50%;display:grid;place-items:center;
  background:rgba(28,32,40,.92);color:#DDE1EA;
  border:1px solid rgba(255,255,255,.09);
  box-shadow:0 10px 24px -14px rgba(0,0,0,.8);
  opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;
}
.scrolldown.on{opacity:1;pointer-events:auto;transform:translateX(-50%) translateY(0);}
.scrolldown svg{width:19px;height:19px;stroke-width:1.7;}

/* ---------- 4. 입력란 — 네이버 그린(#03C75A) 3D 알약 ----------
   · 2026-11-30 지시: "채팅 입력창 녹색 네이버 색으로"
   · 배경은 네이버 그린 세 단계 그라디언트 + 위쪽 광택 + 아래쪽 3D 그늘
   · 글자·플레이스홀더·마이크/전송은 흰색 계열로 대비 확보
   ------------------------------------------------------------------ */
.composer{padding:6px 10px 6px;background:transparent;}
.pill3d{
  position:relative;display:flex;align-items:flex-end;gap:4px;width:100%;
  border-radius:26px;padding:5px 6px 5px 5px;
  background:linear-gradient(180deg,#05DB62 0%,#03C75A 54%,#019C45 100%);
  border:1px solid rgba(255,255,255,.24);
  box-shadow:
    0 16px 30px -18px rgba(0,0,0,.9),
    0 8px 22px -12px rgba(3,199,90,.45),
    inset 0 1px 0 rgba(255,255,255,.46),
    inset 0 -4px 10px rgba(0,78,33,.34);
  transition:box-shadow .18s,transform .12s;
}
html:not([data-theme="dark"]) .pill3d{
  background:linear-gradient(180deg,#06DE66 0%,#03C75A 54%,#02A74B 100%);
  border-color:rgba(255,255,255,.5);
  box-shadow:
    0 14px 26px -16px rgba(3,140,70,.5),
    0 2px 6px rgba(3,80,42,.16),
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -4px 10px rgba(0,90,38,.26);
}
.pill3d::before{
  content:"";position:absolute;left:7%;right:7%;top:2px;height:42%;border-radius:999px;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.34),rgba(255,255,255,0));
  filter:blur(1.2px);
}
.pill3d:focus-within{
  transform:translateY(1px);
  box-shadow:
    0 6px 16px -12px rgba(0,0,0,.9),
    0 0 0 1px rgba(255,255,255,.28),
    inset 0 4px 12px rgba(0,66,28,.4),
    inset 0 -1px 0 rgba(255,255,255,.18);
}
.pill-sphere{
  position:relative;width:46px;height:46px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;
  background:radial-gradient(circle at 30% 20%,#B4F7D4 0%,#1DB76A 26%,#05813F 64%,#00502A 100%);
  border:1px solid rgba(255,255,255,.42);
  box-shadow:inset 0 -3px 8px rgba(0,44,20,.6),inset 0 3px 6px rgba(255,255,255,.6),
    0 4px 10px -3px rgba(0,52,24,.55),0 0 0 2px rgba(0,74,32,.16);
  color:#FFFFFF;font-size:.56rem;letter-spacing:-.02em;
}
.pill-sphere b{font-weight:800;text-shadow:0 1px 2px rgba(0,64,29,.62);}
.pill-field{flex:1;min-width:0;display:flex;align-items:center;padding:0 2px;}
.pill-field textarea{
  width:100%;border:0;background:none;resize:none;outline:none;
  color:#FFFFFF;caret-color:#FFFFFF;
  text-shadow:0 1px 2px rgba(0,52,24,.3);
  font-size:16.5px;line-height:1.5;letter-spacing:-.01em;
  padding:14px 4px 13px;min-height:52px;max-height:150px;overflow-y:auto;
}
html:not([data-theme="dark"]) .pill-field textarea{color:#FFFFFF;caret-color:#FFFFFF;}
.pill-field textarea::placeholder{color:rgba(255,255,255,.88);text-shadow:0 1px 1px rgba(0,52,24,.18);}
html:not([data-theme="dark"]) .pill-field textarea::placeholder{color:rgba(255,255,255,.9);}
.pill-ico{
  width:42px;height:42px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;
  color:rgba(255,255,255,.95);transition:background .18s,color .18s,transform .12s;margin-bottom:2px;
}
.pill-ico:hover{background:rgba(255,255,255,.2);color:#fff;}
.pill-ico.mic{color:#FFFFFF;}
.pill-ico.mic.rec{color:#FFFFFF;background:linear-gradient(160deg,#FF5FA2,#D6216B);}
.pill-ico svg{width:20px;height:20px;stroke-width:1.9;}
.pill-ico.act{width:46px;height:46px;}
/* 글자가 있으면 전송 버튼: 네이버 그린 위 흰 원 + 초록 화살표 */
.pill3d.hasText .pill-ico.act{
  background:linear-gradient(170deg,#FFFFFF 0%,#F2FFF7 55%,#DAF8E5 100%);
  color:#02A14A;
  box-shadow:inset 0 -2px 6px rgba(0,80,36,.16),inset 0 2px 4px rgba(255,255,255,.9),0 3px 8px -4px rgba(0,60,28,.45);
}

/* 추천 칩 — 가로 넘김 없이 */
.quickchips{
  display:flex;flex-wrap:wrap;gap:7px;overflow:visible;padding:2px 4px 8px;
  -webkit-mask-image:none;mask-image:none;
}
.quickchips .chip{font-size:.78rem;padding:7px 12px;}

/* ---------- 5. 좌측 목차 · 모바일 서랍 ---------- */
.nav-sep{height:1px;margin:10px 8px;background:var(--line);}
.nav-i .ni,.nav-i svg{width:19px;height:19px;color:var(--muted);flex:0 0 auto;stroke-width:1.5;}
.nav-i.on svg{color:var(--accent);}
.nav-i.sub{height:40px;font-size:.83rem;color:var(--muted);}
.side-invite{
  display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;border-radius:50%;margin:0 0 12px;
  color:var(--auso-green-2);background:rgba(80,175,130,.08);
  border:1px solid rgba(120,200,165,.18);
  transition:transform .16s,background .18s;
}
.side-invite svg{width:21px;height:21px;stroke-width:1.55;}
.side-invite:active{transform:scale(.94);}

.drawerwrap{position:fixed;inset:0;z-index:130;}
.drawerwrap[hidden]{display:none;}
.drawer-scrim{position:absolute;inset:0;background:rgba(3,4,7,.55);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);}
.drawer{
  position:absolute;left:0;top:0;bottom:0;width:288px;max-width:86vw;
  display:flex;flex-direction:column;
  padding:16px 12px calc(16px + env(safe-area-inset-bottom));
  background:#0C0E13;border-right:1px solid rgba(255,255,255,.06);
  box-shadow:24px 0 60px -30px rgba(0,0,0,.8);
  transform:translateX(-102%);transition:transform .26s cubic-bezier(.2,.8,.2,1);
  overflow-y:auto;
}
html:not([data-theme="dark"]) .drawer{background:#FBFCFE;border-right-color:rgba(20,24,34,.07);}
.drawerwrap.on .drawer{transform:none;}
.drawer .brand{padding-bottom:14px;}
.drawer .nav-i{display:flex;align-items:center;gap:12px;height:46px;padding:0 13px;border-radius:13px;font-size:.93rem;font-weight:600;color:var(--text);text-align:left;}
.drawer .nav-i span{flex:1;}
.drawer .nav-i.on{background:rgba(255,255,255,.06);color:#EDF0F6;}
.drawer-foot{margin-top:auto;padding:14px 8px 4px;display:flex;align-items:center;gap:10px;}
.drawer-close{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:var(--muted);}
.drawer-close svg{width:18px;height:18px;}

/* ---------- 6. 친구 초대 시트 ---------- */
.inv-lead{margin:0 0 14px;font-size:.86rem;color:var(--muted);line-height:1.55;}
.inv-box{
  display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);
}
html:not([data-theme="dark"]) .inv-box{background:#F5F7FA;border-color:rgba(20,24,34,.07);}
.inv-box code{
  flex:1;min-width:0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.78rem;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.inv-box .inv-copy{
  flex:0 0 auto;padding:7px 12px;border-radius:10px;font-size:.76rem;font-weight:750;
  color:#EAF7EF;background:rgba(47,158,105,.22);border:1px solid rgba(120,200,165,.24);
}
.inv-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px 6px;margin:18px 0 6px;}
@media (min-width:420px){ .inv-grid{grid-template-columns:repeat(5,1fr);} }
.inv-ch{display:flex;flex-direction:column;align-items:center;gap:7px;padding:2px 0;}
.inv-ic{
  width:54px;height:54px;border-radius:17px;display:grid;place-items:center;
  box-shadow:0 8px 18px -14px rgba(0,0,0,.9),inset 0 1px 0 rgba(255,255,255,.22);
  transition:transform .16s;
}
.inv-ch:active .inv-ic{transform:scale(.92);}
.inv-ic svg{width:26px;height:26px;}
.inv-nm{font-size:11.5px;font-weight:650;color:var(--muted);letter-spacing:-.01em;}
.ic-kakao{background:#E9D46A;color:#3C2A1E;}
.ic-insta{background:linear-gradient(140deg,#C9866F 0%,#B06A8E 45%,#6E7BA8 100%);color:#fff;}
.ic-sms{background:#4E9E6E;color:#fff;}
.ic-band{background:#3E9E63;color:#fff;}
.ic-x{background:#15171B;color:#fff;border:1px solid rgba(255,255,255,.12);}
.ic-fb{background:#3A6EA8;color:#fff;}
.ic-tt{background:#15171B;color:#fff;border:1px solid rgba(255,255,255,.12);}
.ic-line{background:#4E9E6E;color:#fff;}
.ic-wa{background:#4E9E72;color:#fff;}
.ic-tg{background:#4A87A8;color:#fff;}
.ic-mail{background:#A86A61;color:#fff;}
.ic-more{background:rgba(255,255,255,.06);color:var(--text);border:1px solid rgba(255,255,255,.08);}
html:not([data-theme="dark"]) .ic-more{background:#EDF0F5;border-color:rgba(20,24,34,.07);}
.inv-note{margin:14px 0 0;font-size:.76rem;color:var(--faint);line-height:1.55;}
.inv-count{
  display:flex;align-items:center;gap:8px;margin:14px 0 0;padding:11px 13px;border-radius:14px;
  background:rgba(255,255,255,.035);border:1px dashed rgba(255,255,255,.1);font-size:.79rem;color:var(--muted);
}
.inv-count b{color:var(--text);font-weight:650;}

/* ---------- 7. 데스크톱 ---------- */
@media (min-width:900px){
  .topbar{height:56px;padding:0 18px;}
  .tb-btn.only-mobile,#btnDrawer{display:none;}
  .drawerwrap{display:none!important;}
  .chatlog,.scroll{max-width:860px;}
  #s-chat .chatlog{padding:10px 26px 24px;}
  .msg.ai .mbody{max-width:min(66%,560px);}
  .bubble{max-width:min(70%,520px);}
  .composer{padding:8px 26px 14px;}
  .pill3d{max-width:860px;margin:0 auto;}
  .sidebar{background:transparent;border-right:1px solid rgba(255,255,255,.05);}
}
@media (max-width:899px){ .tabbar{display:grid;} }

/* ---------- 8. 조용한 톤 마무리 ---------- */
@media (min-width:900px){ .tabbar{display:none!important;} }
/* 입력란 위 가로 넘김 추천 칩 — 채팅방에서는 쓰지 않는다 */
#quickChips{display:none!important;}
/* 첫 안내 띠 — 채팅방을 가리지 않게 접어 둔다 */
.firsttip{display:none!important;}
#aiNote{font-size:10.5px!important;line-height:1.35!important;margin:2px 18px 0!important;opacity:.62;}
/* 위젯 줄은 대화가 없을 때만 */
.wgrid{margin:0 0 12px;}
/* 시트가 탭바 위로 */
.sheetwrap{z-index:200;}
.sheet{max-height:88dvh;}
.sheet-foot{padding-bottom:calc(16px + env(safe-area-inset-bottom));}
/* 선택 표시는 은은하게 */
.themebtn.on{box-shadow:none!important;border-color:rgba(255,255,255,.26)!important;}
html:not([data-theme="dark"]) .themebtn.on{border-color:rgba(20,24,34,.22)!important;}
@media (min-width:900px){
  .nav-i.on{background:rgba(255,255,255,.055)!important;color:#EAEDF3!important;}
  html:not([data-theme="dark"]) .nav-i.on{background:rgba(20,24,34,.05)!important;color:#161B26!important;}
  .nav-i.on svg{color:#C9CFDB;}
  html:not([data-theme="dark"]) .nav-i.on svg{color:#3A4050;}
}
.nav-i.on{position:relative;}
.nav-i.on::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:2px;height:16px;border-radius:2px;background:var(--s-accent);opacity:.7;}
.drawer .nav-i.on::before{display:none;}

/* 선택 상태는 색이 아니라 명도로 */
html[data-theme="dark"] .chip.on{
  background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.16);
  color:#EDF0F6;box-shadow:none;
}
html[data-theme="dark"] .seg button.on{background:rgba(255,255,255,.09);color:#EDF0F6;box-shadow:none;}
html[data-theme="dark"] .chip{background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.07);}
.msg.ai .who-n .mt{margin:0 0 0 6px;font-size:11.5px;color:#6E7587;font-weight:500;letter-spacing:0;}
#aiNote{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}

/* 서랍 브랜드 */
.drawer .brand-t b{display:block;font-size:1.06rem;letter-spacing:-.03em;font-weight:800;}
.drawer .brand-t span{display:block;font-size:.67rem;color:var(--faint);letter-spacing:.04em;margin-top:2px;}
.drawer .brand{display:flex;align-items:center;gap:11px;}

/* 데스크톱: 마이크가 대화를 가리지 않게 조금 작고 바깥으로 */
@media (min-width:900px){
  .fabwrap{width:76px;right:10px;bottom:84px;}
  .fab{width:76px;height:76px;}
  .chatlog,.scroll{max-width:820px;}
  .composer .pill3d{max-width:820px;}
}

/* 색면이 큰 것은 채도를 낮춰 한 톤으로 */
html[data-theme="dark"] .avatar{filter:saturate(.55) brightness(.92);}
html[data-theme="dark"] .btn.primary{
  background:linear-gradient(160deg,#625B80 0%,#4B4669 100%);
  color:#F1F0F8;box-shadow:0 10px 22px -16px rgba(0,0,0,.9);
}
html[data-theme="dark"] .btn.primary:hover{filter:brightness(1.06);}
/* 혜택 타일: 색이 없던 분류를 조용한 톤으로 (기존 빈 카드 보완) */
.btile.cat-grant{background:linear-gradient(145deg,#2B3444 0%,#212936 58%,#1A212B 100%);}
.btile.cat-coupon{background:linear-gradient(145deg,#3A302B 0%,#2C2521 58%,#231D1A 100%);}
.btile.cat-tax{background:linear-gradient(145deg,#243A34 0%,#1C2E29 58%,#16241F 100%);}
.btile.cat-local{background:linear-gradient(145deg,#332B38 0%,#28212D 58%,#1F1A23 100%);}
.btile.cat-biz{background:linear-gradient(145deg,#28313C 0%,#202730 58%,#191F26 100%);}
.btile.cat-business{background:linear-gradient(145deg,#2C3B52 0%,#22303f 58%,#1A2432 100%);}
.btile.cat-money{background:linear-gradient(145deg,#3C3129 0%,#2E2620 58%,#241D18 100%);}
.btile.cat-promo{background:linear-gradient(145deg,#3A2C38 0%,#2C222B 58%,#221A21 100%);}
.btile.cat-docs{background:linear-gradient(145deg,#233733 0%,#1B2B28 58%,#15221F 100%);}
.btile.cat-life{background:linear-gradient(145deg,#37332A 0%,#2A2721 58%,#211F1A 100%);}
.btile.cat-research{background:linear-gradient(145deg,#243336 0%,#1C292B 58%,#162021 100%);}
.btile::after{background:rgba(255,255,255,.07);}
.btile::after{
  background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.10) 0%,rgba(255,255,255,.03) 48%,transparent 72%);
  border-radius:50%;filter:blur(6px);
}

/* ==========================================================================
   9. 18:03~18:06 확정 — 상단 띠 제거 · 한 톤 바탕 · 진한 포인트
   ========================================================================== */
html[data-theme="dark"]{
  --acc-mint:#0E8A66;
  --acc-mint-lit:#2FB894;
  --acc-violet:#5B34C9;
  --acc-violet-lit:#8B6DF0;
  --bg:#0A0B0E;
}
/* 화면별 진한 색조 (면적은 넓히지 않고 포인트에만) */
#app[data-view="chat"]{--s-accent:#2A2D33;--s-lit:#9AA1B2;}
#app[data-view="tasks"]{--s-accent:#2A2D33;--s-lit:#9AA1B2;}
#app[data-view="deals"]{--s-accent:#0F4F4A;--s-lit:#2FB894;}
#app[data-view="explore"]{--s-accent:#0F4F4A;--s-lit:#2FB894;}
#app[data-view="library"]{--s-accent:#24304A;--s-lit:#6F8FC9;}
#app[data-view="contacts"]{--s-accent:#3E3227;--s-lit:#B79A76;}
#app[data-view="me"]{--s-accent:#3A2A6B;--s-lit:#8B6DF0;}

/* 상단: 띠 없음 · 같은 바탕 · 왼쪽 로고+햄버거 · 오른쪽 초대 하나 */
.topbar{
  display:flex!important;align-items:center;justify-content:space-between;
  height:50px;padding:0 8px;background:transparent!important;border:0!important;
  grid-template-columns:none;
}
.tb-left{display:flex;align-items:center;gap:6px;min-width:0;}
.tb-brand{justify-self:auto;padding:2px 4px;gap:6px;}
.tb-brand b{color:var(--acc-mint-lit)!important;font-size:1.02rem;}
html:not([data-theme="dark"]) .tb-brand b{color:#0E7A5C!important;}
.tb-acts{display:flex;align-items:center;gap:6px;}
.tb-btn{width:36px;height:36px;background:transparent!important;border:1px solid rgba(255,255,255,.07)!important;}
.tb-btn:hover{background:rgba(255,255,255,.05)!important;}
html:not([data-theme="dark"]) .tb-btn{background:transparent!important;border-color:rgba(20,24,34,.07)!important;}
.tb-btn.invite{color:var(--acc-mint-lit)!important;border-color:rgba(14,138,102,.42)!important;}
.tb-btn svg{width:20px;height:20px;stroke-width:1.5;}

/* 한 톤 바탕: 좌측 목차·탭바·입력란 모두 같은 검정, 경계는 1px 실선만 */
html[data-theme="dark"] .sidebar{background:transparent!important;border-right:1px solid rgba(255,255,255,.05)!important;backdrop-filter:none!important;}
html[data-theme="dark"] .tabbar{background:rgba(10,11,14,.94)!important;border-top:1px solid rgba(255,255,255,.05)!important;backdrop-filter:blur(14px)!important;}
html[data-theme="dark"] .composer{background:transparent!important;}
html[data-theme="dark"] .drawer{background:#0A0B0E!important;}
html[data-theme="dark"] .topbar::after{display:none;}

/* 진한 포인트: 활성 탭·아이콘·버튼 */
.tab.on{color:#F0F2F7;}
.tab.on svg{color:var(--s-lit,var(--acc-mint-lit));stroke-width:1.8;}
.tab.on::before{background:var(--s-lit,var(--acc-mint-lit));opacity:.95;height:2.5px;}
.nav-i.on svg{color:var(--s-lit,var(--acc-mint-lit))!important;}
.drawer .nav-i.on{background:rgba(255,255,255,.05)!important;}
html[data-theme="dark"] .btn.primary{
  background:linear-gradient(160deg,var(--acc-violet) 0%,#43248F 100%);
  color:#F6F4FF;box-shadow:0 10px 22px -16px rgba(91,52,201,.9);
}
html[data-theme="dark"] .inv-box .inv-copy{
  background:rgba(14,138,102,.24);border-color:rgba(47,184,148,.4);color:#D8FFF0;
}
/* 입력란: 검은 바탕 위에서도 네이버 그린 그대로 (2026-11-30 지시) */
html[data-theme="dark"] .pill3d{
  background:linear-gradient(180deg,#05D961 0%,#03C75A 54%,#019A44 100%);
  border-color:rgba(255,255,255,.22);
  box-shadow:0 18px 34px -20px rgba(0,0,0,.95),0 10px 26px -14px rgba(3,199,90,.4),
    inset 0 1px 0 rgba(255,255,255,.44),inset 0 -4px 11px rgba(0,74,32,.36);
}
html[data-theme="dark"] .pill3d:focus-within{
  box-shadow:0 7px 18px -14px rgba(3,199,90,.8),0 0 0 1px rgba(255,255,255,.3),
    inset 0 4px 12px rgba(0,66,28,.46),inset 0 -1px 0 rgba(255,255,255,.16);
}
html[data-theme="dark"] .pill-sphere{
  background:radial-gradient(circle at 30% 20%,#B4F7D4 0%,#1DB76A 26%,#05813F 64%,#00502A 100%);
}
html[data-theme="dark"] .pill3d.hasText .pill-ico.act{
  background:linear-gradient(170deg,#FFFFFF 0%,#F2FFF7 55%,#DAF8E5 100%);color:#02A14A;
}
/* 설정의 민트·라벤더를 더 진하게 */
html[data-theme="dark"][data-accent="lavender"]{--accent:#7A4FF0;--accent-2:#8B6DF0;--accent-3:#5B34C9;--accent-soft:rgba(122,79,240,.16);--accent-tint:rgba(122,79,240,.26);}
html[data-theme="dark"][data-accent="emerald"]{--accent:#2FB894;--accent-2:#3FD3A6;--accent-3:#0E8A66;--accent-soft:rgba(47,184,148,.16);--accent-tint:rgba(47,184,148,.26);}
html[data-theme="dark"][data-accent="cobalt"]{--accent:#3F74D8;--accent-2:#5E90F0;--accent-3:#24304A;--accent-soft:rgba(63,116,216,.16);}
html[data-theme="dark"][data-accent="rose"]{--accent:#C4567A;--accent-2:#D9769A;--accent-3:#8E3050;--accent-soft:rgba(196,86,122,.16);}
html[data-theme="dark"][data-accent="amber"]{--accent:#B8802A;--accent-2:#D19C4A;--accent-3:#7A5318;--accent-soft:rgba(184,128,42,.16);}
html[data-theme="dark"][data-accent="charcoal"]{--accent:#6E7380;--accent-2:#8B90A0;--accent-3:#3A3F4A;--accent-soft:rgba(110,115,128,.16);}
/* 카드에 누를 수 있다는 표시 */
.wcard{cursor:pointer;transition:transform .16s,box-shadow .2s,border-color .2s;}
.wcard:active{transform:scale(.985);}
.wcard:hover{border-color:rgba(47,184,148,.22);}
.tab.on::after{background:color-mix(in srgb,var(--s-lit,#8B90A0) 14%,transparent)!important;}
html:not([data-theme="dark"]) .tab.on::after{background:rgba(20,24,34,.06)!important;}
/* 한 톤 바탕: 몸통 배경도 검정 하나로 */
html[data-theme="dark"] body{background:#0A0B0E!important;background-image:none!important;}
html[data-theme="dark"] .app{background:transparent!important;}
/* 배경 메시(색 번짐) 제거 — 한 톤 검정 */
html[data-theme="dark"] body::before{background:#0A0B0E!important;opacity:1!important;}
html[data-theme="dark"] body{background:#0A0B0E!important;}

/* SEO 소개 블록은 조용하게 (검색엔진용 텍스트는 그대로) */
.seo-intro{
  margin:4px auto 6px!important;padding:8px 12px!important;
  background:transparent!important;border:1px dashed rgba(255,255,255,.06)!important;
  border-radius:12px!important;max-width:640px!important;
}
.seo-intro h1{font-size:11.5px!important;font-weight:600!important;color:#8D94A6!important;margin:0 0 3px!important;}
.seo-intro h1 span{font-size:10.5px!important;}
.seo-intro p{font-size:10.5px!important;line-height:1.55!important;color:#6E7587!important;}
html:not([data-theme="dark"]) .seo-intro{border-color:rgba(20,24,34,.08)!important;}
html:not([data-theme="dark"]) .seo-intro h1{color:#5B6072!important;}

/* 마이크(이동식 캐릭터)와 말풍선이 겹치지 않게 폭을 조금 줄인다 */
.bubble{max-width:min(74%,520px);}
.msg.ai .mbody{max-width:min(74%,520px);}
.msg.ai .mbody .bubble{max-width:100%;}
@media (max-width:400px){
  .bubble{max-width:min(72%,520px);}
  .msg.ai .mbody{max-width:min(72%,520px);}
  .fabwrap{width:72px;right:8px;}
  .fab{width:72px;height:72px;}
  .fab-lbl{font-size:.58rem;}
}
@media (max-width:400px){
  .bubble{max-width:min(68%,520px);}
  .msg.ai .mbody{max-width:min(68%,520px);}
  .fabwrap{bottom:calc(132px + env(safe-area-inset-bottom));}
}
/* 연락처 화면: 이름표·태그 색을 중성으로 */
html[data-theme="dark"] .avatar{filter:saturate(.45) brightness(.9);}
html[data-theme="dark"] .ctag,
html[data-theme="dark"] .tag,
html[data-theme="dark"] .tchip{background:rgba(255,255,255,.05)!important;color:#A9B0C0!important;border-color:rgba(255,255,255,.07)!important;}
html[data-theme="dark"] .reltag,html[data-theme="dark"] .sharebadge{background:rgba(255,255,255,.06)!important;color:#B7BDCB!important;}
/* 초대 링크로 들어온 안내 (대화 다시 그려도 남는다) */
.invitein{
  flex:0 0 auto;margin:2px 14px 6px;padding:7px 12px;border-radius:999px;
  background:rgba(14,138,102,.14);border:1px solid rgba(47,184,148,.28);
  color:#BFE9D8;font-size:11.5px;text-align:center;letter-spacing:-.01em;
}
html:not([data-theme="dark"]) .invitein{background:rgba(42,134,89,.08);border-color:rgba(42,134,89,.2);color:#1F6B4B;}

/* ==========================================================================
   10. 상단 띠줄 완전 제거 — 아이콘만 둥둥 (2026-11-30 재지시 반영)
   · 헤더는 흐름에서 빠져 채팅이 화면 맨 위(top:0)부터 위아래로 꽉 찬다
   · 배경색·경계선·그림자·블러로 가로 띠를 만들지 않는다
   · 남는 것은 왼쪽 [캐릭터+초록 로고][≡], 오른쪽 [→] 뿐 — 각자 은은한 원형/필만
   ========================================================================== */
.topbar{
  position:absolute!important;top:0!important;left:0!important;right:0!important;
  height:52px!important;padding:0 10px!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  background:transparent!important;background-image:none!important;
  border:0!important;border-bottom:0!important;box-shadow:none!important;outline:0!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  pointer-events:none!important;
}
.topbar::before,.topbar::after{
  display:none!important;content:none!important;background:none!important;
  border:0!important;box-shadow:none!important;
}
.topbar .tb-left,.topbar .tb-acts{
  pointer-events:none!important;background:transparent!important;
  border:0!important;box-shadow:none!important;backdrop-filter:none!important;
}
.topbar a,.topbar button{pointer-events:auto!important;}

/* 왼쪽: 캐릭터+초록 로고는 아주 옅은 필 하나에만 */
.tb-brand{
  background:rgba(10,11,14,.46)!important;border:0!important;box-shadow:none!important;
  padding:3px 10px 3px 4px!important;border-radius:999px!important;
  backdrop-filter:blur(10px) saturate(1.1)!important;-webkit-backdrop-filter:blur(10px) saturate(1.1)!important;
}
html:not([data-theme="dark"]) .tb-brand{background:rgba(250,251,253,.62)!important;}
.tb-brand b{text-shadow:0 1px 8px rgba(0,0,0,.5);}
html:not([data-theme="dark"]) .tb-brand b{text-shadow:0 1px 6px rgba(255,255,255,.75);}
.tb-brand .char{filter:drop-shadow(0 1px 4px rgba(0,0,0,.45));}

/* ≡ · → 아이콘만 은은한 반투명 원형 (가로로 잇는 띠 금지) */
.tb-btn{
  background:rgba(10,11,14,.5)!important;border:1px solid rgba(255,255,255,.10)!important;
  box-shadow:0 2px 10px -8px rgba(0,0,0,.9)!important;
  backdrop-filter:blur(12px) saturate(1.1)!important;-webkit-backdrop-filter:blur(12px) saturate(1.1)!important;
}
.tb-btn:hover{background:rgba(10,11,14,.72)!important;}
.tb-btn.invite{color:var(--acc-mint-lit,#2FB894)!important;border-color:rgba(47,184,148,.42)!important;}
html:not([data-theme="dark"]) .tb-btn{background:rgba(250,251,253,.68)!important;border-color:rgba(20,24,34,.09)!important;}
html:not([data-theme="dark"]) .tb-btn:hover{background:rgba(255,255,255,.9)!important;}

/* 채팅: 대화 영역이 맨 위부터 차고, 아이콘 줄 높이만큼만 첫 여백 */
#s-chat .chatlog{padding-top:60px!important;}
#s-chat .seo-intro{margin-top:0!important;}
/* 다른 화면: 제목이 떠 있는 아이콘 아래에서 시작 */
.screen > .scroll{padding-top:66px!important;}

@media (min-width:900px){
  .topbar{height:58px!important;padding:0 18px!important;}
  #s-chat .chatlog{padding-top:66px!important;}
  .screen > .scroll{padding-top:72px!important;}
}

/* ==========================================================================
   11. 도구 연결 · 황금 마이크 · 상단 로고 자리 정리 (2026-11-30)
   · 지시: "좌측 상단 아우소로고는 삭제" / "햄버거 자리로"
           "마이크색 촌스러워 황금색에 가깝게"
   ========================================================================== */

/* --- 상단 왼쪽 로고 알약 제거: ≡ 가 맨 왼쪽 끝에 온다 ---
   (앱 코드가 #asstName 을 참조하므로 DOM은 그대로 두고 자리만 숨긴다) */
.topbar .tb-brand{display:none!important;}
.topbar .tb-left{gap:0!important;margin:0!important;padding:0!important;}

/* --- 황금색 마이크 (이동식 3D FAB) ---
   샴페인/메탈릭 골드 링 + 은은한 골드 글로우. 핑크(말하는 중)·은색(듣는 중)은 그대로. */
.fab-ring{
  opacity:1;
  background:conic-gradient(from 150deg,
    #FFF9EC 0%, #F7D57E 16%, #E8BE63 32%, #C9942C 48%,
    #9E6E14 64%, #E8C271 80%, #FFF9EC 100%)!important;
}
.fab-halo{
  background:radial-gradient(circle,rgba(247,213,126,.55) 0%,rgba(217,162,52,.22) 44%,transparent 72%)!important;
}
.fab-disc::before{
  background:radial-gradient(circle at 50% 116%,rgba(247,213,126,.34),transparent 60%),
             radial-gradient(circle at 38% 18%,rgba(255,249,236,.5),transparent 48%)!important;
}
html:not([data-theme="dark"]) .fab-disc{
  background:radial-gradient(circle at 34% 24%,rgba(255,252,244,.72),rgba(255,244,214,.42) 54%,rgba(232,190,99,.30) 100%)!important;
  border-color:rgba(217,162,52,.62)!important;
  box-shadow:
    0 18px 40px -18px rgba(140,98,20,.34),
    0 3px 12px rgba(140,98,20,.14),
    0 0 20px -4px rgba(247,213,126,.5),
    inset 0 1px 0 rgba(255,255,255,.85)!important;
}
html[data-theme="dark"] .fab-disc{
  background:
    radial-gradient(circle at 34% 24%,rgba(255,246,223,.36),rgba(247,213,126,.17) 46%,rgba(158,110,20,.22) 78%,rgba(112,78,16,.30) 100%)!important;
  border-color:rgba(247,213,126,.58)!important;
  box-shadow:
    0 22px 48px -20px rgba(0,0,0,.9),
    0 3px 12px rgba(0,0,0,.5),
    0 0 24px -4px rgba(247,213,126,.34),
    inset 0 1px 0 rgba(255,249,236,.55),
    inset 0 -6px 14px rgba(112,78,16,.34)!important;
}
.fab-img{filter:drop-shadow(0 5px 9px rgba(170,120,26,.34))!important;}

/* --- 입력창 안 마이크 아이콘: 밝은 황금빛 + 은은한 골드 원형 포인트 ---
   · 실제 마크업은 #btnMic 하나에 마이크/전송 아이콘이 같이 들어 있다
     (글자가 없을 때 = 마이크, .hasText 일 때 = 흰 원 전송 버튼) */
#pill3d:not(.hasText) #btnMic:not(.rec){
  color:#6E4B0C!important;
  background:
    radial-gradient(circle at 32% 22%, #FFFDF3 0%, #FBEFC8 24%, #F0D492 46%, #DDB55B 70%, #A87C22 100%)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -2px 5px rgba(96,66,10,.35),
    0 2px 8px -2px rgba(70,48,6,.55)!important;
}
#pill3d:not(.hasText) #btnMic:not(.rec):hover{
  color:#5C3D08!important;
  background:
    radial-gradient(circle at 32% 22%, #FFFFFF 0%, #FFF6DA 22%, #F7E0A6 44%, #E5C16C 68%, #B4862A 100%)!important;
}
#pill3d:not(.hasText) #btnMic .ico-mic{filter:drop-shadow(0 1px 0 rgba(255,255,255,.75));}
#btnMic.rec{color:#FFFFFF!important;background:linear-gradient(160deg,#FF5FA2,#D6216B)!important;box-shadow:none;}
/* 글자가 있으면 기존 흰 원 + 초록 전송 화살표를 그대로 */
.pill3d.hasText .pill-ico.act{background:linear-gradient(170deg,#FFFFFF 0%,#F2FFF7 55%,#DAF8E5 100%)!important;color:#02A14A!important;}

/* --- AI가 도구를 실제로 썼을 때의 배지 · 출처 --- */
.toolrow{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0 0;max-width:100%;}
.tbadge{
  display:inline-flex;align-items:center;gap:4px;max-width:100%;
  padding:3px 9px;border-radius:999px;
  font-size:.67rem;font-weight:650;letter-spacing:-.01em;line-height:1.5;
  color:#B9EBD8;background:rgba(47,184,148,.10);
  border:1px solid rgba(47,184,148,.26);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
html:not([data-theme="dark"]) .tbadge{color:#0C6E52;background:rgba(3,199,90,.09);border-color:rgba(3,150,80,.22);}
.srclist{display:flex;flex-wrap:wrap;gap:6px 10px;margin-top:7px;max-width:100%;font-size:.67rem;line-height:1.45;}
.srclist a{
  color:var(--acc-mint-lit,#2FB894);text-decoration:none;
  border-bottom:1px dotted rgba(47,184,148,.45);
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
html:not([data-theme="dark"]) .srclist a{color:#0C6E52;border-bottom-color:rgba(3,150,80,.35);}

/* ==========================================================================
   12. 하단 5탭 — 글자 없이 아이콘만 · 48px 슬림 (2026-11-30)
   · 지시: "하단 아이콘 디자인도 업그레드 글없이 알게해도"
   · 글자는 숨기고 aria-label/title 로만 남긴다. 아이콘 24px.
   · 활성: 옅은 유리 필 + 민트 포인트 / 비활성: 차분한 회색
   ========================================================================== */
#tabbar{
  height:48px!important;
  padding:0 8px calc(env(safe-area-inset-bottom))!important;
  align-items:stretch;
}
#tabbar .tab{
  height:48px!important;gap:0!important;padding:0!important;
  border-radius:16px!important;
  color:#7C8496;
}
html:not([data-theme="dark"]) #tabbar .tab{color:#7A8194;}
#tabbar .tab span[data-label]{display:none!important;}
#tabbar .tab svg{
  width:24px!important;height:24px!important;
  stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;
  transition:transform .2s cubic-bezier(.2,.8,.2,1),stroke-width .2s,filter .2s;
}
#tabbar .tab .badge{top:8px;left:calc(50% + 11px);}
#tabbar .tab.on::before{display:none!important;}
#tabbar .tab.on{
  color:#B7F3DE;
  background:transparent!important;
}
html:not([data-theme="dark"]) #tabbar .tab.on{color:#0C6E52;}
#tabbar .tab.on::after{
  content:"";position:absolute;z-index:0;
  top:50%!important;left:50%!important;
  transform:translate(-50%,-50%)!important;
  width:44px!important;height:36px!important;border-radius:13px!important;
  background:linear-gradient(160deg,rgba(61,206,160,.22) 0%,rgba(47,184,148,.10) 55%,rgba(47,184,148,.04) 100%)!important;
  border:1px solid rgba(90,220,180,.20)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 3px 14px -8px rgba(47,184,148,.65);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
html:not([data-theme="dark"]) #tabbar .tab.on::after{
  background:linear-gradient(160deg,rgba(3,199,90,.14) 0%,rgba(3,199,90,.07) 60%,rgba(3,199,90,.03) 100%)!important;
  border-color:rgba(3,150,80,.18)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 3px 12px -8px rgba(3,150,80,.45);
}
#tabbar .tab svg{position:relative;z-index:1;}
#tabbar .tab.on svg{
  transform:none!important;stroke-width:1.95;
  filter:drop-shadow(0 1px 6px rgba(47,184,148,.38));
}
#tabbar .tab:active svg{transform:scale(.92);}

/* ==========================================================================
   13. 하단 여백 컴팩트 (2026-11-30)
   · 지시: "하단 횡간 조금 박스 줄여도"
   · 탭바 46px · 입력 알약 48~52px (여러 줄이면 그대로 늘어난다)
   ========================================================================== */
#tabbar{height:46px!important;}
#tabbar .tab{height:46px!important;}
#tabbar .tab.on::after{width:42px!important;height:34px!important;border-radius:12px!important;}

.composer{padding:4px 10px 4px!important;}
.pill3d{padding:3px 4px 3px 3px!important;border-radius:23px!important;}
.pill-sphere{width:40px!important;height:40px!important;font-size:.52rem!important;}
.pill-sphere b{font-size:.52rem;}
.pill-field textarea{
  padding:9px 4px 9px!important;
  min-height:40px!important;
  line-height:1.42!important;
  max-height:150px;
}
.pill-ico{width:38px!important;height:38px!important;margin-bottom:3px!important;}
.pill-ico svg{width:19px;height:19px;}
.pill-ico.act{width:40px!important;height:40px!important;}

/* 13-1. 라이트 테마 탭 대비 살짝 보정 (아이콘만 남겨 얇아 보이던 부분) */
html:not([data-theme="dark"]) #tabbar .tab{color:#6A7286!important;}
html:not([data-theme="dark"]) #tabbar .tab svg{stroke-width:1.8!important;}
html:not([data-theme="dark"]) #tabbar .tab.on::after{
  background:linear-gradient(160deg,rgba(3,199,90,.18) 0%,rgba(3,199,90,.09) 60%,rgba(3,199,90,.04) 100%)!important;
}

/* ==========================================================================
   문서 파일 카드 (2026-11-30 · 채팅방에서 만든 PDF·PPT·TXT·MD)
   ========================================================================== */
.fcard{
  display:grid;grid-template-columns:auto 1fr;gap:10px 12px;align-items:center;
  margin-top:10px;padding:12px;border-radius:15px;max-width:100%;
  background:rgba(12,122,91,.06);border:1px solid rgba(12,122,91,.20);
}
html[data-theme="dark"] .fcard{background:rgba(111,214,174,.07);border-color:rgba(111,214,174,.24);}
.fcard .fext{
  width:44px;height:44px;border-radius:12px;display:grid;place-items:center;
  font-size:.63rem;font-weight:800;letter-spacing:.03em;color:#fff;
  background:linear-gradient(160deg,#13916A,#0B6E52);
  box-shadow:0 6px 14px -8px rgba(11,110,82,.9);
}
.fcard .fext-pptx{background:linear-gradient(160deg,#C4652C,#9C4519);box-shadow:0 6px 14px -8px rgba(156,69,25,.9);}
.fcard .fext-md,.fcard .fext-txt{background:linear-gradient(160deg,#4A5568,#2C3440);box-shadow:none;}
.fcard .fmeta{min-width:0;display:block;}
.fcard .fmeta b{display:block;font-size:.8rem;line-height:1.4;color:var(--text);font-weight:650;overflow-wrap:anywhere;}
.fcard .fmeta small{display:block;font-size:.66rem;line-height:1.45;color:var(--faint);margin-top:3px;letter-spacing:.01em;}
.fcard .fmeta .fkeep{color:var(--muted);}
.fcard .fbtn{
  grid-column:1/-1;display:block;text-align:center;text-decoration:none;
  padding:9px 12px;border-radius:11px;font-size:.78rem;font-weight:700;color:#fff;
  background:linear-gradient(160deg,#12936C,#0B7053);
  box-shadow:0 10px 20px -14px rgba(11,112,83,.95);
}
.fcard .fbtn:active{transform:translateY(1px);}

/* 보관함 — 만든 문서 */
.lib .tag.made{background:rgba(12,122,91,.13);color:#0C7A5B;}
html[data-theme="dark"] .lib .tag.made{background:rgba(111,214,174,.16);color:#8EE6C2;}
.lib .th .ph.made{gap:7px;}
.lib .th .fmtsq{
  display:grid;place-items:center;min-width:46px;height:30px;padding:0 8px;border-radius:8px;
  font-size:.62rem;font-weight:800;letter-spacing:.02em;color:#fff;
  background:linear-gradient(160deg,#13916A,#0B6E52);
}
.lib .th .fmtsq.fext-pptx{background:linear-gradient(160deg,#C4652C,#9C4519);}
.lib .th .fmtsq.fext-md,.lib .th .fmtsq.fext-txt{background:linear-gradient(160deg,#4A5568,#2C3440);}
