:root { --brand:#2e6ff2; --brand-100:#e9f0ff; --bg:#f5f7fb; --sidebar:#fff; --sidebar-text:#0f172a; --sidebar-text-active:#0044ff; --sidebar-active:#0f172a; --text:#333; --muted:#64748b; --card:#ffffff; --border:#e2e8f0; --header-height:48px; --sidebar-width:240px; } 

/* Layout */
.layout { display:flex; min-height:100vh; } 
aside#sidebar { width:var(--sidebar-width); background:var(--sidebar); color:var(--sidebar-text); border-right: 1px solid #00000020; display: flex; flex-direction: column; } 
main.content { flex:1; background:var(--bg); width: calc(100% - var(--sidebar-width)); } 

/* Tabs */
#topTabs::-webkit-scrollbar { width: 0; height: 0; } 
#topTabs::-webkit-scrollbar-thumb { width: 0; height: 0; } 
#topTabs::-webkit-scrollbar-track { width: 0; height: 0; } 
#topTabs::-webkit-scrollbar-corner { width: 0; height: 0; } 
#topTabs { width: 100%; overflow-x: auto; display:flex; gap:8px; padding:8px; border-bottom:1px solid var(--border); background:#fff; position:sticky; top:0; z-index:30; height: var(--header-height); } 
#topTabs .tab {font-size: 12px; border-radius: 8px; white-space: nowrap; display:flex; align-items:center; gap:10px; padding:8px 10px; border:1px solid var(--border);  background:#fff; color:var(--muted); cursor:pointer; transition: all 0.2s; } 
#topTabs .tab.is-active { border-color:var(--brand); color:var(--text); } 
#topTabs .tab .close { color:#94a3b8; font-size:12px }
#topTabs .tab.dragging { opacity: 0.5; transform: rotate(2deg); }
#topTabs .tab.drop-before { border-left: 3px solid var(--brand); }
#topTabs .tab.drop-after { border-right: 3px solid var(--brand); } 

/* Iframes */
.iframes { position:relative; height:calc(100vh - var(--header-height)); } 
.iframe { position:absolute; inset:0; width:100%; height:100%; border:0; background:var(--bg); display:none } 
.iframe.is-active { display:block } 

/* Sidebar menu */
.sidebar-logo {user-select: none; pointer-events: none; flex-shrink: 0; display:flex; align-items:center; height:var(--header-height); padding:0 20px; border-bottom:1px solid rgba(39, 39, 39, 0.08) } 
.sidebar-logo img { width:100%; height:100%; max-height: 24px; object-fit:contain; } 
.sidebar-nav { overflow-y: auto; padding:12px; height: 100%; } 
.sidebar-nav .title { margin-top: 20px; font-size:12px; color:var(--muted); padding:10px 12px; font-weight: 600; } 
.sidebar-nav .title:first-child { margin-top: 0; } 
.sidebar-item {position: relative; height: 40px; display:flex; align-items:center; gap:10px; padding:10px 12px; color:var(--sidebar-text); cursor:pointer } 
.sidebar-item:hover { background: #f8f8f8; } 
.sidebar-item.is-active { background:#F4F7FF; color:#487AF5; font-weight: bold; } 
.sidebar-item.is-active::after { content: ''; position: absolute; top: 50%; transform: translateY(-50%); right: 1px; width: 2px; height: 60%; background:#487AF5; } 
.sidebar-item .dot { width:8px; height:8px; border-radius:999px; border: 1px solid var(--brand); } 
.sidebar-item.is-active .dot { background: var(--brand); } 
.sidebar-item svg{width: 18px; height: auto; aspect-ratio: 1/1;}

/* Mypage menu */
.mypage-menu { width: 100%; border-radius: 6px; overflow: hidden; left: 0; bottom: calc(100% + 4px); position: absolute; z-index: 1000; background: #fff; border: .5px solid var(--border); } 
.mypage-menu .sidebar-item {user-select: none; margin: 0; padding: 12px 16px; border-radius: 0; border-bottom: 1px solid #f1f5f9; } 
.mypage-menu .sidebar-item:last-child { border-bottom: none; } 
.mypage-menu .sidebar-item:hover { background: #f8fafc; } 
.mypage-menu .sidebar-item.is-active { background: #e9f0ff; color: var(--brand); } 

#user-info .sidebar-item.is-active{background: #f8f8f8; color: var(--sidebar-text); font-weight: 400;}

#user-info { position: relative; margin: 10px; transition: .2s; flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding:10px 12px; border-radius:6px; color:var(--sidebar-text); cursor:pointer; margin-top: auto; } 
#user-info:hover { background: #f8f8f8; } 
#user-info .profile {user-select: none; overflow: hidden; width: 36px; height: 36px; border-radius: 999px; background:var(--border); display: flex; align-items: center; justify-content: center; } 
#user-info .profile img { width: 100%; height: 100%; object-fit:cover; } 
#user-info .profile-initials { width: 100%; height: 100%; display:flex !important; align-items: center; justify-content: center; font-weight:600; font-size:14px; color:var(--brand); background:#e9f0ff; } 
#user-info .user-info-content { display: flex; flex-direction: column; gap: 4px; } 
#user-info .user-info-content .user-name { font-size:16px; font-weight: 600; } 
#user-info .user-info-content .user-email { font-size:12px; color:var(--muted); } 

/* Utility */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0 } 

