.tp-shade{position:fixed;inset:0;z-index:2147483646;background:#123e4fc9;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;font:16px/1.5 system-ui;color:#173e50}.tp-card{position:relative;background:#f7fcfa;border:2px solid #b8e1d7;border-radius:24px;padding:26px;width:min(100%,480px);max-height:90dvh;overflow:auto;box-sizing:border-box;box-shadow:0 20px 80px #082d4555}.tp-card h1{font-size:25px;color:#164950;margin:4px 30px 16px 0}.tp-card p{font-size:15px}.tp-card label{display:block;font-weight:700;margin:12px 0}.tp-card input,.tp-card select{display:block;width:100%;box-sizing:border-box;min-height:48px;padding:10px;border:2px solid #9bc7bd;border-radius:12px;background:white;color:#173e50;font:inherit;margin-top:5px}.tp-card button{min-height:45px;padding:10px 16px;border-radius:12px;border:1px solid #83b7aa;background:#fff;color:#174a50;font:700 15px system-ui;cursor:pointer;margin:5px 4px 5px 0}.tp-card button.tp-primary{background:#087e83;border-color:#087e83;color:white;width:100%}.tp-card button:disabled{opacity:.6;cursor:wait}.tp-card .tp-close{position:absolute;right:14px;top:10px;font-size:23px;min-width:40px}.tp-error{color:#a52139;white-space:pre-wrap}.tp-card small{display:block;color:#37565d}.tp-grant{border:1px solid #c5ded6;border-radius:15px;padding:12px;margin:12px 0}.tp-grant h2{font-size:18px;margin:0}.dm-teacher-portal #tab-dunya,.dm-teacher-portal #tab-meduakis,.dm-teacher-portal #tab-magaza{display:none!important}.dm-teacher-portal #bottomNavMobile{grid-template-columns:repeat(4,minmax(0,1fr))!important}.dm-teacher-portal #bottomNavMobile .bn-item{flex:1 1 25%;min-width:0}.dm-teacher-portal #bottomNavMobile .bn-label{font-size:11px!important;display:block!important}.dm-teacher-portal .tp-nav-image{height:32px;width:32px;object-fit:contain}.tp-participant{position:fixed;top:6px;right:8px;z-index:100100;background:#f7fffb;color:#174a50;border:1px solid #73b4a1;border-radius:12px;padding:6px 10px;max-width:70vw;font:700 12px system-ui}.fd-welcome .fd-actions{gap:7px!important}.fd-welcome .fd-actions button{min-height:40px!important}.fd-welcome .fd-actions [data-action=teacher-login]{background:#183f74!important;color:#fff!important}

/* Teacher dashboard — first approved visual concept */
.dm-teacher-portal #bottomNavMobile#bottomNavMobile{grid-template-columns:repeat(5,minmax(0,1fr))!important;z-index:2147483600!important}
.dm-teacher-portal #bottomNavMobile .bn-item{flex:1 1 20%!important}
.dm-teacher-portal .tp-nav-home-icon{font-size:29px;line-height:33px}
.dm-teacher-portal #bottomNavMobile [data-tp-home-nav].active{background:#d8f8e9!important;color:#006b61!important}
#tpTeacherHome{display:none;position:fixed;inset:0 0 74px;overflow-y:auto;overscroll-behavior:contain;background:linear-gradient(#f1fcfc,#fbffff);z-index:90000;font:16px/1.45 Nunito,system-ui,sans-serif;color:#073e4e}
#tpTeacherHome.is-visible{display:block}
.tp-home-inner{width:min(900px,100%);box-sizing:border-box;margin:auto;padding:88px clamp(16px,4vw,38px) 38px}
.tp-home-hero{background:linear-gradient(120deg,#dcfaeb 0%,#eafdf8 55%,#bdf3cb 100%);min-height:170px;display:flex;justify-content:space-between;align-items:center;gap:14px;border-radius:26px;padding:20px 26px;overflow:hidden}
.tp-home-hero div{max-width:65%}.tp-home-hero h1{font-size:clamp(24px,4vw,36px);line-height:1.1;margin:0 0 12px;font-weight:950}.tp-home-hero p{margin:0;color:#54727e;font-size:clamp(14px,2.3vw,18px)}
.tp-home-hero img{width:35%;height:155px;max-width:230px;object-fit:contain;filter:drop-shadow(0 8px 8px #175f5120)}
.tp-home-inner>h2{font-size:clamp(23px,3.5vw,33px);margin:28px 0 4px;font-weight:950;line-height:1.2}
.tp-home-sub{color:#647886;font-size:16px;margin:0 0 22px}
.tp-home-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.tp-home-card{position:relative;border:1px solid #cfecdf;border-radius:27px;padding:22px 22px 26px;min-height:225px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;cursor:pointer;color:#08394d;box-shadow:0 9px 22px #345b5d0c;transition:transform .18s,box-shadow .18s}
.tp-home-card:hover,.tp-home-card:focus-visible{transform:translateY(-2px);box-shadow:0 12px 24px #345b5d22}
.tp-home-card .tp-home-art{font-size:59px;line-height:1.25;display:block;filter:drop-shadow(0 5px 5px #22454a16)}
.tp-home-card strong{font-size:clamp(17px,2.3vw,23px);line-height:1.25;font-weight:950;padding-right:28px}
.tp-home-card small{color:#607781;font-size:clamp(12px,1.6vw,16px);line-height:1.5;max-width:92%}
.tp-home-arrow{position:absolute;right:14px;bottom:20px;background:#ffffff99;border-radius:50%;width:42px;height:42px;display:grid;place-items:center;font-size:35px;color:#07505b;line-height:1}
.tp-mint{background:linear-gradient(130deg,#e8fff2,#e0faf1)}.tp-lilac{background:linear-gradient(130deg,#f0ebff,#f4f0ff)}.tp-cream{background:linear-gradient(130deg,#fff3ca,#fff8df)}.tp-blue{background:linear-gradient(130deg,#e1f4ff,#e4f7fc)}
.tp-home-inner .tp-quick-title{font-size:23px;margin-top:30px;border-top:1px solid #d8ebe8;padding-top:22px}
.tp-home-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.tp-home-shortcuts button{display:flex;align-items:center;gap:13px;border:1px solid #d8efea;border-radius:22px;background:#f9ffff;padding:16px;text-align:left;color:#08394d;font:700 27px system-ui;cursor:pointer}.tp-home-shortcuts span{display:flex;flex-direction:column;gap:5px}.tp-home-shortcuts strong{font:800 15px Nunito,system-ui,sans-serif}.tp-home-shortcuts small{font:400 12px Nunito,system-ui,sans-serif;color:#677f88}
.dm-teacher-portal.tp-home-active #panel-alani{visibility:hidden!important}
.dm-teacher-portal.tp-home-active #dmPapiTour,.dm-teacher-portal.tp-home-active .dm-intro{display:none!important}
@media(max-width:520px){.tp-home-inner{padding-top:65px}.tp-home-hero{padding:17px 18px;min-height:140px}.tp-home-hero img{height:120px}.tp-home-card{padding:14px;min-height:200px}.tp-home-card .tp-home-art{font-size:40px}.tp-home-actions{gap:10px}.tp-home-shortcuts{grid-template-columns:1fr}.dm-teacher-portal #bottomNavMobile .bn-label{font-size:10px!important}}

/* Compact panel v2, permanent five-button dock */
#tpDashboard{display:none;position:fixed;inset:0 0 78px;overflow:auto;z-index:89999;background:linear-gradient(115deg,#19465a,#192f49 75%);color:#f6ffff;font:15px/1.45 Nunito,system-ui,sans-serif}
#tpDashboard.is-visible{display:block}
.tp-dash-wrap{max-width:1210px;margin:auto;padding:72px 18px 20px;min-height:calc(100% - 92px);box-sizing:border-box}
.tp-dash-hero{display:flex;align-items:center;gap:24px;border-radius:20px;background:linear-gradient(110deg,#174d58,#406c84);padding:10px 22px;min-height:125px}
.tp-dash-hero img{height:116px;width:116px;object-fit:contain}.tp-dash-hero h1{font-size:clamp(22px,3vw,33px);margin:0 0 6px;color:white}.tp-dash-hero p{margin:0;color:#e1f5f7}.tp-dash-hero button{margin-left:auto;border:1px solid #8ec2cd;border-radius:20px;background:#17364c;color:white;padding:10px}
.tp-dash-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.tp-dash-metrics>div{background:#ffffff19;border:1px solid #ffffff28;border-radius:15px;padding:12px;font-size:20px}.tp-dash-metrics b{font-size:21px;margin-left:8px}.tp-dash-metrics small{display:block;color:#b8d1d9;font-size:11px;margin-top:3px}
.tp-dash-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:14px}.tp-dash-menu{display:grid;align-content:start;gap:6px;background:#0a3040aa;border-radius:16px;padding:12px}.tp-dash-menu button{text-align:left;color:#e6faff;background:transparent;border:0;padding:12px;border-radius:10px;font:700 13px system-ui;cursor:pointer}.tp-dash-menu button:hover,.tp-dash-menu button:focus-visible{background:#3c889d}
.tp-dash-main{background:#ffffff13;border:1px solid #ffffff20;border-radius:18px;padding:16px}.tp-dash-main h2{font-size:21px;margin:0 0 3px}.tp-dash-main p{color:#c1dbe2;margin:0 0 15px}.tp-dash-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tp-dash-tiles button{min-height:116px;background:linear-gradient(135deg,#f6fcff,#dceef4);border:0;border-radius:15px;padding:12px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:5px;color:#143c50;font-size:27px;cursor:pointer}.tp-dash-tiles strong{font-size:14px}.tp-dash-tiles small{font-size:11px;color:#50677b}
.dm-teacher-portal #bottomNavMobile#bottomNavMobile{position:fixed!important;bottom:0!important;z-index:2147483600!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important}
.dm-teacher-portal.tp-dash-active #panel-alani{visibility:hidden!important}
@media(max-width:700px){.tp-dash-wrap{padding-top:54px}.tp-dash-layout{grid-template-columns:1fr}.tp-dash-menu{display:flex;overflow-x:auto;white-space:nowrap}.tp-dash-menu button{flex:0 0 auto}.tp-dash-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.tp-dash-hero img{height:75px;width:75px}.tp-dash-hero{min-height:90px;gap:12px}.tp-dash-metrics>div{font-size:15px;padding:8px}.tp-dash-metrics b{font-size:15px}.tp-dash-hero button{font-size:11px}}

/* Classroom guest identity is server-managed; never launch the learner's first-character wizard. */
.dm-teacher-portal #dmCharacterBuilder,.dm-teacher-portal .dm-character-builder,.dm-teacher-portal [data-first-character-choice]{display:none!important}

/* Teacher dock must remain visible above all teacher page layers. */
html.dm-teacher-portal #bottomNavMobile#bottomNavMobile{display:grid!important;visibility:visible!important;opacity:1!important;position:fixed!important;bottom:0!important;left:0!important;right:0!important;z-index:2147483640!important}
html.dm-teacher-portal .tp-shade{bottom:82px!important;z-index:2147483638!important}
#tpDashboard .tp-dash-legacy{margin-top:16px;border-top:1px solid #ffffff30;padding-top:12px}
#tpDashboard .tp-dash-tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
#tpDashboard .tp-dash-tool-grid button{border:1px solid #a3d1e044;background:#edf9ff;color:#143d50;text-align:left;border-radius:11px;padding:11px;font:700 12px/1.4 system-ui;cursor:pointer;min-height:44px}
#tpDashboard .tp-dash-tool-grid button:focus-visible{outline:3px solid #8febdf}
@media(max-width:700px){#tpDashboard .tp-dash-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Embedded management surface keeps teacher dashboard and permanent dock visible. */
.dm-teacher-portal.tp-legacy-inline #ogretmenMenuModal.dm-teacher-open{position:fixed!important;top:88px!important;bottom:83px!important;left:50%!important;transform:translateX(-50%)!important;width:min(1050px,96vw)!important;max-height:calc(100dvh - 171px)!important;z-index:95000!important;border-radius:19px!important;box-shadow:0 12px 40px #03192666!important;overflow-y:auto!important}
.dm-teacher-portal.tp-legacy-inline #bottomNavMobile{z-index:2147483640!important}
.dm-teacher-portal #bottomNavMobile [data-tp-panel-nav] .bn-icon{font-size:25px!important;line-height:33px!important}
.dm-teacher-portal #bottomNavMobile [data-tp-panel-nav] .bn-label{font-size:10px!important}

/* Teacher home titles: explicit contrast against very light background. */
html.dm-teacher-portal #tpTeacherHome .tp-home-inner>h2,
html.dm-teacher-portal #tpTeacherHome .tp-home-inner>h2.tp-quick-title{
 color:#073b4c!important;-webkit-text-fill-color:#073b4c!important;opacity:1!important;text-shadow:none!important;
}
html.dm-teacher-portal #bottomNavMobile .tp-panel-icon{
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:37px!important;height:34px!important;font:normal 27px/1 system-ui,sans-serif!important;
 color:#075665!important;background:none!important;-webkit-text-fill-color:#075665!important;
 filter:none!important;opacity:1!important;
}
html.dm-teacher-portal #bottomNavMobile [data-tp-panel-nav] .tp-panel-icon::before{content:none!important}
html.dm-teacher-portal #bottomNavMobile [data-tp-panel-nav] .dm-nav-art{display:none!important}

/* Independent fifth dock icon: avoids .bn-icon sprite's font-size:0 and image hiding. */
html.dm-teacher-portal body #bottomNavMobile#bottomNavMobile .bn-item[data-tp-panel-nav="1"]>.bn-icon{display:none!important}
html.dm-teacher-portal body #bottomNavMobile#bottomNavMobile .bn-item[data-tp-panel-nav="1"]>.tp-panel-visible-icon{
 display:flex!important;align-items:center!important;justify-content:center!important;
 position:relative!important;flex:0 0 42px!important;width:44px!important;height:42px!important;
 font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif!important;
 font-size:31px!important;line-height:42px!important;color:#164c58!important;
 opacity:1!important;visibility:visible!important;background:transparent!important;
 text-indent:0!important;transform:none!important;overflow:visible!important;
}

/* The private teacher landing screen must never expose the learner's failed route.
   Hide route behind the teacher home while the dashboard is bootstrapping. */
html.dm-teacher-portal #rtRouteError,
html.dm-teacher-portal #dmRouteError,
html.dm-teacher-portal #rt-v3-error,
html.dm-teacher-portal #parkurHata{display:none!important}
html.dm-teacher-portal.tp-home-starting #panel-alani{visibility:hidden!important}
html.dm-teacher-portal.tp-home-active #panel-alani{visibility:hidden!important}
html.dm-teacher-portal #tpTeacherHome.is-visible{z-index:90002!important}

/* Four permanent teacher destinations; profile settings live in the sidebar. */
html.dm-teacher-portal #bottomNavMobile#bottomNavMobile{grid-template-columns:repeat(4,minmax(0,1fr))!important}
html.dm-teacher-portal #bottomNavMobile .bn-item{flex:1 1 25%!important}
#tpDashboard .tp-dash-menu .tp-dash-logout{margin-top:8px;background:#ffe9e7;color:#952b31;border:1px solid #ffb5b7;font-weight:900}
#tpDashboard .tp-dash-menu .tp-dash-logout:hover,#tpDashboard .tp-dash-menu .tp-dash-logout:focus-visible{background:#ffd2d2;color:#8a1d27}
@media(max-width:700px){#tpDashboard .tp-dash-menu{flex-wrap:wrap;overflow-x:visible;white-space:normal}#tpDashboard .tp-dash-menu button{flex:1 0 auto}}

html.dm-teacher-portal #bottomNavMobile .bn-item[data-ekran="tab-profil"],
html.dm-teacher-portal #bottomNavMobile .bn-item[data-ekran="tab-profile"]{display:none!important}
html.dm-teacher-portal #bottomNavMobile#bottomNavMobile{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.tp-looks-overlay{position:fixed;inset:0 0 76px;z-index:2147483620;background:#102a43c9;display:grid;place-items:center;padding:12px;box-sizing:border-box}
.tp-looks-dialog{position:relative;box-sizing:border-box;background:#f8ffff;border-radius:22px;padding:22px;width:min(700px,100%);max-height:calc(100dvh - 100px);overflow-y:auto;color:#173d4c;font:15px system-ui}
.tp-looks-dialog h2{font-size:23px;margin:0 35px 8px 0}.tp-looks-dialog label{display:inline-flex;align-items:center;gap:8px;margin:10px 15px 15px 0;font-weight:700}
.tp-looks-close{position:absolute;right:15px;top:12px;border:0;background:#e8f8f5;border-radius:9px;padding:10px;cursor:pointer}
.tp-looks-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.tp-look-choice{border:1px solid #b7d8dc;border-radius:14px;background:#edfaf7;min-width:0;padding:8px 4px;display:flex;flex-direction:column;align-items:center;gap:5px;cursor:pointer}
.tp-look-choice strong{font-size:11px;color:#153b52}.tp-look-art{display:grid;place-items:center;font-size:33px;width:100%;min-height:65px;border-radius:11px}
.tp-looks-status{color:#ae3030}
@media(max-width:520px){.tp-looks-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Private teacher dashboard is the parent of every legacy sub-tool.
   Closing the child must reveal the dashboard, never the old launcher. */
html.dm-teacher-portal body.tp-dash-active #ogretmenMenuModal,
html.dm-teacher-portal body.tp-dash-active #ogretmenMenuModal.dm-teacher-open{display:none!important;visibility:hidden!important}
html.dm-teacher-portal #bottomNavMobile#bottomNavMobile{grid-template-columns:repeat(4,minmax(0,1fr))!important}
html.dm-teacher-portal #bottomNavMobile .bn-item[data-ekran="tab-profil"],
html.dm-teacher-portal #bottomNavMobile .bn-item[data-ekran="tab-profile-menu"]:not([data-tp-panel-nav="1"]){display:none!important}
#tpDashboard .tp-teacher-pair{display:flex;flex:0 0 auto;align-items:center;gap:2px;min-width:145px}
#tpDashboard .tp-teacher-pair img{width:90px;height:115px;object-fit:contain}
#tpDashboard .tp-teacher-male{display:grid;place-items:center;width:64px;height:87px;font-size:53px;border-radius:12px;background:#e5f9f61e}
.tp-bulk-defaults{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tp-bulk-defaults label{display:grid;gap:5px}
.tp-card textarea[name="ogrenciler"]{box-sizing:border-box;width:100%;min-height:155px;resize:vertical;padding:10px;border:1px solid #a8d4d6;border-radius:12px;font:13px/1.5 monospace}
@media(max-width:650px){#tpDashboard .tp-teacher-pair{min-width:95px}#tpDashboard .tp-teacher-pair img{width:62px;height:78px}#tpDashboard .tp-teacher-male{width:36px;height:65px;font-size:34px}.tp-bulk-defaults{grid-template-columns:1fr}}

/* HOTFIX: the parkur error surface may use a higher stacking context.
   Private teacher landing/dashboard must always take precedence. */
html.dm-teacher-portal body #tpTeacherHome.is-visible{display:block!important;position:fixed!important;inset:0 0 78px!important;z-index:2147483000!important;visibility:visible!important;opacity:1!important}
html.dm-teacher-portal body #tpDashboard.is-visible{display:block!important;position:fixed!important;inset:0 0 78px!important;z-index:2147483001!important;visibility:visible!important}
html.dm-teacher-portal body #bottomNavMobile{z-index:2147483640!important}

/* Self-contained teacher navigation: not affected by learner sprite, profile tab or route canvas. */
html.dm-teacher-portal body #bottomNavMobile#bottomNavMobile{display:none!important}
html.dm-teacher-portal body #tpTeacherDock{
 position:fixed!important;bottom:0!important;left:0!important;right:0!important;
 height:78px!important;padding:5px max(12px,calc((100vw - 650px)/2)) max(6px,env(safe-area-inset-bottom))!important;
 box-sizing:border-box!important;background:#e8f7f6!important;z-index:2147483640!important;
 display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:3px!important;
 box-shadow:0 -3px 15px #163e4840!important;
}
html.dm-teacher-portal body #tpTeacherDock>button{
 border:0!important;border-radius:14px!important;background:transparent!important;color:#064453!important;
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
 font:800 11px/1.2 system-ui,sans-serif!important;cursor:pointer!important;
}
html.dm-teacher-portal body #tpTeacherDock>button>span{
 display:block!important;font:normal 29px/1.2 "Segoe UI Emoji","Apple Color Emoji",sans-serif!important;
 width:auto!important;height:auto!important;color:inherit!important;
}
html.dm-teacher-portal body #tpTeacherDock>button.active{background:#c6f5e6!important}
html.dm-teacher-portal body #tpTeacherDock>button:focus-visible{outline:3px solid #148f86!important}
html.dm-teacher-portal body #tpTeacherHome.is-visible{bottom:78px!important}
html.dm-teacher-portal body #tpDashboard.is-visible{bottom:78px!important}

/* Four promoted actions, no duplicated legacy launcher */
#tpDashboard .tp-dash-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#tpDashboard .tp-dash-main .tp-dash-legacy{display:none!important}
@media(max-width:520px){#tpDashboard .tp-dash-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}

#tpDashboard .tp-dash-header-actions{display:flex;align-items:center;gap:9px;margin-left:auto;flex-wrap:wrap;justify-content:flex-end}
#tpDashboard .tp-dash-header-actions button{border:1px solid #8ec2cd;border-radius:18px;background:#17364c;color:#fff;padding:10px 12px;font:700 12px system-ui;cursor:pointer;white-space:nowrap}
#tpDashboard .tp-dash-header-actions button:first-child{background:#14786b;border-color:#4fd3b5}
@media(max-width:650px){#tpDashboard .tp-dash-header-actions{gap:5px}#tpDashboard .tp-dash-header-actions button{padding:7px;font-size:10px;white-space:normal}}

.tp-report-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0}
.tp-report-stats>div{display:flex;flex-direction:column;gap:5px;background:#ebf8f6;border:1px solid #c9e6e4;border-radius:12px;padding:12px}
.tp-report-stats b{font-size:20px;color:#124353}.tp-report-stats small{color:#637e89}
.tp-report-history{max-height:280px;overflow:auto}.tp-report-history p{border-bottom:1px solid #d4e8e7;padding:8px 3px}
@media(max-width:480px){.tp-report-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* When a genuine legacy teacher tool is open, hide the modern launcher behind it.
   The dashboard is restored when the existing tool closes. */
html.dm-teacher-portal body.tp-legacy-child-open #tpDashboard.is-visible{visibility:hidden!important;pointer-events:none!important}
html.dm-teacher-portal body.tp-legacy-child-open #tpTeacherDock{pointer-events:none!important}

/* Original legacy teaching modules, presented as clear actions in the modern panel. */
#tpDashboard .tp-real-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#tpDashboard .tp-real-tools button{min-height:112px}
#tpDashboard .tp-real-tools button>span{font-size:27px;line-height:1.15}
#tpDashboard .tp-real-tools button strong{font-size:15px}
#tpDashboard .tp-real-tools button small{font-size:12px}
@media(max-width:600px){#tpDashboard .tp-real-tools{grid-template-columns:1fr 1fr;gap:8px}#tpDashboard .tp-real-tools button{min-height:100px;padding:10px}}

/* The original teacher identity card retains its native wired buttons. */
.tp-dash-identity{background:#f2fcfa;color:#154753;border:1px solid #b3ded9;border-radius:18px;padding:14px;margin:12px 0}
.tp-dash-identity .cog-ogretmen-kart{margin:0;background:#e7f7f3;color:#154753}
.tp-dash-identity .cog-ogretmen-kart>div{display:flex;flex-wrap:wrap;gap:7px}
.tp-dash-identity button{min-height:40px;border:1px solid #b0d6cf;border-radius:10px;padding:8px 12px;color:#174b53;background:white;cursor:pointer}
.tp-dash-status{color:#205764;font-weight:700;margin:0 0 8px}
#tpDashboard button:disabled{opacity:.6;cursor:wait}
html.dm-teacher-portal body.tp-legacy-child-open .dm-teacher-child{visibility:visible!important}

html.dm-teacher-portal .ka-perde{display:none!important}
html.dm-teacher-portal body #tpDashboard .tp-dash-identity .cog-ogretmen-kart button{background:#fff!important;color:#123f4b!important;border:1px solid #8fbfb8!important;font-weight:800!important;box-shadow:none!important}

html.dm-teacher-portal body #ogretmenMenuModal,html.dm-teacher-portal body #ogretmenMenuModal.dm-teacher-open{display:none!important;visibility:hidden!important}

/* Fit teacher destinations to the visible device height; tools remain reachable in pages. */
html.dm-teacher-portal body #tpTeacherHome,html.dm-teacher-portal body #tpDashboard{top:0!important;bottom:calc(78px + env(safe-area-inset-bottom,0px))!important;height:auto!important;box-sizing:border-box;overflow:hidden!important}
#tpTeacherHome .tp-home-inner{height:100%;padding:clamp(10px,2dvh,20px) clamp(12px,3vw,28px);display:flex;flex-direction:column;gap:clamp(6px,1.2dvh,12px)}
#tpTeacherHome .tp-home-hero{flex:0 0 auto;min-height:0;padding:12px 18px;max-height:19dvh;border-radius:20px}
#tpTeacherHome .tp-home-hero img{height:clamp(70px,14dvh,130px)}
#tpTeacherHome .tp-home-hero h1{font-size:clamp(19px,3.5vw,30px);margin:0 0 5px}
#tpTeacherHome .tp-home-hero p{font-size:clamp(12px,1.8vw,15px);margin:0;line-height:1.35}
#tpTeacherHome .tp-home-inner>h2{font-size:clamp(17px,2.8vw,24px);margin:0}
#tpTeacherHome .tp-home-sub{font-size:13px;margin:0}
#tpTeacherHome .tp-home-actions{flex:1;min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:10px}
#tpTeacherHome .tp-home-card{min-height:0;justify-content:center;gap:7px;padding:12px 16px;border-radius:18px}
#tpTeacherHome .tp-home-art{font-size:clamp(30px,5.5dvh,54px);line-height:1.1}
#tpTeacherHome .tp-home-card strong{font-size:clamp(14px,2vw,20px);padding-right:15px}
#tpTeacherHome .tp-home-card small{font-size:clamp(11px,1.5vw,14px);line-height:1.3}
#tpTeacherHome .tp-home-arrow{width:26px;height:26px;font-size:24px;right:7px;bottom:10px}
#tpTeacherHome .tp-quick-title{font-size:16px;margin:0;padding-top:5px}
#tpTeacherHome .tp-home-shortcuts{grid-template-columns:1fr 1fr;margin:0;gap:8px}
#tpTeacherHome .tp-home-shortcuts button{min-height:44px;padding:8px;font-size:20px;gap:6px;border-radius:13px}
#tpTeacherHome .tp-home-shortcuts strong{font-size:12px}#tpTeacherHome .tp-home-shortcuts small{display:none}
#tpDashboard .tp-dash-wrap{height:100%;box-sizing:border-box;display:flex;flex-direction:column;padding:10px 12px;gap:8px}
#tpDashboard .tp-dash-hero{flex:none;min-height:0;padding:9px 12px;gap:8px;border-radius:16px}
#tpDashboard .tp-dash-hero h1{font-size:clamp(19px,2.7vw,26px);margin:0}
#tpDashboard .tp-dash-hero p{display:none}
#tpDashboard .tp-teacher-pair{font-size:25px}#tpDashboard .tp-dash-hero img{width:40px;height:40px}
#tpDashboard .tp-dash-identity{flex:none;margin:0;padding:7px 10px;border-radius:12px;font-size:11px}
#tpDashboard .tp-dash-status{margin:0 0 3px;font-size:11px}
#tpDashboard .tp-dash-identity .cog-ogretmen-kart{padding:5px!important;font-size:11px!important}
#tpDashboard .tp-dash-identity .cog-ogretmen-kart button{min-height:30px;padding:5px 7px;font-size:10px}
#tpDashboard .tp-dash-metrics{flex:none;gap:6px;margin:0}
#tpDashboard .tp-dash-metrics>div{padding:5px 8px;border-radius:9px;font-size:12px}
#tpDashboard .tp-dash-metrics b{font-size:16px}#tpDashboard .tp-dash-metrics small{font-size:10px}
#tpDashboard .tp-dash-layout{flex:1;min-height:0;gap:8px}
#tpDashboard .tp-dash-menu{padding:7px;gap:5px;align-content:start}
#tpDashboard .tp-dash-menu button{min-height:36px;padding:7px;font-size:11px}
#tpDashboard .tp-dash-main{min-height:0;display:flex;flex-direction:column;padding:10px;gap:7px;overflow:hidden}
#tpDashboard .tp-dash-main>h2{font-size:17px;margin:0}#tpDashboard .tp-dash-main>p{display:none}
#tpDashboard .tp-real-tools{flex:1;min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(var(--tp-tool-rows,5),minmax(0,1fr));gap:7px}
#tpDashboard .tp-real-tools button{min-height:0!important;padding:7px 9px!important;gap:3px;border-radius:12px;font-size:12px;line-height:1.2;overflow-wrap:anywhere}
#tpDashboard .tp-real-tools button>span{font-size:22px}#tpDashboard .tp-real-tools button strong{font-size:13px;line-height:1.2}#tpDashboard .tp-real-tools button small{font-size:11px}
#tpDashboard .tp-real-tools button[hidden],#tpDashboard .tp-tools-pager[hidden]{display:none!important}
.tp-tools-pager{display:flex;flex:none;align-items:center;justify-content:center;gap:14px;min-height:34px;font-size:12px}
.tp-tools-pager button{min-height:32px;border:1px solid #b9dbd3;border-radius:9px;background:#e5f6ef;color:#174e57;padding:5px 12px}
@media(min-width:901px){#tpDashboard .tp-real-tools{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#tpDashboard .tp-dash-layout{display:flex;flex-direction:column}#tpDashboard .tp-dash-menu{flex:none;display:flex;flex-wrap:wrap;gap:4px;padding:4px}#tpDashboard .tp-dash-menu button{min-height:30px;margin:0!important;flex:1 1 auto;padding:5px;font-size:10px}#tpDashboard .tp-dash-main{flex:1;padding:7px}#tpDashboard .tp-dash-header-actions button{font-size:9px;padding:6px}#tpDashboard .tp-dash-hero .tp-teacher-pair{display:none}}
@media(max-height:760px){#tpTeacherHome .tp-home-card small,#tpTeacherHome .tp-home-sub{display:none}#tpDashboard .tp-real-tools button small{display:none}#tpDashboard .tp-real-tools button>span{font-size:18px}#tpDashboard .tp-dash-metrics{display:none}#tpDashboard .tp-dash-main>h2{font-size:14px}#tpDashboard .tp-dash-wrap{gap:5px;padding:7px}#tpTeacherHome .tp-home-hero p{font-size:11px}}
/* Preserve access on unusually short viewports and with enlarged accessibility text. */
@media(max-height:500px){html.dm-teacher-portal body #tpTeacherHome,html.dm-teacher-portal body #tpDashboard{overflow:auto!important}#tpTeacherHome .tp-home-inner,#tpDashboard .tp-dash-wrap{min-height:460px}}

/* A compact card keeps its title beside the icon, never below its row. */
@layer bilgiIslands {
html.dm-teacher-portal body #tpDashboard .tp-real-tools>button{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;grid-template-rows:1fr!important;align-items:center!important;align-content:center!important;gap:7px!important;overflow:hidden!important;min-width:0!important;min-height:0!important;height:100%!important;box-sizing:border-box!important;color:#143c50!important;-webkit-text-fill-color:#143c50!important;background:#edf8fc!important;font:700 12px/1.2 system-ui!important;text-align:left!important}
html.dm-teacher-portal body #tpDashboard .tp-real-tools>button>span{font-size:20px!important;line-height:1!important;align-self:center!important;min-height:0!important}
html.dm-teacher-portal body #tpDashboard .tp-real-tools>button>strong{display:block!important;position:static!important;min-width:0!important;white-space:normal!important;overflow-wrap:break-word!important;font:800 12px/1.2 system-ui!important;color:#143c50!important;-webkit-text-fill-color:#143c50!important;margin:0!important}
html.dm-teacher-portal body #tpDashboard .tp-real-tools>button>small{display:none!important}
html.dm-teacher-portal body #tpDashboard .tp-real-tools>button[hidden]{display:none!important}
}


/* Teacher class creation: one pupil per row; tablet and phone friendly. */
.tp-shade .tp-card{max-height:min(92dvh,920px);overflow-y:auto}
.tp-pupil-heading{font-size:1.12rem;margin:16px 0 10px;font-weight:800;color:#16473e}
.tp-pupil-rows{display:grid;gap:10px}
.tp-pupil-row{display:grid;grid-template-columns:26px minmax(0,1fr) minmax(0,1fr) 32px;align-items:end;gap:8px;padding:10px;border:1px solid #d6eae4;border-radius:12px;background:#f6fffc}
.tp-pupil-row label{min-width:0;font-weight:700;font-size:12px}
.tp-pupil-row input{box-sizing:border-box;min-width:0;width:100%;padding:11px 9px;border:1px solid #b6d8cf;border-radius:9px;background:#fff;font-size:15px}
.tp-pupil-num{align-self:center;font-weight:800;color:#27685b}
.tp-pupil-remove{align-self:end;min-height:41px;border:0;border-radius:8px;background:#fff1ef;color:#9d3434;font-size:20px;cursor:pointer}
.tp-pupil-remove:disabled{opacity:.3}
.tp-pupil-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.tp-pupil-actions button{background:#e4f8ee;border:1px solid #a4ddc3;color:#096a50;border-radius:10px;padding:10px 12px;font-weight:800;cursor:pointer}
.tp-pupil-common{display:flex!important;align-items:center;gap:8px;margin:12px 0;font-weight:700}
.tp-pupil-common input{width:auto!important;min-width:18px;height:18px}
.tp-pupil-shared[hidden]{display:none!important}
.tp-pupil-hint{font-size:13px;color:#526963;line-height:1.5}
@media(max-width:540px){.tp-pupil-row{grid-template-columns:22px minmax(0,1fr) minmax(0,1fr) 28px;gap:5px;padding:8px 5px}.tp-pupil-row input{font-size:13px;padding:10px 5px}.tp-pupil-row label{font-size:11px}.tp-pupil-actions button{flex:1;min-width:90px}}

/* Teacher code invitation */
.tp-card.tp-application{
  --tp-invite-gutter:clamp(14px,3.4vw,28px);
  width:min(100%,700px);
  max-height:min(94dvh,970px);
  padding:0;
  border-color:#afe1d4;
  border-radius:32px;
  background:#f8fcfb;
  color:#103746;
  overscroll-behavior:contain;
}
.tp-application .tp-close{right:12px;top:12px;z-index:1;margin:0;padding:0;min-width:44px}
.tp-application-hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:flex;
  align-items:center;
  min-height:175px;
  padding:24px var(--tp-invite-gutter) 22px;
  background:radial-gradient(ellipse at 82% 105%,#98e3d0 0%,#d1f6ec 45%,#effcf7 80%);
  border-radius:0 0 28px 28px;
}
.tp-application-copy{position:relative;z-index:1;flex:1;min-width:0}
.tp-application-badge,.tp-application-free{
  display:inline-block;
  padding:4px 9px;
  border-radius:999px;
  font-size:clamp(10px,2vw,13px);
  font-weight:850;
  text-transform:uppercase;
  background:#b2f0df;
  color:#07555c;
}
.tp-application-badge svg{width:1.1em;height:1.1em;vertical-align:-.18em}
.tp-application-free{margin-inline-start:5px;background:#fff1c7;color:#65500a}
.tp-application .tp-application-hero h1{
  margin:9px 0 6px;
  font-size:clamp(24px,4.25vw,38px);
  line-height:1.08;
  font-weight:900;
  letter-spacing:-.035em;
  color:#093746;
}
.tp-application .tp-application-hero p{margin:0;font-size:clamp(13px,2.15vw,17px);line-height:1.35}
.tp-application-hero img{width:34%;max-width:215px;height:auto;align-self:flex-end;margin:-4px -7px -19px -2px;clip-path:polygon(3% 0,82% 0,82% 14%,100% 14%,100% 100%,3% 100%)}
.tp-application form{padding:16px var(--tp-invite-gutter) 18px}
.tp-application-benefits{display:grid;gap:8px}
.tp-application-benefit{display:flex;align-items:center;gap:clamp(8px,2vw,15px);padding:7px 12px;border-radius:16px}
.tp-benefit-board{background:linear-gradient(100deg,#fff3c9,#fbf5e9)}
.tp-benefit-class{background:linear-gradient(100deg,#f1eaff,#eae8fa)}
.tp-benefit-report{background:linear-gradient(100deg,#e4f9ed,#d5f6e9)}
.tp-application-benefit img{width:clamp(45px,8vw,72px);height:auto;flex:none}
.tp-application-benefit strong{display:block;font-size:clamp(14px,2.6vw,20px);line-height:1.2;font-weight:850}
.tp-application .tp-application-benefit p,.tp-application .tp-application-note p{margin:3px 0 0;font-size:clamp(12px,1.9vw,15px);line-height:1.32}
.tp-application-note{display:flex;align-items:center;gap:10px;margin-top:12px;padding:9px 11px;border-radius:13px;background:#d9f5f1}
.tp-application-note svg{flex:none;color:#075c64}
.tp-application .tp-application-note p{margin:0}
.tp-application-location{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}
.tp-location{position:relative;min-width:0}
.tp-location-label,.tp-application label{font-size:15px;font-weight:800}
.tp-application-location>label{margin:0}
.tp-application .tp-location-toggle,.tp-application input{min-height:44px;border:1.5px solid #8ac3b8;border-radius:12px;box-shadow:0 2px 3px #1349361a}
.tp-application .tp-location-toggle{display:flex;align-items:center;justify-content:space-between;gap:7px;width:100%;margin:5px 0 0;padding:8px 10px;text-align:left}
.tp-application .tp-location-toggle:disabled{cursor:default}
.tp-chevron{flex:none;width:9px;height:9px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);margin:-4px 2px 0}
.tp-location-options{position:absolute;z-index:2;inset:100% 0 auto;background:#fff;border:1px solid #8ac3b8;border-radius:12px;box-shadow:0 8px 24px #123e4f30;padding:6px}
.tp-application .tp-location-options input{margin:0;min-height:38px;padding:5px 7px;font-size:16px}
.tp-location-list{max-height:145px;overflow:auto;overscroll-behavior:contain;padding-top:4px;font-size:13px}
.tp-application .tp-location-list button{display:block;width:100%;margin:0;border:0;padding:7px;text-align:left;min-height:36px;overflow-wrap:anywhere}
.tp-application .tp-location-list button:hover,.tp-application .tp-location-list button[aria-current]{background:#d9f5f1}
.tp-application .tp-application-hint{margin-top:5px;font-size:12px;line-height:1.3}
.tp-application label{margin:9px 0}
.tp-application input{font-size:16px}
.tp-application button.tp-primary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:49px;margin:6px 0 0;background:linear-gradient(100deg,#078b8d,#007478);font-size:clamp(15px,2.6vw,19px);border-radius:14px}
.tp-application-actions{display:flex;justify-content:center;gap:8px;margin-top:9px}
.tp-application-actions button{margin:0;padding:7px 12px;min-height:42px;border-radius:12px;font-size:clamp(13px,2.1vw,16px)}
.tp-application-actions [data-later]{background:transparent;border-color:transparent;color:#526d74}
.tp-application .tp-error:empty{display:none}
.tp-application .tp-error{margin:7px 0 0}
.tp-application :focus-visible{outline:2px solid #00777d;outline-offset:2px}
@media(max-width:480px){
  .tp-card.tp-application{border-radius:23px}
  .tp-application-hero{padding-top:15px;padding-bottom:14px;min-height:140px}
  .tp-application .tp-close{right:8px;top:8px;min-width:38px;min-height:38px}
  .tp-application-hero img{width:29%;margin-right:-8px;margin-bottom:-9px}
  .tp-application-badge,.tp-application-free{padding:3px 6px}
  .tp-application .tp-application-hero h1{margin-top:6px}
  .tp-application-benefit{padding-block:6px}
  .tp-application form{padding-bottom:12px}
  .tp-application form{padding-top:10px}
}


/* Reliable, browser-native province/district selectors in the teacher application. */
.tp-application .tp-application-location .tp-location-native{
 display:block;width:100%;min-width:0;min-height:44px;margin:5px 0 0;
 padding:8px 30px 8px 10px;border:1.5px solid #8ac3b8;
 border-radius:12px;background:#fff;color:#174a50;
 font:700 14px/1.3 system-ui,-apple-system,sans-serif;
 box-shadow:0 2px 3px #1349361a;cursor:pointer;
}
.tp-application .tp-application-location .tp-location-native:disabled{
 background:#f3f7f6;color:#8da6ab;cursor:not-allowed;
}
.tp-application .tp-application-location .tp-location-native:focus-visible{
 outline:2px solid #00777d;outline-offset:2px;
}

/* Approved teacher panel, concept 2. Scoped to the dashboard; home is independent. */
@layer bilgiIslands {
html.dm-teacher-portal body #tpDashboard.tp-approved{
 --ta-ink:#073249;--ta-teal:#008b84;--ta-gold:#ffc72e;
 background:#fffaf2!important;color:var(--ta-ink)!important;overflow:auto!important;
 top:0!important;bottom:calc(78px + env(safe-area-inset-bottom,0px))!important;
 padding-top:env(safe-area-inset-top,0px)!important;
}
html.dm-teacher-portal body #tpDashboard.tp-approved *{box-sizing:border-box}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-dash-wrap{
 width:min(100%,850px)!important;max-width:850px!important;height:auto!important;min-height:100%!important;
 padding:0 12px 14px!important;gap:12px!important;display:flex!important;flex-direction:column!important;
}
html.dm-teacher-portal body #tpDashboard.tp-approved button{font-family:inherit;cursor:pointer}
html.dm-teacher-portal body #tpDashboard.tp-approved button:focus-visible,html.dm-teacher-portal body #tpDashboard.tp-approved summary:focus-visible{outline:3px solid #e5a500!important;outline-offset:3px}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-dash-hero{
 position:relative;display:flex!important;align-items:center!important;gap:9px!important;margin:0 -12px!important;
 padding:20px 15px 38px!important;min-height:94px!important;flex:none!important;
 border-radius:0 0 48% 8% / 0 0 15% 7%!important;border-bottom:3px solid var(--ta-gold)!important;
 background:linear-gradient(115deg,#082a46 10%,#005f6b 75%,#009889)!important;color:#fff!important;
}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-dash-hero h1{font-size:clamp(15px,3.9vw,22px)!important;color:#fff!important;flex:1;margin:0!important;text-align:center;line-height:1.15}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-brand{border:0!important;border-radius:0!important;border-right:1px solid #ffffff70!important;background:transparent!important;color:#fff!important;font-weight:900!important;font-size:clamp(14px,3.8vw,21px)!important;padding:5px 10px 5px 0!important;margin:0!important;white-space:nowrap}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-sync{background:#ffffff12!important;color:#fff!important;border:1px solid #ffffff50!important;border-radius:50%!important;flex:0 0 34px!important;width:34px!important;height:34px!important;padding:0!important;margin:0!important;font-size:23px!important}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-welcome{
 position:relative;margin-top:-28px;padding:16px 12px 12px;border:1px solid #f1dcba;border-radius:27px;
 background:linear-gradient(125deg,#fffefd,#fff8ed);box-shadow:0 5px 10px #735c3820;flex:none;
}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-intro{display:grid;grid-template-columns:minmax(0,1fr) 31%;align-items:center;gap:4px}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-intro h2{font-size:clamp(21px,5.5vw,32px);line-height:1.12;margin:0 0 8px;font-weight:950;color:#073249}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-intro p{font-size:clamp(12px,3.1vw,16px);line-height:1.4;margin:0 0 10px;color:#315361}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-art{display:inline-block!important;flex:none!important;background-image:url('teacher-assets/approved-teacher-2.webp');background-size:400% 400%;background-repeat:no-repeat;width:42px;height:42px;vertical-align:middle}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-papi{background-position:0 0;width:100%;height:auto;aspect-ratio:1;transform:scale(1.15);transform-origin:center}
html.dm-teacher-portal body #tpDashboard.tp-approved[data-tool-page="1"] .tp-approved-papi{background-position:33.333% 0}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-art-game{background-position:66.667% 0}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-art-clipboard{background-position:100% 0}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-art-school{background-position:0 33.333%}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-art-chart{background-position:33.333% 33.333%}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-art-pencil{background-position:66.667% 33.333%}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-art-award{background-position:100% 33.333%}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-art-megaphone{background-position:0 66.667%}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-art-chat{background-position:33.333% 66.667%}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-art-target{background-position:66.667% 66.667%}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-art-people{background-position:100% 66.667%}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-art-key{background-position:0 100%}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-art-exam{background-position:33.333% 100%}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-art-mic{background-position:66.667% 100%}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-art-gear{background-position:100% 100%}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-dash-metrics{display:flex!important;gap:7px!important;flex-wrap:wrap!important;margin:0!important}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-dash-metrics>span{display:flex;align-items:center;justify-content:center;gap:4px;border:1px solid #9ed8d2;border-radius:13px;padding:7px 8px;background:linear-gradient(120deg,#fff,#daf5f0);font-size:12px;flex:1;white-space:nowrap;box-shadow:0 3px 5px #135b5812}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-dash-metrics>span+span{background:linear-gradient(120deg,#fff,#fff2cc);border-color:#edd296}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-dash-metrics b{font-size:20px!important;margin:0!important;color:#073249}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-code{display:flex;align-items:center;gap:6px;padding:7px;margin:13px 0 10px;background:#d9f4ec;border-radius:16px}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-code>span{font-size:12px;font-weight:850;flex:1}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-code b{font-size:clamp(16px,4.8vw,23px);letter-spacing:2px;white-space:nowrap;background:#fff;border-radius:22px;padding:7px 10px;color:#007d75;box-shadow:0 2px 5px #175a4920}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-code button{background:linear-gradient(#00b7a8,#007b76);color:white;border:1px solid #81e6da;border-radius:20px;padding:9px;font-weight:850;min-height:38px;box-shadow:0 2px 3px #105c5130}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-invite{display:grid;grid-template-columns:1fr 1fr;gap:10px}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-invite button{border:1px solid #7bc9bd;background:#fffefa;color:#075364;min-height:44px;border-radius:17px;font-size:15px;font-weight:900;box-shadow:0 3px 4px #175a4920}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-invite button+button{background:linear-gradient(#ffe66b,#ffc400);border-color:#ffd13c;color:#063848}
html.dm-teacher-portal body #tpDashboard.tp-approved[data-tool-page="1"] .tp-approved-invite button+button{background:linear-gradient(#00b5a7,#00827a);border-color:#5ddacd;color:#fff}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-dash-status:empty{display:none}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-dash-status{margin:8px 0 0!important;font-size:12px!important;color:#7c3a24!important}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-shortcuts button{display:flex;align-items:center;gap:9px;min-height:62px;padding:7px 12px;border:1px solid #5bd2c1;border-radius:20px;background:linear-gradient(135deg,#00b6a3,#007c75);color:#fff;font-weight:900;font-size:19px;box-shadow:0 4px 5px #27605025}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-shortcuts button>span:last-child{margin-left:auto;font-size:25px}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-dash-main{position:relative;display:block!important;overflow:visible!important;flex:none!important;min-height:0!important;padding:22px 9px 10px!important;margin-top:15px!important;border:1px solid #e8b84d!important;border-radius:24px!important;background:#fffcf5!important}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-dash-main>h2{position:absolute;left:10px;top:-17px;display:flex;align-items:center;gap:8px;background:linear-gradient(#ffe375,#ffc527);padding:6px 14px;border:1px solid #ffd052;border-radius:13px;box-shadow:0 3px 4px #bd91332a;color:#073249;font-size:21px!important;margin:0!important}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-real-tools{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:none!important;gap:10px!important;min-height:0!important}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-real-tools>button{
 display:grid!important;grid-template-columns:43px minmax(0,1fr) 9px!important;grid-template-rows:auto!important;align-items:center!important;gap:6px!important;
 min-height:64px!important;height:auto!important;min-width:0!important;padding:8px 7px!important;border:1px solid #fff!important;border-radius:17px!important;
 background:linear-gradient(120deg,#fff,#fcfaf7)!important;color:#073249!important;-webkit-text-fill-color:#073249!important;
 box-shadow:0 4px 5px #4e473c25!important;overflow:visible!important;
}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-real-tools>button>span{width:43px!important;height:43px!important;font-size:0!important;border-radius:11px!important;background-color:#e0f5f3}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-real-tools>button:nth-child(4n+1)>span{background-color:#d9f4ff}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-real-tools>button:nth-child(4n+2)>span{background-color:#eee5ff}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-real-tools>button:nth-child(4n+3)>span{background-color:#d9f9ec}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-real-tools>button:nth-child(4n)>span{background-color:#fff1cd}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-real-tools>button>strong{color:#073249!important;-webkit-text-fill-color:#073249!important;font:900 clamp(12px,3.5vw,17px)/1.18 Nunito,system-ui,sans-serif!important;overflow-wrap:normal!important;word-break:normal!important;min-width:0!important}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-real-tools>button>i{font-size:19px;font-style:normal;color:#5b6c70}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-real-tools>button[hidden]{display:none!important}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-account-settings{flex:none;border:1px solid #79c8bb;border-radius:19px;background:#fffdf7;box-shadow:0 3px 5px #305b4b18}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-account-settings summary{display:flex;align-items:center;gap:9px;min-height:50px;padding:7px 11px;cursor:pointer;list-style:none}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-account-settings summary::-webkit-details-marker{display:none}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-account-settings summary .tp-approved-art{width:32px;height:32px}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-account-settings strong{font-size:16px;font-weight:900;white-space:nowrap}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-account-settings small{font-size:10px;color:#49616a}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-settings-chevron{margin-left:auto;font-size:22px}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-account-settings[open] .tp-settings-chevron{transform:rotate(90deg)}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-dash-menu{display:flex!important;flex-wrap:wrap!important;background:transparent!important;gap:6px!important;padding:10px!important}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-dash-menu button{background:#e2f7f0!important;color:#075364!important;border:1px solid #9ddacf!important;border-radius:12px!important;font-size:13px!important;padding:10px!important;min-height:44px!important}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-dash-menu .tp-dash-logout{color:#a63030!important;background:#ffe9e5!important;border-color:#ffc2b8!important}
html.dm-teacher-portal body #tpDashboard.tp-approved [data-teacher-identity] .cog-ogretmen-kart{background:transparent!important;padding:0 10px 10px!important;color:#21484e!important}
html.dm-teacher-portal body #tpDashboard.tp-approved [data-teacher-identity] .cog-ogretmen-kart>b,html.dm-teacher-portal body #tpDashboard.tp-approved [data-teacher-identity] .kod,html.dm-teacher-portal body #tpDashboard.tp-approved #cogK1,html.dm-teacher-portal body #tpDashboard.tp-approved #cogK2,html.dm-teacher-portal body #tpDashboard.tp-approved #cogCreateStudents{display:none!important}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-tools-pager{display:flex;gap:22px;min-height:44px;margin:0;color:#073249;font-weight:850;font-size:16px}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-tools-pager button{border:1px solid #97d2c5;border-radius:18px;background:#e2f6ef;color:#164d55;padding:9px 17px;min-height:42px;font-size:15px;font-weight:800;box-shadow:0 3px 4px #31524815}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-tools-pager button:last-child:enabled{background:linear-gradient(#00b5a7,#00847e);color:#fff;border-color:#3dd2bf}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-tools-pager button:disabled{opacity:.45;cursor:default;box-shadow:none}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-tools-pager[hidden]{display:none!important}
html.dm-teacher-portal body.tp-dash-active #tpTeacherDock{height:calc(78px + env(safe-area-inset-bottom,0px))!important;background:#fffcf6!important;border:1px solid #e8e0d6!important;border-radius:24px 24px 0 0!important;box-shadow:0 -3px 12px #594f3c15!important}
html.dm-teacher-portal body.tp-dash-active #tpTeacherDock>button.active{background:linear-gradient(#b9f8e8,#7bdfd1)!important;box-shadow:0 3px 5px #248b7725!important}
@media(max-width:360px){
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-dash-wrap{gap:10px!important;padding-left:8px!important;padding-right:8px!important}
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-code{flex-wrap:wrap}
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-code>span{flex-basis:100%}
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-real-tools>button{grid-template-columns:32px minmax(0,1fr) 6px!important;gap:4px!important;padding:7px 5px!important}
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-real-tools>button>span{width:32px!important;height:32px!important}
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-account-settings small{display:none}
}
@media(min-width:701px){
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-dash-wrap{padding:0 25px 22px!important;gap:16px!important}
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-dash-hero{margin:0 -25px!important}
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-welcome{padding:22px}
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-intro{grid-template-columns:minmax(0,1fr) 150px}
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-real-tools>button{min-height:82px!important;padding:12px!important;grid-template-columns:52px minmax(0,1fr) 14px!important}
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-real-tools>button>span{width:52px!important;height:52px!important}
}
}
@layer bilgiIslands {
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-intro{grid-template-columns:31% minmax(0,1fr)}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-intro>div{order:2}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-papi{order:1}
html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-shortcuts [data-dash="tools"]{display:none}
html.dm-teacher-portal body #tpDashboard.tp-approved[data-tool-page="1"] .tp-approved-intro{grid-template-columns:minmax(0,1fr) 31%}
html.dm-teacher-portal body #tpDashboard.tp-approved[data-tool-page="1"] .tp-approved-intro>div{order:1}
html.dm-teacher-portal body #tpDashboard.tp-approved[data-tool-page="1"] .tp-approved-papi{order:2}
html.dm-teacher-portal body #tpDashboard.tp-approved[data-tool-page="1"] .tp-approved-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}
html.dm-teacher-portal body #tpDashboard.tp-approved[data-tool-page="1"] .tp-approved-shortcuts button{display:flex;flex-direction:column;gap:4px;justify-content:center;background:linear-gradient(125deg,#fff,#e8ddff);color:#073249;min-height:80px;font-size:16px;border-color:#ded0ee}
html.dm-teacher-portal body #tpDashboard.tp-approved[data-tool-page="1"] .tp-approved-shortcuts button:nth-child(2){background:linear-gradient(125deg,#fff,#ffe9b1);border-color:#f1d49e}
html.dm-teacher-portal body #tpDashboard.tp-approved[data-tool-page="1"] .tp-approved-shortcuts button:nth-child(3){background:linear-gradient(125deg,#fff,#c6f2e3);border-color:#adddce}
html.dm-teacher-portal body #tpDashboard.tp-approved[data-tool-page="1"] .tp-approved-shortcuts button>span:last-child:not(.tp-approved-art){display:none}
html.dm-teacher-portal body #tpDashboard.tp-approved[data-tool-page="1"] .tp-dash-main{margin-top:0!important;border:0!important;padding:0!important;background:transparent!important}
html.dm-teacher-portal body #tpDashboard.tp-approved[data-tool-page="1"] .tp-dash-main>h2{display:none!important}
html.dm-teacher-portal body #tpDashboard.tp-approved[data-tool-page="1"] .tp-real-tools>button{min-height:65px!important;background:linear-gradient(120deg,#fff,#dff3ff)!important}
html.dm-teacher-portal body #tpDashboard.tp-approved[data-tool-page="1"] .tp-real-tools>button:nth-child(4n+2){background:linear-gradient(120deg,#fff,#f9e7f1)!important}
html.dm-teacher-portal body #tpDashboard.tp-approved[data-tool-page="1"] .tp-real-tools>button:nth-child(4n+3){background:linear-gradient(120deg,#fff,#dff4e9)!important}
html.dm-teacher-portal body #tpDashboard.tp-approved[data-tool-page="1"] .tp-real-tools>button:nth-child(4n){background:linear-gradient(120deg,#fff,#fff0cc)!important}
@media(max-height:900px) and (max-width:700px){
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-dash-wrap{gap:9px!important}
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-dash-hero{min-height:78px!important;padding-top:14px!important;padding-bottom:28px!important}
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-welcome{padding:12px 10px 10px;border-radius:23px;margin-top:-20px}
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-intro h2{font-size:21px;margin-bottom:5px}
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-intro p{font-size:12px;margin-bottom:7px}
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-code{margin:10px 0 8px;padding:5px}
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-invite button{min-height:40px;font-size:14px}
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-shortcuts button{min-height:51px}
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-real-tools{gap:8px!important}
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-real-tools>button{min-height:55px!important;padding:7px 6px!important}
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-account-settings summary{min-height:44px;padding:5px 10px}
}
}


/* Teacher dashboard accessibility: preserve the existing layout and restore missing artwork. */
@layer bilgiIslands {
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-intro h2,
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-intro h2 span {
  color:#073249!important;-webkit-text-fill-color:#073249!important;opacity:1!important;text-shadow:none!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-intro>div{min-width:0!important;position:relative;z-index:1}
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-real-tools>button>span.tp-tool-fallback-icon{
  display:grid!important;place-items:center!important;background-image:none!important;
  font:normal 26px/1 "Apple Color Emoji","Segoe UI Emoji",system-ui,sans-serif!important;
  color:#073249!important;-webkit-text-fill-color:initial!important;text-shadow:none!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-real-tools>button>i{
  -webkit-text-fill-color:#365e69!important;align-self:center!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved [data-teacher-identity] .cog-ogretmen-kart,
 html.dm-teacher-portal body #tpDashboard.tp-approved [data-teacher-identity] .cog-ogretmen-kart small{
  color:#315361!important;-webkit-text-fill-color:#315361!important;opacity:1!important;text-shadow:none!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved [data-teacher-identity] #cogOgretmenKart>div{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;margin:10px 0!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved [data-teacher-identity] #cogOgretmenKart>div>button{
  display:flex!important;align-items:center!important;justify-content:center!important;
  min-width:0!important;min-height:43px!important;margin:0!important;padding:9px!important;
  background:#def6ee!important;border:1px solid #89d6c7!important;border-radius:12px!important;
  color:#075364!important;-webkit-text-fill-color:#075364!important;text-shadow:none!important;
  font:800 13px/1.25 Nunito,system-ui,sans-serif!important;white-space:normal!important;text-align:center!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved [data-teacher-identity] #cogOgretmenKart>div>button:focus-visible{
  outline:3px solid #e5a500!important;outline-offset:2px!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-code>span{
  color:#073249!important;-webkit-text-fill-color:#073249!important;min-width:0!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-code>b{min-width:0!important;max-width:100%!important;text-overflow:ellipsis;overflow:hidden!important}
 @media(max-width:420px){
  html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-code{flex-wrap:wrap!important}
  html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-code>span{flex-basis:100%!important}
  html.dm-teacher-portal body #tpDashboard.tp-approved .tp-account-settings summary{flex-wrap:wrap!important}
  html.dm-teacher-portal body #tpDashboard.tp-approved .tp-account-settings summary>small{flex:1 1 100%!important;padding-left:42px}
 }
}


/* Teacher role and settings layout stabilization — high-priority mobile rules. */
@layer glArcade {
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-code{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;align-items:center!important;margin:12px 0 10px!important;
  padding:11px 12px!important;min-width:0!important;max-width:100%!important;
  background:#daf5ef!important;border-radius:16px!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-code>span{
  grid-column:1/-1!important;flex:initial!important;min-width:0!important;
  font:850 15px/1.25 Nunito,system-ui,sans-serif!important;
  color:#073249!important;-webkit-text-fill-color:#073249!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-code>b{
  grid-column:1!important;min-width:0!important;max-width:100%!important;justify-self:start!important;
  padding:8px 10px!important;margin:0!important;border-radius:14px!important;
  font:900 clamp(17px,4.3vw,24px)/1.1 Nunito,system-ui,sans-serif!important;
  letter-spacing:.07em!important;color:#007d75!important;-webkit-text-fill-color:#007d75!important;
  white-space:normal!important;overflow-wrap:anywhere!important;overflow:visible!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-code>button{
  grid-column:2!important;min-width:98px!important;max-width:100%!important;
  margin:0!important;padding:11px!important;min-height:44px!important;
  white-space:nowrap!important;text-align:center!important;justify-self:end!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-account-settings{
  display:block!important;min-height:0!important;height:auto!important;overflow:hidden!important;
  border:1px solid #79c8bb!important;border-radius:20px!important;background:#fffdf7!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-account-settings>summary{
  display:grid!important;grid-template-columns:36px minmax(0,1fr) 28px!important;
  align-items:center!important;gap:10px!important;min-height:64px!important;
  padding:12px 14px!important;flex-wrap:nowrap!important;
  color:#073249!important;-webkit-text-fill-color:#073249!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-account-settings>summary>.tp-approved-art{
  grid-column:1!important;width:36px!important;height:36px!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-account-settings>summary>strong{
  grid-column:2!important;min-width:0!important;margin:0!important;
  font:900 clamp(17px,4.6vw,22px)/1.2 Nunito,system-ui,sans-serif!important;
  white-space:normal!important;color:#073249!important;-webkit-text-fill-color:#073249!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-account-settings>summary>small{display:none!important}
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-account-settings>summary>.tp-settings-chevron{
  grid-column:3!important;margin:0!important;justify-self:end!important;align-self:center!important;
  display:grid!important;place-items:center!important;width:28px!important;height:28px!important;
  color:#075364!important;-webkit-text-fill-color:#075364!important;font:900 26px/1 system-ui!important;
  transform:none!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-account-settings[open]>summary>.tp-settings-chevron{
  transform:rotate(180deg)!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-account-settings .tp-dash-menu{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:stretch!important;gap:9px!important;overflow:visible!important;
  padding:10px 13px 13px!important;margin:0!important;background:transparent!important;
  white-space:normal!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-account-settings .tp-dash-menu>button{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-width:0!important;min-height:51px!important;margin:0!important;
  padding:10px 8px!important;border:1px solid #9ddacf!important;border-radius:13px!important;
  background:#e2f7f0!important;color:#075364!important;-webkit-text-fill-color:#075364!important;
  font:850 clamp(12px,3.4vw,16px)/1.25 Nunito,system-ui,sans-serif!important;
  white-space:normal!important;text-align:center!important;overflow-wrap:break-word!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-account-settings .tp-dash-menu>.tp-dash-logout{
  grid-column:1/-1!important;background:#ffe9e5!important;border-color:#ffc2b8!important;
  color:#a63030!important;-webkit-text-fill-color:#a63030!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved [data-teacher-identity]{padding:0 13px 12px!important}
 html.dm-teacher-portal body #tpDashboard.tp-approved [data-teacher-identity] #cogOgretmenKart[hidden],
 html.dm-teacher-portal body #tpDashboard.tp-approved [data-teacher-identity] #cogOgretmenKart [hidden]{
  display:none!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved [data-teacher-identity] #cogOgretmenKart{
  margin:0!important;padding:0!important;background:transparent!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved [data-teacher-identity] #cogOgretmenKart>div{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
  margin:0!important;
 }
 html.dm-teacher-portal body #tpDashboard.tp-approved [data-teacher-identity] :is(#cogK1,#cogK2,#cogCreateStudents){
  display:none!important;
 }
 @media(max-width:360px){
  html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-code{gap:6px!important;padding:9px!important}
  html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-code>b{font-size:17px!important;letter-spacing:.04em!important;padding:8px!important}
  html.dm-teacher-portal body #tpDashboard.tp-approved .tp-approved-code>button{min-width:87px!important;padding:9px!important}
  html.dm-teacher-portal body #tpDashboard.tp-approved .tp-account-settings .tp-dash-menu{gap:7px!important;padding:8px!important}
 }
}

/* A prior iOS/PWA bundle can still inject retired classroom cards; never show them. */
@layer glArcade {
 html.dm-teacher-portal body #tpDashboard.tp-approved .tp-real-tools>button:is([data-dml],[data-dmc],[data-dmr]) {
  display:none!important;
 }
}

/* Approved compact student-entry modal: one viewport until more rows are added. */
html.dm-teacher-portal .tp-bulk-shade{align-items:center!important;padding:8px 12px!important;bottom:calc(78px + env(safe-area-inset-bottom))!important}
html.dm-teacher-portal .tp-bulk-card{width:min(100%,560px)!important;max-height:calc(100dvh - 118px - env(safe-area-inset-bottom))!important;overflow-y:auto!important;overscroll-behavior:contain;padding:16px!important;border-radius:22px!important;background:#f8fcff!important;border:1px solid #b7d9ed!important;box-shadow:0 18px 55px #092e4b50!important}
.tp-bulk-card h1{font-size:clamp(21px,5vw,26px)!important;color:#0b3862!important;margin:0 44px 5px 0!important;line-height:1.2}
.tp-bulk-card .tp-close{top:9px!important;right:9px!important;background:#e9f4fc!important;color:#0b4477!important}
.tp-bulk-card .tp-bulk-intro{margin:0 30px 12px 0!important;font-size:12px!important;line-height:1.4!important;color:#45647b!important}
.tp-bulk-card .tp-bulk-defaults{grid-template-columns:minmax(0,1fr) minmax(0,.55fr)!important;gap:9px!important}
.tp-bulk-card label{font-size:12px!important;margin:0!important;color:#133d5d!important}
.tp-bulk-card input,.tp-bulk-card select{min-height:39px!important;margin-top:4px!important;padding:7px 9px!important;font-size:14px!important;border:1px solid #a8c9df!important;border-radius:10px!important}
.tp-bulk-card .tp-bulk-extra{margin:8px 0 5px;border:1px solid #d3e5ef;border-radius:10px;padding:5px 10px;background:#fff}
.tp-bulk-card .tp-bulk-extra summary{font-size:12px;font-weight:700;color:#315e7e;cursor:pointer}
.tp-bulk-card .tp-bulk-extra label{display:block;margin:7px 0 3px!important}
.tp-bulk-card .tp-pupil-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0 6px}
.tp-bulk-card .tp-pupil-heading{margin:0!important;font-size:16px!important;color:#103d68!important}
.tp-bulk-card [data-pupil-count]{background:#e1f1fd;border-radius:999px;padding:3px 9px;font-size:11px;font-weight:800;color:#16619c}
.tp-bulk-card .tp-pupil-rows{gap:6px!important}
.tp-bulk-card .tp-pupil-row{grid-template-columns:19px minmax(0,1fr) minmax(0,1fr) 30px!important;gap:5px!important;align-items:end!important;padding:7px!important;border-radius:11px!important;background:white!important;border-color:#d3e4f0!important}
.tp-bulk-card .tp-pupil-row label{font-size:10px!important;min-width:0}
.tp-bulk-card .tp-pupil-row input{width:100%!important;min-width:0!important;font-size:12px!important;padding:7px 5px!important;min-height:36px!important}
.tp-bulk-card .tp-pupil-num{font-size:12px!important;align-self:center!important}
.tp-bulk-card .tp-pupil-remove{padding:0!important;min-height:35px!important;height:35px!important;width:30px!important;margin:0!important;border:0!important;background:#fff0f0!important;color:#b43145!important}
.tp-bulk-card .tp-pupil-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin:9px 0!important}
.tp-bulk-card .tp-pupil-actions button{margin:0!important;padding:7px 2px!important;min-height:36px!important;min-width:0!important;font-size:11px!important;border-color:#9bc9e8!important;background:#eaf5ff!important;color:#14598b!important}
.tp-bulk-card .tp-pupil-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:7px 0}
.tp-bulk-card .tp-pupil-common{display:flex!important;align-items:center!important;gap:5px!important;font-size:11px!important;line-height:1.25!important}
.tp-bulk-card .tp-pupil-common input{min-height:18px!important;height:18px!important;width:18px!important;margin:0!important;flex:none}
.tp-bulk-card .tp-pupil-shared{display:block;margin:7px 0!important}
.tp-bulk-card .tp-pupil-shared[hidden]{display:none!important}
.tp-bulk-card .tp-pupil-hint{margin:8px 0!important;padding:8px!important;border-radius:10px;background:#e7f3fc;color:#365a72;font-size:11px!important;line-height:1.35!important}
.tp-bulk-card .tp-bulk-save{position:sticky;bottom:-16px;background:linear-gradient(180deg,#f8fcffb0,#f8fcff 24%);padding:6px 0 2px;z-index:2}
.tp-bulk-card .tp-bulk-save .tp-primary{min-height:43px!important;margin:0!important;border-radius:12px!important;background:linear-gradient(110deg,#0865aa,#003d79)!important;font-size:15px!important}
@media(max-width:360px){.tp-bulk-card .tp-pupil-row{grid-template-columns:16px minmax(0,1fr) minmax(0,1fr) 26px!important;gap:3px!important;padding:5px!important}.tp-bulk-card .tp-pupil-row input{font-size:11px!important}.tp-bulk-card .tp-pupil-actions button{font-size:10px!important}}
