/* =========================================================================
   휴대폰 전체 메뉴 판 — fragments/menu-sheet.html (2026-11-08)
   px 로 쓴다: 840px 이하에서 html 폰트가 줄어 rem 이 예측이 안 된다.
   ========================================================================= */
.ms, .ms-dim{display:none;}
/* 화면 폭 조건 없이 둔다 — 휴대폰 폭에서만 여는 것은 스크립트가 정한다(공부 화면 '메뉴'는 PC 에서도 연다, 2026-11-08) */
@media all{
    html.ms-open, html.ms-open body{overflow:hidden;}
    .ms-dim:not([hidden]){display:block; position:fixed; inset:0; z-index:1100; background:rgba(0,0,0,.42); opacity:0; transition:opacity .2s;}
    .ms-dim.is-on{opacity:1;}
    .ms:not([hidden]){display:flex; flex-direction:column; position:fixed; left:0; right:0; bottom:0; max-width:480px; margin:0 auto; max-height:calc(100% - 56px); z-index:1101;
        background:#fff; border-radius:20px 20px 0 0; transform:translateY(100%); transition:transform .22s ease-out;
        font-family:'Pretendard Variable',Pretendard,sans-serif; text-align:left; line-height:1.3; padding-bottom:env(safe-area-inset-bottom, 0px);}
    .ms.is-on{transform:none;}
    .ms-handle{width:40px; height:4px; border-radius:2px; background:#d4d4d8; margin:8px auto 2px; flex:none;}
    .ms-hd{flex:none; display:flex; align-items:center; justify-content:space-between; padding:4px 8px 12px 16px; border-bottom:1px solid #f0f0f2;}
    /* 비회원: 로그인·회원가입 단추 두 개 (2026-11-08 사용자 '누를 수 있다는 느낌') */
    .ms-auth{display:flex; gap:8px; flex:1; min-width:0; margin-right:6px;}
    .ms-btn{flex:1; display:flex; align-items:center; justify-content:center; height:46px; border-radius:12px; border:1px solid #d4d4d8;
        background:#fff; color:#111; font-size:15.5px; font-weight:700; text-decoration:none;}
    /* 공부 화면(.qz a 글자색)에서도 흰 글자가 지워지지 않게 한 단계 더 좁혀 쓴다 */
    .ms .ms-auth a.ms-btn{color:#111;}
    .ms .ms-auth a.ms-btn-main{background:#1d1d1f; border-color:#1d1d1f; color:#fff;}
    .ms-btn:active{transform:scale(.98);}
    /* 회원: 이름 + 마이페이지 › */
    .ms-who{flex:1; min-width:0; display:flex; align-items:center; gap:8px; margin-right:6px; padding:0 12px; height:52px; border-radius:12px;
        background:#f4f4f5; font-size:16px; font-weight:600; color:#111; text-decoration:none;}
    .ms-who b{font-weight:800;}
    .ms-who em{margin-left:auto; display:flex; align-items:center; gap:2px; font-style:normal; font-size:14px; font-weight:700; color:#52525b;}
    .ms-who em svg{width:18px; height:18px; stroke:#52525b;}
    .ms-who svg, .ms-x svg{width:26px; height:26px; fill:none; stroke:#111; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round;}
    .ms-x{flex:none; border:0; background:none; width:44px; height:44px; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0;}
    .ms-x svg{width:22px; height:22px; stroke:#444;}
    .ms-sc{overflow:auto; -webkit-overflow-scrolling:touch; padding:4px 16px 16px;}
    .ms .ms-sec{padding:16px 0 4px;}
    .ms h3{font-size:14px; font-weight:700; color:#71717a; margin:0 2px 10px; padding:0; line-height:1.3;}
    /* 한 줄 3칸 큰 칸 (2026-11-08 사용자) */
    .ms-g{display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px;}
    .ms-t{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; height:88px; padding:0 4px; border-radius:14px;
        background:#f4f4f5; color:#111; text-decoration:none; -webkit-tap-highlight-color:transparent; transition:transform .1s;}
    .ms-t:active{transform:scale(.96);}
    .ms-i{display:flex; align-items:center; justify-content:center;}
    .ms-i svg{width:28px; height:28px; fill:none; stroke:#111; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;}
    .ms-hot{background:#fff1e8;}
    .ms-hot .ms-i svg{stroke:#e8590c;}
    .ms-t b{font-size:14px; font-weight:600; letter-spacing:-.02em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; line-height:1.3; color:#111;}
    .ms-t.ms-hot b{color:#c2410c;}
    /* 목록 칸 — 메인 카드 '견적 요청 목록·견적 보내기' 와 같은 남색(2026-11-09) */
    .ms-navy{background:#eef1f6;}
    .ms-navy .ms-i svg{stroke:#2b3a55;}
    .ms-t.ms-navy b{color:#2b3a55;}
    /* 두 칸 목록 줄 — 견적 첫 세 칸 말고 나머지 (2026-11-10 사용자 '섞음') */
    .ms-l2{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px;}
    .ms-l2-gap{margin-top:8px;}
    .ms-r{display:flex; align-items:center; gap:10px; min-height:48px; padding:0 12px; border-radius:12px; background:#f4f4f5; color:#111;
        text-decoration:none; -webkit-tap-highlight-color:transparent; transition:transform .1s; min-width:0;}
    .ms-r:active{transform:scale(.97);}
    .ms-r .ms-i svg{width:22px; height:22px;}
    .ms-r b{font-size:15px; font-weight:600; letter-spacing:-.02em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; line-height:1.3; color:#111;}
    .ms-ft{display:flex; justify-content:center; gap:24px; padding:16px 0 4px; border-top:1px solid #f0f0f2; margin-top:10px;}
    .ms-ft a{font-size:13.5px; color:#52525b; min-height:32px; display:flex; align-items:center; text-decoration:none;}
}
