/* Munzako Academics - teacher workspace (v92). Uses the design tokens from ma.css, so dark mode works. */
.mt-hero { background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 72%, #3a6be0 100%); color: #fff; border-radius: 24px; padding: 22px 22px 20px; position: relative; overflow: hidden; }
.mt-hero::after { content: ""; position: absolute; width: 280px; height: 280px; right: -90px; top: -110px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.mt-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; position: relative; z-index: 1; }
.mt-hello { margin: 0; font-size: 15px; opacity: .9; }
.mt-hello span { opacity: .75; font-size: 13px; }
.mt-hero h1 { color: #fff; font-size: clamp(25px, 4.2vw, 34px); font-weight: 800; margin: 2px 0 0; letter-spacing: -.02em; }
.mt-assist { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.16); color: #fff; text-decoration: none; padding: 9px 14px; border-radius: 14px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.mt-assist:hover { background: rgba(255,255,255,.26); }
.mt-assist i { color: #fde68a; }
.mt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; position: relative; z-index: 1; }
.mt-chips span { background: rgba(255,255,255,.18); border-radius: 12px; padding: 7px 13px; font-weight: 700; font-size: 14px; }
.mt-chips .date { background: #fff; color: var(--brand-deep); display: inline-flex; gap: 6px; align-items: center; }
:root[data-theme="dark"] .mt-chips .date { background: #e8edf7; }
.mt-search { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 14px; padding: 6px 6px 6px 14px; margin-top: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.mt-search i { color: var(--muted); }
.mt-search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); padding: 8px 4px; min-width: 0; }
.mt-search input:focus { outline: none; }
.mt-search.inpage { box-shadow: var(--shadow); border: 1px solid var(--line); margin: 0 0 16px; }
@media (max-width: 560px) { .mt-hero { border-radius: 0 0 24px 24px; margin: -18px -16px 0; padding-top: 20px; } .mt-assist span { display: none; } .mt-search .ma-btn { display: none; } }

.mt-quick { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 4px; scrollbar-width: none; }
.mt-quick::-webkit-scrollbar { display: none; }
.mt-quick a { flex: none; display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 14px; transition: transform .12s, box-shadow .12s; }
.mt-quick a:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.mt-quick a i { color: var(--brand); }
.mt-quick a.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.mt-quick a.primary i { color: #fff; }

.mt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mt-card-wrap { position: relative; }
.mt-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 10px 14px; height: 100%;
           text-decoration: none; color: var(--ink); position: relative; transition: transform .14s ease, box-shadow .14s ease, border-color .14s; box-shadow: 0 1px 2px rgba(15,26,46,.04); }
.mt-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--fg) 35%, var(--line)); }
.mt-card .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 25px; background: var(--bg); color: var(--fg); }
:root[data-theme="dark"] .mt-card .ic { background: color-mix(in srgb, var(--fg) 22%, var(--card)); color: color-mix(in srgb, var(--fg) 55%, #fff); }
.mt-card b { font-size: 14.5px; line-height: 1.25; }
.mt-card small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.mt-card.locked { opacity: .62; }
.mt-card.locked::after { content: "\F47B"; font-family: bootstrap-icons; position: absolute; top: 10px; left: 12px; color: var(--muted); font-size: 13px; }
.mt-card .n { position: absolute; top: 10px; left: 12px; background: #e11d48; color: #fff; border-radius: 999px; font-size: 11px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }
.mt-card.wa { border-color: #bfe5cd; }
.mt-grid.fav .mt-card { flex-direction: row; text-align: left; padding: 12px 14px; gap: 12px; }
.mt-grid.fav .mt-card .ic { width: 42px; height: 42px; font-size: 20px; border-radius: 12px; flex: none; }
.mt-pin { position: absolute; top: 6px; right: 6px; margin: 0; }
.mt-pin button { border: 0; background: transparent; color: var(--muted); width: 32px; height: 32px; border-radius: 10px; cursor: pointer; font-size: 15px; opacity: .55; }
.mt-pin button:hover, .mt-pin button:focus-visible { opacity: 1; background: var(--brand-softer); }
.mt-pin .bi-star-fill { color: #f59e0b; }
.mt-card-wrap:hover .mt-pin button { opacity: 1; }
@media (max-width: 560px) {
  .mt-grid { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .mt-card { padding: 14px 6px 12px; border-radius: 18px; }
  .mt-card .ic { width: 46px; height: 46px; font-size: 21px; border-radius: 14px; }
  .mt-card b { font-size: 12.5px; }
  .mt-card small { display: none; }
  .mt-pin button { width: 26px; height: 26px; font-size: 12px; }
  .mt-grid.fav { grid-template-columns: 1fr 1fr; }
}

.mt-widgets { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin-top: 20px; }
.mt-widgets .ma-card + .ma-card { margin-top: 0; }
@media (max-width: 1000px) { .mt-widgets { grid-template-columns: 1fr; } .mt-widgets .ma-card + .ma-card { margin-top: 0; } }
.mt-wh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.mt-wh h2 { font-size: 16.5px; margin: 0; display: flex; gap: 8px; align-items: center; }
.mt-wh h2 i { color: var(--brand); }
.mt-wh a { font-size: 13px; }
.mt-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--brand); }
.mt-dot.t-lesson_plan { background: #0f8a74; } .mt-dot.t-scheme_of_work { background: #5b3fd4; } .mt-dot.t-weekly_forecast { background: #2451c8; }
.mt-dot.t-record_of_work { background: #c2620a; } .mt-dot.t-work_plan { background: #7a4a2a; } .mt-dot.t-assessment { background: #c8264b; }
.mt-meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mt-meters a { background: var(--brand-softer); border-radius: 14px; padding: 10px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.mt-meters b { font-size: 22px; line-height: 1.1; }
.mt-meters span { font-size: 12px; color: var(--muted); line-height: 1.25; }
.mt-progress { margin-top: 14px; }
.mt-progress div { display: flex; justify-content: space-between; font-size: 13px; color: var(--body); margin-bottom: 6px; }
.mt-progress i { display: block; height: 8px; background: var(--line); border-radius: 8px; overflow: hidden; }
.mt-progress em { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #22c55e); border-radius: 8px; transition: width .6s ease; }
.mt-date { width: 44px; text-align: center; background: var(--brand-softer); border-radius: 12px; padding: 4px 0; flex: none; }
.mt-date b { display: block; font-size: 17px; color: var(--ink); line-height: 1.1; }
.mt-date span { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.mt-sub { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; display: grid; gap: 6px; }
.mt-sub .ma-btn { justify-self: start; }

/* assistant */
.mt-tasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.mt-task { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; text-decoration: none; color: var(--ink); background: var(--card); transition: transform .12s, box-shadow .12s; }
.mt-task:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mt-task .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; background: var(--bg); color: var(--fg); flex: none; }
:root[data-theme="dark"] .mt-task .ic { background: color-mix(in srgb, var(--fg) 22%, var(--card)); color: color-mix(in srgb, var(--fg) 55%, #fff); }
.mt-task b { display: block; font-size: 15px; }
.mt-task small { color: var(--muted); font-size: 12.5px; }
.mt-task .go { margin-left: auto; color: var(--muted); }
.mt-answer { margin-top: 14px; background: var(--brand-softer); border-radius: 14px; padding: 14px 16px; font-size: 15px; line-height: 1.6; color: var(--ink); }
.mt-ask { margin-bottom: 16px; }

/* receipts list */
.mt-receipt { font-size: 13px; }

/* ---- v93: AI Teaching Assistant answers ---- */
.mt-task.on { border-color: var(--fg); box-shadow: 0 0 0 2px color-mix(in srgb, var(--fg) 25%, transparent); }
.mt-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 17px; vertical-align: middle; margin-right: 4px; }
.mt-result { border: 2px solid var(--brand-soft); }
.mt-result-h { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.mt-result-h h2 { margin: 0 0 4px; }
.mt-result-h p { margin: 0; }
.mt-rich h4 { margin: 14px 0 4px; font-size: 15px; color: var(--ink); }
.mt-rich h4:first-child { margin-top: 0; }
.mt-rich p { margin: 0 0 8px; }
.mt-rich ul, .mt-rich ol { margin: 0 0 10px; padding-left: 22px; }
.mt-rich li { margin: 3px 0; }
