/* 0.18.0: scoped foundation, no changes to business forms. */
.ttai .ttai-main>#ttai-home:not([hidden]){display:block!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;min-width:0;overflow:visible}
.ttai-super-hero{position:relative;isolation:isolate;background:linear-gradient(110deg,#08458f,#0987e6);border-radius:18px;padding:24px;color:#fff;overflow:hidden;min-height:190px;box-sizing:border-box}
.ttai-super-hero:before{content:"";position:absolute;z-index:-1;inset:0 0 0 40%;background:url('super-school.webp') center/cover no-repeat;opacity:.72;mask-image:linear-gradient(to right,transparent,#000 42%);pointer-events:none}
.ttai-super-brand{display:flex;align-items:center;gap:10px;min-width:0}.ttai-super-brand strong{display:block;font-size:clamp(20px,4vw,28px);font-weight:850;line-height:1.2;color:white}.ttai-super-brand small{display:block;font-size:11px;font-weight:700;color:#e2efff}.ttai-super-mark{display:grid;place-items:center;background:#fff;color:#075bb6;border-radius:15px;flex:0 0 48px;height:48px}
.ttai .ttai-super-hero h2{color:#fff;font-size:clamp(18px,4vw,25px);margin:16px 0 9px;line-height:1.3;overflow-wrap:anywhere;text-shadow:0 1px 4px #003369}
.ttai-super-date{display:flex;align-items:center;gap:7px;position:relative;width:fit-content;max-width:100%;padding:7px 12px;background:#06458f;border:1px solid #87c6f9;border-radius:9px;font-size:14px;font-weight:700;line-height:1.4;box-sizing:border-box;color:#fff}.ttai-super-date time{white-space:normal;overflow-wrap:anywhere}.ttai .ttai-super-year{color:#fff!important;font-size:12px;margin:7px 0 0;text-shadow:0 1px 4px #003369}
.ttai-super-alert{background:#fff;border:1px solid #dbe7f4;border-radius:14px;margin:15px 0;padding:14px 16px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:space-between}.ttai-super-alert strong{color:#b82949}.ttai-super-alert a{color:#0758a8;font-size:13px;font-weight:700}.ttai .ttai-super-alert p{width:100%;margin:0;color:#536984;font-size:13px}
.ttai .ttai-super-title{font-size:17px;color:#194c82;margin:20px 0 12px}.ttai-super-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px}.ttai .ttai-super-tile{box-sizing:border-box;min-width:0;min-height:132px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;padding:13px 8px;text-align:center;border-radius:15px;background:var(--ttai-tile,#eaf3ff);border:1px solid #d4e4f4;color:#16395e;text-decoration:none!important;box-shadow:0 3px 9px #174c7b12}.ttai .ttai-super-tile strong{font-size:13px;line-height:1.25;overflow-wrap:anywhere}.ttai .ttai-super-tile small{font-size:11px;line-height:1.3;color:#516782}.ttai-super-glyph{width:55px;height:55px;display:grid;place-items:center;color:#1765b5}.ttai-super-glyph img{width:100%;height:100%;object-fit:contain;border-radius:12px}.ttai .ttai-super-glyph svg{width:35px;height:35px}.ttai-super-green{--ttai-tile:#e9f8ee}.ttai-super-orange{--ttai-tile:#fff1e1}.ttai-super-purple,.ttai-super-violet{--ttai-tile:#f0e9ff}.ttai-super-pink{--ttai-tile:#ffeaf4}.ttai-super-teal{--ttai-tile:#e5f8f6}.ttai-super-sky{--ttai-tile:#e6f6ff}.ttai .ttai-super-pending{background:#f6f8fb;border-style:dashed;box-shadow:none}.ttai .ttai-super-pending small{font-weight:700;color:#627184}.ttai .ttai-super-tile[href]:hover{border-color:#3992ec;transform:translateY(-1px)}
.ttai .ttai-super-more{margin:20px 0;padding:12px 15px;background:#fff;border:1px solid #d9e7f5;border-radius:12px}.ttai-super-more summary{cursor:pointer;color:#174d85;font-weight:700}.ttai .ttai-super-home>h2,.ttai .ttai-super-home>p:not(.ttai-home-approval-alert),.ttai .ttai-super-home>h3.ttai-group-title{display:none}.ttai-super-home .ttai-home-approval-alert{margin-top:16px}.ttai .ttai-super-lessons details{background:#f7faff;border:1px solid #dce7f3;border-radius:10px;padding:12px;margin:10px 0}.ttai-super-lessons summary{cursor:pointer;display:flex;flex-direction:column;gap:4px}.ttai-super-lessons summary small{color:#506a85;font-size:11px}.ttai-super-lessons summary strong{color:#164c83}.ttai-super-lessons p{margin:12px 0}.ttai-super-guide input[type=search]{margin-top:6px}
@media(max-width:800px){.ttai .ttai-main>#ttai-home:not([hidden]){overflow:visible!important}.ttai-super-hero{padding:calc(16px + env(safe-area-inset-top,0px)) 14px 15px;min-height:0;margin:0 -2px 12px;border-radius:0 0 18px 18px}.ttai-super-hero:before{inset:0 0 0 38%;opacity:.48}.ttai-super-brand small{font-size:10px}.ttai-super-date{font-size:13px;min-height:35px}.ttai-super-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ttai .ttai-super-tile{padding:10px 4px;min-height:108px;gap:5px;border-radius:14px}.ttai .ttai-super-tile strong{font-size:11.5px}.ttai .ttai-super-tile small{font-size:10px}.ttai-super-glyph{width:45px;height:45px}.ttai-super-alert{padding:10px 12px}.ttai-super-bottom a{flex:1!important;min-width:0!important}.ttai .ttai-super-title{font-size:15px}}
@media(max-width:340px){.ttai-super-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.ttai-super-brand strong{font-size:20px}.ttai-super-mark{flex-basis:39px;height:39px}}

/* 0.18.1: body-level viewport call layer, independent of portal scroll/transform. */
body .ttai.ttai-call-overlay-root,body:not(.wp-admin) .ttai.ttai-call-overlay-root{position:fixed!important;inset:0!important;left:0!important;top:0!important;transform:none!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:visible!important;background:transparent!important;box-shadow:none!important;z-index:2147483646!important;pointer-events:none!important;}
.ttai.ttai-call-overlay-root:has(>[data-call-incoming]:not([hidden])),.ttai.ttai-call-overlay-root:has(>[data-call-stage]:not([hidden])){background:rgba(4,18,39,.78)!important;pointer-events:auto!important;}
.ttai.ttai-call-overlay-root>.ttai-call-incoming:not([hidden]),.ttai.ttai-call-overlay-root>.ttai-call-stage:not([hidden]){position:fixed!important;top:50%!important;left:50%!important;bottom:auto!important;right:auto!important;transform:translate(-50%,-50%)!important;margin:0!important;max-height:calc(100dvh - 32px)!important;overflow:auto!important;pointer-events:auto!important;box-shadow:0 16px 60px #04122766!important;overscroll-behavior:contain;}
@media(max-width:670px){.ttai.ttai-call-overlay-root>.ttai-call-incoming:not([hidden]){inset:0!important;transform:none!important;width:100%!important;height:100%!important;max-height:100%!important;max-width:none!important;border:0!important;border-radius:0!important;padding:calc(18px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom))!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;justify-content:safe center;gap:8px;}.ttai.ttai-call-overlay-root .ttai-call-avatar{flex-shrink:0;margin:10px auto!important;}.ttai.ttai-call-overlay-root .ttai-call-answer-actions{width:100%;max-width:410px;margin:12px auto!important;}.ttai.ttai-call-overlay-root .ttai-call-answer-actions button{min-height:56px!important;}.ttai.ttai-call-overlay-root .ttai-call-incoming strong{overflow-wrap:anywhere;}}

/* 0.18.2: native dialog top layer, not an element within the page's scroll context. */
body .ttai.ttai-call-top-layer,body:not(.wp-admin) .ttai.ttai-call-top-layer{box-sizing:border-box!important;max-height:none!important;min-height:0!important;display:block!important;position:fixed!important;inset:0!important;max-width:none!important;width:100vw!important;height:100vh!important;height:100dvh!important;overflow:hidden!important;pointer-events:auto!important;background:rgba(4,18,39,.85)!important;}
body .ttai.ttai-call-top-layer[data-active="0"],body:not(.wp-admin) .ttai.ttai-call-top-layer[data-active="0"]{display:none!important;}
.ttai-call-top-layer::backdrop{background:#06172e;}
body .ttai.ttai-call-top-layer>[hidden]{display:none!important;}
body .ttai.ttai-call-top-layer>.ttai-call-stage:not([hidden]){box-sizing:border-box!important;display:flex!important;flex-direction:column;min-height:0!important;}
@media(max-width:800px){
 body .ttai.ttai-call-top-layer>.ttai-call-stage:not([hidden]){inset:0!important;position:absolute!important;transform:none!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;border-radius:0!important;margin:0!important;padding:calc(10px + env(safe-area-inset-top,0px)) 12px calc(10px + env(safe-area-inset-bottom,0px))!important;gap:6px;overflow:hidden!important;}
 body .ttai.ttai-call-top-layer .ttai-call-stage>[data-call-peer-label],body .ttai.ttai-call-top-layer .ttai-call-stage>[data-call-state]{flex:0 0 auto;margin:0!important;line-height:1.3;font-size:clamp(12px,3.8vw,16px);overflow-wrap:anywhere;}
 body .ttai.ttai-call-top-layer .ttai-call-stage .ttai-call-videos{display:block!important;position:relative;flex:1 1 0;min-height:0!important;margin:0!important;overflow:hidden;border-radius:12px;}
 body .ttai.ttai-call-top-layer .ttai-call-stage .ttai-call-videos video[data-call-remote]{position:absolute;inset:0;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain;}
 body .ttai.ttai-call-top-layer .ttai-call-stage .ttai-call-videos video[data-call-local]:not([hidden]){position:absolute;right:8px;top:8px;width:min(30%,110px)!important;height:30%!important;max-height:130px!important;object-fit:cover;border:1px solid #8ab9eb;z-index:2;}
 body .ttai.ttai-call-top-layer .ttai-call-stage .ttai-call-controls{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px!important;flex:0 0 auto;margin:0!important;}
 body .ttai.ttai-call-top-layer .ttai-call-stage .ttai-call-controls button{min-width:0!important;min-height:42px!important;padding:8px!important;font-size:13px!important;margin:0!important;}
 body .ttai.ttai-call-top-layer .ttai-call-stage .ttai-call-controls [data-call-end]{grid-column:1/-1;}
}
/* Short landscape viewports keep the actions inside the visible call surface. */
@media(max-height:540px) and (orientation:landscape){
 body .ttai.ttai-call-top-layer>.ttai-call-incoming:not([hidden]){inset:0!important;position:absolute!important;transform:none!important;box-sizing:border-box!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;display:flex!important;flex-direction:column;justify-content:center;align-items:center;padding:8px 12px!important;gap:3px!important;border:0!important;border-radius:0!important;overflow:auto!important;}
 body .ttai.ttai-call-top-layer .ttai-call-incoming .ttai-call-avatar{width:46px!important;height:46px!important;min-height:46px!important;margin:0 auto!important;font-size:22px!important;}
 body .ttai.ttai-call-top-layer .ttai-call-incoming strong{margin:2px 0!important;font-size:19px!important;}
 body .ttai.ttai-call-top-layer .ttai-call-incoming .ttai-call-ringing-hint{margin:0!important;font-size:11px!important;}
 body .ttai.ttai-call-top-layer .ttai-call-incoming .ttai-call-answer-actions{margin:3px auto!important;gap:8px!important;}
 body .ttai.ttai-call-top-layer .ttai-call-incoming button{min-height:36px!important;padding:5px 12px!important;margin:0!important;}
 body .ttai.ttai-call-top-layer>.ttai-call-stage:not([hidden]){inset:0!important;position:absolute!important;transform:none!important;box-sizing:border-box!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;border-radius:0!important;margin:0!important;padding:6px 12px!important;gap:4px;overflow:hidden!important;}
 body .ttai.ttai-call-top-layer .ttai-call-stage>[data-call-peer-label],body .ttai.ttai-call-top-layer .ttai-call-stage>[data-call-state]{flex:0 0 auto;margin:0!important;font-size:14px;line-height:1.2;}
 body .ttai.ttai-call-top-layer .ttai-call-stage .ttai-call-videos{display:block!important;position:relative;flex:1 1 0;min-height:0!important;margin:0!important;overflow:hidden;}
 body .ttai.ttai-call-top-layer .ttai-call-stage .ttai-call-videos video[data-call-remote]{position:absolute;inset:0;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain;}
 body .ttai.ttai-call-top-layer .ttai-call-stage .ttai-call-videos video[data-call-local]:not([hidden]){position:absolute;right:6px;top:6px;width:25%!important;height:42%!important;max-height:100px!important;object-fit:cover;z-index:2;}
 body .ttai.ttai-call-top-layer .ttai-call-stage .ttai-call-controls{display:flex!important;flex-wrap:nowrap!important;flex:0 0 auto;margin:0!important;gap:6px!important;}
 body .ttai.ttai-call-top-layer .ttai-call-stage .ttai-call-controls button{flex:1;min-width:0!important;min-height:36px!important;padding:5px!important;margin:0!important;font-size:12px!important;}
}
