.gm-dialog{width:min(920px,calc(100% - 40px));max-height:88dvh;padding:30px;border:1px solid #dfded6;border-radius:10px;background:#fcfbf8;color:#30322c;box-shadow:0 20px 80px #0003;font:14px/1.6 Pretendard,sans-serif}.gm-dialog::backdrop{background:#24282080}.gm-dialog h2{margin:0;font:400 24px/1.5 'Noto Serif KR',serif}.gm-sub,.gm-status{color:#797b71;font-size:12px}.gm-close{float:right;border:0;background:none;font-size:27px}.gm-tabs{display:flex;gap:6px;margin:24px 0}.gm-dialog button{cursor:pointer}.gm-tabs button,.gm-actions button,.gm-delete{padding:9px 14px;border:1px solid #ddded5;border-radius:4px;background:#fff;font:inherit}.gm-tabs button[aria-selected=true]{background:#6d755f;color:white;border-color:#6d755f}.gm-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-bottom:18px}.gm-table-wrap{overflow:auto;max-height:48dvh}.gm-dialog table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.gm-dialog th{background:#f1f1ec;font-weight:500;white-space:nowrap}.gm-dialog th,.gm-dialog td{padding:13px 12px;border-bottom:1px solid #e4e4dc;vertical-align:top}.gm-dialog td{white-space:pre-wrap;overflow-wrap:anywhere}.gm-actions{align-items:center}.gm-actions .gm-filters{display:flex;gap:14px;margin-right:auto;align-items:center}.gm-filters label{display:flex;align-items:center;gap:8px;font-size:13px;color:#797b71}.gm-filters select{padding:8px 28px 8px 12px;border:1px solid #ddded5;border-radius:4px;background:#fff;color:#30322c;font:inherit}.gm-dialog td.gm-no{width:1%;white-space:nowrap;color:#797b71}
.gm-delete{font-size:12px;color:#925d55;padding:4px 10px}.gm-postcard{width:140px;height:140px;object-fit:contain;background:#fff}.gm-password{display:grid;gap:12px;max-width:400px;margin:20px auto}.gm-password label{margin:0}.gm-status{min-height:20px}.gm-launch{width:100%;margin:0 0 14px;border:1px solid #939981;background:#faf9f5}.gm-dialog .pc-dialog{font-family:inherit}@media(max-width:600px){.gm-dialog{width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:20px 14px}.gm-tabs button{flex:1;padding:10px 4px;font-size:12px}.gm-table-wrap{max-height:65dvh}.gm-dialog th,.gm-dialog td{padding:10px 8px}.gm-dialog h2{font-size:22px}}

/* ===== 하객 관리 창 재디자인: 주문번호 확인 팝업과 같은 연두 종이 + 얇은 선 ===== */
.gm-dialog{background:#bfca9f;border:1px solid #1d2714;border-radius:0;box-shadow:none;color:#1d2714;padding:34px 28px 26px}
.gm-dialog::backdrop{background:#2a2e2566}
.gm-close{position:absolute;top:8px;right:12px;float:none;width:32px;height:32px;padding:0;color:#1d2714;font:24px/1 Arial}
.gm-dialog h2{margin:0;text-align:center;font:italic 30px/1.2 Georgia,serif;color:#1d2714}
.gm-star{margin:18px 0;text-align:center;font-size:15px;line-height:1}
.gm-sub{margin:0 0 22px;padding-bottom:20px;border-bottom:1px solid #1d27143d;text-align:center;font-size:13px;color:#2f3b22}
.gm-status{color:#2f3b22}
.gm-tabs{gap:0;margin:0 0 20px;border-bottom:1px solid #1d27143d}
.gm-dialog .gm-tabs button{flex:1;padding:11px 4px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#44502f;font:13px Pretendard,sans-serif;margin-bottom:-1px}
.gm-dialog .gm-tabs button[aria-selected=true]{background:transparent;color:#1d2714;border-bottom-color:#1d2714;font-weight:600}
.gm-actions{margin-bottom:16px}
.gm-dialog .gm-actions button{padding:8px 14px;border:1px solid #1d2714;border-radius:0;background:transparent;color:#1d2714;font:12.5px Pretendard,sans-serif}
.gm-dialog .gm-actions button:last-of-type:not(:first-child),.gm-dialog .gm-actions button:only-child{background:#000;color:#fff;border-color:#000}
.gm-dialog th{background:transparent;color:#44502f;font-weight:500;border-bottom:1px solid #1d27148a}
.gm-dialog th,.gm-dialog td{border-bottom-color:#1d27143d}
.gm-dialog td.gm-no{color:#44502f}
.gm-filters label{color:#2f3b22}
.gm-filters select{border:0;border-bottom:1px solid #1d2714;border-radius:0;background:transparent;color:#1d2714}
.gm-delete{border:1px solid #1d27148a!important;border-radius:0!important;background:transparent!important;color:#7a2f27}
.gm-postcard{background:#fcfbf8}
.gm-password input{padding:9px 0;border:0;border-bottom:1px solid #1d2714;border-radius:0;background:transparent;color:#1d2714;font:15px Pretendard,sans-serif;outline:none}
.gm-password button{padding:11px 0;border:0;border-radius:0;background:#000;color:#fff;font:500 13px Pretendard,sans-serif}
.gm-password button[type=button]{background:transparent;color:#1d2714;border:1px solid #1d2714}
.gm-launch{border:1px solid #1d2714;background:transparent}

/* 하객 관리: 이름 줄 아래 구분선 제거, 빈 목록 안내 디자인 */
.gm-sub{margin:0 0 22px;padding-bottom:0;border-bottom:0}
.gm-empty{padding:44px 0 36px;text-align:center}
.gm-empty p{margin:0}
.gm-empty-star{font-size:14px;line-height:1;margin-bottom:14px}
.gm-empty-title{font:italic 22px/1.3 Georgia,serif;color:#1d2714;margin-bottom:8px!important}
.gm-empty-sub{font-size:12.5px;color:#44502f}

/* 탭마다 같은 여백, 버튼은 작게 */
.gm-actions{min-height:30px;margin-bottom:16px;align-items:center}
.gm-dialog .gm-actions button{height:28px;padding:0 12px;font:12px Pretendard,sans-serif;line-height:1;white-space:nowrap}
.gm-actions .gm-filters{gap:12px;margin-right:auto}
.gm-filters label{font-size:12px;gap:6px}
.gm-filters select{height:28px;padding:0 22px 0 4px;font-size:12px}
/* 참석 여부 탭의 필터도 한 줄(30px)에 들어가도록 */
.gm-actions{flex-wrap:nowrap;gap:8px}
.gm-actions .gm-filters{flex:1;min-width:0;flex-wrap:nowrap;gap:10px}
.gm-filters label{flex:1;min-width:0;white-space:nowrap}
.gm-filters select{flex:1;min-width:0;width:100%}
.gm-dialog .gm-actions button{flex:none}
.gm-filters label{margin:0}
.gm-filters select{padding:0 14px 0 2px;margin:0;background-position:right 2px center}
.gm-actions .gm-filters{gap:8px}

/* ===== 폰 화면: 표 대신 카드 목록으로 (가로 스크롤 없이) ===== */
@media(max-width:600px){
 .gm-dialog{padding:34px 18px 22px}
 .gm-table-wrap{overflow:visible;max-height:none}
 .gm-dialog table,.gm-dialog tbody{display:block}
 .gm-dialog thead{display:none}
 .gm-dialog tbody tr{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:16px 0;border-bottom:1px solid #1d27143d}
 .gm-dialog td{display:block;padding:0;border:0}
 .gm-dialog td.gm-no{order:0;width:auto;font-size:12px;color:#44502f}
 .gm-dialog td.gm-name{order:1;flex:1;min-width:0;font-weight:600;font-size:14px}
 .gm-dialog td.gm-date{order:2;font-size:11px;color:#44502f;white-space:nowrap}
 .gm-dialog td.gm-body{order:3;flex-basis:100%;font-size:13.5px;line-height:1.75}
 .gm-dialog td.gm-meta{order:3;font-size:12.5px;white-space:nowrap}
 .gm-dialog td.gm-meta+td.gm-meta::before{content:'·';margin:0 10px 0 0}
 .gm-dialog td.gm-del{order:4;margin-left:auto}
 .gm-postcard{width:100%;max-width:260px;height:auto;aspect-ratio:1/1}
 .gm-delete{padding:5px 12px!important;font-size:12px}
}
@media(max-width:600px){
 .gm-dialog tbody tr:has(.gm-meta)::after{content:'';order:2;flex-basis:100%;height:0}
 .gm-dialog td.gm-meta{padding-left:0}
 .gm-dialog td.gm-meta:first-of-type{margin-left:0}
}

.gm-dialog td.gm-note{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
@media(max-width:600px){.gm-dialog td.gm-note{order:4;flex-basis:100%;color:#44502f}.gm-dialog td.gm-note:empty,.gm-dialog td.gm-body:empty{display:none}}

/* Keep the management shell stable; only its content list scrolls. */
html.gm-scroll-locked{overflow:hidden!important;overscroll-behavior:none}
html body dialog.gm-management[open]{height:88dvh!important;max-height:88dvh!important;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden!important}
html body dialog.gm-management> :not(.gm-table-wrap){flex:none}
html body dialog.gm-management>.gm-table-wrap{flex:1 1 auto;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
@media(max-width:760px){html body dialog.gm-management[open]{height:92dvh!important;max-height:92dvh!important}}
@media(max-width:760px){
 html body dialog.gm-management.gm-management-collaboration[open]{
  position:fixed!important;inset:0!important;margin:auto!important;
  width:calc(100% - 28px)!important;max-width:none!important;
 }
}

/* Counts and usage stay above the independently scrolling guest list. */
.gm-management .gm-summary{margin:0 0 18px}
.gm-management .gm-summary[hidden]{display:none}
.gm-management .gm-count{display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding:4px 0 12px}
.gm-management .gm-count>span,.gm-management .gm-usage-heading>span{font-size:13px}
.gm-management .gm-count>strong{font-size:25px;font-weight:400;line-height:1.3}
.gm-management .gm-usage-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}
.gm-management .gm-usage-heading>strong{font-size:19px;font-weight:400;white-space:nowrap}
.gm-management .gm-usage-track{height:5px;background:#1d27141a}
.gm-management .gm-usage-fill{display:block;height:100%;background:#1d2714}
.gm-management .gm-remaining{margin:8px 0 0;text-align:right;font-size:12px;color:#44502f}
.gm-management .gm-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:4px 0 12px}
.gm-management .gm-total{min-width:0;text-align:center}
.gm-management .gm-total+.gm-total{border-left:1px solid #1d27143d}
.gm-management .gm-total-label{display:block;margin-bottom:7px;font-size:12px;color:#44502f}
.gm-management .gm-total-value{display:block;font-size:23px;line-height:1.3;font-weight:400;white-space:nowrap}
.gm-management .gm-total-people{display:block;margin-top:5px;font-size:12px;color:#44502f}
@media(max-width:600px){.gm-management .gm-total-value{font-size:20px}.gm-management .gm-summary{margin-bottom:14px}}

.gm-management .gm-actions:has(.gm-reset){flex-wrap:wrap}
.gm-management .gm-table-wrap{scrollbar-width:thin;scrollbar-color:#74825b #1d271414;scrollbar-gutter:stable}
.gm-management .gm-table-wrap::-webkit-scrollbar{width:6px;height:6px}
.gm-management .gm-table-wrap::-webkit-scrollbar-track{background:#1d271414}
.gm-management .gm-table-wrap::-webkit-scrollbar-thumb{background:#74825b;border-radius:6px}
.gm-management .gm-table-wrap::-webkit-scrollbar-button{display:none}
.gm-management .gm-table-wrap thead th{position:sticky;top:0;z-index:2;background:#bfca9f;box-shadow:inset 0 -1px #1d27143d}
.gm-management .gm-rsvp-table .gm-side{white-space:nowrap}
.gm-management .gm-rsvp-table td.gm-date{white-space:pre-line}
@media(min-width:601px){.gm-management .gm-rsvp-table .gm-side{min-width:82px}.gm-management .gm-rsvp-table .gm-date{min-width:140px}}

/* Open the selected postcard over the management list. */
html body .gm-management .gm-postcard-toggle{display:block;max-width:100%;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;outline:none;line-height:0;-webkit-tap-highlight-color:transparent}
html body .gm-management .gm-postcard-toggle{width:fit-content;cursor:zoom-in}
html body .gm-management .gm-postcard-toggle .gm-postcard{display:block}
html body .gm-management .gm-postcard-toggle:focus-visible{opacity:.8}
html body dialog.gm-postcard-viewer:not(#gm-photo-a):not(#gm-photo-b):not(#gm-photo-c){position:fixed;inset:0;width:fit-content;height:fit-content;max-width:min(640px,calc(100vw - 36px));max-height:min(560px,calc(100dvh - 48px));margin:auto;padding:0;border:0!important;border-radius:0!important;background:transparent;box-shadow:none;overflow:visible;transform:none;animation:none}
.gm-postcard-viewer::backdrop{background:#182014b3}
html body .gm-postcard-viewer .gm-postcard-zoom-canvas{display:block;width:auto;height:auto;max-width:min(640px,calc(100vw - 36px));max-height:min(560px,calc(100dvh - 48px));background:#fcfbf8}
html body .gm-postcard-viewer .gm-postcard-close{position:absolute;top:6px;right:6px;width:32px;height:32px;margin:0;padding:0;border:0;border-radius:0;background:#fcfbf8d9;color:#1d2714;font:24px/1 Arial,sans-serif;cursor:pointer;outline:none;box-shadow:none;text-decoration:none;-webkit-tap-highlight-color:transparent}
html body .gm-postcard-viewer .gm-postcard-close:focus-visible{opacity:.7}

/* Meal fields stay readable in the existing desktop table and mobile cards. */
.gm-management .gm-rsvp-table :is(.gm-meal-state,.gm-meal-count){white-space:nowrap}
.gm-management-readonly table{table-layout:auto}
@media(min-width:601px){.gm-management .gm-rsvp-table{min-width:1000px}}
@media(max-width:600px){.gm-management .gm-rsvp-table td.gm-meal-state::before{content:"· 식사 여부 "}.gm-management .gm-rsvp-table td.gm-meal-count::before{content:"· 식사 인원 "}}
