:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#342c24;background:#f5efe6;color-scheme:light}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
.wrap{width:min(100% - 32px,760px);margin:auto}
header{background:#fffcf6;border-bottom:1px solid #e3d6c6}
.heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 0 18px}
.congregation{margin:0;color:#735942;font-weight:750;font-size:.875rem}
h1{font-size:clamp(1.75rem,6vw,2.35rem);margin:4px 0 0;letter-spacing:-.035em}
main{padding:20px 0 max(36px,env(safe-area-inset-bottom))}
.card{background:#fffdf8;border:1px solid #e2d3c0;border-radius:15px;overflow:hidden}
form.card{max-width:440px;padding:20px;display:grid;gap:12px}
h2{font-size:1.25rem;margin:0}
nav{display:grid;grid-template-columns:52px 1fr 52px;gap:8px}
button,input{font:inherit;min-height:46px;border:1px solid #cbb39a;border-radius:10px;background:#fffdf8;color:inherit;padding:8px 12px}
button{font-weight:720;cursor:pointer}
button:focus-visible,input:focus-visible{outline:3px solid #a26b46;outline-offset:2px}
button:disabled{opacity:.55;cursor:default}
.primary{background:#735139;color:white;border-color:#735139}
#previous,#next{font-size:1.55rem;line-height:1}
#range{font-weight:740}
#status{color:#735942}
#status:empty,#range:empty{display:none}
main.wrap {width:min(100% - 24px,1200px)}
.viewer-areas {grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:14px}
.viewer-areas button {padding-inline:5px;font-size:clamp(.78rem,3.4vw,1rem)}
.viewer-areas [aria-pressed="true"] {background:#735139;border-color:#735139;color:#fff}
.schedule {display:grid;gap:16px;min-width:0}
.sheet-canvas table {width:100%;border-collapse:collapse}
.s140-sheet {border:3px solid #161616;font-family:Arial,sans-serif;min-width:700px;table-layout:fixed;font-size:clamp(.875rem,1.65vw,1.12rem)}
.s140-sheet td {border:1px solid #222;padding:3px 4px;line-height:1.23}
.s140-sheet .col-time {width:8%}
.s140-sheet .col-dot {width:2%}
.s140-sheet .col-title {width:42%}
.s140-sheet .col-role {width:13%}
.s140-sheet .col-name {width:35%}
.s140-sheet .head td:first-child {font-weight:750}
.s140-sheet .head td:nth-child(2),.s140-sheet .normal td:nth-child(4) {
 white-space:nowrap;text-align:right;font-weight:700;color:#53585a;font-size:.81em
}
.s140-sheet .normal td:first-child {white-space:nowrap;text-align:center}
.s140-sheet .normal td:nth-child(2) {color:#626b70;text-align:center;padding-inline:1px}
.s140-sheet .sheet-spacer td {height:.65em;padding:0}
.s140-sheet :is(.treasures,.ministry,.living) td:first-child {font-weight:750;color:white}
.s140-sheet .treasures td:first-child {background:#5d686d}
.s140-sheet .ministry td:first-child {background:#986514}
.s140-sheet .living td:first-child {background:#97162a}
.s140-sheet .convention td {height:9em;text-align:center;font-weight:750;background:#f4eee3}
.weekend-sheet {min-width:850px;font:clamp(.88rem,1.65vw,1.12rem) Georgia,serif}
.weekend-sheet h2 {color:#a53122;font-size:1.08em;font-weight:400;margin:0 0 3px}
.weekend-grid {table-layout:fixed}
.weekend-grid td {border:1px solid #161616;padding:5px 6px;vertical-align:middle}
.weekend-grid .weekend-duty {width:15%}
.weekend-grid .weekend-duty-name {width:14%}
.weekend-grid .weekend-gap {width:2.6%}
.weekend-grid .weekend-talk-label {width:10.5%}
.weekend-grid .weekend-speaker {width:20%}
.weekend-grid .weekend-congregation {width:16.8%}
.weekend-grid .weekend-lunch {width:18.5%}
.weekend-grid .weekend-separator {border-top:0;border-bottom:0;background:white;padding:0}
.weekend-top,.weekend-bottom {background:#ebebeb}
.weekend-middle {height:4.4em}
.weekend-grid .center {text-align:center;font-family:Arial,sans-serif}
.weekend-grid .lunch-value {background:white}
.weekend-grid .talk-title {font-weight:750}
.technical-sheet {font-size:clamp(.77rem,2.4vw,1.07rem);border-bottom:2px solid #293241}
.technical-sheet td {padding:5px 8px;border:1px solid #c6ced7;font-weight:700}
.technical-sheet tr:not([class]) td:first-child {width:4%;text-align:center;padding-inline:3px}
.technical-sheet tr:not([class]) td:nth-child(2) {width:35%}
.technical-date {background:#f1f5f7;color:#374456}
.technical-date td:last-child {text-align:right}
.technical-title {background:#891d2d;color:#fff}
.technical-sheet.weekend .technical-title {background:#585d63}
.technical-sheet {min-width:360px}
.technical-sheet .technical-date td:last-child {white-space:nowrap}
 .sheet-preview {position:relative;min-width:0;background:white;padding:6px;border:1px solid #ded6cb;border-radius:12px;cursor:zoom-in}
.sheet-frame {width:100%;overflow:hidden}
.sheet-canvas {background:white;color:#171717}
.sheet-magnify {
 position:absolute;right:11px;bottom:11px;min-height:44px;
 background:#262b32ed;border:0;color:white;border-radius:999px;
}
#sheetDialog {
 position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;
 margin:0;padding:0;border:0;background:#f5efe6;
}
#sheetDialog[open] {display:flex;flex-direction:column}
.sheet-dialog-bar {
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 padding:8px 12px;background:#fffdf8;border-bottom:1px solid #ded6cb
}
#sheetDetail {flex:1;min-height:0;overflow:auto;padding:8px}
