:root{color-scheme:light dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--tg-theme-bg-color,#10131a);color:var(--tg-theme-text-color,#f5f7fb)}*{box-sizing:border-box}body,html{min-height:100%;margin:0}.shell,body{min-height:100vh}.shell{display:grid;place-items:center;padding:max(24px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))}.card{width:min(100%,520px);padding:28px;border-radius:28px;background:var(--tg-theme-secondary-bg-color,#1a1f2b);box-shadow:0 16px 50px rgba(0,0,0,.22)}.eyebrow{display:inline-block;margin-bottom:8px;opacity:.72;font-size:.9rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}h1{margin:0 0 12px;font-size:clamp(2rem,7vw,3rem);line-height:1}p{margin:0;line-height:1.6;opacity:.82}.status{border-radius:16px;font-weight:700}.button,.status{margin-top:24px;padding:12px 14px;background:var(--tg-theme-button-color,#2f80ed);color:var(--tg-theme-button-text-color,white)}.button{width:100%;min-height:44px;border:none;border-radius:16px;font:inherit;font-weight:700;cursor:pointer}.button:disabled{opacity:.5;cursor:default}.button-secondary{background:var(--tg-theme-secondary-bg-color,#f1f1f4);color:var(--tg-theme-text-color,#000)}.stack{width:min(100%,520px);display:grid;grid-gap:16px;gap:16px;align-self:start;justify-self:center}.card h2,.status-card .status-title{margin:0 0 10px;font-size:clamp(1.4rem,5.5vw,1.9rem);line-height:1.15}.countdown{margin-top:14px;padding:10px 14px;border-radius:14px;background:var(--tg-theme-bg-color,#10131a);font-weight:700;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.attempts{font-weight:700}.attempts,.late-hint,.score-line{margin-top:12px}.late-hint{padding:10px 14px;border-radius:14px;background:var(--tg-theme-bg-color,#10131a);color:var(--tg-theme-destructive-text-color,#ef5b5b);font-weight:700}.link-button{display:block;margin:16px auto 0;min-height:44px;padding:8px 12px;border:none;background:transparent;color:var(--tg-theme-link-color,var(--tg-theme-button-color,#2f80ed));font:inherit;font-weight:600;cursor:pointer}.tone-success{outline:2px solid color-mix(in srgb,#34c759 60%,transparent)}.tone-warning{outline:2px solid color-mix(in srgb,#ffb340 60%,transparent)}.tone-error{outline:2px solid color-mix(in srgb,var(--tg-theme-destructive-text-color,#ef5b5b) 60%,transparent)}.stepper{display:flex;align-items:center;gap:8px;margin-bottom:16px}.step-dot{width:12px;height:12px;border-radius:50%;background:var(--tg-theme-hint-color,#8b93a5);opacity:.4}.step-dot.active{background:var(--tg-theme-button-color,#2f80ed);opacity:1}.step-label{margin-left:4px;font-size:.9rem;font-weight:700;color:var(--tg-theme-hint-color,#8b93a5)}.step-icon{font-size:3rem;line-height:1;margin-bottom:12px}.preview-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:12px;gap:12px;margin:16px 0}.preview{margin:0}.preview img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:14px;background:var(--tg-theme-bg-color,#10131a)}.preview figcaption{margin-top:6px;text-align:center;font-size:.85rem;font-weight:700;color:var(--tg-theme-hint-color,#8b93a5)}.field{display:grid;grid-gap:6px;gap:6px;margin-top:16px;font-weight:600}.field textarea{width:100%;padding:12px 14px;border:none;border-radius:14px;background:var(--tg-theme-bg-color,#10131a);color:var(--tg-theme-text-color,#f5f7fb);font:inherit;resize:vertical}.radio-group{display:grid;grid-gap:8px;gap:8px;margin-top:16px}.radio-row{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 14px;border-radius:14px;background:var(--tg-theme-bg-color,#10131a);font-weight:600;cursor:pointer}.radio-row input{width:20px;height:20px;accent-color:var(--tg-theme-button-color,#2f80ed)}.score{display:flex;align-items:baseline;gap:4px;margin-bottom:12px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.score-value{font-size:clamp(3rem,12vw,4.5rem);font-weight:800;line-height:1}.score-max{font-size:1.2rem;font-weight:700;color:var(--tg-theme-hint-color,#8b93a5)}.score-passed .score-value{color:#34c759}.score-failed .score-value{color:var(--tg-theme-destructive-text-color,#ef5b5b)}.feedback-list{margin:12px 0 0;padding-left:20px;line-height:1.6}.hint{font-size:.9rem;color:var(--tg-theme-hint-color,#8b93a5)}.error-text,.hint{margin-top:14px;opacity:1}.error-text{color:var(--tg-theme-destructive-text-color,#ef5b5b);font-weight:600}.pay-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:12px;gap:12px;margin-top:16px}.pay-card{display:grid;justify-items:center;grid-gap:8px;gap:8px;min-height:44px;padding:18px 12px;border:2px solid transparent;border-radius:18px;background:var(--tg-theme-bg-color,#10131a);color:var(--tg-theme-text-color,#f5f7fb);font:inherit;cursor:pointer;text-align:center}.pay-card.selected{border-color:var(--tg-theme-button-color,#2f80ed);outline:2px solid color-mix(in srgb,var(--tg-theme-button-color,#2f80ed) 45%,transparent)}.pay-icon{display:grid;place-items:center}.pay-label{font-size:1.05rem;font-weight:800}.pay-subtitle{font-size:.8rem;color:var(--tg-theme-hint-color,#8b93a5)}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.pill{display:inline-block;padding:4px 12px;border-radius:999px;background:var(--tg-theme-button-color,#2f80ed);color:var(--tg-theme-button-text-color,white);font-size:.85rem;font-weight:700;white-space:nowrap}.pill.tone-info{background:var(--tg-theme-hint-color,#8b93a5)}.pill.tone-warning{background:#ffb340;color:#10131a}.pill.tone-error{background:var(--tg-theme-destructive-text-color,#ef5b5b)}.pill.tone-success{background:#34c759;color:#10131a}.kv-grid{display:grid;grid-gap:8px;gap:8px;margin-top:16px}.kv-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.kv-label{color:var(--tg-theme-hint-color,#8b93a5);font-weight:600}.kv-value{font-weight:700;text-align:right}.input{width:100%;padding:12px 14px;border:none;border-radius:14px;background:var(--tg-theme-bg-color,#10131a);color:var(--tg-theme-text-color,#f5f7fb);font:inherit}.field legend{padding:0;font-weight:600}.field fieldset,fieldset.field{border:none;padding:0}.button-row{display:grid;grid-template-columns:1fr 1fr;grid-gap:12px;gap:12px}.button-danger{background:var(--tg-theme-destructive-text-color,#ef5b5b)}.attempt-images{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr));grid-gap:12px;gap:12px;margin-top:12px}.attempt-item,.attempt-preview{min-width:0}.attempt-header{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}.attempt-meta{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:12px}.attempt-field{display:grid;grid-gap:2px;gap:2px}.attempt-field,.attempt-text{min-width:0;overflow-wrap:anywhere}.attempt-text{margin-top:16px}.attempt-text h3{margin:0 0 6px;font-size:.9rem;color:var(--tg-theme-hint-color,#8b93a5)}.attempt-text p{opacity:1}.attempt-criteria{display:grid;grid-gap:6px;gap:6px;margin:0;padding-left:20px}.attempt-criteria li{padding-left:2px}.attempt-criteria li span+span{display:block}.attempt-preview{margin:0;overflow-wrap:anywhere}.image-preview-button{min-height:44px;padding:0;border:0;border-radius:14px;overflow:hidden;cursor:zoom-in}.image-preview-button,.image-preview-button img{display:block;width:100%;background:var(--tg-theme-bg-color,#10131a)}.image-preview-button img{height:280px;object-fit:contain}.image-preview-button:focus-visible{outline:3px solid var(--tg-theme-link-color,#2f80ed);outline-offset:3px}.image-lightbox{position:fixed;z-index:1000;inset:0;display:grid;place-items:center;padding:max(56px,env(safe-area-inset-top)) 16px max(24px,env(safe-area-inset-bottom));background:rgb(0 0 0/.92)}.image-lightbox img{display:block;max-width:min(100%,1200px);max-height:calc(100dvh - 96px);width:auto;height:auto;object-fit:contain;border-radius:12px}.image-lightbox-close{position:fixed;top:max(10px,env(safe-area-inset-top));right:12px;min-height:44px;padding:8px 14px;border:1px solid rgb(255 255 255/.35);border-radius:999px;color:#fff;background:rgb(20 20 20/.8)}.image-lightbox-loading{position:absolute;color:#fff;font-weight:700}.image-details{display:grid;grid-gap:4px;gap:4px;margin-top:8px;font-size:.85rem}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.8rem;word-break:break-all}.list{display:grid;grid-gap:10px;gap:10px;margin-top:16px}.list-item{padding:14px;border-radius:16px;background:var(--tg-theme-bg-color,#10131a)}.parent-navigation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:8px;gap:8px}.parent-subnavigation{margin-top:8px}.child-selector{display:flex;gap:8px;min-width:0;overflow-x:auto;padding:12px 0 4px;scrollbar-width:thin}.child-selector-button{flex:0 0 auto;min-height:44px;padding:8px 16px;border:1px solid var(--tg-theme-section-separator-color,#3b4252);border-radius:999px;background:var(--tg-theme-secondary-bg-color,#1a1f2b);color:var(--tg-theme-text-color,#f5f7fb);font:inherit;font-weight:700}.child-selector-button.active{border-color:var(--tg-theme-button-color,#2f80ed);background:var(--tg-theme-button-color,#2f80ed);color:var(--tg-theme-button-text-color,white)}.parent-navigation-button{min-height:44px;padding:8px;border:1px solid var(--tg-theme-section-separator-color,#3b4252);border-radius:12px;background:var(--tg-theme-secondary-bg-color,#1a1f2b);color:var(--tg-theme-text-color,#f5f7fb);font:inherit;font-size:.8rem;font-weight:700;overflow-wrap:anywhere}.parent-navigation-button.active{border-color:var(--tg-theme-button-color,#2f80ed);background:var(--tg-theme-button-color,#2f80ed);color:var(--tg-theme-button-text-color,white)}.parent-section-heading h2{margin:0;font-size:1.25rem}.schedule-preview{display:grid;grid-gap:6px;gap:6px;margin-top:16px;padding:12px 14px;border-left:3px solid var(--tg-theme-button-color,#2f80ed);background:var(--tg-theme-bg-color,#10131a);font-size:.9rem}.parent-audit,.parent-history{width:min(100%,460px);justify-self:center}.parent-audit{min-width:0}.audit-panel,.history-panel{width:100%;padding:20px}.audit-panel{max-width:100%}.audit-panel .kv-row,.audit-panel .kv-row>*,.audit-panel .list,.audit-panel .list-item{min-width:0;max-width:100%}.audit-panel .kv-row>*{overflow-wrap:anywhere;word-break:break-word}.history-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}.history-grid .kv-row{display:grid;grid-gap:2px;gap:2px;align-items:start}.history-grid .kv-value{text-align:left;overflow-wrap:anywhere}@media (max-width:380px){.history-grid{grid-template-columns:1fr}.audit-panel,.history-panel{padding:16px}.audit-panel .kv-row{align-items:flex-start;flex-direction:column;gap:4px}}.week-label{font-size:.92rem;margin:.5rem 0}.recent-weeks{margin-top:1rem;padding:0 .25rem}.recent-weeks h2{font-size:1rem;margin:0 0 .4rem}.recent-weeks p{color:var(--tg-theme-hint-color,#777);font-size:.85rem}.recent-weeks ul{list-style:none;padding:0;margin:0}.recent-weeks li{display:flex;justify-content:space-between;gap:.5rem;padding:.35rem 0;border-top:1px solid var(--tg-theme-section-separator-color,#ddd);font-size:.85rem}.recent-weeks li span:first-child{white-space:nowrap}.recent-weeks li span:last-child{text-align:right;overflow-wrap:anywhere}