@charset "UTF-8";
:root {
  font-family:"Segoe UI",Arial,sans-serif;
  color:#172d43;
  background:#f4f7fb;
  line-height:1.5;
  --ink:#172d43;
  --muted:#546980;
  --line:#dce5ef;
  --primary:#1263a6;
  --dark:#12324e;
  --pale:#e8f3fd;
  --paper:#fff;
  --radius:14px;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

a {
  color:var(--primary);
}

button,input {
  font:inherit;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:wait;
  opacity:.65;
}

button,a,input {
  touch-action:manipulation;
}

button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible {
  outline:3px solid #44a7ef;
  outline-offset:3px;
}

button[hidden],[hidden] {
  display:none!important;
}

h1,h2,h3,p {
  margin:0;
}

h1,h2,h3 {
  line-height:1.17;
  letter-spacing:-.028em;
}

h1 {
  font-size:clamp(2.25rem,4vw,3.35rem);
}

h2 {
  font-size:1.44rem;
}

h3 {
  font-size:1.03rem;
}

small,.muted {
  color:var(--muted);
}

.icon {
  width:19px;
  height:19px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.75;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:none;
  vertical-align:middle;
}

.skip {
  position:absolute;
  top:-100px;
  left:12px;
  background:white;
  padding:10px;
  z-index:5;
}

.skip:focus {
  top:12px;
}

.site-header {
  background:white;
  border-bottom:1px solid var(--line);
}

.header-inner,.shell,.site-footer>div {
  width:min(100% - 64px,1320px);
  margin-inline:auto;
}

.header-inner {
  display:flex;
  align-items:center;
  gap:34px;
  min-height:76px;
}

.brand {
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  flex:none;
}

.brand img {
  object-fit:contain;
}

.brand>span {
  border-left:1px solid #d9e4ee;
  padding-left:14px;
  font-size:10px;
  letter-spacing:.17em;
  line-height:1.35;
  font-weight:800;
  color:#244a67;
}

.brand>span span {
  display:block;
  color:#52738b;
}

.top-nav {
  display:flex;
  gap:8px;
  align-self:stretch;
}

.top-nav button {
  display:flex;
  align-items:center;
  gap:8px;
  background:none;
  color:var(--muted);
  font-weight:650;
  border:0;
  border-bottom:3px solid transparent;
  padding:2px 14px 0;
  white-space:nowrap;
}

.top-nav button[aria-current="page"] {
  color:var(--primary);
  border-color:#2181c9;
}

.top-nav button:hover {
  background:#f4f9fe;
}

.account {
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}

.role,.chip {
  display:inline-flex;
  gap:6px;
  align-items:center;
  border-radius:6px;
  font-size:.72rem;
  font-weight:750;
  padding:4px 8px;
  line-height:1.35;
  background:#edf3fa;
  color:#315879;
}

.role .icon,.chip .icon {
  width:14px;
  height:14px;
}

.chip.live {
  color:#11614c;
  background:#dff4eb;
}

.chip.draft {
  color:#7b4b10;
  background:#fff0d8;
}

.chip.disabled {
  color:#68404a;
  background:#f5e9ed;
}

.shell {
  padding-block:28px 38px;
  flex:1;
}

.site-footer {
  border-top:1px solid var(--line);
  background:#eef3f9;
  color:#536b81;
  font-size:.77rem;
}

.site-footer>div {
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:62px;
  gap:16px;
}

.site-footer>div span:last-child {
  font-size:.67rem;
  font-weight:750;
  letter-spacing:.11em;
}

.site-footer b {
  margin-left:6px;
  color:#306897;
}

.loading {
  padding:40px;
  color:var(--muted);
}

.hero {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:flex;
  align-items:center;
  min-height:193px;
  border-radius:var(--radius);
  padding:31px 34px;
  margin-bottom:24px;
  color:white;
  background:linear-gradient(110deg,#102e48 5%,#133a59 57%,#1a5176);
}

.hero::after {
  content:"";
  position:absolute;
  z-index:-1;
  inset:0 0 0 auto;
  width:49%;
  background:url("/blueprint.svg") center right 18px/auto 100% no-repeat;
  mask-image:linear-gradient(to right,transparent,#000 26%);
  opacity:.83;
}

.hero>div {
  max-width:65%;
}

.eyebrow {
  display:flex;
  gap:8px;
  align-items:center;
  font-size:.68rem;
  letter-spacing:.19em;
  text-transform:uppercase;
  font-weight:800;
  color:#a9d9fb;
  margin-bottom:12px;
}

.eyebrow::before {
  content:"";
  width:19px;
  height:2px;
  background:#5ebeff;
}

.hero p:last-child {
  margin-top:12px;
  font-size:1rem;
  color:#cfe4f5;
  max-width:44ch;
}

.hero h1 {
  overflow-wrap:anywhere;
}

.layout {
  display:grid;
  grid-template-columns:minmax(235px,275px) minmax(0,1fr);
  align-items:start;
  gap:20px;
}

.panel {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 2px 7px #1b416907;
  min-width:0;
}

.panel-heading {
  padding:19px 19px 16px;
  border-bottom:1px solid #e7edf4;
  display:flex;
  gap:11px;
  align-items:center;
}

.panel-heading .icon {
  color:var(--primary);
  width:19px;
  height:19px;
}

.panel-heading span {
  display:block;
  font-size:.74rem;
  margin-top:3px;
  color:var(--muted);
}

.tree {
  padding:10px 9px 13px;
  max-height:600px;
  overflow:auto;
}

.tree ul {
  list-style:none;
  padding:0;
  margin:0;
}

.tree ul ul {
  margin-left:12px;
  border-left:1px solid #dfebf5;
  padding-left:4px;
}

.node {
  display:flex;
  align-items:center;
  gap:1px;
  margin-block:2px;
}

.node .expand {
  flex:0 0 24px;
  width:24px;
  padding:0;
  min-height:30px;
  display:grid;
  place-items:center;
  border:0;
  background:none;
  color:#67819a;
  border-radius:4px;
}

.node .expand:hover {
  background:#eef5fc;
}

.node .expand .icon {
  width:13px;
  height:13px;
}

.node .expand[aria-expanded="true"] .icon {
  transform:rotate(90deg);
}

.node .tree-link {
  background:none;
  border:0;
  border-radius:6px;
  color:#34536f;
  text-align:left;
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
  min-height:32px;
  padding:4px 5px;
  flex:1;
  font-size:.79rem;
  overflow-wrap:anywhere;
}

.tree-link .icon {
  width:15px;
  height:15px;
  color:#3e82b1;
}

.tree-link:hover,.tree-link[aria-current="location"] {
  background:#e9f4ff;
  color:#164f82;
}

.tree-link[aria-current="location"] {
  font-weight:750;
}

.content-header {
  padding:20px 22px 16px;
}

.crumbs {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px;
  font-size:.74rem;
  color:#5b7389;
  margin-bottom:13px;
}

.crumbs button {
  color:#28689b;
  background:none;
  border:0;
  padding:1px 0;
  text-align:left;
}

.crumbs button:hover {
  text-decoration:underline;
}

.crumbs .icon {
  width:11px;
  height:11px;
}

.crumbs span:last-child {
  font-weight:700;
  color:#3b5269;
}

.titlebar {
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
}

.titlebar h2 {
  overflow-wrap:anywhere;
}

.titlebar p,.section-description {
  color:var(--muted);
  font-size:.84rem;
  margin-top:6px;
}

.actions {
  display:flex;
  gap:7px;
  align-items:center;
  flex-wrap:wrap;
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  text-decoration:none;
  font-size:.81rem;
  font-weight:700;
  line-height:1.2;
  border-radius:8px;
  border:1px solid #cbddeb;
  background:#fff;
  color:#285474;
  padding:9px 11px;
  min-height:36px;
  white-space:nowrap;
}

.btn:hover {
  background:#edf6ff;
}

.btn.primary {
  background:#1365a7;
  color:white;
  border-color:#1365a7;
}

.btn.primary:hover {
  background:#0e5188;
}

.btn.danger {
  color:#9c2f3c;
}

.btn.ghost {
  background:none;
  border-color:transparent;
}

.btn.ghost:hover {
  background:#edf6ff;
}

.btn .icon {
  width:16px;
  height:16px;
}

.btn.small {
  padding:7px 9px;
  min-height:32px;
  font-size:.75rem;
}

.btn.small .icon {
  width:14px;
  height:14px;
}

.searchbar {
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:15px;
  border:1px solid #ccdae8;
  border-radius:8px;
  padding:0 10px;
  min-height:40px;
  color:#4b779a;
  background:#fbfdff;
  max-width:390px;
}

.searchbar input {
  width:100%;
  padding:7px 0;
  border:0;
  background:none;
  color:var(--ink);
  outline:0;
  font-size:.85rem;
}

.searchbar:focus-within {
  border-color:#3091da;
  outline:2px solid #cae8ff;
}

.searchbar .icon {
  width:17px;
  height:17px;
}

.list-heading {
  padding:8px 22px;
  background:#f2f6fa;
  border-block:1px solid #e6edf5;
  display:flex;
  justify-content:space-between;
  color:#536d85;
  font-size:.66rem;
  letter-spacing:.13em;
  font-weight:800;
  text-transform:uppercase;
}

.item {
  padding:12px 22px;
  display:flex;
  align-items:center;
  gap:12px;
  border-bottom:1px solid #e8eef5;
  min-width:0;
}

.item:last-child {
  border-bottom:0;
}

.item.folder {
  width:100%;
  border-inline:0;
  border-top:0;
  background:white;
  text-align:left;
  color:var(--ink);
}

.item.folder:hover {
  background:#f4f9fe;
}

.item .item-info {
  min-width:0;
  flex:1;
  overflow-wrap:anywhere;
}

.item-info strong {
  display:block;
  font-size:.9rem;
  line-height:1.3;
}

.item-info small {
  display:block;
  margin-top:4px;
  font-size:.75rem;
}

.item-info .badges {
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:7px;
}

.item-icon {
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:9px;
  background:#e5f2ff;
  color:#2276b0;
  flex:none;
}

.item-icon.pdf {
  background:#fff0ea;
  color:#a33e2f;
}

.item-icon .icon {
  width:20px;
  height:20px;
}

.item>.icon:last-child {
  color:#56738e;
}

.item-list {
  overflow:hidden;
  border-radius:0 0 var(--radius) var(--radius);
}

.empty {
  display:grid;
  justify-items:center;
  text-align:center;
  gap:8px;
  padding:40px 20px;
  color:var(--muted);
  font-size:.86rem;
}

.empty .item-icon {
  margin-bottom:3px;
}

.empty strong {
  color:var(--ink);
  font-size:1rem;
}

.signin {
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  margin:30px auto 12px;
  max-width:980px;
  overflow:hidden;
}

.signin .hero {
  margin:0;
  border-radius:0;
  min-height:425px;
  padding:36px;
  align-items:flex-start;
}

.signin .hero::after {
  inset:auto 0 0;
  width:100%;
  height:48%;
  background-position:center right 10px;
  mask-image:linear-gradient(to top,#000 80%,transparent);
}

.signin .hero>div {
  max-width:100%;
  z-index:1;
}

.signin .hero h1 {
  font-size:clamp(2rem,4vw,3rem);
  max-width:14ch;
}

.form-side {
  display:grid;
  align-content:center;
  padding:34px;
  min-width:0;
}

.form-side .item-icon {
  margin-bottom:15px;
}

.form-side form {
  margin-top:19px;
}

.field {
  display:block;
  margin-bottom:15px;
  font-size:.81rem;
  font-weight:700;
}

.field input:not([type="checkbox"]),.share-box input {
  display:block;
  width:100%;
  margin-top:6px;
  border:1px solid #cddce9;
  border-radius:7px;
  padding:9px 10px;
  color:var(--ink);
  background:#fcfdff;
  min-height:41px;
  font-size:.9rem;
  font-weight:400;
}

.field small {
  display:block;
  margin-top:5px;
  font-size:.74rem;
  font-weight:400;
}

.field input[type="file"] {
  padding:8px;
}

.field input[type="file"]::file-selector-button {
  margin-right:8px;
  border:0;
  border-radius:5px;
  padding:5px 7px;
  background:var(--pale);
  color:var(--primary);
  font:inherit;
  cursor:pointer;
}

.error {
  color:#9e2838;
  background:#fff0f0;
  border:1px solid #f0d3d8;
  border-radius:8px;
  font-size:.82rem;
  padding:9px 11px;
  margin-block:10px;
}

.notice {
  padding:10px 12px;
  background:#eaf4fc;
  border:1px solid #d2e5f6;
  color:#31546d;
  border-radius:8px;
  font-size:.78rem;
}

.school-note {
  margin-top:15px;
  display:flex;
  align-items:flex-start;
  gap:8px;
}

.school-note .icon {
  width:16px;
  height:16px;
}

.offline-school-note {
  margin-block:1rem;
}

.form-content {
  padding:20px 22px;
}

.form-content>.actions {
  padding-top:10px;
}

.school-list {
  padding:8px;
}

.school-row {
  display:flex;
  width:100%;
  align-items:center;
  gap:8px;
  text-align:left;
  background:none;
  color:var(--ink);
  border:0;
  border-radius:8px;
  padding:10px;
  font-size:.82rem;
  font-weight:650;
  overflow-wrap:anywhere;
}

.school-row .icon {
  color:#4380a9;
  width:16px;
  height:16px;
}

.school-row span:first-of-type {
  flex:1;
}

.school-summary small {
  display:block;
  font-size:.875rem;
  font-weight:400;
  margin-top:4px;
}

.qr-version-choice {
  width:100%;
  font:inherit;
  color:var(--ink);
  background:white;
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px;
  min-height:44px;
}

.chip.expired {
  color:#8c2920;
  background:#ffebe7;
}

.school-row:hover,.school-row[aria-current="true"] {
  background:#e8f3ff;
}

.two-fields {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.toggle {
  display:flex;
  gap:7px;
  align-items:center;
  color:#284560;
  font-weight:650;
  font-size:.83rem;
  margin-bottom:10px;
}

.toggle input,.grant-tree input {
  accent-color:#1567a7;
  width:16px;
  height:16px;
  flex:none;
}

.grant-box {
  border:1px solid var(--line);
  border-radius:8px;
  margin:16px 0;
  padding:12px;
}

.grant-box legend {
  padding:0 5px;
  color:#214260;
  font-weight:750;
  font-size:.86rem;
}

.grant-tree {
  max-height:340px;
  overflow:auto;
  padding:6px;
}

.grant-tree details {
  margin:2px 0;
}

.grant-tree details>div {
  border-left:1px solid #dce8f1;
  margin-left:15px;
  padding-left:11px;
}

.grant-tree summary {
  cursor:pointer;
  color:#4d7595;
}

.grant-tree label {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:.8rem;
  min-height:30px;
  color:#24445f;
  cursor:pointer;
}

.grant-tree label .icon {
  width:15px;
  height:15px;
  color:#4186b6;
}

.grant-tree label.file-choice {
  display:flex;
  margin-left:13px;
}

.grant-tree label.file-choice .icon {
  color:#a54c3d;
}

.form-end {
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
}

.share-box {
  margin-bottom:16px;
  padding:12px;
  border:1px solid #bed9ef;
  border-radius:8px;
  background:#eef7ff;
}

.share-box .share-actions {
  display:flex;
  gap:8px;
  align-items:center;
  margin-top:7px;
}

.share-box input {
  margin:0;
  min-width:0;
}

.share-box h3 {
  margin-bottom:5px;
}

.share-box p {
  font-size:.8rem;
  color:var(--muted);
}

dialog {
  width:min(520px,calc(100% - 28px));
  padding:0;
  border:1px solid var(--line);
  border-radius:14px;
  color:var(--ink);
  box-shadow:0 14px 65px #071c3b48;
}

dialog::backdrop {
  background:#152d47a3;
}

dialog .dialog-title {
  padding:18px 22px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

dialog form {
  padding:18px 22px 22px;
}

dialog .actions {
  justify-content:flex-end;
}

dialog .section-description {
  margin-bottom:15px;
}

.toast {
  position:fixed;
  z-index:10;
  bottom:22px;
  right:22px;
  max-width:calc(100% - 44px);
  background:#153853;
  color:white;
  box-shadow:0 8px 28px #062d5740;
  border-radius:9px;
  padding:12px 18px;
  font-size:.86rem;
}

@media(max-width:1050px) {
  .header-inner,.shell,.site-footer>div {
    width:calc(100% - 40px);
  }
  .layout {
    grid-template-columns:minmax(205px,235px) minmax(0,1fr);
    gap:14px;
  }
  .item,.list-heading {
    padding-inline:15px;
  }
  .content-header,.form-content {
    padding-inline:15px;
  }
  .item.pdf-row {
    flex-wrap:wrap;
  }
  .item.pdf-row .actions {
    margin-left:50px;
  }
}

@media(max-width:760px) {
  .header-inner,.shell,.site-footer>div {
    width:calc(100% - 28px);
  }
  .header-inner {
    gap:8px;
    min-height:65px;
    flex-wrap:wrap;
    padding-top:8px;
  }
  .brand {
    gap:8px;
  }
  .brand img {
    width:76px;
    height:auto;
  }
  .brand>span {
    font-size:8px;
    padding-left:8px;
  }
  .top-nav {
    order:3;
    width:100%;
    min-height:42px;
  }
  .top-nav:empty {
    display:none;
  }
  .top-nav button {
    padding:0 10px;
    font-size:.82rem;
  }
  .account .role {
    display:none;
  }
  .shell {
    padding-top:16px;
  }
  .layout {
    grid-template-columns:1fr;
  }
  .tree {
    max-height:205px;
  }
  .hero {
    min-height:164px;
    padding:22px;
    margin-bottom:15px;
  }
  .hero::after {
    opacity:.4;
  }
  .hero>div {
    max-width:100%;
  }
  .hero p:last-child {
    font-size:.89rem;
  }
  .signin {
    grid-template-columns:1fr;
    margin-top:6px;
  }
  .signin .hero {
    min-height:220px;
  }
  .signin .hero::after {
    height:70%;
    opacity:.35;
  }
  .form-side {
    padding:24px;
  }
  .titlebar {
    flex-wrap:wrap;
  }
  .site-footer>div {
    font-size:.68rem;
  }
  .two-fields {
    grid-template-columns:1fr;
    gap:0;
  }
  .school-list {
    max-height:220px;
    overflow:auto;
  }
}

@media(min-width:761px) and (max-width:920px) {
  .header-inner {
    gap:14px;
  }
  .account .role {
    display:none;
  }
  .top-nav button {
    padding-inline:10px;
  }
}

@media(max-width:430px) {
  .item.pdf-row .actions {
    margin-left:0;
  }
  .item.pdf-row .item-info {
    flex-basis:calc(100% - 54px);
  }
  .site-footer>div span:last-child {
    display:none;
  }
}
