/* ===== DOUBLE-LEVEL 디자인 시스템 =====
   (--green 변수명은 초기 버전의 흔적 — 현재 브랜드 액센트 컬러를 담는다) */
:root {
  --green: #6C4DFF;
  --green-dark: #5A3BF0;
  --green-bg: #EFECFF;
  --grad: linear-gradient(135deg, #7C5CFF 0%, #A64DFF 55%, #E44DFF 100%);
  --bg: #F5F6F8;
  --panel: #FFFFFF;
  --line: #E5E8EB;
  --line2: #F0F2F5;
  --txt: #1E2124;
  --txt2: #5C6470;
  --txt3: #9AA2AD;
  --red: #FF5B56;
  --blue: #4C7CFF;
  --amber: #F4B400;
  --shadow: 0 6px 24px rgba(25, 31, 40, .14);
  --shadow-sm: 0 2px 8px rgba(25, 31, 40, .10);
  --r: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "맑은 고딕", sans-serif;
  font-size: 14px; color: var(--txt); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }
a { color: var(--blue); text-decoration: none; }
.ic { flex: none; display: block; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #D3D8DE; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #BCC3CB; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 공통 컴포넌트 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 8px; font-weight: 600; font-size: 14px;
  transition: background .15s, opacity .15s; white-space: nowrap;
}
.btn-green { background: var(--grad); color: #fff; box-shadow: 0 2px 10px rgba(124, 92, 255, .25); }
.btn-green:hover { filter: brightness(1.07); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--txt2); }
.btn-ghost:hover { background: var(--bg); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { opacity: .88; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
.btn:disabled { opacity: .45; cursor: default; }
.ibtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px; color: var(--txt2); flex: none;
}
.ibtn:hover { background: rgba(0, 0, 0, .06); color: var(--txt); }
.ibtn.on { color: var(--green); }
.input, textarea.input, select.input {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; outline: none; transition: border .15s;
}
textarea.input { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.55; }
.input:focus { border-color: var(--green); }
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12.5px; font-weight: 700; color: var(--txt2); margin-bottom: 6px; }
.row2 { display: flex; gap: 10px; }
.row2 > * { flex: 1; }
.badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red);
  color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px;
  background: var(--bg); border-radius: 13px; font-size: 12.5px; color: var(--txt2);
}
.chip b { color: var(--txt); font-weight: 600; }
.chip .x { cursor: pointer; color: var(--txt3); display: inline-flex; }
.chip .x:hover { color: var(--red); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 700; }
.tag-red { background: #FFECEB; color: var(--red); }
.tag-green { background: var(--green-bg); color: var(--green-dark); }
.tag-blue { background: #EBF1FF; color: var(--blue); }
.tag-gray { background: var(--line2); color: var(--txt2); }
.avatar {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 38%; color: #fff; font-weight: 700; flex: none; user-select: none;
}
.avatar.av-group { background: var(--green-bg); color: var(--green); }
.av-dot { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; }

/* 모달 */
.modal-back {
  position: fixed; inset: 0; background: rgba(20, 24, 30, .45); z-index: 300;
  display: flex; align-items: center; justify-content: center; animation: fadeIn .15s;
}
@keyframes fadeIn { from { opacity: 0 } }
.modal {
  width: 440px; max-width: calc(100vw - 32px); max-height: calc(100vh - 60px);
  background: #fff; border-radius: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  animation: popUp .18s;
}
@keyframes popUp { from { transform: translateY(10px); opacity: 0 } }
.modal-wide { width: 680px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 10px; }
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 10px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; }
.confirm-msg { line-height: 1.6; color: var(--txt2); padding: 6px 0; }

/* 팝오버 */
.pop {
  position: fixed; z-index: 320; background: #fff; border-radius: 12px;
  box-shadow: var(--shadow); border: 1px solid var(--line2); overflow: hidden; animation: popUp .15s;
}
.pop-menu { padding: 6px; }
.pop-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px;
  border-radius: 8px; font-size: 13.5px; color: var(--txt); text-align: left;
}
.pop-menu button:hover { background: var(--bg); }
.pop-menu button.danger { color: var(--red); }
.pop-sep { height: 1px; background: var(--line2); margin: 5px 8px; }

/* 토스트 */
.toast-wrap { position: fixed; left: 50%; transform: translateX(-50%); bottom: 28px; z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  display: flex; align-items: center; gap: 8px; padding: 11px 18px; background: #23272E; color: #fff;
  border-radius: 24px; font-size: 13.5px; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: all .25s;
}
.toast .ic { color: var(--green); }
.toast-err .ic { color: var(--red); }
.toast.show { opacity: 1; transform: none; }

/* 빈 상태 */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 60px 20px; color: var(--txt3); }
.empty p { font-size: 14.5px; font-weight: 600; color: var(--txt2); }
.empty span { font-size: 12.5px; }

/* 멤버 선택 */
.up-search { margin-bottom: 8px; }
.up-count { font-size: 12px; color: var(--txt3); margin-bottom: 6px; }
.up-count span { color: var(--green); font-weight: 700; }
.up-list { height: 320px; overflow-y: auto; border: 1px solid var(--line2); border-radius: 10px; padding: 4px; }
.up-group { font-size: 11.5px; font-weight: 700; color: var(--txt3); padding: 10px 10px 4px; }
.up-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.up-row:hover { background: var(--bg); }
.up-row.sel { background: var(--green-bg); }
.up-row input { accent-color: var(--green); }
.up-name { font-weight: 600; }
.up-sub { font-size: 12px; color: var(--txt3); }

/* ---------- 로그인 (다크 글래스) ---------- */
.login-wrap {
  height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
  background: #0B0714;
}
.login-wrap::before, .login-wrap::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none;
}
.login-wrap::before { width: 520px; height: 520px; left: -120px; top: -140px; background: rgba(124, 92, 255, .38); animation: blob 9s ease-in-out infinite alternate; }
.login-wrap::after { width: 460px; height: 460px; right: -110px; bottom: -150px; background: rgba(228, 77, 255, .26); animation: blob 11s ease-in-out infinite alternate-reverse; }
@keyframes blob { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.15); } }
.login-card {
  position: relative; z-index: 2; width: 410px; text-align: center;
  background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 26px; padding: 46px 42px 30px; backdrop-filter: blur(22px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}
.login-logo { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 8px; }
.login-word {
  font-size: 27px; font-weight: 900; letter-spacing: 1.5px;
  background: linear-gradient(100deg, #FFFFFF 10%, #C9B8FF 55%, #FF8DE9 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.login-tag { font-size: 11px; letter-spacing: 4px; color: rgba(255, 255, 255, .48); font-weight: 700; margin-bottom: 4px; }
.login-sub { color: rgba(255, 255, 255, .42); font-size: 12.5px; margin-bottom: 30px; }
.login-card .input {
  height: 48px; margin-bottom: 10px; font-size: 15px; border-radius: 12px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); color: #fff;
}
.login-card .input::placeholder { color: rgba(255, 255, 255, .38); }
.login-card .input:focus { border-color: #A78BFF; background: rgba(255, 255, 255, .1); }
.login-btn {
  width: 100%; height: 48px; font-size: 15.5px; font-weight: 800; letter-spacing: .5px;
  border-radius: 12px; margin-top: 8px; background: var(--grad); color: #fff;
  box-shadow: 0 10px 28px rgba(124, 92, 255, .38); transition: filter .15s, transform .1s;
}
.login-btn:hover { filter: brightness(1.1); }
.login-btn:active { transform: scale(.985); }
.login-err { min-height: 18px; font-size: 12px; color: #FF8D9E; margin-top: 10px; }
.login-foot { margin-top: 26px; font-size: 11px; letter-spacing: .5px; color: rgba(255, 255, 255, .28); }

/* ---------- 앱 레이아웃 ---------- */
.app { display: flex; height: 100vh; }
.rail {
  width: 68px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column;
  align-items: center; padding: 12px 0 14px; gap: 2px; flex: none; z-index: 50;
}
.rail-logo { margin-bottom: 10px; cursor: pointer; }
.rail-item {
  position: relative; width: 56px; padding: 7px 0 5px; border-radius: 10px; display: flex; flex-direction: column;
  align-items: center; gap: 3px; color: var(--txt3); font-size: 10px; font-weight: 600;
}
.rail-item:hover { background: var(--bg); color: var(--txt2); }
.rail-item.on { color: var(--green); }
.rail-item.on::before { content: ''; position: absolute; left: -6px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--green); }
.rail-item .badge { position: absolute; top: 2px; right: 6px; }
.rail-spacer { flex: 1; }
.rail-me { margin-top: 6px; cursor: pointer; border-radius: 50%; }
.rail-me:hover { box-shadow: 0 0 0 3px var(--green-bg); }

.mod { flex: 1; display: flex; min-width: 0; background: var(--bg); }

/* 2단 패널 공통 */
.panel { width: 320px; flex: none; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.panel-slim { width: 240px; }
.panel-head { padding: 18px 18px 10px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; }
.panel-title h2 { font-size: 19px; letter-spacing: -.3px; }
.panel-title .acts { display: flex; gap: 2px; }
.panel-search { position: relative; margin-top: 12px; }
.panel-search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--txt3); }
.panel-search .input { height: 36px; padding-left: 36px; background: var(--bg); border-color: transparent; border-radius: 9px; }
.panel-search .input:focus { border-color: var(--green); background: #fff; }
.panel-body { flex: 1; overflow-y: auto; padding: 6px 8px 14px; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.main-head {
  height: 60px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; flex: none;
}
.main-head h3 { font-size: 16.5px; }
.main-head .sub { color: var(--txt3); font-size: 13px; }
.main-head .acts { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-body { flex: 1; overflow-y: auto; min-height: 0; }

/* 목록 행 공통 */
.lrow { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 10px; cursor: pointer; }
.lrow:hover { background: var(--bg); }
.lrow.on { background: var(--green-bg); }
.lrow-txt { flex: 1; min-width: 0; }
.lrow-top { display: flex; align-items: center; gap: 6px; }
.lrow-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow-time { margin-left: auto; font-size: 11px; color: var(--txt3); flex: none; }
.lrow-sub { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.lrow-prev { flex: 1; font-size: 12.5px; color: var(--txt3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .pin-ic { color: var(--txt3); }
.side-sec { font-size: 11.5px; font-weight: 700; color: var(--txt3); padding: 14px 12px 6px; }
.side-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 9px; cursor: pointer;
  color: var(--txt2); font-weight: 600; font-size: 13.5px;
}
.side-item:hover { background: var(--bg); }
.side-item.on { background: var(--green-bg); color: var(--green-dark); }
.side-item .cnt { margin-left: auto; font-size: 12px; color: var(--txt3); font-weight: 600; }
.side-item .badge { margin-left: auto; }

/* ---------- 메시지 ---------- */
.msg-room-head { display: flex; align-items: center; gap: 12px; }
.chat { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.chat-notice {
  margin: 10px 16px 0; padding: 10px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; box-shadow: var(--shadow-sm);
}
.chat-notice .ic { color: var(--amber); margin-top: 1px; }
.chat-notice .txt { flex: 1; min-width: 0; }
.chat-notice.folded .txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px 20px 10px; }
.date-chip { display: flex; justify-content: center; margin: 14px 0 10px; }
.date-chip span { background: rgba(30, 36, 44, .55); backdrop-filter: blur(2px); color: #fff; font-size: 11px; padding: 4px 12px; border-radius: 12px; }
.mrow { display: flex; gap: 10px; margin-bottom: 4px; }
.mrow.mine { flex-direction: row-reverse; }
.mrow .av { width: 36px; flex: none; }
.mcol { max-width: 62%; display: flex; flex-direction: column; }
.mrow.mine .mcol { align-items: flex-end; }
.msender { font-size: 12px; color: var(--txt2); font-weight: 600; margin: 2px 0 4px; }
.mline { display: flex; align-items: flex-end; gap: 6px; }
.mrow.mine .mline { flex-direction: row-reverse; }
.bubble {
  padding: 9px 13px; border-radius: 4px 16px 16px 16px; background: #fff; box-shadow: var(--shadow-sm);
  line-height: 1.55; font-size: 14px; white-space: pre-wrap; word-break: break-word; position: relative;
}
.mrow.mine .bubble { background: #E4DCFF; border-radius: 16px 4px 16px 16px; }
.bubble .mention { color: var(--blue); font-weight: 700; }
.bubble.file-bubble { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.bubble.file-bubble .fi { width: 38px; height: 38px; border-radius: 9px; background: var(--green-bg); color: var(--green-dark); display: flex; align-items: center; justify-content: center; }
.bubble.file-bubble .fname { font-weight: 600; font-size: 13px; word-break: break-all; }
.bubble.file-bubble .fsize { font-size: 11.5px; color: var(--txt3); }
.bubble img.chat-img { max-width: 240px; max-height: 240px; border-radius: 10px; display: block; cursor: zoom-in; }
.mmeta { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; flex: none; }
.mrow.mine .mmeta { align-items: flex-end; }
.munread { font-size: 10.5px; color: var(--green-dark); font-weight: 700; }
.mtime { font-size: 10.5px; color: var(--txt3); white-space: nowrap; }
.msys { text-align: center; font-size: 12px; color: var(--txt3); margin: 10px 0; }
.chat-input { margin: 8px 16px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.chat-input:focus-within { border-color: var(--green); }
.chat-input textarea {
  width: 100%; border: 0; outline: none; resize: none; padding: 12px 14px 4px; max-height: 120px;
  font-size: 14px; line-height: 1.5; background: transparent;
}
.chat-tools { display: flex; align-items: center; gap: 2px; padding: 4px 8px 8px; }
.chat-send { margin-left: auto; width: 38px; height: 34px; border-radius: 9px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; }
.chat-send:disabled { background: var(--line); color: #fff; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 10px; }
.emoji-grid button { font-size: 20px; padding: 5px; border-radius: 7px; }
.emoji-grid button:hover { background: var(--bg); }
.drawer { width: 300px; flex: none; background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.drawer-head { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line2); font-weight: 700; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px; }
.drawer-sec { font-size: 12px; font-weight: 700; color: var(--txt3); margin: 14px 6px 6px; display: flex; justify-content: space-between; align-items: center; }
.drawer-file { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; font-size: 13px; }
.drawer-file:hover { background: var(--bg); }

/* ---------- 게시판 ---------- */
.brd-row { padding: 14px 16px; border-bottom: 1px solid var(--line2); cursor: pointer; display: flex; gap: 14px; align-items: flex-start; background: #fff; }
.brd-row:hover { background: #FAFBFC; }
.brd-row-main { flex: 1; min-width: 0; }
.brd-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.brd-title .cmt { color: var(--green-dark); font-size: 13px; font-weight: 700; }
.brd-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--txt3); }
.brd-meta b { color: var(--txt2); font-weight: 600; }
.post-wrap { max-width: 860px; margin: 0 auto; padding: 26px 30px 60px; }
.post-card { background: #fff; border-radius: 14px; border: 1px solid var(--line2); padding: 28px 32px; }
.post-head h2 { font-size: 22px; line-height: 1.4; margin-bottom: 14px; }
.post-author { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line2); }
.post-author .nm { font-weight: 700; }
.post-author .sub { font-size: 12px; color: var(--txt3); }
.post-body { padding: 22px 2px; line-height: 1.75; font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.post-files { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.pfile { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--bg); border-radius: 9px; font-size: 13px; }
.pfile .sz { color: var(--txt3); font-size: 12px; }
.react-bar { display: flex; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line2); }
.react-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 16px; font-size: 13px; background: #fff; }
.react-btn.on { border-color: var(--green); background: var(--green-bg); color: var(--green-dark); font-weight: 700; }
.react-btn:hover { border-color: var(--green); }
.cmt-sec { margin-top: 8px; }
.cmt-sec h4 { font-size: 14px; margin-bottom: 12px; }
.cmt { display: flex; gap: 10px; padding: 10px 0; }
.cmt-body { flex: 1; }
.cmt-top { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.cmt-top b { font-weight: 700; }
.cmt-top span { color: var(--txt3); font-size: 11.5px; }
.cmt-txt { margin-top: 3px; line-height: 1.6; font-size: 13.5px; white-space: pre-wrap; }
.cmt-write { display: flex; gap: 10px; margin-top: 10px; align-items: flex-start; }
.cmt-write .input { flex: 1; }
.mustread-banner {
  margin: 16px 20px 0; padding: 12px 16px; background: #FFF7E8; border: 1px solid #F7E3B7; border-radius: 10px;
  display: flex; align-items: center; gap: 10px; font-size: 13.5px; cursor: pointer;
}
.mustread-banner .ic { color: var(--amber); }
.mustread-banner b { color: #A9720A; }
.confirm-read { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--green-bg); border-radius: 10px; margin-bottom: 16px; font-size: 13.5px; }

/* ---------- 캘린더 ---------- */
.cal-side { padding: 0 14px; }
.mini-cal { margin: 6px 0 12px; }
.mini-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 8px; font-weight: 700; font-size: 14px; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.mini-grid .dow { text-align: center; font-size: 10.5px; color: var(--txt3); padding: 3px 0; }
.mini-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 11.5px; border-radius: 50%; cursor: pointer; color: var(--txt2); position: relative; }
.mini-day:hover { background: var(--bg); }
.mini-day.dim { color: #C9CFD6; }
.mini-day.today { background: var(--green); color: #fff; font-weight: 700; }
.mini-day.sel:not(.today) { background: var(--green-bg); color: var(--green-dark); font-weight: 700; }
.mini-day .dot { position: absolute; bottom: 2px; width: 3px; height: 3px; border-radius: 50%; background: var(--green); }
.cal-list-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--txt2); }
.cal-list-item:hover { background: var(--bg); }
.cal-list-item .cbox { width: 14px; height: 14px; border-radius: 4px; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; }
.cal-toolbar { display: flex; align-items: center; gap: 8px; }
.cal-toolbar h3 { font-size: 18px; min-width: 130px; }
.seg { display: flex; background: var(--bg); border-radius: 9px; padding: 3px; }
.seg button { padding: 5px 14px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--txt3); }
.seg button.on { background: #fff; color: var(--txt); box-shadow: var(--shadow-sm); }
.cal-grid-wrap { flex: 1; display: flex; flex-direction: column; padding: 12px 16px 16px; min-height: 0; }
.cal-dow-row { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 0 6px; }
.cal-dow-row span { text-align: center; font-size: 12px; font-weight: 700; color: var(--txt2); }
.cal-dow-row span:first-child { color: var(--red); }
.cal-dow-row span:last-child { color: var(--blue); }
.cal-grid { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; background: var(--line); gap: 1px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-height: 0; }
.cal-cell { background: #fff; padding: 5px 6px; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; gap: 2px; min-height: 0; }
.cal-cell:hover { background: #FAFBFC; }
.cal-cell.dim { background: #FAFAFB; color: var(--txt3); }
.cal-cell .dnum { font-size: 12px; font-weight: 600; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; }
.cal-cell.today-cell .dnum { background: var(--green); color: #fff; font-weight: 700; }
.cal-cell .dnum.sun { color: var(--red); }
.cal-cell .dnum.sat { color: var(--blue); }
.cal-cell.dim .dnum { color: #C9CFD6; }
.ev-chip { font-size: 11px; padding: 2px 6px; border-radius: 5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; flex: none; }
.ev-chip.timed { background: transparent !important; color: var(--txt2); display: flex; align-items: center; gap: 4px; padding: 1px 4px; }
.ev-chip.timed i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.ev-chip:hover { filter: brightness(.96); }
.ev-more { font-size: 11px; color: var(--txt3); padding: 0 6px; cursor: pointer; }
.week-wrap { flex: 1; display: flex; flex-direction: column; padding: 12px 16px 16px; min-height: 0; }
.week-allday { display: grid; grid-template-columns: 46px repeat(7, 1fr); border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; background: #fff; }
.week-allday .wa-cell { min-height: 30px; padding: 3px; border-left: 1px solid var(--line2); display: flex; flex-direction: column; gap: 2px; }
.week-head-row { display: grid; grid-template-columns: 46px repeat(7, 1fr); }
.week-head-row .wh { text-align: center; padding: 8px 0 6px; font-size: 12.5px; font-weight: 700; color: var(--txt2); }
.week-head-row .wh b { display: block; font-size: 17px; }
.week-head-row .wh.today-col b { color: var(--green); }
.week-scroll { flex: 1; overflow-y: auto; border: 1px solid var(--line); border-radius: 0 0 12px 12px; background: #fff; position: relative; }
.week-grid { display: grid; grid-template-columns: 46px repeat(7, 1fr); position: relative; }
.wg-time { height: 48px; font-size: 10.5px; color: var(--txt3); text-align: right; padding-right: 6px; transform: translateY(-6px); }
.wg-cell { height: 48px; border-left: 1px solid var(--line2); border-top: 1px solid var(--line2); position: relative; }
.week-ev { position: absolute; left: 2px; right: 4px; border-radius: 6px; padding: 3px 6px; font-size: 11px; color: #fff; overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); z-index: 2; }
.week-ev b { display: block; font-size: 11px; }
.now-line { position: absolute; left: 46px; right: 0; height: 2px; background: var(--red); z-index: 3; pointer-events: none; }
.now-line::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* ---------- 주소록 ---------- */
.ct-tree { padding: 0 8px; }
.ct-card { background: #fff; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; padding: 18px 20px; }
.ct-person { background: #fff; border: 1px solid var(--line2); border-radius: 14px; padding: 18px 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; transition: box-shadow .15s, transform .15s; position: relative; }
.ct-person:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.ct-person .nm { font-weight: 700; font-size: 15px; margin-top: 8px; }
.ct-person .po { font-size: 12.5px; color: var(--txt2); }
.ct-person .em { font-size: 11.5px; color: var(--txt3); }
.ct-person .vip-ic { position: absolute; top: 10px; right: 12px; color: var(--amber); }
.ct-person .stmsg { font-size: 11.5px; color: var(--green-dark); background: var(--green-bg); border-radius: 10px; padding: 2px 9px; margin-top: 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-detail { display: flex; flex-direction: column; align-items: center; padding: 30px 24px; }
.ct-detail .nm { font-size: 19px; font-weight: 700; margin-top: 12px; }
.ct-detail .po { color: var(--txt2); margin-top: 2px; }
.ct-detail .stm { margin-top: 8px; font-size: 13px; color: var(--green-dark); }
.ct-actions { display: flex; gap: 8px; margin: 18px 0 8px; }
.ct-info { width: 100%; margin-top: 12px; border-top: 1px solid var(--line2); }
.ct-info .ir { display: flex; padding: 11px 4px; border-bottom: 1px solid var(--line2); font-size: 13.5px; }
.ct-info .ir b { width: 90px; color: var(--txt3); font-weight: 600; flex: none; }

/* ---------- 할 일 ---------- */
.task-wrap { max-width: 760px; margin: 0 auto; padding: 24px 24px 60px; }
.task-add { display: flex; gap: 8px; margin-bottom: 18px; }
.task-add .input { flex: 1; height: 44px; border-radius: 12px; box-shadow: var(--shadow-sm); border-color: transparent; }
.task-add .input:focus { border-color: var(--green); }
.task-group-title { font-size: 13px; font-weight: 700; color: var(--txt2); margin: 18px 4px 8px; display: flex; gap: 6px; align-items: center; }
.task-group-title .cnt { color: var(--txt3); font-weight: 600; }
.task-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; }
.task-row:hover { box-shadow: var(--shadow-sm); }
.task-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: flex; align-items: center; justify-content: center; color: #fff; transition: all .15s; }
.task-check:hover { border-color: var(--green); }
.task-row.done .task-check { background: var(--green); border-color: var(--green); }
.task-main { flex: 1; min-width: 0; }
.task-title { font-weight: 600; font-size: 14.5px; }
.task-row.done .task-title { color: var(--txt3); text-decoration: line-through; }
.task-sub { display: flex; gap: 8px; margin-top: 3px; font-size: 12px; color: var(--txt3); align-items: center; }
.task-sub .over { color: var(--red); font-weight: 700; }

/* ---------- 메일 ---------- */
.mail-list { width: 400px; flex: none; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.mail-row { display: flex; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line2); cursor: pointer; align-items: flex-start; }
.mail-row:hover { background: #FAFBFC; }
.mail-row.on { background: var(--green-bg); }
.mail-row .star-btn { color: #D3D8DE; margin-top: 2px; }
.mail-row .star-btn.on { color: var(--amber); }
.mail-row .star-btn.on svg { fill: var(--amber); }
.mail-row-main { flex: 1; min-width: 0; }
.mail-from { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--txt2); }
.mail-row.unread .mail-from { font-weight: 700; color: var(--txt); }
.mail-subj { font-size: 14px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--txt2); }
.mail-row.unread .mail-subj { font-weight: 700; color: var(--txt); }
.mail-prev { font-size: 12px; color: var(--txt3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-time { font-size: 11px; color: var(--txt3); flex: none; }
.mail-view { flex: 1; overflow-y: auto; background: #fff; }
.mail-view-in { max-width: 820px; margin: 0 auto; padding: 30px 34px; }
.mail-view h2 { font-size: 21px; line-height: 1.4; }
.mail-vmeta { display: flex; gap: 12px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line2); margin-top: 14px; }
.mail-vmeta .who b { font-size: 14.5px; }
.mail-vmeta .who span { color: var(--txt3); font-size: 12.5px; }
.mail-vbody { padding: 26px 2px; line-height: 1.8; font-size: 14.5px; white-space: pre-wrap; word-break: break-word; }
.mail-atts { border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; margin-top: 6px; }
.mail-atts h5 { font-size: 12.5px; color: var(--txt2); margin-bottom: 8px; }
.compose-to { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-height: 38px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; position: relative; }
.compose-to:focus-within { border-color: var(--green); }
.compose-to input { border: 0; outline: none; flex: 1; min-width: 120px; height: 28px; }
.ac-list { position: absolute; top: calc(100% + 4px); left: 0; width: 320px; background: #fff; border-radius: 10px; box-shadow: var(--shadow); z-index: 40; overflow: hidden; max-height: 250px; overflow-y: auto; }
.ac-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; }
.ac-item:hover, .ac-item.hi { background: var(--bg); }
.ac-item .em { color: var(--txt3); font-size: 12px; }

/* ---------- 드라이브 ---------- */
.drv-toolbar { display: flex; align-items: center; gap: 6px; }
.drv-crumb { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--txt2); }
.drv-crumb button { color: var(--txt2); font-weight: 600; padding: 4px 7px; border-radius: 6px; }
.drv-crumb button:hover { background: var(--bg); }
.drv-crumb b { color: var(--txt); }
.drv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 18px 20px; }
.drv-card { background: #fff; border: 1px solid var(--line2); border-radius: 13px; padding: 16px 12px 13px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; position: relative; }
.drv-card:hover { box-shadow: var(--shadow-sm); }
.drv-card .fic { width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.drv-card .nm { font-size: 12.5px; font-weight: 600; text-align: center; word-break: break-all; max-height: 34px; overflow: hidden; }
.drv-card .sz { font-size: 11px; color: var(--txt3); }
.drv-card .star-mark { position: absolute; top: 8px; left: 10px; color: var(--amber); }
.drv-card .more-btn { position: absolute; top: 6px; right: 6px; opacity: 0; }
.drv-card:hover .more-btn { opacity: 1; }
.drv-list-head, .drv-lrow { display: grid; grid-template-columns: 1fr 110px 90px 130px 40px; align-items: center; gap: 8px; padding: 9px 18px; }
.drv-list-head { font-size: 12px; color: var(--txt3); font-weight: 700; border-bottom: 1px solid var(--line2); position: sticky; top: 0; background: var(--bg); }
.drv-lrow { background: #fff; border-bottom: 1px solid var(--line2); cursor: pointer; font-size: 13.5px; }
.drv-lrow:hover { background: #FAFBFC; }
.drv-lrow .fcell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.drv-lrow .fcell span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.drv-lrow .dim2 { color: var(--txt3); font-size: 12.5px; }
.storage-bar { padding: 12px 14px; }
.storage-bar .sb-track { height: 6px; background: var(--line2); border-radius: 3px; overflow: hidden; margin: 8px 0 6px; }
.storage-bar .sb-fill { height: 100%; background: var(--green); border-radius: 3px; }
.storage-bar p { font-size: 11.5px; color: var(--txt3); }

/* ---------- 설문 ---------- */
.sv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; padding: 20px; max-width: 1100px; }
.sv-card { background: #fff; border: 1px solid var(--line2); border-radius: 14px; padding: 20px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.sv-card:hover { box-shadow: var(--shadow-sm); }
.sv-card h4 { font-size: 15.5px; line-height: 1.4; }
.sv-card .desc { font-size: 13px; color: var(--txt2); line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sv-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--txt3); margin-top: auto; }
.sv-q { background: #fff; border: 1px solid var(--line2); border-radius: 13px; padding: 20px 22px; margin-bottom: 14px; }
.sv-q h5 { font-size: 15px; margin-bottom: 14px; }
.sv-q h5 .qtag { font-size: 11px; color: var(--txt3); font-weight: 600; margin-left: 6px; }
.sv-opt { display: flex; align-items: center; gap: 10px; padding: 9px 4px; cursor: pointer; border-radius: 8px; }
.sv-opt:hover { background: var(--bg); }
.sv-opt input { accent-color: var(--green); width: 16px; height: 16px; }
.sv-result-row { margin-bottom: 12px; }
.sv-result-row .lbl { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.sv-result-row .lbl b { color: var(--txt2); font-weight: 600; }
.sv-bar-track { height: 22px; background: var(--line2); border-radius: 6px; overflow: hidden; }
.sv-bar { height: 100%; background: var(--green); border-radius: 6px; min-width: 2px; transition: width .4s; display: flex; align-items: center; }
.sv-txt-ans { padding: 9px 12px; background: var(--bg); border-radius: 9px; font-size: 13px; margin-bottom: 6px; }
.sv-txt-ans span { color: var(--txt3); font-size: 11.5px; margin-left: 8px; }
.svq-builder { border: 1px solid var(--line2); border-radius: 12px; padding: 14px; margin-bottom: 10px; background: #FAFBFC; }
.svq-builder .qb-head { display: flex; gap: 8px; margin-bottom: 10px; }
.svq-builder .qb-head .input { background: #fff; }
.svq-opt-row { display: flex; gap: 6px; margin-bottom: 6px; align-items: center; }
.svq-opt-row .input { background: #fff; height: 32px; }

/* ---------- 관리자 ---------- */
.adm-wrap { flex: 1; overflow-y: auto; padding: 24px 28px 60px; }
.adm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 24px; }
.adm-card { background: #fff; border: 1px solid var(--line2); border-radius: 14px; padding: 20px; }
.adm-card .lb { font-size: 12.5px; color: var(--txt3); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.adm-card .val { font-size: 26px; font-weight: 800; margin-top: 8px; letter-spacing: -.5px; }
.adm-card .sub2 { font-size: 12px; color: var(--txt3); margin-top: 4px; }
.adm-table-wrap { background: #fff; border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-table th { text-align: left; padding: 12px 14px; background: #FAFBFC; color: var(--txt2); font-size: 12.5px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.adm-table td { padding: 11px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.adm-table tr:hover td { background: #FAFBFC; }
.adm-table .nm-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.adm-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.adm-toolbar .panel-search { margin: 0; flex: 1; min-width: 200px; }
.adm-toolbar .panel-search .input { background: #fff; border-color: var(--line); }
.pager { display: flex; justify-content: center; gap: 4px; padding: 14px; }
.pager button { min-width: 30px; height: 30px; border-radius: 7px; font-size: 13px; color: var(--txt2); }
.pager button.on { background: var(--green); color: #fff; font-weight: 700; }
.pager button:hover:not(.on) { background: var(--bg); }
.switch { position: relative; width: 42px; height: 24px; background: var(--line); border-radius: 12px; cursor: pointer; transition: background .15s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: var(--shadow-sm); }
.switch.on { background: var(--green); }
.switch.on::after { left: 21px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 4px; border-bottom: 1px solid var(--line2); }
.set-row .st { font-weight: 600; }
.set-row .sd { font-size: 12.5px; color: var(--txt3); margin-top: 3px; }

/* ---------- 검색 오버레이 ---------- */
.search-back { position: fixed; inset: 0; background: rgba(20, 24, 30, .4); z-index: 290; display: flex; justify-content: center; padding-top: 90px; }
.search-box { width: 640px; max-width: calc(100vw - 40px); background: #fff; border-radius: 16px; box-shadow: var(--shadow); height: fit-content; max-height: 70vh; display: flex; flex-direction: column; overflow: hidden; animation: popUp .18s; }
.search-input-row { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line2); }
.search-input-row input { flex: 1; border: 0; outline: none; font-size: 16px; }
.search-results { overflow-y: auto; padding: 8px; }
.sr-sec { font-size: 11.5px; font-weight: 700; color: var(--txt3); padding: 12px 12px 4px; }
.sr-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; cursor: pointer; }
.sr-item:hover { background: var(--bg); }
.sr-item .sic { width: 34px; height: 34px; border-radius: 9px; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--txt2); flex: none; }
.sr-item .st1 { font-weight: 600; font-size: 13.5px; }
.sr-item .st1 mark { background: #FFF3C4; border-radius: 3px; }
.sr-item .st2 { font-size: 12px; color: var(--txt3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 460px; }

/* ---------- 알림 ---------- */
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.notif-head b { font-size: 15px; }
.notif-head button { font-size: 12px; color: var(--green-dark); font-weight: 600; }
.notif-list { max-height: 420px; overflow-y: auto; padding: 4px 8px 10px; }
.notif-item { display: flex; gap: 11px; padding: 10px; border-radius: 10px; cursor: pointer; align-items: flex-start; }
.notif-item:hover { background: var(--bg); }
.notif-item .nic { width: 34px; height: 34px; border-radius: 50%; background: var(--green-bg); color: var(--green-dark); display: flex; align-items: center; justify-content: center; flex: none; }
.notif-item.unread .nic { background: var(--green); color: #fff; }
.notif-item p { font-size: 13px; line-height: 1.5; }
.notif-item span { font-size: 11px; color: var(--txt3); }

/* 프로필 팝오버 */
.me-pop { padding: 20px 18px 12px; text-align: center; }
.me-pop .nm { font-weight: 700; font-size: 16px; margin-top: 10px; }
.me-pop .po { font-size: 12.5px; color: var(--txt3); }
.me-pop .stmsg-input { margin-top: 12px; }
.me-pop .stmsg-input .input { height: 34px; font-size: 12.5px; text-align: center; background: var(--bg); border-color: transparent; }
.me-state-row { display: flex; gap: 5px; justify-content: center; margin-top: 10px; }
.me-state-row button { font-size: 12px; padding: 5px 10px; border-radius: 14px; border: 1px solid var(--line); color: var(--txt2); }
.me-state-row button.on { border-color: var(--green); background: var(--green-bg); color: var(--green-dark); font-weight: 700; }

/* ---------- 근태 ---------- */
.att-hero { background: #fff; border: 1px solid var(--line2); border-radius: 16px; padding: 28px 24px; text-align: center; }
.att-clock { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.att-clock b { font-size: 22px; color: var(--txt3); font-weight: 700; }
.att-state { margin-top: 6px; font-size: 14px; color: var(--txt3); }
.att-state.working { color: var(--green-dark); font-weight: 700; }
.att-state.done { color: var(--txt2); font-weight: 600; }
.att-btns { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.att-btns .btn { height: 44px; padding: 0 26px; font-size: 15px; border-radius: 12px; }

/* ---------- 전자결재 ---------- */
.apv-type { flex: none; }
.apv-line-mini { display: flex; gap: 2px; flex: none; }
.apv-step-av { border-radius: 50%; opacity: .45; }
.apv-step-av.ok { opacity: 1; }
.apv-step-av.no { opacity: 1; filter: grayscale(1); }
.apv-line { display: flex; flex-direction: column; gap: 8px; }
.apv-step { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line2); border-radius: 12px; background: #FAFBFC; }
.apv-step.ok { background: var(--green-bg); border-color: transparent; }
.apv-step.no { background: #FFECEB; border-color: transparent; }
.apv-step-no { font-size: 11.5px; font-weight: 700; color: var(--txt3); width: 28px; flex: none; }

/* ---------- 회의실 ---------- */
.rm-scale { display: flex; margin-bottom: 6px; }
.rm-name-col { width: 150px; flex: none; padding-right: 14px; }
.rm-scale-track { flex: 1; position: relative; height: 18px; }
.rm-scale-track span { position: absolute; transform: translateX(-50%); font-size: 10.5px; color: var(--txt3); }
.rm-row { display: flex; align-items: center; margin-bottom: 10px; }
.rm-nm { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.rm-sub { font-size: 11.5px; color: var(--txt3); margin-top: 2px; }
.rm-track { flex: 1; position: relative; height: 52px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; }
.rm-track:hover { border-color: var(--green); }
.rm-grid-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line2); }
.rm-block { position: absolute; top: 4px; bottom: 4px; border-radius: 7px; color: #fff; padding: 5px 8px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); }
.rm-block b { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-block span { font-size: 10px; opacity: .9; white-space: nowrap; }
.rm-block:hover { filter: brightness(.94); }

/* 레일 컴팩트 (메뉴 12개 대응) */
.rail { overflow-y: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-item { padding: 5px 0 4px; font-size: 9.5px; gap: 2px; }
.rail-logo { margin-bottom: 6px; }

@media (max-width: 980px) {
  .panel, .panel-slim { width: 240px; }
  .drawer { display: none; }
  .mail-list { width: 320px; }
}
