/* KRESA AT Devices. Matches Ben Tomlinson's AT Request Portal (Kalamazoo RESA "Education Services" look):
   cream page, ocean-blue headings and buttons, lime/teal card accents, square corners, Montserrat + Roboto. */
:root {
  --es-ocean-blue: #125c6e; --es-ocean-blue-hover: #0d4757; --es-ocean-blue-active: #093644; --es-ocean-blue-20: #e1edf0; --es-ocean-blue-10: #f0f6f8;
  --es-kresa-blue: #005d70; --es-teal: #00b5b5; --es-teal-deep: #007a7a; --es-teal-20: #e0f4f3;
  --es-lime: #c4d933; --es-lime-deep: #6c771c; --es-lime-20: #f3f7dc;
  --es-melon: #f2717d; --es-melon-deep: #a94f58; --es-melon-20: #fde8ea;
  --es-cream: #fcfbf8; --es-mist: #eaf6f5; --es-ice: #eff9fe;
  --ink: #000; --graphite: #3b3b3b; --slate: #5f5f5f; --steel: #767676; --cloud: #e8e8e8; --fog: #f2f2f2;
  --link: #3a619b; --ok: #4e5c0d; --caution: #9e2a38;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--es-cream); color: var(--graphite); font: 16px/1.55 Roboto, "Helvetica Neue", Arial, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3, .btn, button, .eyebrow, th, .chip, .pill, .lockup, .menu a, .tile .n, label { font-family: Montserrat, "Helvetica Neue", Arial, sans-serif; }
h1 { font-size: 1.75rem; line-height: 1.2; color: var(--es-ocean-blue); margin: 0 0 .25rem; font-weight: 700; }
h2 { font-size: 1.15rem; color: var(--es-ocean-blue); margin: 0 0 .6rem; font-weight: 700; }
h3 { font-size: 1rem; color: var(--graphite); margin: 0 0 .4rem; font-weight: 700; }
a { color: var(--link); text-underline-offset: 2px; }
.muted { color: var(--slate); } .small { font-size: .87rem; }
.eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--es-teal-deep); margin-bottom: 4px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 8px; z-index: 50; background: #fff; padding: 8px 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: var(--es-cream); border-bottom: 2px solid var(--es-ocean-blue); }
.top .in { max-width: 1200px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 14px; }
.lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.lockup svg { width: 44px; height: 44px; flex: none; display: block; }
.lockup .org { display: flex; flex-direction: column; line-height: 1.15; }
.lockup .org small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--es-teal-deep); }
.lockup .org b { font-size: 1.2rem; color: var(--es-ocean-blue); white-space: nowrap; }
.lockup .app { border-left: 2px solid var(--es-teal-deep); padding-left: 12px; font-weight: 700; color: var(--es-ocean-blue); font-size: .95rem; white-space: nowrap; }
.top .spacer { flex: 1; }
.menu-btn { background: #fff; color: var(--es-ocean-blue); border: 2px solid var(--es-ocean-blue); display: inline-flex; align-items: center; gap: 8px; }
.menu-btn:hover { background: var(--es-ocean-blue-10); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--es-melon-deep); color: #fff; font-size: 12px; font-weight: 700; }
@media (max-width: 640px) { .lockup .app { display: none; } .lockup svg { width: 36px; height: 36px; } }

/* menu drawer */
.drawer { position: fixed; inset: 0; z-index: 40; display: none; }
.drawer.open { display: block; }
.drawer .shade { position: absolute; inset: 0; background: rgba(0, 54, 68, .35); }
.drawer nav { position: absolute; right: 0; top: 0; bottom: 0; width: min(330px, 88vw); background: #fff; box-shadow: -6px 0 24px rgba(0,0,0,.15); padding: 16px 0; overflow-y: auto; }
.drawer .dh { display: flex; justify-content: space-between; align-items: center; padding: 0 20px 12px; }
.drawer .dh h2 { margin: 0; color: var(--graphite); }
.drawer .close { background: none; border: 0; color: var(--graphite); min-height: 36px; padding: 4px 8px; font-size: 1.3rem; }
.drawer .me { margin: 0 16px 10px; padding: 12px; background: var(--es-ocean-blue-10); display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.drawer .me b { display: block; color: var(--graphite); font-size: .95rem; }
.drawer .me span { font-size: .85rem; color: var(--slate); word-break: break-all; }
.drawer .me .role { display: inline-block; margin-top: 6px; background: var(--es-ocean-blue); color: #fff; font: 700 10px Montserrat, sans-serif; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: var(--graphite); text-decoration: none; font-weight: 600; font-size: .95rem; border-left: 4px solid transparent; }
.menu a:hover { background: var(--fog); }
.menu a.on { border-left-color: var(--es-ocean-blue); background: var(--es-ocean-blue-10); color: var(--es-ocean-blue); }
.menu a svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu a .badge { margin-left: auto; }
.menu hr { border: 0; border-top: 1px solid var(--cloud); margin: 8px 20px; }

/* page */
main { width: 100%; max-width: 1200px; margin: 0 auto; padding: 26px 20px 50px; outline: none; flex: 1; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.head .row { justify-content: flex-end; }
footer { border-top: 1px solid var(--cloud); }
footer .in { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--slate); }

/* boxes */
.card { background: #fff; border: 1px solid var(--cloud); border-top: 6px solid var(--es-lime); padding: 20px 22px; margin-bottom: 20px; }
.card.teal { border-top-color: var(--es-teal); }
.card.narrow { max-width: 460px; margin: 8vh auto; }
.panel { background: var(--es-mist); border-top: 3px solid var(--es-ocean-blue); padding: 18px 20px; margin-bottom: 20px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.tile { background: #fff; border: 1px solid var(--cloud); border-top: 4px solid var(--es-teal); padding: 12px 14px; text-decoration: none; color: var(--graphite); display: block; }
.tile:hover { border-color: var(--es-ocean-blue); border-top-color: var(--es-ocean-blue); }
.tile .l { font-size: .9rem; }
.tile .n { font-size: 1.8rem; font-weight: 700; color: var(--graphite); line-height: 1.2; font-variant-numeric: tabular-nums; }
.tile .s { font-size: .8rem; color: var(--slate); }
.tile.alert { border-top-color: var(--es-melon-deep); } .tile.alert .n { color: var(--caution); }

/* callouts (Note / Important / Problem / Done) */
.notice { display: flex; gap: 12px; padding: 12px 16px; margin-bottom: 18px; background: var(--es-ice); border-left: 4px solid var(--es-ocean-blue); color: var(--graphite); }
.notice::before { content: "i"; flex: none; font: 700 14px Montserrat, sans-serif; color: var(--es-ocean-blue); width: 14px; text-align: center; }
.notice.warn { background: #fff7e3; border-left-color: #b07a00; } .notice.warn::before { content: "!"; color: #8a5a00; }
.notice.bad { background: var(--es-melon-20); border-left-color: var(--es-melon-deep); } .notice.bad::before { content: "\00d7"; color: var(--caution); }
.notice.ok { background: var(--es-lime-20); border-left-color: var(--es-lime-deep); } .notice.ok::before { content: "\2713"; color: var(--ok); }
.notice b { color: var(--graphite); }

/* controls */
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 2px solid var(--es-ocean-blue); border-radius: 0; background: var(--es-ocean-blue); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover, button:hover { background: var(--es-ocean-blue-hover); border-color: var(--es-ocean-blue-hover); }
.btn.alt, button.alt, button.ghost { background: #fff; color: var(--es-ocean-blue); }
.btn.alt:hover, button.alt:hover, button.ghost:hover { background: var(--es-ocean-blue-10); }
button.danger { background: var(--es-melon-deep); border-color: var(--es-melon-deep); }
button.danger:hover { background: #8d3f47; border-color: #8d3f47; }
button.small { min-height: 34px; padding: 4px 12px; font-size: 13px; }
button:disabled { opacity: .55; cursor: default; }
.btn.wide { display: flex; width: 100%; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { border: 1px solid var(--steel); background: #fff; color: var(--graphite); border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 600; text-decoration: none; }
.chip:hover { border-color: var(--es-ocean-blue); }
.chip.on { background: var(--es-teal-deep); border-color: var(--es-teal-deep); color: #fff; }
input, select, textarea { font: inherit; color: var(--graphite); background: #fff; border: 1px solid var(--steel); border-radius: 0; padding: 9px 11px; width: 100%; min-height: 44px; }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--es-ocean-blue); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, th:focus-visible { outline: 3px solid var(--es-teal); outline-offset: 1px; }
label { display: block; font-size: 14px; font-weight: 700; color: var(--graphite); margin-bottom: 4px; }
.hint { font-size: .85rem; color: var(--slate); margin-top: 3px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 18px; }
.search { width: 320px; max-width: 100%; }

/* tables */
.tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--cloud); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th { background: var(--es-ocean-blue); color: #fff; font-size: 13px; font-weight: 700; text-align: left; padding: 10px 12px; white-space: nowrap; cursor: pointer; user-select: none; }
th[aria-sort=ascending]::after { content: " \25B2"; font-size: .7em; } th[aria-sort=descending]::after { content: " \25BC"; font-size: .7em; }
td { padding: 10px 12px; border-bottom: 1px solid var(--cloud); vertical-align: top; }
tbody tr:hover td { background: var(--es-ocean-blue-10); }
td a.dev { font-weight: 700; color: var(--link); }
.num { font-variant-numeric: tabular-nums; }

/* status pills: uppercase with a glyph, like the request portal */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; font: 700 11px/1.6 Montserrat, sans-serif; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; background: var(--fog); color: var(--graphite); }
.pill::before { content: "\2013"; }
.pill.ok { background: var(--es-lime-20); color: var(--ok); } .pill.ok::before { content: "\2713"; }
.pill.info { background: var(--es-teal-20); color: var(--es-kresa-blue); } .pill.info::before { content: "\25CB"; }
.pill.warn { background: #fff1d6; color: #7a5000; } .pill.warn::before { content: "!"; }
.pill.bad { background: var(--es-melon-20); color: var(--caution); } .pill.bad::before { content: "\00d7"; }
.pill.plain::before { content: none; }
.flags { display: flex; gap: 4px; flex-wrap: wrap; }

.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--slate); font-size: .9rem; } .kv dd { margin: 0; }
.cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } .kv { grid-template-columns: 130px 1fr; } }
.log { list-style: none; padding: 0; margin: 0; }
.log li { padding: 9px 0; border-bottom: 1px solid var(--cloud); font-size: .93rem; }
.log li:last-child { border-bottom: 0; }
.log li .flags { display: inline-flex; margin-left: 6px; vertical-align: middle; }
.empty { padding: 26px; text-align: center; color: var(--slate); }
.big { font: 700 1.6rem Montserrat, sans-serif; color: var(--graphite); margin: 0; }
details summary { cursor: pointer; color: var(--link); font-weight: 600; }

#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--graphite); color: #fff; padding: 11px 18px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 90vw; z-index: 60; }
#toast.show { opacity: 1; }
dialog { border: 0; border-top: 6px solid var(--es-lime); border-radius: 0; background: #fff; color: var(--graphite); padding: 0; width: min(600px, 94vw); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(0, 54, 68, .4); }
dialog form { padding: 22px; }
dialog .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
@media print { .top, footer, button, .drawer { display: none !important; } body { background: #fff; } }

/* help + lists */
.bul { margin: 0; padding-left: 22px; line-height: 1.7; }
.bul li { margin-bottom: 4px; }
.help { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.toc { position: sticky; top: 86px; background: #fff; border: 1px solid var(--cloud); border-top: 4px solid var(--es-ocean-blue); padding: 14px 16px; }
.toc ul { list-style: none; margin: 6px 0 0; padding: 0; }
.toc li { margin: 0 0 6px; font-size: .92rem; }
.help .card { scroll-margin-top: 90px; }
.help .kv dt { display: flex; align-items: center; }
@media (max-width: 900px) { .help { grid-template-columns: 1fr; } .toc { position: static; } }
/* small screens */
@media (max-width: 640px) {
  main { padding: 18px 14px 40px; }
  h1 { font-size: 1.45rem; }
  .head { align-items: stretch; }
  .head .row { justify-content: flex-start; }
  .search { width: 100%; }
  .card { padding: 16px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 8px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .top .in { padding: 8px 14px; }
}

/* device pictures (drawings) */
.art { display: inline-block; flex: none; }
.art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.a-body { fill: #3b3f44; }
.art-ipad-home .a-body, .art-mini-home .a-body, .art-pro-home .a-body { fill: #e3e6e9; stroke: #9aa3ab; stroke-width: 1; }
.a-screen { fill: #125c6e; }
.a-glint { fill: #ffffff; opacity: .22; }
.a-btn { fill: none; stroke: #9aa3ab; stroke-width: 1.2; }
.a-cam { fill: #1d2125; }
.a-tiles { fill: #c4d933; }
.a-switch { fill: #f0b44a; }
.art-desktop .a-body, .art-laptop .a-body { fill: #6b7178; }
.art-aac .a-body { fill: #4bafb8; }
.art-switch .a-body { fill: #5f5f5f; }
.devcell { display: flex; align-items: center; gap: 12px; }
.devhero { display: flex; align-items: center; gap: 18px; }
.devhero .art { background: var(--es-ocean-blue-10); padding: 8px 10px; box-sizing: content-box; }
.model { margin: 0 0 8px; color: var(--slate); font-weight: 500; }
.mstrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.mchip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--cloud); text-decoration: none; color: var(--graphite); }
.mchip:hover { border-color: var(--es-ocean-blue); background: var(--es-ocean-blue-10); }
.mchip b { display: block; font: 700 1.25rem Montserrat, sans-serif; }
.mchip small { display: block; font-size: .8rem; color: var(--slate); line-height: 1.25; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.mcard { display: flex; gap: 16px; background: #fff; border: 1px solid var(--cloud); border-top: 5px solid var(--es-teal); padding: 16px; }
.mcard.focus { border-color: var(--es-ocean-blue); box-shadow: 0 0 0 3px var(--es-teal-20); }
.mart { background: var(--es-ocean-blue-10); display: grid; place-items: center; padding: 10px 12px; align-self: flex-start; }
.mbody h2 { margin: 0 0 4px; font-size: 1.05rem; color: var(--graphite); }
.mcount { margin: 0 0 8px; color: var(--slate); }
.mcount b { font: 700 1.4rem Montserrat, sans-serif; color: var(--graphite); }
@media (max-width: 640px) { .mgrid { grid-template-columns: 1fr; } .devhero .art { display: none; } }
