/* V6 · professional, restrained product system */
:root{--bg:#f4f7f6;--ink:#133a35;--muted:#637c75;--line:#dbe5e1;--radius:15px;--teal:#146f65;--deep:#0a514a;--gold:#b78b40;--shadow:0 10px 32px rgba(19,64,55,.065)}
body{background:#f5f7f6!important;color:var(--ink)}
button,input,select,textarea{font-family:inherit}
.btn{border-radius:10px!important;min-height:41px;letter-spacing:-.01em;font-weight:650!important;transition:background .16s,border-color .16s,transform .12s,box-shadow .16s}
.btn:hover,.v6-submit:hover{filter:brightness(.96)}
.btn:active,.v6-submit:active{transform:translateY(1px)}
.btn:focus-visible,.v6-auth-tabs button:focus-visible,.v6-switch button:focus-visible{outline:3px solid #5eaea3;outline-offset:2px}
.panel{border:1px solid #dfe8e3!important;box-shadow:0 5px 20px rgba(21,68,56,.027)!important;border-radius:16px!important}
.input{border:1px solid #d4e1da!important;background:white!important;border-radius:10px!important;min-height:46px;padding:11px 13px!important;transition:.15s}
.input:focus{border-color:#2e9384!important;outline:3px solid #a2ded333!important;box-shadow:0 0 0 3px #3a9e8520!important}
.field label{font-weight:700;font-size:.84rem;color:#315750;line-height:1.6}
.page-head{padding-bottom:11px}.page-head h1{font-size:clamp(25px,2.6vw,36px)!important;font-weight:800;letter-spacing:-.045em!important}
.page-head p{max-width:640px;line-height:1.65}.sidebar{box-shadow:3px 0 18px #17392d08;background:#fff!important}.nav>button{font-weight:670!important;margin:1px 0;border-radius:10px!important;min-height:45px!important}
.nav>button.active{background:#e9f4f0!important;color:#096658!important}.topbar{border-bottom:1px solid #e7ede9;box-shadow:none!important}
.main{padding-bottom:100px}.modal{border:1px solid #dde8e2;box-shadow:0 25px 100px #13392b30;border-radius:18px}.modal-scrim{backdrop-filter:blur(5px)}
.mk5-school-area.teacher .mk5-school-head{background:linear-gradient(120deg,#e9f2f0,#f7fbf8)!important;border-radius:15px}.mk5-school-area.student .mk5-school-head{border-radius:18px;background:linear-gradient(115deg,#f0f9f4,#fffcf4)!important}
.mk5-resource{border-radius:13px!important;box-shadow:none!important}.mk5-tabs{border-radius:12px!important}.mk5-tabs button{border-radius:8px!important}.mk5-submissions .info-row{border-bottom:1px solid #e6ece9;flex-wrap:wrap}
.mk5-action-banner{border-radius:13px}.mk5-profile-card{border-radius:14px!important}.mk5-product{border-radius:14px!important}.mk5-shop-banner{border-radius:16px!important}
/* Full page authentication redesign: editorial hero + integrated sign-in */
.v6-auth-page{min-height:100svh;min-height:100dvh;background:#f4f7f5;display:flex;flex-direction:column;position:relative;overflow:hidden}
.v6-auth-page:before{content:'';position:absolute;inset:0;background-image:radial-gradient(#639987 0.7px,transparent .7px);background-size:21px 21px;opacity:.12;pointer-events:none}
.v6-auth-page .public-top{position:relative;z-index:2;border:0!important;background:transparent!important;padding:14px clamp(22px,4vw,70px)!important;min-height:94px}
.v6-auth-page .public-top .mark{height:73px;width:190px;object-fit:contain;object-position:left center;clip-path:inset(1% 0 1% 0)}
.v6-auth-page .langsel{border-radius:10px;background:white;border:1px solid #d8e6df;padding:10px 12px;font-weight:750}
.v6-auth-layout{width:min(1190px,94vw);margin:auto;display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,.97fr);background:#fff;border:1px solid #dee8e3;border-radius:26px;overflow:hidden;min-height:595px;box-shadow:0 28px 90px rgba(25,63,51,.11);position:relative;z-index:1;margin-block:clamp(10px,2.5vw,36px) 55px}
.v6-auth-intro{background:linear-gradient(145deg,#0c3e39 0%,#125e55 58%,#167c69 100%);padding:clamp(36px,5vw,70px);position:relative;color:#fff;display:flex;flex-direction:column;overflow:hidden}
.v6-auth-intro:before{content:'';position:absolute;width:420px;height:420px;right:-170px;top:-150px;border:1px solid rgba(237,221,160,.21);border-radius:50%;box-shadow:0 0 0 68px rgba(255,255,255,.018),0 0 0 148px rgba(255,255,255,.012)}
.v6-auth-intro:after{content:'';position:absolute;width:450px;height:450px;bottom:-285px;left:-150px;border-radius:50%;background:radial-gradient(circle,#d2bd7a18 0%,transparent 68%)}
.v6-intro-overline{display:flex;align-items:center;gap:10px;letter-spacing:.15em;font-size:10px;color:#cde9e0;font-weight:750;position:relative;z-index:1}
.v6-status-dot{width:9px;height:9px;border-radius:50%;background:#d4b46c;box-shadow:0 0 0 4px #d4b46c25}
.v6-auth-intro h1{margin:70px 0 22px;color:#fff;font-size:clamp(39px,4.5vw,59px);line-height:1.11;letter-spacing:-.05em;position:relative;z-index:1}
.v6-auth-intro h1 em{font-weight:470;font-family:Georgia,'Times New Roman',serif;color:#e4c884}
.v6-auth-intro>p{font-size:16px;color:#d5eae2;line-height:1.75;max-width:470px;position:relative;z-index:1}
.v6-intro-highlights{display:flex;flex-direction:column;gap:15px;margin-top:29px;position:relative;z-index:1}
.v6-intro-highlights>span{display:flex;gap:12px;align-items:center;font-size:13px;font-weight:650;color:#e1f2ec}
.v6-intro-highlights svg{width:19px;height:19px;color:#d5b978}
.v6-intro-foot{margin-top:auto;display:flex;justify-content:space-between;padding-top:60px;font-size:11px;letter-spacing:.12em;color:#b4d7ce;font-weight:650}
.v6-auth-box{padding:clamp(28px,4.3vw,57px);display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:0}
.v6-auth-eyebrow{font-size:10px;font-weight:850;letter-spacing:.21em;color:#a47f3e}
.v6-auth-head h2{font-size:clamp(26px,2.6vw,35px);line-height:1.15;letter-spacing:-.045em;margin:9px 0 11px;color:#143f37;font-weight:820}
.v6-auth-head p{font-size:13px;line-height:1.6;color:#72867e;margin:0 0 27px}
.v6-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;border:1px solid #e4ece7;background:#f5f7f5;border-radius:12px;padding:5px;margin-bottom:26px}
.v6-auth-tabs button{border:0;background:transparent;color:#668078;border-radius:8px;min-height:46px;display:flex;align-items:center;justify-content:center;gap:9px;font-size:12.5px;font-weight:780;padding:9px}
.v6-auth-tabs button .icon{width:17px;height:17px}.v6-auth-tabs button.selected{background:#fff;color:#0b6d60;box-shadow:0 2px 10px #1c504016;border:1px solid #e0eae4}
.v6-form-top h3{margin:0 0 6px;font-size:18px;color:#224a40}.v6-form-top p{color:#75867d;font-size:12px;line-height:1.55;margin-bottom:20px}
.v6-auth-form{display:grid;gap:15px}.v6-auth-form .field{display:grid;gap:6px}.v6-auth-form .field .input{min-height:49px}.v6-auth-form .field label{font-size:12px}
.v6-submit{border:1px solid #126d60;background:#126d60;color:white;min-height:49px;display:flex;align-items:center;justify-content:center;gap:13px;border-radius:11px;font-weight:760;font-size:14px;margin-top:3px}
.v6-submit svg{width:18px;height:18px}.v6-join-link{display:flex;gap:7px;align-items:center;border:0;background:none;color:#0d7365;font-weight:700;font-size:12px;margin-top:18px;padding:4px 0;width:fit-content}
.v6-join-link svg{width:16px;height:16px}.v6-switch{display:flex;gap:6px;margin:-7px 0 14px}.v6-switch button{border:1px solid #e1ebe5;border-radius:8px;padding:8px 15px;color:#6a8179;background:#fff;font-size:12px;font-weight:730}.v6-switch button.selected{background:#e9f5ef;color:#0b7360;border-color:#a0d0b7}
.v6-auth-providers{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:13px 0 6px}.v6-auth-providers button{font-weight:650;font-size:11px;padding:10px 5px;border:1px solid #dce8e1;background:white;border-radius:8px;color:#305950}.v6-access-note{font-size:10px;line-height:1.6;color:#8a9a93}.v6-demo-key{margin-top:16px}.v6-demo-key details{border:1px dashed #d9e4dd;border-radius:10px;padding:9px 10px;font-size:11px;color:#67827a;background:#f9fbf9}.v6-demo-key summary{cursor:pointer;font-weight:760}.v6-demo-label{font-size:10px;color:#9ba9a0;text-align:center;margin-top:14px}
/* Admin: classes, users and grades */
.v6-school-admin-top{display:grid;grid-template-columns:1.4fr 1fr;gap:16px;margin-bottom:16px}.v6-classes{margin:16px 0;display:grid;gap:9px}
.v6-class-row{display:flex;align-items:center;gap:12px;background:#fbfcfb;border:1px solid #e2eae6;padding:11px 12px;border-radius:11px;min-width:0}
.v6-class-symbol{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;background:#e5f3ed;color:#0e7968;border-radius:10px}
.v6-class-symbol .icon{height:20px;width:20px}.v6-class-content{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}.v6-class-content strong{font-size:13px;overflow-wrap:anywhere}.v6-class-content small{color:#87978e;font-size:10px}.v6-class-row .row-actions{flex-wrap:nowrap;gap:5px}.v6-class-row .btn{font-size:11px;padding:6px 8px;min-height:33px}
.v6-admin-tip{display:flex;gap:9px;align-items:center;color:#69837a;font-size:12px;line-height:1.55;background:#edf7f1;padding:11px;border-radius:10px}.v6-admin-tip svg{width:20px;height:20px;flex:0 0 20px}
.v6-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:16px 0 20px}.v6-summary-grid div{background:#f5f9f6;border:1px solid #e0eae4;border-radius:12px;padding:20px}.v6-summary-grid strong{display:block;font-size:32px;color:#0e7465}.v6-summary-grid small{font-size:12px;color:#72897e}
.v6-admin-actions{display:flex;flex-wrap:wrap;gap:9px}.v6-data-table{overflow-x:auto}.v6-data-table .datatable{width:100%;min-width:550px}.v6-data-table .datatable td small{display:block;font-size:11px;color:#84918c;margin-top:4px}
/* Teacher submissions inbox */
.v6-inbox-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:9px 0 18px}.v6-inbox-stats>div{background:#fff;border:1px solid #e0e9e4;border-radius:12px;padding:19px}.v6-inbox-stats strong{display:block;font-size:30px;letter-spacing:-.04em;color:#0f7468}.v6-inbox-stats small{font-size:12px;color:#789087}
.v6-inbox-toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 13px}.v6-chip{font-size:12px;border:1px solid #dce8e1;background:#fff;color:#667e74;border-radius:20px;padding:8px 13px;font-weight:720}.v6-chip.active{background:#156e65;color:white;border-color:#156e65}
.v6-inbox-list{display:grid;gap:12px}.v6-submission-card{display:flex;align-items:flex-start;gap:16px;background:#fff;border:1px solid #dfe9e4;border-radius:14px;padding:19px}.v6-submission-icon{flex:0 0 46px;height:46px;width:46px;border-radius:12px;display:grid;place-items:center;background:#e9f4ee;color:#087665}.v6-submission-icon svg{width:22px;height:22px}.v6-submission-main{flex:1;min-width:0;display:grid;gap:10px}.v6-submission-main>small{font-size:12px;color:#718b80}.v6-submission-file .mk5-file{margin:0}.v6-feedback{background:#f0f8f3;border-radius:10px;padding:11px!important;color:#246c55!important;font-size:12px;display:flex;align-items:center;gap:8px}.v6-feedback svg{width:16px;height:16px}.v6-empty{text-align:center;padding:42px 18px!important}.v6-empty>div{margin:auto;width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:#e8f6ec;color:#21836e}.v6-empty>div .icon{width:25px;height:25px}.v6-empty h3{margin:18px 0 5px}
html[dir=rtl] .v6-auth-page,html[dir=rtl] .v6-auth-layout,html[dir=rtl] .v6-submission-card{direction:rtl}html[dir=rtl] .v6-auth-page .public-top .mark{object-position:right center}html[dir=rtl] .v6-intro-overline{letter-spacing:0}html[dir=rtl] .v6-auth-intro h1{letter-spacing:0;line-height:1.45}
@media(max-width:900px){.v6-auth-layout{grid-template-columns:1fr;max-width:550px;min-height:0}.v6-auth-intro{padding:30px 30px 26px}.v6-auth-intro h1{font-size:32px;margin:24px 0 10px}.v6-auth-intro>p{font-size:13px;margin:0}.v6-intro-highlights,.v6-intro-foot{display:none}.v6-auth-box{padding:29px}.v6-school-admin-top{grid-template-columns:1fr}}
@media(max-width:600px){.v6-auth-page .public-top{min-height:72px;padding:8px 15px!important}.v6-auth-page .public-top .mark{height:55px;width:140px}.v6-auth-layout{width:calc(100% - 22px);margin-top:6px;border-radius:18px;margin-bottom:30px}.v6-auth-intro{padding:23px}.v6-auth-intro h1{font-size:27px;margin:16px 0 5px}.v6-auth-intro>p{font-size:12px;line-height:1.6}.v6-auth-box{padding:22px 20px 25px}.v6-auth-head h2{font-size:25px}.v6-auth-head p{margin-bottom:17px}.v6-auth-tabs{margin-bottom:17px}.v6-auth-tabs button{font-size:11px;min-height:44px;padding:6px 4px}.v6-auth-tabs button svg{display:none}.v6-class-row{flex-wrap:wrap}.v6-class-content{min-width:calc(100% - 62px)}.v6-class-row .row-actions{margin-left:53px}.v6-inbox-stats{gap:7px}.v6-inbox-stats>div{padding:13px}.v6-inbox-stats strong{font-size:25px}.v6-inbox-stats small{font-size:10px}.v6-submission-card{padding:13px;gap:10px}.v6-submission-icon{width:36px;height:36px;flex-basis:36px}.v6-submission-main .row-actions{flex-wrap:wrap}.v6-admin-actions .btn{width:100%;justify-content:center}}

/* Mobile school tabs: horizontally scrollable, no clipped labels. */
@media(max-width:720px){.mk5-tabs{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overscroll-behavior-x:contain;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.mk5-tabs button{flex:0 0 auto!important;min-width:102px;white-space:nowrap;scroll-snap-align:start}.mk5-tabs button.selected{min-width:132px}.mk5-school-head{align-items:flex-start;flex-direction:column!important}.mk5-school-head .row-actions{width:100%}}

/* Admin command center */
.v6-admin-welcome{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:20px}.v6-admin-welcome h1{font-size:clamp(30px,3vw,39px);letter-spacing:-.045em;margin:9px 0}.v6-admin-welcome p{color:#6a8178;line-height:1.6;margin:0}.v6-admin-role{display:inline-flex;align-items:center;gap:9px;color:#196759;background:#e3f1ea;border:1px solid #cfe7db;padding:10px 15px;border-radius:99px;font-size:11px;font-weight:850;letter-spacing:.06em}.v6-admin-role svg{width:17px;height:17px}
.v6-admin-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:19px}.v6-admin-overview>div{display:grid;gap:9px;background:#fff;border:1px solid #e1e9e4;border-radius:14px;padding:21px}.v6-admin-overview svg{width:23px;height:23px;color:#0f806e}.v6-admin-overview strong{font-size:32px;line-height:1;color:#154c44}.v6-admin-overview small{font-size:12px;color:#7b9287}
.v6-admin-focus{background:linear-gradient(110deg,#104a43,#126d62);color:#fff;display:flex;gap:20px;align-items:center;justify-content:space-between;border-radius:17px;padding:28px 30px;margin-bottom:27px}.v6-admin-focus .eyebrow{color:#c7dcb5}.v6-admin-focus h2{font-size:23px;color:#fff;margin:8px 0}.v6-admin-focus p{font-size:13px;color:#d5eee5;margin:0}.v6-admin-focus .row-actions{flex-wrap:wrap}.v6-admin-focus button{white-space:nowrap}
@media(max-width:800px){.v6-admin-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.v6-admin-focus{flex-direction:column;align-items:stretch}.v6-admin-welcome{flex-direction:column}.v6-admin-overview>div{padding:15px}}
