/* Five-role workspace foundation. Foreign Teacher is intentionally not opted in. */
/* One login system for the five independent authentication entry points. */
[data-plus-portal] :is(.login-shell,.teacher-login-shell,.student-login-shell,.parent-login-shell) { min-height:100vh; min-height:100dvh; display:grid; place-items:center; padding:32px 20px; background:#f3f5f9; font-family:"Microsoft YaHei",system-ui,sans-serif; color:#172640; }
[data-plus-portal] :is(.login-card,.teacher-login-card,.student-login-card,.parent-login-layout) { width:min(440px,100%); max-width:440px; display:block; margin:0; padding:32px; border:1px solid #dce3ed; border-radius:16px; background:#fff; box-shadow:0 12px 36px #1726400a; }
[data-plus-portal] .parent-login-intro { padding:0; background:none; color:#172640; }
[data-plus-portal] .parent-login-card { padding:0; border:0; background:none; box-shadow:none; }
[data-plus-portal] :is(.login-mark,.student-login-brand,.parent-login-mark) { display:grid; place-items:center; width:44px; height:44px; margin:0 0 16px; border:0; border-radius:12px; background:#eaf0ff; color:#285bcc; font-size:20px; font-weight:700; }
[data-plus-portal] :is(.login-card,.teacher-login-card,.student-login-card,.parent-login-intro) h1 { margin:8px 0 10px; color:#172640; font-size:26px; line-height:1.4; letter-spacing:0; }
[data-plus-portal] :is(.login-eyebrow,.student-login-card .eyebrow,.parent-login-intro .eyebrow,.teacher-login-card>p) { margin:0; color:#285bcc; font-size:14px; font-weight:600; letter-spacing:0; }
[data-plus-portal] :is(.login-card>span,.student-login-card>p:not(.eyebrow),.teacher-login-card>span,.parent-login-intro>p:not(.eyebrow)) { display:block; margin:0 0 24px; color:#53657c; font-size:14px; line-height:1.7; }
[data-plus-portal] :is(.login-card,.teacher-login-card,.student-login-card,.parent-login-card) label { display:grid; gap:8px; margin:18px 0 0; color:#172640; font-size:14px; font-weight:600; }
[data-plus-portal] :is(.login-card,.teacher-login-card,.student-login-card,.parent-login-card) input { width:100%; min-width:0; height:46px; padding:10px 12px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:#172640; font:inherit; }
[data-plus-portal] :is(.login-card,.teacher-login-card,.student-login-card,.parent-login-card) button { width:100%; min-height:46px; margin:24px 0 0; padding:10px 16px; border:0; border-radius:8px; background:#285bcc; color:#fff; font-size:15px; font-weight:600; box-shadow:none; }
[data-plus-portal] :is(.login-card,.teacher-login-card,.student-login-card,.parent-login-card) button:disabled { opacity:.6; cursor:wait; }
[data-plus-portal] :is(.login-message,.parent-login-message,.teacher-login-card small) { display:block; margin:12px 0 0; color:#53657c; font-size:14px; line-height:1.6; }
[data-plus-portal] :is(.login-card,.teacher-login-card,.student-login-card,.parent-login-card) a { display:inline-block; margin-top:16px; color:#285bcc; font-size:14px; }
@media(max-width:480px) { [data-plus-portal] :is(.login-card,.teacher-login-card,.student-login-card,.parent-login-layout) { padding:24px; } }
:root[data-plus-portal] {
  --plus-ink: #172640;
  --plus-muted: #53657c;
  --plus-accent: #285bcc;
  --plus-line: #dce3ed;
  --plus-canvas: #f3f5f9;
  --plus-surface: #fff;
  font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
  color: var(--plus-ink);
  background: var(--plus-canvas);
}
[data-plus-portal] body { margin: 0; background: var(--plus-canvas); }
[data-plus-portal] *, [data-plus-portal] *::before, [data-plus-portal] *::after { box-sizing: border-box; }
[data-plus-portal] [hidden] { display: none !important; }
[data-plus-portal] :where(button, input, select, textarea) { font: inherit; }
[data-plus-portal] :where(button, a, input, select, textarea):focus-visible { outline: 3px solid #3672dc; outline-offset: 3px; }
[data-plus-portal] :where(button, select, input:not([type=checkbox]):not([type=radio])) { min-height: 44px; }
[data-plus-portal] button { cursor: pointer; }
[data-plus-portal] button:disabled { cursor: not-allowed; }
[data-plus-portal] :where(h1,h2,h3,p) { overflow-wrap: anywhere; }
[data-plus-portal] :where(h1) { font-size: clamp(25px, 2.2vw, 34px); line-height: 1.3; letter-spacing: -.025em; }
[data-plus-portal] :where(h2) { font-size: 21px; line-height: 1.45; }
[data-plus-portal] :where(.sidebar,.teacher-app-sidebar,.student-sidebar,.principal-sidebar,.parent-sidebar) {
  background: #132640;
  color: #f4f7fe;
  border-right: 1px solid #203a5b;
}
[data-plus-portal] :where(.sidebar,.teacher-app-sidebar,.student-sidebar,.principal-sidebar,.parent-sidebar) nav button {
  width: 100%; text-align: left; border-radius: 9px; line-height: 1.5; min-height: 46px;
}
[data-plus-portal] :where(.sidebar,.teacher-app-sidebar,.student-sidebar,.principal-sidebar,.parent-sidebar) nav button[aria-current=page],
[data-plus-portal] :where(.sidebar,.teacher-app-sidebar,.student-sidebar,.principal-sidebar,.parent-sidebar) nav button.active {
  background: #3268d7; color: #fff; box-shadow: inset 3px 0 #9fbdff;
}
[data-plus-portal] :where(.ui-card,.standard-delivery-student,.assignment-card,.completion-card,.result-card,.outcome-detail) {
  border: 1px solid var(--plus-line); border-radius: 14px; background: var(--plus-surface); box-shadow: 0 2px 5px #182a4510;
}
[data-plus-portal] :where(.student-main,.teacher-app-main,.principal-main,.parent-main) { min-width: 0; }
[data-plus-portal] :where(.student-page-header,.ui-page-header,.standard-delivery-workspace > header) {
  margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--plus-line);
}
[data-plus-portal] :where(.student-page-header,.ui-page-header,.standard-delivery-workspace > header) p { color: var(--plus-muted); line-height: 1.7; }
[data-plus-portal] :where(.standard-preparation-grid) { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
[data-plus-portal] .standard-preparation-grid > article { padding: 22px; border: 1px solid var(--plus-line); background: #fff; border-radius: 14px; }
[data-plus-portal] .standard-preparation-grid > article p { color: var(--plus-muted); line-height: 1.7; }
[data-plus-portal] :where(.teacher-error,.student-error,[role=alert]) { border-left: 4px solid #b33d35; padding: 12px 16px; background: #fff4f1; color: #822c24; border-radius: 6px; }
[data-plus-portal] :where(th) { background: #f2f5fa; color: #475b76; font-size: 13px; text-align: left; }
[data-plus-portal] :where(th,td) { padding: 14px 16px; border-bottom: 1px solid var(--plus-line); }
[data-plus-portal] :where(input,select,textarea) { max-width: 100%; border-radius: 8px; }
[data-plus-portal] :where(.standard-delivery-workspace,.outcome-detail,.student-main) { overflow-wrap: anywhere; }
@media(max-width: 800px) {
  [data-plus-portal] .standard-preparation-grid { grid-template-columns: 1fr; }
  [data-plus-portal] :where(.student-page-header,.ui-page-header,.standard-delivery-workspace > header) { flex-wrap: wrap; gap: 14px; }
  [data-plus-portal] :where(.ui-table-wrap) { overflow-x: auto; }
}
.plus-task-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 20px 0 24px; }
.plus-task-filters button { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px; border: 1px solid #dce3ed; background: #fff; border-radius: 12px; color: #53657c; text-align: left; }
.plus-task-filters strong { color: #172640; font-size: 24px; }
.plus-task-filters [aria-pressed=true] { border-color: #285bcc; background: #edf3ff; color: #214da8; }
.plus-task-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.plus-task-grid .plus-task-card { display: flex; align-items: flex-start; flex-direction: column; gap: 22px; padding: 24px; margin: 0; }
.plus-task-card h3 { margin: 14px 0 8px; font-size: 22px; }
.plus-task-card button { margin-top: auto; }
[data-plus-portal] .parent-console-sidebar { background: #132640; color: #f4f7fe; }
[data-plus-portal] :where(.principal-sidebar,.parent-console-sidebar) nav a { display: flex; align-items: center; min-height: 46px; border-radius: 9px; }
[data-plus-portal] :where(.principal-sidebar,.parent-console-sidebar) nav a.active { background: #3268d7; color: #fff; box-shadow: inset 3px 0 #9fbdff; }
@media(max-width: 800px) { .plus-task-filters { grid-template-columns: repeat(2,minmax(0,1fr)); } .plus-task-grid { grid-template-columns: 1fr; } }
.plus-operator-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:24px 0; }
.plus-operator-actions :is(a,button) { display:flex; flex-direction:column; gap:10px; padding:23px; text-align:left; color:#172640; background:#fff; border:1px solid #dce3ed; border-radius:14px; text-decoration:none; }
.plus-operator-actions :is(a,button):hover { border-color:#285bcc; background:#f7faff; }
.plus-operator-actions span { color:#285bcc; font-size:12px; font-weight:700; letter-spacing:.03em; }
.plus-operator-actions strong { font-size:20px; }
.plus-operator-actions small { color:#53657c; line-height:1.7; }
.plus-parent-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-bottom:22px; }
.plus-parent-metrics article,.plus-parent-latest { display:flex; flex-direction:column; gap:12px; border:1px solid #dce3ed; border-radius:14px; background:#fff; padding:26px; }
.plus-parent-metrics strong { font-size:32px; color:#172640; }
.plus-parent-metrics :is(span,small),.plus-parent-latest p { color:#53657c; }
.plus-parent-latest .type-pill { align-self:flex-start; }
.plus-parent-latest h2 { margin:0; }
.plus-inline-actions { display:flex; gap:12px; flex-wrap:wrap; }
.plus-inline-actions button { border:1px solid #285bcc; border-radius:8px; background:#285bcc; color:#fff; padding:10px 18px; }
.plus-inline-actions button+button { color:#285bcc; background:#fff; }
[data-plus-portal] .parent-console-sidebar nav button { margin:0; padding:12px 16px; color:#d9e5f9; background:transparent; border:0; text-align:left; }
[data-plus-portal] .parent-console-sidebar nav button[aria-current=page] { background:#3268d7; color:#fff; }
.plus-legacy-archive { margin-top:32px; border-top:1px solid #dce3ed; padding-top:20px; }
.plus-legacy-archive summary { cursor:pointer; color:#53657c; min-height:44px; padding:10px 0; }
@media(max-width:800px) { .plus-operator-actions,.plus-parent-metrics { grid-template-columns:1fr; } .plus-operator-actions { gap:10px; } .plus-operator-actions :is(a,button) { padding:18px; } }

/* Rebuilt visual system: quiet light navigation, clear content hierarchy. */
[data-plus-portal] :is(.sidebar,.teacher-app-sidebar,.student-sidebar,.principal-sidebar,.parent-console-sidebar) {
  background:#fff; color:#172640; border-right:1px solid #dce3ed; box-shadow:none;
}
[data-plus-portal] :is(.sidebar,.teacher-app-sidebar,.student-sidebar,.principal-sidebar,.parent-console-sidebar) :is(.brand,.brand-lockup,.teacher-app-brand,.principal-brand,.parent-console-brand) {
  border-bottom:1px solid #e6ebf2; color:#172640;
}
[data-plus-portal] :is(.sidebar,.teacher-app-sidebar,.student-sidebar,.principal-sidebar,.parent-console-sidebar) :is(.brand,.brand-lockup,.teacher-app-brand,.principal-brand,.parent-console-brand) :is(strong,small,span) { color:inherit; }
[data-plus-portal] :is(.sidebar,.teacher-app-sidebar,.student-sidebar,.principal-sidebar,.parent-console-sidebar) nav :is(a,button) {
  color:#53657c; font-weight:600; border:0; background:transparent; border-radius:9px; margin:0;
}
[data-plus-portal] :is(.sidebar,.teacher-app-sidebar,.student-sidebar,.principal-sidebar,.parent-console-sidebar) nav :is(a,button):hover { background:#f2f5fa; color:#172640; }
[data-plus-portal] :is(.sidebar,.teacher-app-sidebar,.student-sidebar,.principal-sidebar,.parent-console-sidebar) nav :is(a,button).active,
[data-plus-portal] :is(.sidebar,.teacher-app-sidebar,.student-sidebar,.principal-sidebar,.parent-console-sidebar) nav [aria-current=page] {
  background:#eaf0ff; color:#234fa8; box-shadow:inset 3px 0 #285bcc;
}
[data-plus-portal] :is(.teacher-sidebar-context,.student-sidebar-context,.sidebar-account,.student-profile,.parent-console-note) {
  background:#f5f7fb; border:1px solid #e3e9f1; color:#334c6f; border-radius:10px;
}
[data-plus-portal] :is(.teacher-sidebar-context,.student-sidebar-context,.sidebar-account,.student-profile,.parent-console-note) :is(span,strong,small) { color:inherit; }
[data-plus-portal] :is(.sidebar-logout,.teacher-sidebar-logout,.student-logout,.logout,.parent-console-sidebar>button) {
  background:#fff; border:1px solid #dce3ed; border-radius:9px; color:#53657c; box-shadow:none; font-size:14px;
}
[data-plus-portal] :is(.parent-console-main,.principal-main,.student-main,.teacher-app-main,.main-shell) { background:#f3f5f9; }
[data-plus-portal] :is(.hero-band,.topbar,.parent-console-topbar) { background:transparent; color:#172640; box-shadow:none; }
[data-plus-portal] :is(.surface,.panel,.metric,.plan-card,.workspace-shell,.settings-card,.outcome-list,.outcome-detail) { border-color:#dce3ed; box-shadow:0 2px 5px #182a4508; border-radius:14px; }
[data-plus-portal] :is(.teacher-app-main,.principal-main,.parent-console-main,.student-main,.main-shell) { line-height:1.55; }
@media(min-width:1001px) {
  [data-plus-portal=platform] body>.app-shell,
  [data-plus-portal=institution] .principal-shell,
  [data-plus-portal=parent] .parent-console-shell,
  [data-plus-portal=teacher] .teacher-app-frame:not(.sidebar-collapsed),
  [data-plus-portal=student] .student-shell:not(.sidebar-collapsed) { display:grid; grid-template-columns:224px minmax(0,1fr); min-height:100vh; }
  [data-plus-portal] :is(.sidebar,.teacher-app-sidebar,.student-sidebar,.principal-sidebar,.parent-console-sidebar) { width:224px; padding:24px 16px; }
  [data-plus-portal] :is(.main-shell,.teacher-app-main,.student-main,.principal-main,.parent-console-main) { margin:0; width:100%; max-width:none; padding:32px clamp(24px,3vw,48px) 64px; }
  [data-plus-portal] .product-sidebar-toggle { left:204px; }
  [data-plus-portal] .sidebar-collapsed .product-sidebar-toggle { left:12px; }
}
@media(prefers-reduced-motion: reduce) {
  [data-plus-portal] *, [data-plus-portal] *::before, [data-plus-portal] *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Selected Product Design direction: centered, tinted page; independent users. */
[data-plus-portal=platform] .page:not([data-page=dashboard])>.page-heading h2 { display:none; }
[data-plus-portal=platform] :is(.workspace-tabs button,.quality-row,.book-row,.quiet-notice,.entity-list button,.operation-gate) { font-size:14px; line-height:1.65; }
[data-plus-portal=platform] :is(.workspace-header,.workspace-panel,.settings-card) { min-width:0; }
[data-plus-portal=platform] .workspace-tabs { overflow-x:auto; flex-wrap:nowrap; }
[data-plus-portal=platform] .workspace-tabs button { flex-shrink:0; min-height:44px; }
[data-plus-portal=platform] .settings-grid { align-items:start; gap:24px; }
[data-plus-portal] :is(.login-shell,.teacher-login-shell,.student-login-shell,.parent-login-shell) { background:#edf4fc; padding:96px 24px 64px; font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif; }
[data-plus-portal] :is(.login-card,.teacher-login-card,.student-login-card,.parent-login-layout) { width:min(400px,100%); max-width:400px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
[data-plus-portal] .parent-login-card { display:block; gap:0; margin:0; padding:0; }
[data-plus-portal] :is(.login-card,.teacher-login-card,.student-login-card,.parent-login-intro) h1 { margin:0 0 12px; text-align:center; font-size:30px; font-weight:700; color:#102847; line-height:1.4; }
[data-plus-portal] :is(.login-card>span,.teacher-login-card>span,.student-login-card>p:not(.eyebrow),.parent-login-intro>p:not(.eyebrow)) { text-align:center; margin:0 0 32px; font-size:15px; line-height:1.7; color:#53677f; }
[data-plus-portal] :is(.login-card,.teacher-login-card,.student-login-card,.parent-login-card) label { margin:22px 0 0; gap:8px; font-size:15px; font-weight:600; color:#102847; }
[data-plus-portal] :is(.login-card,.teacher-login-card,.student-login-card,.parent-login-card) input { height:48px; border-color:#adbed4; background:#fff; font-size:16px; font-weight:400; }
[data-plus-portal] :is(.login-card,.teacher-login-card,.student-login-card,.parent-login-card) button { min-height:48px; margin-top:28px; background:#1460ed; font-size:16px; }
[data-plus-portal] :is(.login-card,.teacher-login-card,.student-login-card,.parent-login-card) button:hover:not(:disabled) { background:#104ec3; }
[data-plus-portal] :is(.login-message,.parent-login-message,.teacher-login-card small):empty { display:none; }
[data-plus-portal=platform] .login-card>.login-eyebrow { position:absolute; left:40px; top:28px; margin:0; color:#102847; font-size:22px; font-weight:700; }
@media(max-width:480px) {
 [data-plus-portal] :is(.login-shell,.teacher-login-shell,.student-login-shell,.parent-login-shell) { padding:88px 24px 40px; }
 [data-plus-portal] :is(.login-card,.teacher-login-card,.student-login-card,.parent-login-layout) { padding:0; }
 [data-plus-portal=platform] .login-card>.login-eyebrow { left:24px; top:24px; font-size:20px; }
}
