/* Revery Time Capsule · implementation of the approved champagne-silver concept.
   Capsule surfaces sample the original approved image as a sprite atlas; all task labels and states stay live. */
.tc-app{--tc-ink:#dbd2c5;--tc-muted:#9b9185;--tc-safe-top:var(--rv-native-safe-top,env(safe-area-inset-top,0px));--tc-safe-bottom:var(--rv-native-safe-bottom,env(safe-area-inset-bottom,0px));--tc-serif:Georgia,"Noto Serif CJK SC","Songti SC","STSong",serif;--tc-board-width:min(70vw,360px);position:fixed;inset:0;z-index:525;overflow-y:auto;overscroll-behavior:contain;background:#332d29;color:var(--tc-ink);font:14px/1.5 var(--tc-serif);color-scheme:dark;isolation:isolate;padding:calc(var(--tc-safe-top) + 18px) 0 calc(var(--tc-safe-bottom) + 24px);box-sizing:border-box}.tc-app *{box-sizing:border-box}.tc-app button,.tc-app input,.tc-app select{font:inherit;color:inherit}.tc-app button{cursor:pointer;-webkit-tap-highlight-color:transparent}.tc-app button:disabled{opacity:.45;cursor:wait}.tc-app button:focus-visible,.tc-app select:focus-visible,.tc-app input:focus-visible{outline:2px solid #d8c5a5;outline-offset:4px}.tc-app .tc-scene{position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 3% 52%,#51433830,transparent 58%),radial-gradient(ellipse at 97% 0%,#17181839,transparent 63%),#332d29}.tc-app .tc-scene:after{content:"";position:absolute;inset:0;opacity:.14;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.76' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.7' d='M0 0h140v140H0z'/%3E%3C/svg%3E")}.tc-app .tc-wall{display:none}.tc-app .tc-header{display:flex;align-items:center;justify-content:space-between;gap:12px;width:calc(100% - 58px);max-width:490px;margin:auto;height:42px;font:400 18px/1.2 var(--tc-serif)}.tc-app .tc-icon{display:grid;place-items:center;flex:none;width:36px;height:42px;margin:0;padding:6px;border:0;background:transparent;box-shadow:none}.tc-app .tc-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}.tc-app .tc-content{width:100%;margin:auto;padding:16px 0 0;text-align:center}.tc-app h1{font:400 clamp(20px,5.05vw,27px)/1.6 var(--tc-serif);letter-spacing:.055em;color:#e3d9ca;margin:0 22px 5px}.tc-app .tc-intro{font:400 clamp(8px,2.25vw,11px)/1.9 var(--tc-serif);letter-spacing:.035em;color:#9d9385;margin:0 auto 20px;max-width:88%;text-align:center}.tc-app .tc-archive{display:flex;align-items:center;gap:10px;width:var(--tc-board-width);min-height:36px;margin:0 auto 23px;padding:8px 12px;text-align:left;border:1px solid #c5b79a28;border-radius:12px;background:linear-gradient(135deg,#d5c4a50b,#ffffff03);box-shadow:inset 0 1px #e0d6c408}.tc-app .tc-archive svg{fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;flex:none}.tc-app .tc-archive-icon{width:18px;height:18px}.tc-app .tc-archive-title{font:400 12px/1.4 var(--tc-serif);letter-spacing:.08em}.tc-app .tc-archive-count{margin-left:auto;font:400 12px/1.4 var(--tc-serif);font-variant-numeric:tabular-nums;letter-spacing:.05em}.tc-app .tc-archive-chevron{width:14px;height:14px;opacity:.8}
/* Geometry is proportional to the approved 626 × 1080 plate. */
.tc-app .tc-board{position:relative;isolation:isolate;width:var(--tc-board-width);aspect-ratio:626/1080;margin:0 auto;padding:0;background:url('/capsule-backing.webp') center/100% 100% no-repeat;border:0;box-shadow:none;filter:drop-shadow(0 11px 10px #0005);text-align:left}.tc-app .tc-board-stamp{position:absolute;top:3.4%;left:10.6%;right:9%;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;color:#625e55;text-shadow:0 1px #e9e3dca8}.tc-app .tc-board-stamp>span:first-child{font:italic 400 clamp(17px,5.1vw,26px)/1 var(--tc-serif);letter-spacing:-.07em}.tc-app .tc-board-stamp>span:last-child{text-align:right;font:400 clamp(5.5px,1.38vw,7.5px)/1.45 -apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:.035em;padding-top:2px}.tc-app .tc-grid{position:absolute;left:6.2%;right:6.2%;top:9.8%;bottom:5.1%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr));column-gap:8.3%;row-gap:.7%}.tc-app .tc-slot{position:relative;display:block;min-width:0;min-height:0;height:100%;margin:0;padding:0;background:transparent;border:0;border-radius:0;color:#453f35;text-align:center;box-shadow:none;overflow:visible}.tc-app .tc-slot:nth-child(2n+1):not(:nth-last-child(-n+2)):after{content:"";position:absolute;left:-2%;top:100%;width:219%;height:1px;background:repeating-linear-gradient(90deg,#e6dfd0c2 0 4px,#7e746446 4px 5px,transparent 5px 7px);box-shadow:0 1px 0 #82796955;pointer-events:none}.tc-app .tc-art{position:absolute;display:block;left:0;right:0;top:0;aspect-ratio:255/104;border-radius:999px;background-image:url('/capsule-material.webp');background-size:352.54902% 1682.69231%;background-position:27.173913% 33.292831%;background-repeat:no-repeat;pointer-events:none}.tc-app .tc-slot:nth-child(3n+2) .tc-art{background-position:73.291925% 42.770352%}.tc-app .tc-slot:nth-child(3n) .tc-art{background-position:27.173913% 52.247874%}.tc-app .tc-slot:is(.completed,.cancelled) .tc-art{background-position:73.291925% 33.292831%}.tc-app .tc-slot:is(.completed,.cancelled):nth-child(6n+1) .tc-art{background-position:27.173913% 42.770352%}.tc-app .tc-slot:is(.completed,.cancelled):nth-child(6n+3) .tc-art{background-position:73.291925% 52.247874%}.tc-app .tc-slot:is(.completed,.cancelled):nth-child(6n+4) .tc-art{background-position:27.173913% 61.907655%}.tc-app .tc-slot:is(.completed,.cancelled):nth-child(6n+5) .tc-art{background-position:27.173913% 71.506683%}.tc-app .tc-slot:is(.completed,.cancelled):nth-child(6n) .tc-art{background-position:73.291925% 71.506683%}.tc-app .tc-slot.empty .tc-art{background-position:27.173913% 81.044957%}.tc-app .tc-slot.paused .tc-art{filter:brightness(.94)}.tc-app .tc-slot-caption{position:absolute;top:calc(100% * .69);left:-4%;right:-4%;display:block;padding:0 1px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:400 clamp(8px,2.45vw,12px)/1.5 var(--tc-serif);letter-spacing:.035em;color:#4b453a;text-shadow:0 1px #ddd7ce55}.tc-app .tc-slot.empty .tc-slot-caption{color:#6d6558}.tc-app .tc-slot.cancelled .tc-slot-caption{opacity:.65;text-decoration:line-through}.tc-app .tc-pill-status,.tc-app .tc-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.tc-app .tc-board-summary{margin:28px auto 0;text-align:center}.tc-app #tcBoardCount{display:block;font:400 16px/1.6 var(--tc-serif);letter-spacing:.09em;color:#ddd2c0;font-variant-numeric:tabular-nums}.tc-app .tc-board-summary p{font:400 10px/1.8 var(--tc-serif);letter-spacing:.1em;color:#9f9482;margin:5px 0 0}.tc-app .tc-status{font:10px/1.8 -apple-system,BlinkMacSystemFont,sans-serif;color:#ab9a86;max-width:var(--tc-board-width);margin:14px auto 0}.tc-app .tc-status:empty{display:none}.tc-app .tc-preferences{width:var(--tc-board-width);margin:18px auto 0;text-align:left;color:#a99b88;font:10px/1.7 -apple-system,BlinkMacSystemFont,sans-serif}.tc-app .tc-preferences>summary{cursor:pointer;text-align:center;font-size:10px;list-style:none}.tc-app .tc-preferences>summary::-webkit-details-marker{display:none}.tc-app .tc-preferences>summary:after{content:'⌄';padding-left:6px}.tc-app .tc-role{display:flex;gap:12px;align-items:center;padding:14px 0}.tc-app .tc-role>span{flex:none}.tc-app .tc-role select{min-width:0;width:100%;padding:7px;border:1px solid #b6a68b33;border-radius:8px;background:#ffffff08;font-size:12px}.tc-app .tc-role option{background:#332d29}.tc-app .tc-auto{display:flex;gap:8px;align-items:center;font-size:10px;text-align:left}.tc-app .tc-auto input{accent-color:#b1a18a}.tc-app .tc-help{display:block;margin:14px auto 0;border:0;background:transparent;padding:6px;text-decoration:underline;font-size:10px}.tc-app .tc-fine{font-size:9px;line-height:1.9;text-align:center;color:#a0927e;margin:10px 0}
.tc-app .tc-dialog{position:fixed;inset:0;margin:auto;border:1px solid #d2c5b2aa;border-radius:22px;background:#e9e1d4f5;color:#4b4237;color-scheme:light;width:min(380px,calc(100vw - 32px));max-height:calc(100dvh - var(--tc-safe-top) - var(--tc-safe-bottom) - 28px);padding:23px;box-shadow:0 24px 80px #0006;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);overflow:auto;font-family:var(--tc-serif)}.tc-app .tc-dialog::backdrop{background:#211b156b;backdrop-filter:blur(6px)}.tc-app .tc-dialog h2{font:400 20px/1.5 var(--tc-serif);margin:0 0 15px;overflow-wrap:anywhere}.tc-app .tc-dialog p{font-size:12px;line-height:1.9}.tc-app .tc-dialog label{display:grid;gap:8px;font-size:11px;margin:14px 0}.tc-app .tc-dialog input{width:100%;border:1px solid #b2a48d;border-radius:11px;background:#fff7;padding:12px;font-size:14px}.tc-app .tc-close,.tc-app .tc-action{border:1px solid #b5a68c80;background:#fff5;border-radius:12px;padding:12px 16px;font-size:12px;min-height:42px}.tc-app .tc-close{width:100%;margin-top:18px}.tc-app .tc-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.tc-app .tc-open-paper{background:#f4ede2;border:1px solid #cec0aa;border-radius:14px;padding:19px 16px;color:#4b4237;animation:tc-open-note .2s ease-out}.tc-app .tc-open-paper small{font-size:10px;color:#9a8468;letter-spacing:.1em}.tc-app .tc-timeline{padding-left:16px;margin:20px 0 0;font-size:10px;line-height:1.8}.tc-app .tc-timeline li{margin:9px 0}.tc-app .tc-timeline time{display:block;opacity:.6}.tc-app .tc-archive-row{display:block;text-align:left;width:100%;margin:10px 0;border:1px solid #b5a68c80;border-radius:12px;padding:14px;background:#fff4}.tc-app .tc-archive-row small{display:block;font-size:10px;margin-top:7px}.tc-app .tc-dialog .tc-archive-board{--tc-board-width:100%;margin-top:16px}.tc-app .tc-guide-list{font-size:12px;line-height:1.9;padding-left:18px}.tc-app .tc-guide-list li{margin:10px 0}@keyframes tc-open-note{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media(min-width:720px){.tc-app{--tc-board-width:340px}.tc-app .tc-content{padding-top:22px}.tc-app .tc-header{font-size:21px}.tc-app .tc-intro{font-size:11px}.tc-app .tc-archive{min-height:42px}.tc-app h1{font-size:26px}.tc-app .tc-art{border-radius:999px}.tc-app .tc-slot-caption{font-size:12px}}@media(max-width:360px){.tc-app .tc-header{width:calc(100% - 40px);font-size:17px}.tc-app .tc-content{padding-top:12px}.tc-app .tc-intro{font-size:8px}.tc-app .tc-archive{padding-inline:10px;gap:8px}.tc-app .tc-archive-title,.tc-app .tc-archive-count{font-size:11px}.tc-app .tc-slot-caption{font-size:8px}.tc-app .tc-board-summary{margin-top:22px}}@media(prefers-reduced-motion:reduce){.tc-app *{animation:none!important;transition:none!important}}
