:root{font:16px/1.5 system-ui,Segoe UI,sans-serif;color:#173344;background:#f4f7f8}*{box-sizing:border-box}body{margin:0}main{max-width:1160px;padding:28px 24px;margin:auto}header,.title,.actions{display:flex;justify-content:space-between;align-items:center;gap:20px}header{padding-bottom:40px}.company{display:flex;gap:10px;align-items:center;font-size:24px;font-weight:800;text-decoration:none;color:#173344}.company span{background:#175b68;color:white;border-radius:12px;display:grid;place-items:center;width:44px;height:44px}nav{display:flex;gap:22px}a{color:#175b68}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:700;color:#617c89}h1{font-size:46px;line-height:1.12;margin:10px 0 24px}h2{font-size:23px;margin:0 0 18px}h3{margin:0 0 6px}.lead{font-size:20px;color:#617480}.panel{background:white;border:1px solid #d8e2e7;padding:26px;border-radius:18px;box-shadow:0 8px 30px #18374408}.compact{max-width:480px;margin:32px 0}.grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:26px 0}label{display:block;font-weight:600;margin:14px 0 6px}input,textarea{font:inherit;border:1px solid #acbdc6;border-radius:8px;padding:11px;width:100%}button{font:inherit;font-weight:650;padding:11px 16px;border:0;border-radius:9px;background:#175b68;color:white;cursor:pointer}form button{margin-top:22px;width:100%}.secondary{background:white;color:#175b68;border:1px solid #b8cbd3}button:disabled{opacity:.5;cursor:wait}.hint{font-size:13px;color:#667f8b}.institution{margin:16px 0}.status{font-size:13px;background:#eef3f5;border-radius:20px;padding:5px 10px}.status.active{color:#216445;background:#e1f3e8}.status.suspended{color:#94522b;background:#fff0e3}.meta{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}ul{padding-left:20px}#message{padding:14px 18px;background:#e5f2ea;border:1px solid #bcd9c8;border-radius:10px;margin-bottom:20px}#message.error{background:#fff0e7;border-color:#e8c6af}dialog{border:1px solid #c6d5dc;border-radius:20px;max-width:480px;padding:28px}dialog::backdrop{background:#142e4966}footer{color:#78909a;font-size:13px;border-top:1px solid #d8e2e7;margin-top:50px;padding-top:22px}[hidden]{display:none!important}input:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #84afbd;outline-offset:3px}@media(max-width:680px){main{padding:20px 16px}.grid,.meta{grid-template-columns:1fr}header,.title{align-items:flex-start;flex-direction:column}h1{font-size:36px}.panel{padding:20px}nav{font-size:14px}.actions{flex-wrap:wrap}}
.student-overview{margin:20px 0;padding:16px 0;border-top:1px solid #d8e2e7}.student-overview h4{margin:0 0 8px}.student-overview p{font-size:14px;color:#536e7b;margin:8px 0}.campus-overview{margin:18px 0;padding:16px;background:#f6f9fa;border:1px solid #d8e2e7;border-radius:12px}.overview-table{overflow:auto}.overview-table table{width:100%;border-collapse:collapse;font-size:14px}.overview-table th,.overview-table td{padding:8px 10px;text-align:right;vertical-align:top;border-bottom:1px solid #d8e2e7}.overview-table th:first-child{text-align:left;min-width:130px}.overview-table thead th{background:#edf3f5}.institution>.secondary{margin-top:12px}

/* Platform operator workspace. Institution-facing layouts retain their existing styles. */
.juku-platform-page {
  background: #fcfaf6;
  color: #121b4a;
}
.juku-platform-page header { padding-bottom: 1.6rem; }
.juku-platform-page .company img { width: 10.5rem; height: auto; }
.juku-platform-page #operator-screen h1,
.juku-login-page .dashboard-title h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.juku-platform-page #operator-screen > .title { margin-bottom: 0.95rem; gap: .7rem; }
.juku-platform-page #operator-screen > .title h1 { margin: 0; }
.juku-platform-page #operator-screen .eyebrow { margin: 0 0 .42rem; color: #006a69; }
.juku-platform-dashboard {
  --dashboard-ink: #121b4a;
  --dashboard-muted: #475475;
  --dashboard-line: #d6dedc;
  --dashboard-teal: #006a69;
  --dashboard-mint: #e9f4ef;
  color: var(--dashboard-ink);
}
.juku-platform-dashboard h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.platform-overview {
  padding: 1.3rem;
  margin-bottom: 1.05rem;
  border-radius: 1rem;
  background: radial-gradient(ellipse at 95% 40%, #205467, transparent 64%), var(--dashboard-ink);
  color: #fff;
}
.platform-overview-heading, .platform-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.platform-overview-heading h2 { font-size: 1.32rem; }
#institution-coverage { margin: .38rem 0 0; color: #dde7f4; font-size: .85rem; }
.platform-primary-link {
  border-radius: .55rem;
  padding: .57rem .82rem;
  background: #86e0c4;
  color: #12313b;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
}
.platform-primary-link:hover { background: #b5efd9; }
.platform-primary-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.platform-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  margin: .98rem 0 0;
}
.platform-dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(15.5rem, 1fr);
  align-items: start;
  gap: 1rem;
}
.juku-platform-dashboard .panel {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--dashboard-line);
  border-radius: .85rem;
  box-shadow: 0 3px 14px #121b4a07;
}
.platform-workflow { display: grid; gap: .85rem; }
.juku-platform-dashboard .hint { margin: .55rem 0 0; color: var(--dashboard-muted); line-height: 1.45; }
.juku-platform-dashboard :is(input, select, textarea) {
  font: inherit;
  font-size: .9rem;
  color: var(--dashboard-ink);
  width: 100%;
  min-height: 2.55rem;
  padding: .48rem .58rem;
  border: 1px solid #aab8be;
  border-radius: .5rem;
  background: #fff;
}
.juku-platform-dashboard :is(input, select, textarea, a, button, summary):focus-visible {
  outline: 2px solid var(--dashboard-teal);
  outline-offset: 2px;
}
.juku-platform-dashboard .platform-primary-link:focus-visible { outline-color: #fff; }
.juku-platform-dashboard label { font-size: .84rem; margin: .62rem 0 .29rem; }
.juku-platform-dashboard button { font-size: .85rem; background: var(--dashboard-teal); padding: .5rem .67rem; min-height: 2.4rem; }
.juku-platform-dashboard button.secondary { color: var(--dashboard-teal); border: 1px solid #afc9c5; background: #fff; }
.juku-platform-dashboard button.secondary:hover { background: var(--dashboard-mint); }
.juku-platform-dashboard form button { margin-top: .85rem; }
.platform-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(8.5rem, .8fr);
  gap: .65rem;
  margin-top: .35rem;
}
#institution-filter-result { min-height: 1.3rem; padding-bottom: .45rem; }
.juku-platform-dashboard .institution {
  margin: 0;
  padding: .78rem 0;
  border: 0;
  border-top: 1px solid var(--dashboard-line);
  border-radius: 0;
  box-shadow: none;
  overflow-wrap: anywhere;
}
.juku-platform-dashboard .institution:last-child { padding-bottom: 0; }
.juku-platform-dashboard .institution h3 { margin: 0; font-size: 1rem; }
.juku-platform-dashboard .institution h3 small { display: block; color: var(--dashboard-muted); font-size: .79rem; font-weight: 500; }
.juku-platform-dashboard .institution .status { flex-shrink: 0; color: #3c4e66; text-transform: capitalize; }
.juku-platform-dashboard .institution .status.active { background: #e3f3e9; color: #215340; }
.juku-platform-dashboard .institution .status.suspended { background: #faeae4; color: #923a21; }
.juku-platform-dashboard .institution .status.awaiting_activation { background: #faf0d9; color: #76500a; }
.institution-metadata { margin-top: .55rem; font-size: .86rem; }
.institution-metadata summary { min-height: 1.5rem; color: var(--dashboard-muted); cursor: pointer; }
.institution-metadata .meta { margin-top: .55rem; gap: .75rem; }
.institution-metadata ul { margin: .24rem 0 .55rem; }
.juku-platform-dashboard .institution > .secondary { margin-top: .55rem; }
.juku-platform-dashboard .institution > .actions:not(:empty) { justify-content: flex-start; margin-top: .55rem; }
.juku-platform-dashboard .student-overview { margin: .6rem 0; padding: .7rem 0 0; }
.juku-platform-dashboard .campus-overview { margin: .6rem 0; padding: .65rem; }
.juku-platform-dashboard #invite-link { display: block; margin-top: .6rem; resize: vertical; }
@media (max-width: 780px) {
  .platform-dashboard-columns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .juku-platform-page header nav { flex-wrap: wrap; gap: .65rem; }
  .platform-overview { padding: .9rem; }
  .platform-overview-heading { align-items: flex-start; flex-direction: column; gap: .55rem; }
  .platform-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .75rem; }
}

/* Platform operator workspace. Public discovery and institution sign-in keep their own layouts. */
.juku-platform-page:has(#operator-workspace:not([hidden])) { background: #f4f6fa; }
.juku-platform-page:has(#operator-workspace:not([hidden])) main { width: min(calc(100% - 3rem), 78rem); }
.juku-platform-page:has(#operator-workspace:not([hidden])) header {
  border-bottom: 1px solid #dbe3ef;
  margin-bottom: 1.7rem;
  padding-bottom: 1rem;
}
.juku-platform-page:has(#operator-workspace:not([hidden])) #operator-screen > .title h1 {
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  letter-spacing: -.04em;
}
.juku-platform-page:has(#operator-workspace:not([hidden])) #operator-screen > .title .eyebrow,
.juku-platform-page:has(#operator-workspace:not([hidden])) header a[href='/platform/'] { display: none; }
.juku-platform-dashboard { --dashboard-teal: #087367; --dashboard-muted: #4f6077; }
.juku-platform-dashboard .platform-overview {
  background: #fff;
  color: #172a4d;
  border: 1px solid #dbe3ef;
  box-shadow: 0 2px 4px #12234608;
  padding: 1.1rem;
}
.juku-platform-dashboard .platform-overview h2 { color: #142648; }
.juku-platform-dashboard #institution-coverage { color: #485971; }
.juku-platform-dashboard .platform-primary-link {
  color: #fff;
  background: #087367;
  padding: .62rem 1rem;
  border: 1px solid transparent;
  white-space: nowrap;
}
.juku-platform-dashboard .platform-primary-link:hover { background: #06584e; }
.juku-platform-dashboard .platform-primary-link:focus-visible { outline-color: #087367; }
.platform-primary-link span { font-size: 1.1em; margin-right: .28rem; }
.juku-platform-dashboard .platform-totals { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; margin-bottom: 0; }
.juku-platform-dashboard .platform-totals button {
  display: grid;
  gap: .2rem;
  align-content: space-between;
  text-align: left;
  min-width: 0;
  min-height: 5.1rem;
  color: #354764;
  background: #f6f8fc;
  border: 1px solid #dde5ef;
  padding: .6rem .7rem;
  border-radius: .63rem;
  line-height: 1.25;
}
.juku-platform-dashboard .platform-totals button:hover { background: #eef4f9; }
.juku-platform-dashboard .platform-totals button[aria-pressed="true"] { color: #055c53; background: #e9f5f0; border-color: #61a79c; }
.platform-totals strong { color: #142648; font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.juku-platform-dashboard .platform-dashboard-columns { grid-template-columns: minmax(0, 1fr) minmax(14.5rem, 17rem); align-items: start; }
.juku-platform-dashboard .platform-registry { min-width: 0; padding: 1rem 1.1rem; }
.juku-platform-dashboard .platform-workflow { display: block; }
.platform-workflow h2 { margin-bottom: .6rem; }
.platform-steps { list-style: none; padding: 0; counter-reset: setup; margin: .8rem 0 0; }
.platform-steps li { position: relative; padding: 0 0 .85rem 2rem; counter-increment: setup; }
.platform-steps li::before {
  content: counter(setup);
  position: absolute;
  left: 0;
  top: .05rem;
  display: grid;
  place-items: center;
  border-radius: 100%;
  width: 1.4rem;
  height: 1.4rem;
  background: #eaf5f2;
  color: #075b51;
  font-weight: 700;
  font-size: .75rem;
}
.platform-steps span { display: block; color: #4f6077; font-size: .83rem; line-height: 1.4; margin-top: .15rem; }
.platform-guide-link { color: #075f58; font-size: .85rem; }
.juku-platform-dashboard .institution-row-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
}
.institution-avatar {
  display: grid;
  place-items: center;
  align-self: start;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: .65rem;
  font-weight: 700;
  background: #e9effa;
  color: #263d67;
}
.juku-platform-dashboard .institution h3 { overflow-wrap: anywhere; }
.juku-platform-dashboard .institution .status.provisioning,
.juku-platform-dashboard .institution .status.awaiting_activation { color: #714b0d; background: #fdf3db; }
.juku-platform-dashboard .institution .status.failed { color: #8d2b2a; background: #fae7e6; }
.juku-platform-dashboard .institution-progress {
  color: #4c5a6d;
  margin: .65rem 0 .1rem;
  font-size: .87rem;
  line-height: 1.45;
}
.juku-platform-dashboard .institution-metadata summary { min-height: 2rem; display: list-item; padding-block: .35rem; }
.juku-platform-dashboard .institution > .actions { gap: .35rem; }
.juku-platform-dashboard .institution > .actions .secondary { background: #fff; border-color: #d1deea; }
.juku-platform-dashboard .institution > .actions .secondary:hover { background: #eaf5f2; }
.juku-platform-dashboard .institution > .actions a.secondary {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: .42rem .65rem;
  border: 1px solid #d1deea;
  border-radius: .48rem;
  text-decoration: none;
  color: #075f58;
  font-weight: 650;
  font-size: .85rem;
}
.juku-platform-dashboard .platform-workspace-dialog,
.juku-platform-dashboard #subscription-dialog {
  box-sizing: border-box;
  width: min(calc(100% - 2rem), 38rem);
  max-width: none;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(.95rem, 3vw, 1.5rem);
  border-color: #dbe3ef;
}
.platform-workspace-dialog .platform-panel-heading { align-items: center; }
.platform-field-group,
.juku-platform-dashboard #subscription-fields { border: 1px solid #dbe3ef; border-radius: .65rem; margin: .9rem 0; padding: .55rem .8rem .8rem; }
.platform-field-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 .65rem;
}
.platform-field-group legend, #subscription-fields legend { color: #273e60; font-size: .9rem; font-weight: 700; }
#provision-feedback:empty, #invite-copy-status:empty { display: none; }
#provision-feedback.error { color: #8d2b2a; }
.juku-platform-dashboard #invite-copy { margin-top: .7rem; }
@media (max-width: 850px) {
  .juku-platform-dashboard .platform-dashboard-columns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .juku-platform-page:has(#operator-workspace:not([hidden])) main { width: min(calc(100% - 1.3rem), 78rem); }
  .juku-platform-page:has(#operator-workspace:not([hidden])) main { padding: .9rem .3rem 1.25rem; }
  .juku-platform-page:has(#operator-workspace:not([hidden])) header,
  .juku-platform-page:has(#operator-workspace:not([hidden])) #operator-screen > .title {
    flex-direction: row; align-items: center; gap: .45rem;
  }
  .juku-platform-page:has(#operator-workspace:not([hidden])) header { margin-bottom: .8rem; padding-bottom: .65rem; }
  .juku-platform-page:has(#operator-workspace:not([hidden])) .company img { width: 8.4rem; }
  .juku-platform-page:has(#operator-workspace:not([hidden])) #operator-screen > .title h1 { font-size: clamp(1.22rem, 5.5vw, 1.65rem); }
  #operator-logout { white-space: nowrap; font-size: .83rem; padding: .5rem .65rem; }
  .juku-platform-dashboard .platform-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
  .juku-platform-dashboard .platform-totals button:first-child { grid-column: span 2; grid-template-columns: 1fr auto; align-items: center; }
  .juku-platform-dashboard .platform-totals button { padding: .42rem; font-size: .75rem; }
  .juku-platform-dashboard .platform-totals button { min-height: 3.7rem; }
  .juku-platform-dashboard .platform-primary-link { width: 100%; }
  .juku-platform-dashboard .platform-registry { padding: .75rem; }
  .juku-platform-dashboard .institution-row-main { grid-template-columns: auto minmax(0, 1fr); }
  .juku-platform-dashboard .institution-row-main .status { grid-column: 2; justify-self: start; }
  .platform-field-group { grid-template-columns: minmax(0, 1fr); }
}
