/* Scoped to the platform hub; school and learning pages keep their own theme. */
body.fq2.fq-hub {--f-paper:#f5f7fa;--f-line:#e2e8ed}
body.fq2.fq-hub .main,body.fq2.fq-hub #mainContent {background:#f5f7fa!important;background-image:none!important}
body.fq-hub #mainContent {padding:22px 28px 38px!important;max-width:none!important}
.hub-root,.hub-dialog {--ink:#203345;--muted:#637587;--line:#e2e8ed;font-family:Cairo,Arial,sans-serif;color:var(--ink);letter-spacing:0;line-height:1.7}
.hub-root *,.hub-dialog * {box-sizing:border-box;letter-spacing:0}
.hub-root [hidden],.hub-dialog [hidden] {display:none!important}
.hub-root button,.hub-dialog button,.hub-root input,.hub-root select,.hub-dialog input,.hub-dialog textarea,.hub-dialog select {font:inherit}
.hub-root button,.hub-dialog button {cursor:pointer}
.hub-root button:focus-visible,.hub-dialog button:focus-visible,.hub-root input:focus-visible,.hub-dialog input:focus-visible {outline:3px solid #318ac8;outline-offset:3px}
.hub-root svg,.hub-dialog svg {width:21px;height:21px;flex-shrink:0;vertical-align:middle}
.hub-root h1,.hub-root h2,.hub-root h3,.hub-root p,.hub-dialog h2 {margin:0;color:inherit}
.hub-root h1 {font-size:27px;font-weight:800;line-height:1.5}
.hub-root h2 {font-size:19px;font-weight:800}
.hub-root h3 {font-size:16px;font-weight:750}
.hub-root p {font-size:13px;color:var(--muted)}
.tone-teal {--accent:#087f77;--soft:#e2f5f0;--wash:#f2faf7}
.tone-blue {--accent:#2868ad;--soft:#e5effd;--wash:#f4f8fe}
.tone-rose {--accent:#b64265;--soft:#fdeaf0;--wash:#fff6f9}
.tone-indigo {--accent:#595eb3;--soft:#ebedfb;--wash:#f6f7ff}
.tone-green {--accent:#38834d;--soft:#e8f4e5;--wash:#f5faf3}
.tone-amber {--accent:#a66a0b;--soft:#fff1d2;--wash:#fffaf0}
.tone-plum {--accent:#91518d;--soft:#f2e9f5;--wash:#fbf6fc}
.tone-cyan {--accent:#117e96;--soft:#e0f3f8;--wash:#f2fafc}
.tone-coral {--accent:#8e65ab;--soft:#ffe9e1;--wash:#fff6f2}
.hub-welcome {display:flex;justify-content:space-between;align-items:center;gap:20px;padding:4px 0 21px}
.hub-welcome h1 {margin-top:9px}
.hub-welcome p {margin-top:3px}
.hub-eyebrow {display:flex;align-items:center;gap:9px;font-size:13px;font-weight:750}
.hub-eyebrow img {object-fit:contain}
.hub-date {display:flex;align-items:center;gap:11px;font-size:13px;text-align:right;color:#4b657b}
.hub-date svg {width:26px;height:26px;color:#9d71b0}
.hub-date small {display:block;font-size:11px;color:var(--muted)}
.hub-overview {display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));border-block:1px solid var(--line);margin:0 0 26px;padding:16px 0;gap:12px}
.hub-metric {display:flex;align-items:center;gap:12px;padding-inline:18px;border-inline-start:3px solid var(--accent,#087f77);min-width:0}
.hub-metric b {font-size:26px;font-weight:800;line-height:1.3;color:var(--accent,#087f77);overflow-wrap:anywhere}
.hub-metric span {font-size:12px;color:var(--muted)}
.hub-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.hub-root .hub-destination {position:relative;display:flex;flex-direction:column;width:100%;min-width:0;min-height:249px;text-align:right;border:1px solid #e0e6ed;border-radius:8px;background:linear-gradient(115deg,#fff 48%,var(--wash));padding:22px 24px 0;box-shadow:0 4px 12px #24384b04;color:var(--ink);overflow:hidden;transition:border-color .16s,box-shadow .16s}
.hub-root .hub-destination:hover {border-color:var(--accent);box-shadow:0 8px 24px #24384b0d}
.hub-destination::before {content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--accent)}
.hub-card-top {display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.hub-symbol {width:49px;height:49px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;background:var(--soft,#e2f5f0);color:var(--accent,#087f77);border-radius:8px}
.hub-symbol svg {width:26px;height:26px}
.hub-destination .hub-symbol {border-radius:8px 8px 8px 20px;width:54px;height:54px}
.hub-index {font-size:12px;font-weight:700;color:var(--accent);opacity:.65;border-bottom:1px solid var(--accent);padding:0 1px 3px}
.hub-card-title {font-size:21px;font-weight:800;line-height:1.6}
.hub-card-description {font-size:12px;color:var(--muted);margin:2px 0 8px}
.hub-card-data {display:flex;align-items:baseline;gap:9px;color:var(--accent);min-height:40px;margin:0 0 9px}
.hub-card-data strong {font-size:28px;font-weight:800;line-height:1.4}
.hub-card-data>span {font-size:12px}
.hub-card-bottom {display:flex;align-items:center;justify-content:space-between;gap:10px;margin: auto -24px 0;padding:12px 24px;background:var(--soft);color:var(--accent);font-size:12px;font-weight:750}
.hub-card-bottom small {font-size:11px;font-weight:500;display:block;margin-top:1px;color:var(--ink);opacity:.8}
.hub-card-arrow {width:31px;height:31px;display:flex;align-items:center;justify-content:center;border:1px solid currentColor;border-radius:50%;flex-shrink:0}
.hub-card-arrow svg {width:17px;height:17px}
.hub-heading {display:flex;gap:14px;align-items:center;margin:3px 0 25px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.hub-heading small {color:var(--accent);font-size:12px;font-weight:700}
.hub-heading-icon {display:flex;align-items:center;justify-content:center;width:62px;height:62px;flex-shrink:0;background:var(--soft);color:var(--accent);border-radius:8px}
.hub-heading-icon svg {width:31px;height:31px}
.hub-heading-tools {display:flex;gap:8px;margin-inline-start:auto;flex-wrap:wrap}
.hub-btn {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:7px 13px;border:1px solid #d9e2e8;background:white;color:#304c61;border-radius:6px;font-size:12px!important;font-weight:700!important;line-height:1.6;text-decoration:none;white-space:normal}
.hub-btn svg {width:17px;height:17px}
.hub-btn.primary {background:var(--accent,#8e65ab);border-color:var(--accent,#8e65ab);color:white}
body.fq-hub #mainContent .hub-btn.primary {background:var(--accent,#8e65ab)!important;border-color:var(--accent,#8e65ab)!important;color:white!important;box-shadow:none!important}
body.fq-hub #mainContent .hub-search input {border:0!important;box-shadow:none!important;background:transparent!important}
.hub-btn:hover {filter:brightness(.96)}
.hub-btn:disabled {opacity:.55;cursor:wait}
.hub-filters {display:flex;align-items:center;gap:12px;margin:0 0 22px;flex-wrap:wrap}
.hub-search {display:flex;align-items:center;gap:9px;flex:1;max-width:450px;min-width:180px;background:#fff;border:1px solid #dbe3e9;border-radius:6px;padding:0 12px;color:#647a8b}
.hub-search input {width:100%;min-width:0;border:0!important;background:transparent!important;outline:none;padding:11px 0!important;font-size:13px!important;color:var(--ink)}
.hub-filters select,.hub-dialog select {padding:9px 12px;border:1px solid #dbe3e9;border-radius:6px;background:white;color:var(--ink);max-width:100%;font-size:13px}
.hub-result-count {font-size:12px;color:var(--muted);margin-inline-start:auto}
.hub-school-grid,.hub-bank-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.hub-school,.hub-form-card,.hub-bank,.hub-permission {background:#fff;border:1px solid var(--line);border-radius:8px;padding:22px;min-width:0;overflow-wrap:anywhere}
.hub-school {border-top:3px solid var(--accent)}
.hub-school-top,.hub-form-card header,.hub-bank header {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}
.hub-school h2,.hub-form-card h2,.hub-bank h2 {font-size:18px;margin-bottom:6px}
.hub-school dl {display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:17px 0;margin:15px 0;border-block:1px solid var(--line)}
.hub-school dd {margin:0;font-size:23px;font-weight:800;color:var(--accent)}
.hub-school dt {font-size:11px;color:var(--muted)}
.hub-tag {display:inline-block;background:var(--soft);color:var(--accent);border-radius:4px;padding:4px 9px;font-size:11px;font-weight:700;line-height:1.6;white-space:normal}
.hub-school>.hub-btn {width:100%;margin-top:3px}
.hub-role-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:24px}
.hub-role {display:flex;align-items:center;gap:15px;border:1px solid var(--line);background:white;border-radius:8px;text-align:right;padding:17px;min-width:0;color:var(--ink)}
.hub-role b,.hub-role small {display:block}
.hub-role b {font-size:16px}
.hub-role small {font-size:12px;color:var(--muted)}
.hub-role>svg {margin-inline-start:auto;color:var(--accent);width:17px}
.hub-role:hover {border-color:var(--accent);background:var(--wash)}
.hub-section-title {margin:25px 0 17px!important;font-size:18px!important}
.hub-user-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hub-user {display:flex;align-items:center;gap:13px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:17px;min-width:0}
.hub-user>div {flex:1;min-width:0;overflow-wrap:anywhere}
.hub-user p {text-align:right}
.hub-user small {font-size:11px;color:var(--muted)}
.hub-user>.hub-tag {max-width:90px}
.hub-avatar {display:flex;align-items:center;justify-content:center;border-radius:50%;width:44px;height:44px;flex-shrink:0;background:#e6eff7;color:#35698d;font-size:20px;font-weight:800}
.hub-split {display:grid;grid-template-columns:1fr 1fr;gap:30px}
.hub-split>section {min-width:0}
.hub-setting {display:flex;align-items:center;gap:13px;padding:20px 0;border-bottom:1px solid var(--line)}
.hub-setting>div {flex:1;min-width:0}
.hub-setting h3 {margin:0 0 4px}
.hub-list {list-style:none;padding:0;margin:0}
.hub-list li {display:flex;align-items:flex-start;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}
.hub-list li>svg {color:#5482a0;margin-top:4px}
.hub-list span {min-width:0;overflow-wrap:anywhere}
.hub-list b,.hub-list small {display:block}
.hub-list b {font-size:13px}
.hub-list small {font-size:11px;color:var(--muted);margin-top:4px}
.hub-security {display:flex;align-items:center;gap:20px;padding:26px 0 32px;border-bottom:1px solid var(--line);margin-bottom:25px}
.hub-security-icon {color:#087f77}
.hub-security-icon svg {width:62px;height:62px}
.hub-security>div {flex:1}
.hub-security h2 {font-size:25px;margin-bottom:6px}
.hub-permission header {display:flex;align-items:center;gap:12px;margin-bottom:15px}
.hub-permission h2 {font-size:17px}
.hub-permission p {min-height:48px}
.hub-permission footer,.hub-form-card footer,.hub-bank footer {display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);margin-top:20px;padding-top:15px;flex-wrap:wrap}
.hub-table-scroll {overflow:auto;border-block:1px solid var(--line)}
.hub-root .hub-table {width:100%;border-collapse:collapse;text-align:right;background:transparent;font-size:13px}
.hub-table th {padding:13px 15px;background:#eaf0f4;color:#445e70;font-size:12px;white-space:nowrap}
.hub-table td {padding:14px 15px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.hub-table tr:last-child td {border:0}
.hub-chart {padding-top:5px}
.hub-chart-row {margin-bottom:23px}
.hub-chart-row>span {font-size:13px;font-weight:700}
.hub-chart-row>div {display:flex;align-items:center;gap:13px;margin-top:7px}
.hub-chart-row meter {flex:1;width:100%;height:17px;border:0;appearance:none;background:#e3ecee;border-radius:3px}
.hub-chart-row meter::-webkit-meter-bar {background:#e3ecee;border:0;border-radius:3px}
.hub-chart-row meter::-webkit-meter-optimum-value {background:#198b88;border-radius:3px}
.hub-chart-row:nth-child(2n) meter::-webkit-meter-optimum-value {background:#5382be}
.hub-chart-row:nth-child(3n) meter::-webkit-meter-optimum-value {background:#b5769f}
.hub-chart-row b {font-size:15px;min-width:32px}
.hub-role-stats {display:grid;grid-template-columns:1fr 1fr;gap:27px 10px;padding-top:9px}
.hub-actions {display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.hub-notice {position:relative;padding:18px 0 20px;padding-inline-start:39px;border-bottom:1px solid var(--line)}
.hub-notice>svg {position:absolute;inset-inline-start:0;top:21px;color:var(--accent)}
.hub-notice p {margin:7px 0 13px}
.hub-form-card {border-top:3px solid var(--accent)}
.hub-form-meta,.hub-bank>small {display:block;font-size:11px;color:var(--muted);margin-top:13px}
.hub-bank h2 {line-height:1.8}
.hub-empty {display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:55px 24px;gap:12px;color:var(--muted)}
.hub-empty>svg {width:40px;height:40px;color:#7894aa}
.hub-empty b {font-size:17px;font-weight:700;color:var(--ink)}
.hub-empty p {max-width:440px}
.hub-no-results {grid-column:1/-1}
body.fq-hub .hub-nav-item {width:100%;border:0;background:transparent;font:inherit;text-align:right;cursor:pointer;min-height:44px}
body.fq-hub .hub-nav-item.active {background:#ffebe4!important;color:#8e65ab!important}
body.fq-hub #sbNav .hub-nav-item .ent-sb-icon {background:transparent!important;color:inherit!important}
body.fq-hub #sbNav #lnExtraLinks {display:none}
body.ent-mode.fq2.fq-hub #sbNav .hub-nav-item.active {background:#ffece5!important;color:#734e92!important;border-radius:6px!important}
.hub-book-text {white-space:pre-wrap;font-size:14px;line-height:2}
.hub-book-chapter {border-bottom:1px solid var(--line);padding-block:18px}
.hub-dialog {border:1px solid #d7e1e8;border-radius:8px;width:600px;max-width:calc(100% - 28px);max-height:90dvh;padding:0;box-shadow:0 20px 70px #1c334c30;background:white;direction:rtl}
.hub-dialog::backdrop {background:#20334555}
.hub-dialog header {display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid var(--line)}
.hub-dialog header h2 {font-size:20px}
.hub-dialog [data-close]:not(.hub-btn) {border:0;background:transparent;color:var(--ink);width:34px;height:34px}
.hub-dialog-body {padding:22px}
.hub-dialog label {display:block;font-size:13px;font-weight:700;margin-bottom:15px}
.hub-dialog input:not([type=checkbox]):not([type=radio]),.hub-dialog textarea,.hub-dialog select {display:block;width:100%;padding:10px;border:1px solid #ccd8e1;border-radius:5px;margin-top:7px;color:var(--ink);background:white}
.hub-dialog textarea {min-height:85px;resize:vertical}
.hub-dialog fieldset {border:1px solid #dfe6ed;padding:15px;margin:20px 0;border-radius:6px}
.hub-dialog legend {font-size:13px;font-weight:750;padding:0 6px}
.hub-dialog .hub-checkbox {display:flex;align-items:center;gap:8px;font-weight:500}
.hub-dialog footer {display:flex;justify-content:flex-end;gap:10px;padding:16px 22px;border-top:1px solid var(--line);position:sticky;bottom:0;background:white}
.hub-form-error {color:#b23232;font-size:13px;margin:0 22px 15px}
@media(min-width:1600px){.hub-grid{gap:22px}.hub-root .hub-destination{min-height:251px}}
@media(max-width:1200px){.hub-card-title{font-size:18px}.hub-root .hub-destination{padding:18px 18px 0}.hub-card-bottom{margin-inline:-18px;padding-inline:18px}.hub-school-grid,.hub-bank-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:950px){.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-split{grid-template-columns:1fr}.hub-security{flex-wrap:wrap}.hub-heading{flex-wrap:wrap}.hub-heading-tools{margin-inline-start:0}.hub-user-grid{grid-template-columns:1fr}.hub-date{display:none}}
@media(max-width:560px){body.fq-hub #mainContent{padding:16px 14px 28px!important}.hub-root h1{font-size:23px}.hub-welcome{padding-top:2px}.hub-grid,.hub-school-grid,.hub-role-grid,.hub-bank-grid{grid-template-columns:1fr;gap:14px}.hub-root .hub-destination{min-height:229px;padding:19px 20px 0}.hub-card-title{font-size:21px}.hub-card-bottom{margin-inline:-20px;padding-inline:20px}.hub-overview{grid-template-columns:1fr 1fr;gap:21px 9px;margin-bottom:20px}.hub-metric{padding-inline:10px;gap:8px}.hub-metric b{font-size:23px}.hub-metric span{font-size:11px}.hub-heading{gap:11px}.hub-heading h1{font-size:23px}.hub-heading-tools{width:100%;margin-top:4px}.hub-heading-icon{width:48px;height:48px}.hub-user{flex-wrap:wrap}.hub-security h2{font-size:20px}.hub-security-icon svg{width:42px;height:42px}.hub-security>div{min-width:180px}.hub-setting{flex-wrap:wrap}.hub-dialog-body{padding:15px}.hub-root .hub-table{font-size:12px}}
@media(prefers-reduced-motion:reduce){.hub-root *{transition:none!important;animation:none!important}}
@media print{.hub-heading-tools,.hub-actions,.hub-filters{display:none!important}.hub-root{color:black}.hub-split{display:block}.hub-table-scroll{overflow:visible}}
