/* The private corner of the paper notebook. All custom rules are scoped to this view. */
.tg-page { display:grid; gap:1rem; min-width:0; width:100%; max-width:45rem; margin-inline:auto; }
.tg-page .tg-card { display:grid; align-content:start; gap:.55rem; min-width:0; }
.tg-page .tg-h2 { font-size:clamp(1.3rem,3.8vw,1.65rem); letter-spacing:-.025em; }
.tg-page .tg-kicker { letter-spacing:.11em; }
.tg-page .tg-note,.tg-page .tg-caption { color:var(--muted); }
.tg-page .tg-note { margin:0; font-size:.92rem; line-height:1.6; overflow-wrap:anywhere; }
.tg-page .tg-seats { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:.3rem; padding:1rem .5rem; margin:.15rem 0 .22rem; border:1px solid #d4dfcc; border-radius:15px; background:linear-gradient(120deg,#e8efdf,#f1f2e5); }
.tg-page .tg-seat { min-width:0; display:grid; align-content:center; justify-items:center; text-align:center; gap:.2rem; }
.tg-page .tg-seal { display:grid; place-items:center; width:3rem; height:3rem; margin-bottom:.15rem; border-radius:49% 47% 51% 48%; color:#fffefa; background:var(--pine); font:700 1.32rem/1 var(--serif); }
.tg-page .tg-seal-b { background:#945f48; }
.tg-page .tg-seal-empty { background:transparent; border:1px dashed #879a7d; color:#53674b; }
.tg-page .tg-name { max-width:100%; overflow-wrap:anywhere; line-height:1.35; }
.tg-page .tg-caption { font-size:.8rem; }
.tg-page .tg-stitch { color:#7f9678; font:bold 1.3rem/1 ui-serif,serif; letter-spacing:.08em; }
.tg-page .tg-week-strip { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:.3rem; margin:.25rem 0; }
.tg-page .tg-week-strip span { display:grid; place-items:center; min-height:2.12rem; border-radius:9px; color:var(--muted); background:#eff2e8; font-size:.92rem; font-weight:600; }
.tg-page .tg-week-strip .tg-day-on { color:#fffef8; background:var(--pine); }
.tg-page .tg-tags,.tg-page .tg-buttons,.tg-page .tg-date-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.4rem .65rem; }
.tg-page .tg-badge { display:inline-flex; align-self:start; justify-self:start; width:fit-content; padding:.18rem .64rem; border-radius:99px; color:var(--pine); background:var(--tint); font-size:.8rem; font-weight:700; }
.tg-page .tg-badge.tg-amber { color:#804a30; background:#f4e8da; }
.tg-page .tg-btn { min-height:46px; }
.tg-page .tg-detail { min-width:0; border-top:1px solid var(--line); }
.tg-page .tg-summary { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.65rem .15rem; min-height:50px; list-style:none; text-align:start; }
.tg-page .tg-summary::-webkit-details-marker { display:none; }
.tg-page .tg-summary::marker { content:''; }
.tg-page .tg-summary-text { display:grid; gap:.13rem; min-width:0; }
.tg-page .tg-summary-text strong { color:var(--ink); font-size:1.02rem; }
.tg-page .tg-summary-text small,.tg-page .tg-toggle small { color:var(--muted); font-size:.85rem; font-weight:400; line-height:1.5; overflow-wrap:anywhere; }
.tg-page .tg-caret { width:.55rem; height:.55rem; flex:none; border-right:2px solid var(--pine); border-bottom:2px solid var(--pine); transform:rotate(45deg); margin-right:.3rem; }
.tg-page .tg-detail[open] > .tg-summary .tg-caret { transform:rotate(225deg); }
.tg-page .tg-body,.tg-page .tg-lock,.tg-page .tg-day-draft,.tg-page .tg-slots,.tg-page .tg-mail-list { display:grid; gap:.75rem; min-width:0; }
.tg-page .tg-body { padding:.15rem .05rem .65rem; }
.tg-page .tg-body > .tg-detail { border-radius:10px; border:1px solid var(--line); padding-inline:.72rem; }
.tg-page .tg-lock { border:0; margin:0; padding:0; width:100%; }
.tg-page .tg-form { min-width:0; margin:0; }
.tg-page .tg-form :disabled { opacity:.7; }
.tg-page .tg-field { display:grid; gap:.28rem; min-width:0; }
.tg-page .tg-field-name { color:var(--ink); font-size:.94rem; font-weight:650; }
.tg-page .tg-input { display:block; width:100%; min-width:0; max-width:100%; min-height:46px; font-size:max(16px,1rem); }
.tg-page input[type=date],.tg-page input[type=time],.tg-page .tg-midnight { font-variant-numeric:tabular-nums; }
.tg-page .tg-subpanel,.tg-page .tg-ticket,.tg-page .tg-confirm { display:grid; gap:.55rem; min-width:0; padding:.84rem; border:1px solid var(--line); border-radius:13px; }
.tg-page .tg-subpanel { background:#f5f6ed; }
.tg-page .tg-ticket { background:#edf2e5; border-color:#d1ddc7; }
.tg-page .tg-ticket .tg-badge { background:#dde7d3; }
.tg-page .tg-confirm { background:#fcf1e6; border-color:#dfc6b1; }
.tg-page .tg-date-title { font-size:1.12rem; font-variant-numeric:tabular-nums; }
.tg-page .tg-slot { min-width:0; border-radius:12px; background:#f0f3ea; border:1px solid #dce3d3; padding:0 .75rem .2rem; }
.tg-page .tg-slot-head { display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.tg-page .tg-slot-no { color:var(--pine); font-size:.88rem; letter-spacing:.05em; }
.tg-page .tg-slot-head .tg-btn { color:var(--clay); padding-inline:.55rem; font-size:.9rem; }
.tg-page .tg-time-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; }
.tg-page .tg-midnight { display:flex; align-items:center; min-height:46px; padding:.55rem .72rem; border:1px dashed #a6b39c; border-radius:10px; color:var(--pine); background:#f9fbf6; }
.tg-page .tg-check { min-height:44px; display:flex; gap:.48rem; align-items:center; font-size:.89rem; color:var(--muted); cursor:pointer; }
.tg-page .tg-check input { width:1.1rem; height:1.1rem; flex:none; margin:0; }
.tg-page .tg-date-actions > .primary { flex:1 1 10rem; }
.tg-page .tg-date-actions > .quiet { flex:1 1 auto; }
.tg-page .tg-toggle { display:flex; align-items:center; gap:.8rem; justify-content:space-between; min-height:50px; padding:.36rem 0 .6rem; border-bottom:1px solid var(--line); cursor:pointer; }
.tg-page .tg-toggle > span { display:grid; gap:.14rem; }
.tg-page .tg-switch { appearance:none; -webkit-appearance:none; display:inline-flex; align-items:center; flex:none; margin:0; width:2.65rem; height:1.6rem; border-radius:1rem; border:1px solid #94a38c; background:#c0c7b8; cursor:pointer; }
.tg-page .tg-switch::before { content:''; display:block; width:1.15rem; height:1.15rem; margin-left:.15rem; border-radius:50%; border:1px solid #84917e; background:var(--surface); }
.tg-page .tg-switch:checked { background:var(--pine); border-color:var(--pine); }
.tg-page .tg-switch:checked::before { transform:translateX(.98rem); border-color:#e4ebdb; }
.tg-page .tg-status { margin-top:.65rem; padding:.55rem .7rem; border-radius:8px; background:var(--tint); color:var(--pine); font-size:.88rem; overflow-wrap:anywhere; }
.tg-page .tg-status:empty { display:none; }
.tg-page .tg-error { background:#f7e9df; color:#843e28; border-left:3px solid var(--clay); }
.tg-page .tg-mail { display:grid; gap:.3rem; min-width:0; border-bottom:1px solid var(--line); padding-bottom:.7rem; }
.tg-page .tg-mail h3 { font-size:1.04rem; }
.tg-page .tg-mail-body { white-space:pre-line; overflow-wrap:anywhere; }
.tg-page .tg-steps { display:grid; gap:.65rem; margin:0; padding-left:1.4rem; color:var(--muted); }
.tg-page .tg-link { display:inline-block; min-height:44px; padding-block:.58rem; color:var(--pine); font-weight:650; overflow-wrap:anywhere; }
.tg-page .tg-save { width:100%; }
.tg-page :is(button,summary,a,input,select) { scroll-margin-block:1.25rem 6rem; }
@media (max-width:22rem) { .tg-page .tg-body > .tg-detail { padding-inline:.5rem; } .tg-page .tg-time-pair { gap:.35rem; } .tg-page .tg-slot { padding-inline:.5rem; } }
@media (forced-colors:active) { .tg-page .tg-switch { appearance:auto; } .tg-page .tg-switch::before { display:none; } .tg-page .tg-week-strip .tg-day-on { border:2px solid Highlight; } }
