:root{--bg:var(--tg-theme-bg-color,#f6f7f3);--card:var(--tg-theme-secondary-bg-color,#fff);--text:var(--tg-theme-text-color,#24352e);--hint:var(--tg-theme-hint-color,#77827c);--accent:var(--tg-theme-button-color,#37624d);--accent-text:var(--tg-theme-button-text-color,#fff);--link:var(--tg-theme-link-color,#37624d);--line:color-mix(in srgb,var(--hint) 23%,transparent);--soft:color-mix(in srgb,var(--accent) 7%,var(--card));--bad:#ad3d38;--ok:#367151}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;-webkit-text-size-adjust:100%}a{color:var(--link);text-underline-offset:.18em}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 55%,transparent);outline-offset:3px}.wrap{max-width:42rem;margin:0 auto;padding:0 1rem 2.5rem}.wrap.wide{max-width:76rem}.site-header{display:flex;align-items:center;gap:.75rem;padding:1.35rem 0 1.2rem;border-bottom:1px solid var(--line);margin-bottom:1.3rem}.brand{display:flex;align-items:center;gap:.65rem;color:var(--text);text-decoration:none;font-weight:650;letter-spacing:-.02em}.brand svg{width:33px;height:33px;color:var(--accent);flex:none}.header-side{margin-left:auto;font-size:.875rem}.header-side a{text-decoration:none}.back{display:inline-flex;align-items:center;gap:.35rem;text-decoration:none;margin:0 0 1.1rem;font-size:.95rem}.back svg{width:18px;height:18px}h1{font-size:1.65rem;line-height:1.22;letter-spacing:-.035em;margin:0 0 .55rem;font-weight:720}h2{font-size:1.12rem;line-height:1.35;letter-spacing:-.015em;margin:0 0 .85rem}h3{font-size:1rem;margin:1.2rem 0 .65rem}p{margin:0 0 1rem}p:last-child{margin-bottom:0}.sub{color:var(--hint);margin:0 0 1.4rem}.eyebrow{text-transform:uppercase;letter-spacing:.09em;color:var(--hint);font-size:.72rem;font-weight:650;margin-bottom:.5rem}.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:1.2rem;margin-bottom:1rem}.card.soft{background:var(--soft)}.card.flush{padding:0;overflow:hidden}.card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:.8rem}.card-heading h2{margin:0}.card-heading .badge{flex:none}.stack{display:grid;gap:.65rem}.stack>.card{margin:0}.grid{display:grid;gap:1rem}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.section-space{margin-top:1.5rem}.muted,.small{color:var(--hint)}.small{font-size:.875rem}.plain-text{white-space:pre-wrap;overflow-wrap:anywhere}.empty{padding:2rem 1.25rem;text-align:center;color:var(--hint)}.empty h2{color:var(--text)}.rows{display:grid;gap:.6rem}.row{display:flex;justify-content:space-between;align-items:baseline;gap:1.25rem}.row .k{color:var(--hint);flex:0 1 45%}.row .v{text-align:right;overflow-wrap:anywhere;flex:0 1 65%}.row.divider{padding-top:.65rem;margin-top:.1rem;border-top:1px solid var(--line)}.amount{font-variant-numeric:tabular-nums;white-space:nowrap}.big-number{font-size:1.65rem;line-height:1.25;letter-spacing:-.035em;font-weight:650}.stat .small{margin-top:.25rem}.badge{display:inline-flex;align-items:center;gap:.3rem;border:1px solid var(--line);border-radius:100px;padding:.18rem .6rem;font-size:.78rem;line-height:1.4;color:var(--hint);background:var(--bg);font-weight:500}.badge.good{color:var(--ok);background:color-mix(in srgb,var(--ok) 7%,var(--card));border-color:color-mix(in srgb,var(--ok) 22%,transparent)}.badge.pending{color:var(--link);background:var(--soft)}.badges{display:flex;gap:.4rem;flex-wrap:wrap;margin:.65rem 0}.btn,button{display:inline-flex;justify-content:center;align-items:center;gap:.5rem;width:100%;padding:.8rem 1rem;border:1px solid transparent;border-radius:11px;background:var(--accent);color:var(--accent-text);font:inherit;font-weight:600;text-align:center;text-decoration:none;cursor:pointer;line-height:1.4}.btn.secondary,button.secondary{background:transparent;border-color:var(--line);color:var(--link)}.btn.quiet,button.quiet{background:transparent;color:var(--link);border:0;padding:.25rem 0;justify-content:flex-start;width:auto;font-weight:500}.btn.compact,button.compact{width:auto;font-size:.9rem;padding:.6rem .85rem}.btn.danger,button.danger{background:transparent;border-color:var(--line);color:var(--bad)}button:disabled,.btn[aria-disabled=true]{opacity:.55;cursor:default}.actions{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap}.actions>*{flex:1;min-width:9rem}.actions>form{margin:0}.actions .quiet{flex:0 auto;min-width:0}.field{display:block;margin:0 0 1rem}.field:last-child{margin-bottom:0}.q{display:block;font-weight:600;margin-bottom:.4rem}.hint{display:block;color:var(--hint);font-size:.85rem;margin-top:.35rem}.optional{font-weight:400;color:var(--hint);font-size:.875rem}.required-mark{color:var(--hint);font-weight:400}.control,input[type=text],input[type=email],input[type=tel],input[type=url],input[type=number],input[type=date],input[type=datetime-local],textarea,select{width:100%;min-height:45px;padding:.7rem .8rem;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);font:inherit}input::placeholder,textarea::placeholder{color:var(--hint);opacity:.8}textarea{min-height:6rem;resize:vertical}input[type=checkbox],input[type=radio]{accent-color:var(--accent);flex:none;width:1.05rem;height:1.05rem;margin:.25rem 0 0}input[type=file]{display:block;max-width:100%;margin:.65rem 0;font-size:.9rem}input[type=file]::file-selector-button{border:1px solid var(--line);border-radius:8px;padding:.55rem .7rem;color:var(--link);background:var(--bg);margin-right:.6rem;cursor:pointer}.check{display:flex;gap:.65rem;align-items:flex-start;font-weight:400;margin:.75rem 0}.check span{min-width:0}.choice{display:grid;gap:.5rem}.choice .check{border:1px solid var(--line);border-radius:10px;padding:.7rem .8rem;background:var(--bg);margin:0}.form-footer{display:grid;gap:.7rem;margin-top:1.2rem}.notice,.error{border:1px solid var(--line);border-radius:11px;padding:.85rem 1rem;margin-bottom:1rem;background:var(--soft)}.error{color:var(--bad);background:color-mix(in srgb,var(--bad) 6%,var(--card));border-color:color-mix(in srgb,var(--bad) 25%,transparent)}.notice[hidden],.error[hidden],[hidden]{display:none!important}details.fold{background:var(--card);border:1px solid var(--line);border-radius:14px;margin-bottom:.75rem}details.fold>summary{cursor:pointer;font-weight:600;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.1rem}details.fold>summary::-webkit-details-marker{display:none}details.fold>summary::after{content:'⌄';font-size:1.1rem;line-height:1;color:var(--hint);transition:transform .15s}details.fold[open]>summary::after{transform:rotate(180deg)}details.fold>.fold-body{padding:0 1.1rem 1.15rem}details.fold .fold{margin-bottom:.6rem;background:var(--bg);border-radius:10px}details.fold .fold>summary{font-size:.95rem;padding:.8rem .9rem}details.fold .fold>.fold-body{padding:0 .9rem 1rem}.tabs{display:flex;gap:.35rem;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:.7rem;margin-bottom:1.3rem}.tabs a{padding:.45rem .65rem;border-radius:8px;text-decoration:none;font-size:.95rem;color:var(--hint)}.tabs a.active{background:var(--soft);color:var(--link);font-weight:600}.filter-form{display:flex;gap:.65rem;flex-wrap:wrap;align-items:flex-end;margin-bottom:1rem}.filter-form .field{flex:1;min-width:10rem;margin:0}.filter-form .field.search{flex:2;min-width:14rem}.filter-form .q{font-size:.85rem}.filter-form button{width:auto;min-height:47px}.table-scroll{overflow:auto;max-width:100%}table{width:100%;border-collapse:collapse;font-size:.9rem;text-align:left}th{font-size:.78rem;color:var(--hint);font-weight:600;white-space:nowrap}th,td{padding:.85rem 1rem;border-bottom:1px solid var(--line);vertical-align:top}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:var(--soft)}td a.name{font-weight:600;text-decoration:none}td .small{font-size:.8rem}.nowrap{white-space:nowrap}.field-settings th,.field-settings td{padding:.75rem .5rem}.field-settings th:not(:first-child),.field-settings td:not(:first-child){text-align:center;max-width:6rem}.field-settings input{margin:0}.field-settings td:first-child{width:70%}.link-box{display:flex;gap:.5rem;align-items:center}.link-box input{flex:1;min-width:0;font-size:.85rem}.link-box button{width:auto;flex:none}.qr{display:block;width:220px;max-width:100%;margin:1rem auto;padding:.75rem;background:#fff;border-radius:12px}.timeline{display:grid;gap:1rem}.timeline-item{padding-bottom:1rem;border-bottom:1px solid var(--line)}.timeline-item:last-child{padding:0;border:0}.answer{padding:.75rem 0;border-bottom:1px solid var(--line)}.answer:last-child{border:0}.answer .k{color:var(--hint);font-size:.85rem;margin-bottom:.2rem}.answer .v{overflow-wrap:anywhere;white-space:pre-wrap}.preview-bar{background:var(--soft);border:1px solid var(--line);padding:.8rem 1rem;border-radius:11px;margin-bottom:1rem}.site-footer{margin-top:2rem;border-top:1px solid var(--line);padding-top:1rem;display:flex;flex-wrap:wrap;justify-content:space-between;gap:.6rem;font-size:.8rem;color:var(--hint)}.site-footer a{color:var(--hint);text-decoration:none}.text-status{font-size:.85rem;color:var(--hint);min-height:1.3rem;margin-top:.5rem}.text-status.failed{color:var(--bad)}.hero{padding:1rem 0 .5rem}.hero h1{max-width:28rem;font-size:2.15rem}.hero .sub{max-width:32rem}.course-title{font-size:1.25rem}.cohort-description{color:var(--hint);font-size:.95rem}.cohort-card .btn{margin-top:1rem}.admin-heading{display:flex;gap:1rem;align-items:flex-start;justify-content:space-between;margin-bottom:1.25rem}.admin-heading .btn{flex:none}.contact{font-size:.9rem;color:var(--hint);white-space:pre-wrap;overflow-wrap:anywhere;margin-top:1.3rem}.radio-help{font-size:.875rem;color:var(--hint)}.nowrap{white-space:nowrap}.separator{height:1px;background:var(--line);margin:1.1rem 0}.auth-message{font-size:.85rem;color:var(--hint);margin-bottom:1rem}.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-bottom:1rem}.stat-grid .card{margin:0}.students-layout{display:grid;grid-template-columns:1fr 1.5fr;gap:1rem;align-items:start}
@media(max-width:700px){.wrap{padding:0 .9rem 2rem}.site-header{padding:1rem 0;margin-bottom:1.1rem}.grid.two,.grid.three,.students-layout{grid-template-columns:1fr}.admin-heading{flex-wrap:wrap}.admin-heading .btn{width:100%}.card{padding:1rem}.card.flush{padding:0}.hero h1{font-size:1.85rem}h1{font-size:1.5rem}.actions{gap:.5rem}.actions>*{min-width:8rem}.stat-grid{gap:.5rem}.stat-grid .card{padding:.8rem}.stat-grid .small{font-size:.75rem}.stat-grid .big-number{font-size:1.4rem}.field-settings .small{font-size:.75rem}.tabs{gap:0}.tabs a{font-size:.9rem;padding:.45rem .55rem}.row{gap:.8rem}.filter-form .field{min-width:8rem}.filter-form button{width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
