@charset "utf-8";

/* ===== Font ===== */
@font-face {font-family:'Pretendard';src:url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');font-weight:400;font-style:normal;}
@font-face {font-family:'Pretendard';src:url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Medium.woff') format('woff');font-weight:500;font-style:normal;}
@font-face {font-family:'Pretendard';src:url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-SemiBold.woff') format('woff');font-weight:600;font-style:normal;}
@font-face {font-family:'Pretendard';src:url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Bold.woff') format('woff');font-weight:700;font-style:normal;}
:root{
  --primary:#1E3A8A;
  --brandGreen:#1b7437; --brandBlue:#15366b;
  --bg:#ffffff; --bg-soft:#f8fafc;
  --text:#111827; --text-2:#374151; --muted:#6b7280; --light:#9ca3af;
  --border:#e5e7eb; --shadow:0 8px 20px rgba(0,0,0,.06);
  --blue-50:#eef2ff; --blue-100:#dbeafe; --blue-200:#bfdbfe;
  --chip:#f3f4f6; --chip-blue:#e6f0ff; --chip-blue-text:#15366b;
  --green:#10b981; --red:#ef4444;
  --radius:16px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background:#fff; color:var(--text);
  font-family:Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

/* utilities */
.hidden{display:none!important}
.text-right{text-align:right}
.t-right{text-align:right}
.m-b-sm{margin-bottom:20px}
.m-b-lg{margin-bottom:32px}
.m-t-md{margin-top:20px}
.overflow-x{
  overflow-x:auto;
  border-radius:12px;
  background:#f8fafc;
  padding:4px;
}
.overflow-x::-webkit-scrollbar{
  height:8px;
}
.overflow-x::-webkit-scrollbar-track{
  background:#f1f5f9;
  border-radius:4px;
}
.overflow-x::-webkit-scrollbar-thumb{
  background:#cbd5e1;
  border-radius:4px;
}
.overflow-x::-webkit-scrollbar-thumb:hover{
  background:#94a3b8;
}

/* ===== Top index bar ===== */
.index-bar{background:linear-gradient(to right,#1e293b,#0f172a); color:#fff; box-shadow:0 1px 2px rgba(0,0,0,.06); height:64px; display:flex; align-items:center}
.topbar-row{
  max-width:72rem;
  margin:0 auto;
  display:flex; align-items:center; justify-content:center;
  gap:3rem; padding:0 1rem; width:100%;
}
.market{display:flex; align-items:center; gap:.75rem}
.market__label{color:#cbd5e1; font-weight:600; font-size:.875rem}
.market__value{font-weight:700; font-size:1.125rem}
.market__change{font-size:.875rem}
.market__change--up{color:#f87171}
.market__change--down{color:#60a5fa}

/* ===== Sidebar ===== */
.overlay{
  position:fixed; 
  inset:0; 
  background:rgba(75,85,99,.5); 
  z-index:20;
  transition:opacity 0.25s ease-in-out;
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}
.sidebar{
  position:fixed; 
  top:70px; 
  bottom:0; 
  background:linear-gradient(180deg, #ffffff 0%, #f9fafb 100%); 
  box-shadow:2px 0 24px rgba(0,0,0,.08); 
  z-index:30;
  transform:translateZ(0);
  backface-visibility:hidden;
  border-right:1px solid rgba(229,231,235,0.8);
}
.sidebar--wide{
  left:0; 
  width:16rem; 
  overflow-y:auto; 
  overflow-x:hidden;
}
.sidebar--wide::-webkit-scrollbar{
  width:6px;
}
.sidebar--wide::-webkit-scrollbar-track{
  background:transparent;
}
.sidebar--wide::-webkit-scrollbar-thumb{
  background:rgba(156,163,175,0.3);
  border-radius:3px;
  transition:background 0.2s ease;
}
.sidebar--wide::-webkit-scrollbar-thumb:hover{
  background:rgba(156,163,175,0.5);
}
.sidebar--mini{left:0; width:4rem; display:flex; align-items:flex-start; justify-content:center}
.sidebar-transition{
  transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change:transform, opacity, width;
}
.sidebar__nav{padding:0}
.sidebar__section{margin:0 0 1.5rem 0; padding:0 1rem}
.sidebar__section:first-child{margin-top:1.25rem}
.sidebar__section--header{
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  padding-bottom:1rem; 
  border-bottom:2px solid rgba(229,231,235,0.5);
  margin-bottom:1rem;
}
.sidebar__title{
  font-size:.95rem; 
  color:#1f2937; 
  font-weight:700;
  letter-spacing:0.02em;
}
.sidebar__heading{
  margin:.5rem 0 .75rem .75rem; 
  font-size:.7rem; 
  text-transform:uppercase; 
  letter-spacing:.1em; 
  color:#9ca3af;
  font-weight:600;
}
.menu{margin-top:.5rem; display:grid; gap:.4rem}
.menu__item{
  display:flex; 
  align-items:center; 
  gap:.875rem; 
  padding:.625rem .875rem; 
  border-radius:12px; 
  text-decoration:none; 
  color:#374151;
  font-weight:500;
  font-size:.9rem;
  transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position:relative;
}
.menu__item:hover{
  background:linear-gradient(135deg, rgba(27,116,55,0.08), rgba(21,54,107,0.08));
  color:#1e293b;
  transform:translateX(4px);
  box-shadow:0 2px 8px rgba(30,58,138,0.1);
}
.menu__item:active{
  transform:translateX(2px);
}
.menu__item--active,
.menu__item[aria-current="page"]{
  background:linear-gradient(135deg, rgba(27,116,55,0.15), rgba(21,54,107,0.15));
  color:#1E3A8A;
  font-weight:600;
  box-shadow:0 2px 8px rgba(30,58,138,0.15);
}
.menu__item--active::before,
.menu__item[aria-current="page"]::before{
  content:'';
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:4px;
  height:60%;
  background:linear-gradient(135deg, #1b7437, #15366b);
  border-radius:0 4px 4px 0;
}
.menu__icon{
  color:#9ca3af; 
  width:1.25rem; 
  text-align:center;
  font-size:1rem;
  transition:all 0.2s ease;
}
.menu__item:hover .menu__icon,
.menu__item--active .menu__icon,
.menu__item[aria-current="page"] .menu__icon{
  color:#1E3A8A;
  transform:scale(1.1);
}

.sidebar-mini{
  padding:1.25rem .5rem; 
  display:flex; 
  flex-direction:column; 
  align-items:center; 
  gap:.5rem; 
  width:100%;
}
.sidebar-mini__top{
  width:100%; 
  display:flex; 
  justify-content:center; 
  padding-bottom:.75rem; 
  border-bottom:2px solid rgba(229,231,235,0.5); 
  margin-bottom:.75rem;
}
.mini-link{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:.625rem; 
  color:#6b7280; 
  text-decoration:none; 
  border-radius:12px;
  width:100%;
  transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position:relative;
}
.mini-link i{
  font-size:1.1rem;
  transition:all 0.2s ease;
}
.mini-link:hover{
  color:#1E3A8A; 
  background:linear-gradient(135deg, rgba(27,116,55,0.1), rgba(21,54,107,0.1));
  transform:scale(1.1);
  box-shadow:0 2px 8px rgba(30,58,138,0.15);
}
.mini-link:hover i{
  transform:scale(1.15);
}
.mini-link--active{
  background:linear-gradient(135deg, rgba(27,116,55,0.15), rgba(21,54,107,0.15));
  color:#1E3A8A;
}

.icon-btn{
  border:none; 
  background:transparent; 
  color:#6b7280; 
  padding:.625rem; 
  border-radius:12px; 
  cursor:pointer;
  transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display:flex;
  align-items:center;
  justify-content:center;
}
.icon-btn:hover{
  background:linear-gradient(135deg, rgba(27,116,55,0.1), rgba(21,54,107,0.1));
  color:#1E3A8A;
  transform:scale(1.1);
  box-shadow:0 2px 8px rgba(30,58,138,0.1);
}
.icon-btn i{
  transition:transform 0.2s ease;
}
.icon-btn:hover i{
  transform:rotate(90deg);
}
.tooltip{position:relative}
.tooltip .tooltip-text{
  position:absolute; 
  left:100%; 
  margin-left:12px; 
  top:50%; 
  transform:translateY(-50%);
  visibility:hidden; 
  opacity:0; 
  transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
  white-space:nowrap;
  background:linear-gradient(135deg, #1f2937, #111827);
  color:#fff; 
  border-radius:8px; 
  padding:8px 12px; 
  font-size:.8rem; 
  font-weight:500;
  z-index:100;
  box-shadow:0 4px 12px rgba(0,0,0,0.2);
  pointer-events:none;
}
.tooltip .tooltip-text::before{
  content:'';
  position:absolute;
  right:100%;
  top:50%;
  transform:translateY(-50%);
  border:6px solid transparent;
  border-right-color:#1f2937;
}
.tooltip:hover .tooltip-text{
  visibility:visible; 
  opacity:1;
  transform:translateY(-50%) translateX(4px);
}

/* ===== Layout shell ===== */
.page{
  padding-left:0;
  padding-top:70px;
  transform:translateZ(0);
  backface-visibility:hidden;
}
.anim-shell{height:calc(100vh - 70px); display:flex}
.detail-pane{width:calc(100% - 332px); overflow:auto; background:var(--bg-soft)}
.main-pane{width:650px; border-left:1px solid var(--border)}
.section-pad{padding:32px 28px}

/* dragbar - 드래그로 리사이즈 */
.dragbar{
  width:12px;
  cursor:col-resize;
  background:transparent;
  position:relative;
  align-self:stretch;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background 0.2s;
}
.dragbar::before{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  bottom:0;
  width:3px;
  transform:translateX(-50%);
  background:var(--border);
  opacity:0.3;
  transition:all 0.2s;
  border-radius:2px;
}
.dragbar:hover::before{
  opacity:0.8;
  width:4px;
  background:var(--brandGreen);
}
body.resizing .dragbar::before{
  opacity:1;
  background:var(--brandBlue);
}
body.resizing{
  cursor:col-resize;
  user-select:none;
}

/* ===== Cards / typographies ===== */
.card{
  background:#fff; 
  border-radius:16px;
  border:1px solid #e5e7eb;
}
.card--shadow{
  box-shadow:0 4px 16px rgba(0,0,0,0.04);
  transition:box-shadow 0.3s ease;
}
.card--shadow:hover{
  box-shadow:0 8px 24px rgba(0,0,0,0.08);
}
.card--pad-lg{padding:28px 32px}
.card--pad-md{padding:24px 28px}
.card__bar{
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  margin-bottom:20px;
  padding-bottom:16px;
  border-bottom:2px solid #f1f5f9;
}
.heading-lg{margin:0; font-size:24px; font-weight:700; color:#1f2937}
.heading-md{
  margin:0 0 24px 0; 
  font-size:18px; 
  font-weight:700; 
  color:#1f2937;
  display:flex;
  align-items:center;
  gap:8px;
  padding-bottom:16px;
  border-bottom:1px solid #f1f5f9;
}
.heading-md::before{
  content:'';
  display:inline-block;
  width:4px;
  height:20px;
  background:linear-gradient(to bottom, var(--brandGreen), var(--brandBlue));
  border-radius:2px;
}
.meta-row{display:flex; align-items:center; gap:12px; margin-top:6px}
.meta{font-size:.9rem; color:#111827}
.meta--muted{color:#6b7280; font-weight:600}
.meta--light{color:#9ca3af; font-size:.85rem}
.chips-row{display:flex; flex-wrap:wrap; gap:8px; margin-top:8px}
.chip{display:inline-flex; align-items:center; padding:.25rem .5rem; font-size:.78rem; border-radius:999px; background:#f3f4f6; color:#374151; font-weight:500}
.chip--label{background:#e5e7eb; color:#374151}
.chip--blue{background:var(--chip-blue); color:var(--chip-blue-text)}
.chip--soft{background:#fffdf0; border:1px solid #e8d879}
.price-lg{font-size:22px; font-weight:600}
.delta{font-weight:600}
.delta--up{color:#ef4444}
.delta--down{color:#3b82f6}
.note-xs{
  margin-top:16px; 
  padding:10px 14px;
  font-size:11px; 
  color:#64748b;
  background:#f8fafc;
  border-left:3px solid #cbd5e1;
  border-radius:4px;
  line-height:1.6;
}

/* grid */
.grid{display:grid}
.grid--12{grid-template-columns:repeat(12,1fr)}
.gap-md{gap:16px}
.col{min-width:0}
.col--12{grid-column:span 12}
.col--6-md{grid-column:span 12}
@media (min-width: 768px){
  .col--6-md{grid-column:span 6}
}

/* chart box */
.chart-box{
  width:100%; 
  height:280px; 
  border:1px solid #e2e8f0; 
  border-radius:12px;
  background:#fff;
  box-shadow:0 1px 3px rgba(0, 0, 0, 0.05);
  transition:all 0.3s ease;
  overflow:hidden;
}
.chart-box:hover{
  box-shadow:0 4px 12px rgba(0, 0, 0, 0.08);
  border-color:#cbd5e1;
}

/* table - 재무제표 */
.table{
  width:100%; 
  min-width:800px; 
  border-collapse:separate;
  border-spacing:0;
  font-size:.95rem;
}
.table thead th{
  text-align:left; 
  font-weight:700; 
  color:#1f2937;
  background:linear-gradient(to bottom, #f8fafc, #f1f5f9);
  border-bottom:2px solid #e2e8f0;
  padding:18px 24px;
  font-size:.9rem;
  text-transform:uppercase;
  letter-spacing:0.03em;
  position:sticky;
  top:0;
  z-index:10;
}
.table thead th:first-child{
  border-top-left-radius:12px;
}
.table thead th:last-child{
  border-top-right-radius:12px;
}
.table tbody td{
  color:#374151; 
  border-bottom:1px solid #f0f2f5;
  padding:16px 24px;
  transition:all 0.2s ease;
  background:#fff;
  line-height:1.6;
}
.table tbody td:first-child{
  font-weight:600;
  color:#1f2937;
}
.table tbody tr:hover td{
  background:#f8fafc;
  transform:scale(1.005);
}
.table tbody tr:last-child td{
  border-bottom:none;
}
.table tbody tr:last-child td:first-child{
  border-bottom-left-radius:12px;
}
.table tbody tr:last-child td:last-child{
  border-bottom-right-radius:12px;
}
/* 금액 컬럼 스타일 */
.table .t-right{
  text-align:right;
  font-family:'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight:600;
  color:#111827;
  letter-spacing:-0.02em;
}
/* 특정 행 강조 (손익 관련) */
.table tbody tr:nth-child(3),
.table tbody tr:nth-child(4){
  background:#f0fdf4;
}
.table tbody tr:nth-child(3):hover,
.table tbody tr:nth-child(4):hover{
  background:#dcfce7;
}
/* 구분선 추가 */
.table tbody tr:nth-child(4) td{
  border-bottom:2px solid #e5e7eb;
  padding-bottom:16px;
}

/* info grid (기업정보 카드) */
.info-grid{
  display:grid; 
  gap:0;
  background:#fff;
  border-radius:12px;
}
.info-row{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:24px;
  padding:18px 24px;
  border-bottom:1px solid #f0f2f5;
  transition:all 0.2s ease;
  position:relative;
}
.info-row::before{
  content:'';
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:0;
  background:linear-gradient(to bottom, var(--brandGreen), var(--brandBlue));
  transition:width 0.2s ease;
  border-radius:4px 0 0 4px;
}
.info-row:hover{
  background:#f8fafc;
  padding-left:28px;
}
.info-row:hover::before{
  width:4px;
}
.info-row:first-child{
  border-top-left-radius:12px;
  border-top-right-radius:12px;
}
.info-row:last-child{
  border-bottom:none;
  border-bottom-left-radius:12px;
  border-bottom-right-radius:12px;
}
.info-label{
  font-size:.875rem; 
  font-weight:600; 
  color:#374151;
  display:flex;
  align-items:center;
  gap:10px;
}
.info-label i{
  width:20px;
  height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
  color:var(--primary);
  border-radius:6px;
  font-size:.75rem;
  flex-shrink:0;
}
.info-value{
  font-size:.95rem; 
  color:#111827;
  line-height:1.6;
  word-break:break-word;
  display:flex;
  align-items:center;
  font-weight:500;
}
.info-link{
  color:var(--primary); 
  text-decoration:none;
  font-weight:600;
  transition:all 0.2s ease;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  background:rgba(30,58,138,0.05);
  border-radius:6px;
  margin:-4px 0;
}
.info-link::after{
  content:'↗';
  font-size:.85rem;
  opacity:0.6;
  transition:transform 0.2s ease;
}
.info-link:hover{
  color:#1e40af;
  background:rgba(30,58,138,0.1);
}
.info-link:hover::after{
  transform:translate(2px, -2px);
}

/* 반응형 */
@media (max-width: 768px){
  .info-row{
    grid-template-columns:1fr;
    gap:10px;
    padding:14px 16px;
  }
  .info-row:hover{
    padding-left:20px;
  }
  .info-value{
    padding-left:30px;
    font-size:.9rem;
  }
  .info-label{
    font-size:.85rem;
  }
}

/* price grid (주가정보 카드) */
.price-grid{
  display:grid; 
  grid-template-columns:repeat(2, 1fr); 
  gap:16px;
}
@media (min-width: 768px){
  .price-grid{grid-template-columns:repeat(4, 1fr)}
}
.price-item{
  display:flex; 
  flex-direction:column; 
  gap:10px; 
  padding:20px 18px; 
  background:#f8f9fb; 
  border-radius:12px;
  border:1px solid #e5e7eb;
  transition:all 0.2s ease;
}
.price-item:hover{
  background:#fff;
  border-color:var(--primary);
  box-shadow:0 4px 12px rgba(30,58,138,0.08);
  transform:translateY(-2px);
}
.price-label{
  font-size:.8rem; 
  font-weight:600; 
  color:#6b7280;
  text-transform:uppercase;
  letter-spacing:0.03em;
}
.price-value{
  font-size:1.1rem; 
  font-weight:700; 
  color:#111827;
  font-family:'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}
.price-value--large{
  font-size:1.75rem; 
  color:var(--primary);
  line-height:1.2;
}
.price-value--up{
  color:#ef4444;
}
.price-value--down{
  color:#3b82f6;
}

/* ===== landing ===== */
.landing{max-width:800px; margin:0 auto; min-height:calc(100vh - 64px); display:flex; flex-direction:column; align-items:center; justify-content:center; padding:0 16px}
.logo{display:block; text-decoration:none}
.logo__text{font-weight:800; font-size:60px; letter-spacing:5px; text-align:center; user-select:none; margin-bottom:24px}
.logo__g{color:var(--brandGreen)}
.logo__b{color:var(--brandBlue)}

.landing__search{width:100%}
.searchbar{position:relative; max-width:584px; width:92vw; margin:0 auto}
.searchbar__input{
  width:100%; height:52px; border:1px solid var(--border); border-radius:999px; padding:0 56px 0 20px;
  font-size:18px; outline:none;
}
.searchbar__input:focus{box-shadow:0 0 0 4px #e5e7eb}
.searchbar__btn{
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  width:40px; height:40px; border-radius:999px; border:none; cursor:pointer; color:#fff; background:var(--brandGreen);
}
.actions{display:flex; gap:8px; justify-content:center; margin-top:12px}

.btn{display:inline-flex; align-items:center; justify-content:center; border-radius:10px; border:1px solid var(--border); padding:8px 14px; font-size:.95rem; cursor:pointer; text-decoration:none; color:#111827; background:#f5f7f9}
.btn:hover{background:#eef2f4; border-color:#d1d5db}
.btn--ghost{background:#f5f7f9}
.btn--white{background:rgba(255,255,255,.2); color:#fff; border-color:transparent}
.btn--tiny{padding:4px 8px; font-size:.8rem}
.btn--primary{background:var(--primary); color:#fff; border-color:var(--primary)}
.btn--primary:hover{filter:brightness(0.95)}

.howto{max-width:584px; width:92vw; margin:12px auto 0; background:#fff8c5; border:1px solid #f3e08b; border-radius:12px; padding:14px; box-shadow:var(--shadow)}
.howto__title{margin:0; font-weight:700; font-size:.9rem; color:#5b5315}
.howto__list{margin:8px 0; padding:0; display:flex; gap:8px; list-style:none; flex-wrap:wrap}
.howto__hint{margin:0; font-size:.8rem; color:#7a6f1c}

/* chat */
.chat{height:100%; display:grid; grid-template-rows:auto 1fr auto}
.chat__header{display:flex; align-items:center; justify-content:space-between; padding:8px 12px; background:var(--primary); color:#fff}
.chat__messages{overflow-y:auto; padding:12px; background:#f3f4f6}
.chat__inputbar{display:flex; gap:8px; padding:10px; border-top:1px solid var(--border); background:#fff}
.input{flex:1; padding:8px 12px; border:1px solid #d1d5db; border-radius:10px; font-size:.95rem; outline:none}
.input:focus{box-shadow:0 0 0 3px #e5e7eb}
.chat-bubble{display:inline-block; max-width:92%; padding:8px 12px; font-size:.92rem; border-radius:12px; box-shadow:0 1px 1px rgba(0,0,0,.04)}
.chat-bubble--ai{background:#fff; color:#1f2937; border:1px solid #e5e7eb; border-bottom-left-radius:4px}
.chat-bubble--user{background:var(--primary); color:#fff; border-bottom-right-radius:4px}
.msg-row{margin-bottom:8px}
.msg-row--ai{text-align:left}
.msg-row--user{text-align:right}

/* selects */
.select{
  padding:8px 32px 8px 12px; 
  border:1.5px solid #e2e8f0; 
  border-radius:8px; 
  background:#fff url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%2364748b" d="M6 8L2 4h8z"/></svg>') no-repeat right 10px center;
  background-size:12px;
  font-size:.9rem;
  font-weight:500;
  color:#1e293b;
  cursor:pointer;
  transition:all 0.2s ease;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
}
.select:hover{
  border-color:#cbd5e1;
  background-color:#f8fafc;
}
.select:focus{
  outline:none;
  border-color:#3b82f6;
  box-shadow:0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* transitions */
.chat-fade{opacity:0; transform:translateX(16px); transition:all .9s ease}
.chat-fade.show{opacity:1; transform:translateX(0)}
.content-transition{
  transition:padding-left 0.25s ease-in-out;
  will-change:padding-left;
}

/* responsive */
@media (max-width:1024px){
  .anim-shell{flex-direction:column-reverse; height:auto}
  .detail-pane,.main-pane{width:100%!important}
  #chatWrap{height:60vh}
  .dragbar{display:none}
}

/* keep states used by JS */
#landingWrap.hidden{display:none!important}
#chatWrap.prep{visibility:hidden; display:block!important}
#chatWrap.show{visibility:visible}

/* 랜딩 전용 숨김 토글 예시 */
#lp-market-row { display: none !important; }
#ask-me { display: none !important; }


/* === 무한 롤링 티커 === */
/* 무한 롤링용: 가로 고정 + 줄바꿈 금지 */
.ticker { overflow: hidden; }
.ticker-track{
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: nowrap;      /* 줄바꿈 X */
  white-space: nowrap;    /* 텍스트 줄바꿈 X */
}

.ticker-item{
  flex: 0 0 auto;         /* 아이템이 가로로만 흘러가도록 */
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  white-space: nowrap;    /* 내부 텍스트도 줄바꿈 X */
}

/* 혹시 글자 사이 줄간격이 이상하면 */
.ticker-item span { line-height: 1; }
.ticker-item .market__label{ color:#cbd5e1; font-weight:600; font-size:.875rem }
.ticker-item .market__value{ font-weight:700; font-size:1.125rem }
.ticker-item .market__change{ font-size:.875rem }
.ticker-item .market__change--up{ color:#f87171 }
.ticker-item .market__change--down{ color:#60a5fa }

/* 호버 시 커서/일시정지 힌트 */
.ticker:hover{ cursor:pointer }

/* 사용자의 ‘애니메이션 줄임’ 설정 존중 */
@media (prefers-reduced-motion: reduce) {
  .ticker-track{ transition:none !important }
}


/* ===== Autocomplete ===== */
.ac-wrap{ position:relative; max-width:720px; width:100%; margin:0 auto; }
#ac-list{
  position:absolute; 
  left:0; 
  right:0; 
  top:calc(100% + 4px);
  background:#fff !important; 
  border:1px solid #dfe1e5; 
  border-radius:24px;
  box-shadow:0 4px 16px rgba(32,33,36,.15); 
  z-index:60; 
  max-height:400px; 
  overflow:auto; 
  display:none;
  
  /* 애니메이션 초기 상태 */
  opacity:0;
  transform:translateY(-5px);
  transition:opacity 0.2s ease, transform 0.2s ease;
}

/* 자동완성 표시 시 애니메이션 */
#ac-list[style*="display: block"]{
  animation:slideDownFade 0.2s ease-out forwards;
}

@keyframes slideDownFade {
  from {
    opacity:0;
    transform:translateY(-5px);
  }
  to {
    opacity:1;
    transform:translateY(0);
  }
}
.ac-item{
  padding:14px 20px; 
  display:flex; 
  align-items:center; 
  justify-content:space-between;
  gap:16px; 
  cursor:pointer;
  transition:all 0.15s ease;
  border-bottom:1px solid #e5e7eb;
  background:transparent !important;
  
  /* 초기 애니메이션 상태 */
  opacity:0;
  transform:translateX(-10px);
  animation:slideInItem 0.25s ease forwards;
}

/* 각 항목 순차 등장 (최대 10개까지) */
.ac-item:nth-child(1){ animation-delay:0.05s; }
.ac-item:nth-child(2){ animation-delay:0.08s; }
.ac-item:nth-child(3){ animation-delay:0.11s; }
.ac-item:nth-child(4){ animation-delay:0.14s; }
.ac-item:nth-child(5){ animation-delay:0.17s; }
.ac-item:nth-child(6){ animation-delay:0.20s; }
.ac-item:nth-child(7){ animation-delay:0.23s; }
.ac-item:nth-child(8){ animation-delay:0.26s; }
.ac-item:nth-child(9){ animation-delay:0.29s; }
.ac-item:nth-child(10){ animation-delay:0.32s; }

@keyframes slideInItem {
  from {
    opacity:0;
    transform:translateX(-10px);
  }
  to {
    opacity:1;
    transform:translateX(0);
  }
}

.ac-item:last-child{
  border-bottom:none;
  border-radius:0 0 24px 24px;
}
.ac-item:first-child{
  border-radius:24px 24px 0 0;
}
.ac-item:hover, .ac-item.active{ 
  background:transparent !important;
  transform:translateX(4px) scale(1.01);
}
.ac-left{
  display:flex; 
  flex-direction:column;
  gap:4px;
}
.ac-name{
  font-weight:600; 
  color:#202124; 
  line-height:1.3;
  font-size:18px;
}
.ac-meta{
  font-size:13px; 
  color:#5f6368;
}
.ac-code{
  font-weight:600;
  color:#1E3A8A;
  font-size:13px;
  background:#e8f0fe;
  padding:2px 8px;
  border-radius:4px;
}
mark{ 
  background:#fef3c7; 
  padding:1px 2px; 
  border-radius:3px;
  font-weight:600;
  color:#92400e;
}

/* === HOW TO 표시 제어(버튼 전용) === */
#howto-note{ display:none !important; }          /* 기본은 닫힘 */
#howto-note.is-open{ display:block !important; } /* 버튼으로 열릴 때만 보임 */
.landing__search:focus-within #howto-note{ display:none !important; } /* 검색창 포커스여도 숨김 */

/* (겹침 방지) 자동완성이 HOW TO 위로 떠야 하면 z-index 강화 */
#ac-list{ z-index: 100 !important; }