:root{--green:#183e35;--gold:#b69a68;--cream:#f7f5ef;--red:#7c3034;--ink:#243c34;--line:#deded2;--muted:#69756c}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"PingFang TC","Noto Sans TC",sans-serif;font-size:15px}button,input,select,textarea{font:inherit}button,input,select{min-height:46px}button{border:1px solid #bac3b9;border-radius:7px;padding:10px 18px;background:transparent;color:var(--green);cursor:pointer;font-weight:600;touch-action:manipulation}button:hover{background:#e7ebe3}button:disabled{cursor:default;opacity:.65}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.primary{background:var(--green);border-color:var(--green);color:white}.primary:hover{background:#28584b}.danger{color:var(--red)}.quiet{border:0;font-size:13px}.demo-bar{padding:8px 4%;background:#e9e2d2;color:#65553b;font-size:12px;letter-spacing:.6px;display:flex;justify-content:space-between;gap:15px}header{background:var(--green);color:#fff;padding:30px 4%;display:flex;justify-content:space-between;gap:20px;align-items:center}.brand{display:flex;gap:22px;align-items:center}.monogram{font-family:Georgia,serif;font-size:52px;color:#d2be94;border:1px solid #9e9877;border-radius:50% 50% 0 0;padding:10px 15px}small{font-size:10px;font-weight:600;letter-spacing:2.3px;color:#947a4d}header small{color:#cbb98e}h1{font-family:"Songti TC",serif;font-size:30px;font-weight:500;letter-spacing:3px;margin:8px 0}header p{font-size:13px;color:#d1dbd1;margin:8px 0 0}.header-right{display:flex;flex-direction:column;gap:12px;text-align:right;font-size:12px;color:#c3d0c4}.date-mark{font-family:Georgia,serif;font-size:36px;color:#dfcda7;letter-spacing:3px}nav{display:flex;justify-content:space-between;align-items:center;padding:0 4%;border-bottom:1px solid var(--line);background:#fff}nav button{border:none;border-radius:0;padding:18px 20px}nav button.active{box-shadow:inset 0 -3px var(--gold);color:var(--green)}main{max-width:1380px;margin:auto;padding:28px 4% 60px}h2{font-family:"Songti TC",serif;font-size:29px;font-weight:500;margin:7px 0 0;letter-spacing:2px}h3{font-size:17px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}.actions{display:flex;gap:10px}.overview{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--line);border-radius:10px;margin-bottom:24px}.metric{padding:18px 24px;border-right:1px solid var(--line)}.metric:last-child{border:0}.metric span{font-size:13px;color:var(--muted)}.metric strong{font-family:Georgia,serif;font-weight:400;font-size:32px;display:block;margin-top:7px}.metric em{font:12px sans-serif;color:var(--muted);margin-left:8px}.search-row{display:flex;gap:18px;align-items:end}label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#526157}input,select,textarea{width:100%;border:1px solid #cbd1c5;border-radius:6px;color:var(--ink);background:#fff;padding:10px 12px;min-width:0}input[type=checkbox]{width:22px;height:22px;min-height:22px;accent-color:var(--green);flex-shrink:0}textarea{min-height:85px;resize:vertical}.search-label{flex:1}.search-row>label:last-child{min-width:230px}.list-caption{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted);margin:19px 0}.slot{margin:30px 0 36px}.slot-heading{display:flex;align-items:center;gap:14px;margin-bottom:18px}.slot-heading strong{font-size:30px;color:var(--red);font-variant-numeric:tabular-nums}.slot-heading:after{content:"";height:1px;background:#d7d5c5;flex:1}.slot-heading span{font-size:13px;color:var(--muted)}.group-title{font-size:13px;letter-spacing:1px;display:flex;align-items:center;gap:10px;margin:17px 0 12px}.dot{width:10px;height:10px;border:1px solid #c3bfae;border-radius:50%;display:inline-block;background:white}.dot.ordered{background:#e5ce7e}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.guest-card{border:1px solid #dfe1d6;background:#fff;border-radius:10px;padding:20px;min-width:0;box-shadow:0 3px 10px #183e3504}.guest-card.ordered{background:#fff5d5;border-color:#e9dfbd}.guest-card.cancelled{background:#e9eae7;border-color:#d7d9d4}.card-top{display:flex;justify-content:space-between;align-items:start;gap:10px}.serial{font-size:28px;font-weight:750;color:var(--red);letter-spacing:.4px;font-variant-numeric:tabular-nums}.pill{font-size:11px;border:1px solid #c7cbbf;border-radius:20px;padding:6px 9px;white-space:nowrap}.names{display:flex;gap:20px;margin:16px 0 7px;font-size:21px;flex-wrap:wrap}.names small{font-size:11px;display:block;letter-spacing:0;color:var(--muted);margin-bottom:4px;font-family:sans-serif}.phone{color:var(--muted);font-size:14px;letter-spacing:1px}.contact-controls{display:grid;grid-template-columns:1.3fr 1fr;gap:10px;margin-top:18px}.touch-check{flex-direction:row;align-items:center;min-height:46px;gap:9px;font-size:13px;cursor:pointer}.check-row{display:flex;justify-content:space-between;gap:8px;margin-top:8px;flex-wrap:wrap}.contact-time{font-size:11px;color:var(--muted);margin:3px 0 9px;min-height:17px}.checkin-row{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #d8ddcf;padding-top:15px;gap:12px}.checkin-row .status{font-size:13px}.checked-text{color:#287147;font-weight:700}.status small{display:block;font-size:11px;letter-spacing:0;margin-top:5px;color:var(--muted)}.checked-button{background:#edf4e9;color:#266447;border-color:#a5bca4}.undo{font-size:12px;padding:7px 10px;min-height:44px}details{border-top:1px solid #d8ddcf;margin-top:14px;padding-top:2px}summary{cursor:pointer;min-height:44px;padding:14px 0 8px;color:#5c685e;font-size:13px}details button{margin-top:8px}.empty{text-align:center;padding:60px;color:var(--muted);border:1px dashed #c8cec3}.paper{background:white;border:1px solid var(--line);padding:34px;border-radius:8px}.report-header{border-bottom:2px solid var(--green);padding-bottom:20px;margin-bottom:20px}.report-header h2{font-size:25px}.report-header p{font-size:13px;color:var(--muted);line-height:1.8}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:26px}.stat-item{padding:13px;background:#f5f6f0;border:1px solid #e3e5d9;border-radius:5px}.stat-item span{font-size:12px;display:block;color:var(--muted)}.stat-item strong{font:27px Georgia,serif;display:block;margin-top:6px}table{border-collapse:collapse;width:100%;font-size:13px}th,td{padding:12px 8px;text-align:center;border-bottom:1px solid #deded2}th{background:#edf0e8;color:var(--green);font-weight:600}th:first-child,td:first-child{text-align:left}.report-note{font-size:12px;color:#637060;line-height:1.8;margin-top:20px}.rates{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:22px 0}.rate{border-left:3px solid var(--gold);padding:12px 16px;background:#faf7ef}.rate strong{font:30px Georgia,serif;display:block;margin:6px 0}.settings-box{background:#fff;border:1px solid var(--line);padding:28px;border-radius:9px;max-width:880px}.settings-box p{line-height:1.8;font-size:14px}.notice{background:#f5f0e4;padding:13px;color:#6b5a37}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.full{grid-column:1/-1}hr{border:0;border-top:1px solid var(--line);margin:28px 0}footer{padding:20px 4%;border-top:1px solid var(--line);font-size:10px;letter-spacing:2px;color:var(--muted);display:flex;justify-content:space-between}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--green);color:white;padding:14px 24px;border-radius:7px;box-shadow:0 8px 25px #0002;z-index:10;max-width:90%;display:none}dialog{border:1px solid #d6d8ca;border-radius:12px;padding:28px;max-width:580px;width:calc(100% - 40px);color:var(--ink);max-height:90vh}dialog::backdrop{background:#152c26aa}dialog h2{margin:0 0 15px}dialog p{line-height:1.8;font-size:14px}dialog .actions{justify-content:flex-end;margin-top:20px}.error{color:var(--red);min-height:22px;margin-top:10px}.print-only{display:none}[hidden]{display:none!important}@media(max-width:850px){header{padding:22px 4%}.header-right{display:none}nav{padding:0 2%}nav button{padding:15px 12px}.guest-card{padding:16px}.serial{font-size:28px}.contact-controls{grid-template-columns:1fr}.names{gap:12px}}@media(max-width:640px){.cards{grid-template-columns:1fr}.section-heading{align-items:start;flex-direction:column}.search-row{flex-direction:column;align-items:stretch}.overview{grid-template-columns:1fr 1fr}.metric{padding:14px}.stat-grid{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.list-caption{flex-direction:column}nav{flex-wrap:wrap}.paper{padding:16px}.brand{gap:12px}h1{font-size:25px}.monogram{font-size:35px}.rates{grid-template-columns:1fr}table{font-size:11px}th,td{padding:8px 3px}}@page{size:A4 portrait;margin:12mm}

@media screen{body.print-preview{background:#e5e7e2}body.print-preview main{padding:80px 0 25px!important}body.print-preview .paper{width:210mm;min-height:297mm;padding:12mm!important;margin:auto;box-shadow:0 5px 25px #0002}body.print-preview #preview-controls{display:flex!important;position:fixed;top:0;left:0;right:0;z-index:5;padding:10px 20px;gap:12px;align-items:center;background:#fff;border-bottom:1px solid #ccc}body.print-preview #preview-controls span{margin-right:auto}body.print-preview #preview-controls button{display:block!important}}

/* Report-only hierarchy; guest desk styles are unchanged. */
.report-section{padding:16px 18px;margin:0 0 12px;border:1px solid #bbc5b9;border-radius:7px;break-inside:avoid}.report-section h3{margin:0 0 12px;font-size:17px;letter-spacing:1px}.report-section .stat-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin:0;gap:10px}.report-section .stat-item{background:transparent;border:none;padding:4px 10px;border-left:1px solid currentColor;border-radius:0}.report-section.registration{background:#183e35;color:#fff}.registration .stat-item span{color:#e9eee7}.report-section.contact{background:#f5ecda}.report-section.onsite{background:#e9f1e6}.report-section .stat-item strong{font-size:30px}.report-section .stat-item span{font-size:14px}.slot-stats{font-size:17px}.slot-stats th,.slot-stats td{padding:13px 8px}.slot-stats tbody td:first-child{color:#7c3034;font-weight:800;font-size:19px}.slot-stats .total-row{font-weight:800;border-top:2px solid #183e35;background:#f1f2ec}.slot-stats th{white-space:nowrap}@media(max-width:640px){.slot-stats{font-size:11px}.slot-stats th,.slot-stats td{padding:8px 3px}.slot-stats tbody td:first-child{font-size:13px}.report-section{padding:12px}.report-section .stat-item{padding:4px}.report-section .stat-item span{font-size:12px}}

.warn-text{color:#7c3034;font-weight:700}.event-list{display:flex;flex-direction:column;gap:10px;margin:10px 0}.event-list button{text-align:left}#scan-video{width:100%;max-height:50vh;border-radius:8px;background:#000;margin:6px 0 10px;object-fit:cover}#event-extra ul{font-size:13px;line-height:1.8;color:#7c3034}
/* ---- 精簡列表（2026-12-03） ---- */
.slot-bar{position:sticky;top:0;z-index:6;display:flex;gap:8px;overflow-x:auto;padding:10px 0;margin-top:14px;background:var(--cream);border-bottom:1px solid var(--line);-webkit-overflow-scrolling:touch;scrollbar-width:none}
.slot-bar::-webkit-scrollbar{display:none}
.slot-chip{flex:0 0 auto;min-height:44px;padding:6px 14px;border-radius:22px;background:#fff;border:1px solid #cfd5c9;display:flex;align-items:baseline;gap:6px;white-space:nowrap}
.slot-chip b{color:var(--red);font-size:19px;font-variant-numeric:tabular-nums}
.slot-chip em{font-style:normal;font-size:12px;color:var(--muted);font-weight:600}
.slot-chip.active{background:var(--green);border-color:var(--green)}
.slot-chip.active b{color:#f0d9a8}.slot-chip.active em{color:#d6e0d6}
.slot{margin:16px 0 22px;scroll-margin-top:70px}
.slot-heading{margin-bottom:8px}
.group-title{margin:10px 0 6px}
.rows{display:flex;flex-direction:column;gap:6px}
.guest-row{position:relative;padding:7px 58px 7px 14px;border-radius:8px;box-shadow:none}
.guest-row .row-main{display:grid;grid-template-columns:118px minmax(0,1fr) 172px auto auto 108px;gap:12px;align-items:center}
.guest-row .serial{font-size:24px;line-height:1.1}
.row-names{font-size:17px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row-names i{font-style:normal;color:#a7a99c;margin:0 6px;font-size:13px}
.row-phone{display:block;font-size:12px;color:var(--muted);letter-spacing:.8px;margin-top:2px;white-space:normal}
.row-contact{min-height:42px;padding:6px 8px;font-size:13px}
.mini-check{flex-direction:row;align-items:center;gap:6px;font-size:12px;min-height:42px;white-space:nowrap;cursor:pointer}
.row-checkin button{width:100%;min-height:44px;padding:8px 10px}
.row-checkin .checked-text{display:block;text-align:center;font-size:14px}
.row-checkin small{display:block;font-weight:400;color:var(--muted)}
.guest-row.is-checked{border-left:4px solid #3f8a5d}
.row-more{border:0;margin:0;padding:0}
.row-more summary{position:absolute;right:8px;top:8px;width:42px;height:42px;min-height:0;padding:0;border:1px solid #cfd5c9;border-radius:7px;background:#fff;font-size:0;list-style:none;display:grid;place-items:center;cursor:pointer}
.row-more summary::-webkit-details-marker{display:none}
.row-more summary::after{content:"▾";font-size:15px;color:var(--green)}
.row-more[open] summary::after{content:"▴"}
.row-more.has-note summary::before{content:"";position:absolute;top:5px;right:5px;width:7px;height:7px;border-radius:50%;background:var(--gold)}
.row-detail{display:grid;grid-template-columns:180px 1fr;gap:10px 16px;align-items:end;margin-top:8px;padding-top:10px;border-top:1px dashed #d8ddcf}
.row-detail .full{grid-column:1/-1}
.row-detail textarea{min-height:64px}
.detail-info{font-size:12px;color:var(--muted);line-height:2}
.detail-info .undo{margin-left:8px}
@media(max-width:900px){.guest-row .row-main{grid-template-columns:96px minmax(0,1fr) 150px auto auto 92px;gap:8px}.guest-row .serial{font-size:21px}.row-names{font-size:15px}}
@media(max-width:640px){
 .guest-row{padding:8px 10px}
 .mini-check{min-height:34px}.row-contact{min-height:38px}
 .guest-row .row-main{grid-template-columns:minmax(0,1fr) 104px;grid-template-areas:"serial checkin" "names names" "contact contact" "tk gf";gap:4px 10px;padding-right:48px}
 .guest-row .serial{grid-area:serial;font-size:24px}.row-names{grid-area:names;white-space:normal}.row-contact{grid-area:contact}.mini-check.tk{grid-area:tk}.mini-check.gf{grid-area:gf}.row-checkin{grid-area:checkin}
 .row-more summary{top:10px}
 .row-detail{grid-template-columns:1fr}
 .slot-chip b{font-size:17px}
}
