.faq-header h2,
.alarm-header h2,
.setting-header h2 {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', sans-serif !important;
  font-weight: 800 !important; 
  font-size: 24px;            
  line-height: 1.2;
  color: #111;  
}
#extra_right_banner {
  position: fixed;
  top: 255px;
  right: 40px;
  width: 80px; 
  background: #F9F9F9;
  border-radius: 5px;
  box-shadow: 1px 1px 11px rgba(0,0,0,0.15);
  z-index: 9999;

  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0; 
  height: auto; 
}

#extra_right_banner .nav-item .text-str {
  color: #222 !important;
}

#goTopBtn{
  position: absolute; 
  top: calc(100% - 15px); 
  left: 50%;   
  transform: translateX(-50%);   
  width: 100px; 
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100000; 
}

#goTopBtn img{
  width: 100%;
  height: 100%;
  object-fit: contain;
 }
#extra_right_banner .nav-item:not(.active) img.on,
#extra_right_banner .nav-item:not(.active) img.off{
  filter: grayscale(1) brightness(.9);
  opacity: .55;
}
#extra_right_banner .nav-item:not(.active) span:not(.nav-dot){
  opacity: .6;
}
#extra_right_banner .nav-item.active .nav-label {
  font-weight: 800;
}
#extra_right_banner .nav-item {
  text-align: center;
  font-family: 'Pretendard';
  font-size: 12px;
  font-weight: 600;
  color: #000;
  opacity: 1 !important;
  cursor: pointer;
  margin: 12px 0; 
}
#extra_right_banner .nav-item img {
  width: 28px; 
  height: 28px;
  margin: 0 auto 1px;
  object-fit: contain;
}
#extra_right_banner .nav-item span {
  display: block;
}
#extra_right_banner .nav-item .nav-label {
  display: block;
  margin-top: 1px;   
  font-size: 12px;
  line-height: 1.2;
  color: #111;
  text-align: center;
  font-weight: 600; 
}

#extra_right_banner .nav-item.active {
  opacity: 1;
}
#extra_right_banner .nav-item img.on { display: none; }
#extra_right_banner .nav-item.active img.on { display: inline; }
#extra_right_banner .nav-item.active img.off { display: none; }

#extra_right_banner .separator {
  width: 55px;
  height: 1px;
  background: url("/V2/_skin/ownerclan_v2/_img/navigation/bar.png") no-repeat center;
  background-size: contain;
}

:root{
  --nav-right: 40px;
  --nav-width: 80px;
  --nav-top: 255px;
  --faq-gap: 12px;
}

.faq-panel{
  position: fixed;
  top: var(--nav-top) !important;
  right: calc(var(--nav-right) + var(--nav-width) + var(--faq-gap)) !important;
  width: 420px;
  max-width: min(92vw, 520px);

  height: auto !important; 
  max-height: calc(100vh - var(--nav-top) - 32px);
  overflow: hidden;

  display: flex;
  flex-direction: column;

  background: #fff;
  border-radius: 8px;
  box-shadow: -2px 0 6px rgba(0,0,0,.2);

  transform-origin: right center;
  transform: scaleX(0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: transform .28s ease, opacity .2s ease, visibility 0s linear .28s;
  z-index: 10001; 
}

.faq-panel.open{
  transform: scaleX(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform .28s ease, opacity .2s ease;
}

.faq-list{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 15px;
}

.faq-header{ display:flex; align-items:center; justify-content:space-between; padding:15px; border-bottom:1px solid #eee; }
.faq-header h2{ margin:0; font-size:18px; }
#faqCloseBtn{ background:none; border:none; font-size:20px; cursor:pointer; }
.faq-search{ display:flex; align-items:center; padding:10px 15px; border-bottom:1px solid #eee; }
.faq-search input{ flex:1; padding:6px 10px; border:1px solid #ddd; border-radius:5px; font-size:14px; }
.faq-search .search-icon{ width:18px; height:18px; margin-left:8px; cursor:pointer; }
.faq-item{ padding:10px; margin-bottom:8px; border:1px solid #F0F1F5; border-radius:5px; font-size:14px; background:#F9F9F9; cursor:pointer; }
.faq-item:hover{ background:#f0f0f0; }
.faq-footer{ display:flex; align-items:center; padding:12px 15px; border-top:1px solid #eee; font-size:13px; color:rgba(0,0,0,.6); }
.faq-footer img{ width:16px; height:16px; margin-right:6px; }
.alarm-footer{
  display: flex !important;
  align-items: center;
  padding: 12px 15px; 
  border-top: 1px solid #eee;
  gap: 6px;   
  font-size: 13px;    
  color: rgba(0,0,0,.6); 
  cursor: pointer;  
}


/* @media (max-width: 1200px){
  .faq-panel{
    top: 0 !important; right: 0 !important;
    width: min(560px, 92vw);
    height: 100vh !important;
    max-height: none;
    border-radius: 0;
  }
} */
.faq-header{
  justify-content: flex-start;   
  gap: 8px;
  padding: 12px 14px;          
}
.faq-header .faq-icon{
  width: 40px;              
  height: 40px;
  object-fit: contain;
}
.faq-header h2{
  margin: 3;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
#faqCloseBtn{
  margin-left: auto;             
  font-size: 18px;
}
.faq-list{
  padding: 8px 12px;            
}
.faq-item{
  padding: 6px 10px;           
  margin-bottom: 6px;         
  font-size: 13px;
  font-weight: 700;            
  line-height: 1.35;
}
.faq-item:last-child{ margin-bottom: 0; }

.faq-dim{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  z-index: 10000;
}
.faq-dim.show{ opacity: 1; pointer-events: auto; }

.setting-panel{
  position: fixed;
  top: var(--nav-top) !important;
  right: calc(var(--nav-right) + var(--nav-width) + var(--faq-gap)) !important;
  width: 420px;
  max-width: min(92vw, 520px);
  height: auto !important;
  max-height: calc(100vh - var(--nav-top) - 32px);
  overflow: hidden;

  display: flex;
  flex-direction: column;
  background:#fff;
  border-radius:8px;
  box-shadow:-2px 0 6px rgba(0,0,0,.2);

  transform-origin:right center;
  transform: scaleX(0);
  opacity:0; visibility:hidden; pointer-events:none;
  transition: transform .28s ease, opacity .2s ease, visibility 0s linear .28s;
  z-index:10001;
}
.setting-panel.open{
  transform: scaleX(1);
  opacity:1; visibility:visible; pointer-events:auto;
  transition: transform .28s ease, opacity .2s ease;
}

.setting-header{
  display:flex; align-items:center; gap:8px;
  padding:12px 14px; border-bottom:1px solid #eee;
}
.setting-header .setting-ico{ width:40px; height:40px; object-fit:contain; }
.setting-header h2{ margin:0; font-size:24px; font-weight:700; line-height:1; }
#settingCloseBtn{ margin-left:auto; background:none; border:0; font-size:18px; cursor:pointer; }

.setting-section{ padding:12px 14px; }
.setting-section-title{ font-size:14px; font-weight:600; color:#979797; margin:4px 0 10px; }
.setting-card{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px; margin-bottom:10px;
  background:#F9F9F9; border:1px solid #F0F1F5; border-radius:6px;
}
.setting-title{ font-size:15px; font-weight:700; }
.setting-sub{ margin-top:4px; font-size:13px; color:#515151; }
.setting-text{ display:flex; flex-direction:column; }

.switch{ position:relative; width:51px; height:27px; display:inline-block; }
.switch input{ position:absolute; inset:0; opacity:0; }
.switch .track{
  position:absolute; inset:0; border-radius:18.5px; background:#C7C7C7; transition:.2s;
}
.switch .track:before{
  content:""; position:absolute; top:2px; left:2px; width:23px; height:23px;
  background:#fff; border-radius:50%; box-shadow:0 1px 2px rgba(0,0,0,.15); transition:.2s;
}
.switch input:checked + .track{ background:#0062A6; }
.switch input:checked + .track:before{ transform:translateX(24px); }

/* @media (max-width:1200px){
  .setting-panel{
    top:0 !important; right:0 !important;
    width:min(560px, 92vw);
    height:100vh !important; max-height:none; border-radius:0;
  }
} */

.faq-header h2{ margin: 0; } 


#extra_right_banner .nav-item.alarm { position: relative; }
#extra_right_banner .nav-item .nav-dot{
  position:absolute; top:-4px; right:-2px;
  width:8px; height:8px; border-radius:50%;
  background:#ff0000 !important; display:none;
}
#extra_right_banner .nav-item.alarm.has-unread .nav-dot{ display:block; }
#extra_right_banner .nav-item.alarm .nav-dot{
  position: absolute;
  top: -6px; 
  right: -8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff0000; 
  border: 2px solid #F9F9F9;
  display: none;
}

.alarm-panel{
  min-height: 560px;
  position: fixed;
  top: var(--nav-top) !important;
  right: calc(var(--nav-right) + var(--nav-width) + var(--faq-gap)) !important;
  width: 420px;
  max-width: min(92vw, 520px);
  height: auto !important;
  max-height: calc(100vh - var(--nav-top) - 32px);
  overflow: hidden;
  display: flex; flex-direction: column;
  background:#fff; border-radius:8px;
  box-shadow:-2px 0 6px rgba(0,0,0,.2);
  transform-origin:right center;
  transform: scaleX(0);
  opacity:0; visibility:hidden; pointer-events:none;
  transition: transform .28s ease, opacity .2s ease, visibility 0s linear .28s;
  z-index:10001;
}
.alarm-panel.open{
  transform: scaleX(1);
  opacity:1; visibility:visible; pointer-events:auto;
  transition: transform .28s ease, opacity .2s ease;
}

.alarm-header .alarm-ico{ width:40px; height:40px; object-fit:contain; }
.alarm-tabs .tab .count{ display: none !important; }

.alarm-controls{ padding: 12px 14px 6px; border-bottom: 1px solid #eee; }
.alarm-tabs{ display:flex; gap:8px; flex-wrap:wrap; }
.alarm-tabs .tab{
  padding: 2px 20px; border-radius: 18px; border: 1px solid #E5E7EB;
  background: #F5F6F8; color:#4B5563; font-size:13px; font-weight:700; cursor:pointer;
}
.alarm-tabs .tab.active{
  background:#8d8d8d; border-color:#8d8d8d; color:#fff;
}

.alarm-toolbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; padding: 10px 14px; border-bottom:1px solid #eee;
}
.alarm-actions{ color:#6B7280; display:flex; align-items:center; gap:6px; }
.alarm-actions .text-btn{
    appearance: none;
    background: transparent;
    border: 1px solid #D0D5DD;
    border-radius: 9999px; 
    padding: 4px 10px;
    font-size: 13px;
    color: #3a3a3a;
    cursor: pointer;
    line-height: 1.2;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.alarm-actions .dot-sep{ color:#C8C8C8; }

.alarm-filter{ position:relative; }
.scope-btn{
  display:inline-flex; align-items:center; gap:6px; padding:7px 10px;
  border:1px solid #E5E7EB; border-radius:6px; background:#fff; font-size:13px; cursor:pointer;
}
.scope-btn:after{
  content:"▼"; font-size:10px; transform: translateY(-1px);
}
.scope-menu{
  position:absolute; left:0; top:calc(100% + 6px); min-width:140px;
  background:#fff; border:1px solid #E5E7EB; border-radius:8px; box-shadow:0 6px 20px rgba(0,0,0,.08);
  padding:6px 0; list-style:none; display:none; z-index:10002;
}
.scope-menu li{
  padding:8px 12px; font-size:13px; cursor:pointer;
}
.scope-menu li:hover{ background:#F5F6F8; }
.scope-menu li.active{ font-weight:700; }

.alarm-list{ flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0; }
.alarm-item{
  list-style:none; background:#fff; border:1px solid #ECEFF3; border-radius:8px;
  padding:12px; margin-bottom:10px; box-shadow:0 1px 2px rgba(0,0,0,.02);
}
.alarm-item.unread{ border-color:#CFE5F8; background:#F7FBFF; }
.alarm-item .row1{ display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.alarm-item .badge{
  display:inline-block; padding:3px 8px; font-size:12px; font-weight:700; color:#4B5563;
  background:#EFF1F5; border-radius:999px;
}
.alarm-item .time{ font-size:12px; color:#8C8C8C; }
.alarm-item .title{ font-size:15px; font-weight:800; color:#111; margin-bottom:6px; }
.alarm-item .body{ font-size:13px; color:#333; }

.alarm-item .actions{ display:flex; gap:8px; margin-top:10px; }
.alarm-item .actions .more{
  flex:1; text-align:center; padding:10px 0; font-size:13px; font-weight:700;
  border:1px solid #E7EAF0; border-radius:6px; background:#F5F6F8; cursor:pointer;
}
.alarm-item .actions .read,
.alarm-item .actions .del{
  display:none; 
}

.alarm-empty{
  text-align:center; color:#8C8C8C; font-size:13px;
  border:1px dashed #E5E7EB; background:#FBFCFE; padding:14px; border-radius:8px;
}

.alarm-footer{ margin-top: auto; }

.alarm-footer .setting-icon{
  width: 16px; height: 16px; margin-right: 6px; object-fit: contain;
}
.alarm-setting-btn{
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0;
  font-size: 13px; color: rgba(0,0,0,.75); cursor: pointer;
}
.alarm-header{
  display:flex; align-items:center; gap:8px;
  padding:12px 14px; border-bottom:1px solid #eee;
}
.alarm-header h2{ margin:0; font-size:24px; font-weight:700; line-height:1; }
#alarmCloseBtn{ margin-left:auto; background:none; border:0; font-size:18px; cursor:pointer; }
#todoCloseBtn{ margin-left:auto; background:none; border:0; font-size:18px; cursor:pointer; }

#extra_right_banner #todoBtn { position: relative !important; }
#extra_right_banner #todoBtn .nav-dot { display: none; }
#extra_right_banner #todoBtn.has-unread .nav-dot { display: block; }

.faq-panel,
.faq-panel * ,
.alarm-panel,
.alarm-panel * ,
.setting-panel,
.setting-panel * {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', sans-serif !important;
}

.alarm-item .body,
.todo-item .body { word-break: break-word; }

.alarm-item .body[data-expanded="0"],
.todo-item .body[data-expanded="0"]{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.alarm-item .body[data-expanded="1"],
.todo-item .body[data-expanded="1"]{
  display: block;
  overflow: visible;
}
