:root {
  --ink: #202625;
  --muted: #737976;
  --line: #e9ecea;
  --surface: #f3f5f4;
  --red: #ce3229;
  --accent: #a82c24;
  --accent-surface: #f7e8e5;
  --green: #477c62;
  --amber: #92702d;
  --panel-height: 0px;
  --keyboard-offset: 0px;
  --motion: 360ms cubic-bezier(.22, 1, .36, 1);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body { margin: 0; background: #edf1f0; }
button, input, select, summary { font: inherit; }
button, input, select, a, summary { -webkit-tap-highlight-color: transparent; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: none; color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .5; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid #557da9; outline-offset: 3px; }
button svg, [data-icon] svg { display: block; width: 18px; height: 18px; flex: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 22px; line-height: 1.2; letter-spacing: -.65px; font-weight: 600; }
h2 { font-size: 17px; letter-spacing: -.3px; font-weight: 600; }
h2[tabindex="-1"]:focus { outline: none; }
.site-header { position: fixed; z-index: 1100; top: 18px; left: 24px; right: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: none; }
.site-header::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 86px; z-index: -1; background: linear-gradient(180deg,#fffffff5 0%,#ffffffd9 45%,#ffffff00 100%); pointer-events: none; }
.site-header > * { pointer-events: auto; }
.brand-group { display: flex; align-items: center; gap: 24px; min-height: 53px; }
.brand { display: flex; align-items: center; flex: none; width: 118px; height: 44px; }
.brand img { display: block; width: 100%; height: auto; }
.brand-cross { flex: none; color: #7a817c; font-size: 20px; font-weight: 300; line-height: 1; }
.campus-brand { display: block; flex: none; width: 220px; height: auto; }
.text-button { padding: 0; font-size: 12px; line-height: 1.4; }
.text-button:hover { color: var(--accent); }
.about-button { min-height: 44px; min-width: 44px; padding: 0; font-size: 12px; }
.workspace { position: fixed; inset: 0; height: 100dvh; }
.sidebar { position: absolute; top: 94px; left: 24px; z-index: 1000; display: flex; flex-direction: column; width: 350px; max-height: calc(100dvh - 122px); border-radius: 20px; background: #fffffff7; box-shadow: 0 9px 40px #22372c14; overflow: hidden; }
.sidebar-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; overflow-anchor: none; padding: 24px 24px 4px; }
.sheet-toggle { display: none; }
.search-panel { padding: 0; }
.form-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 20px; }
.pin-button { flex: none; min-height: 44px; gap: 5px; color: #6d7770; font-size: 11px; }
.pin-button svg { width: 13px; height: 13px; }
.pin-button[aria-pressed=true] { color: var(--accent); }
.search-wrap { position: relative; }
.search-wrap input { width: 100%; height: 48px; border: 1px solid transparent; border-radius: 11px; background: #f0f3f1; color: var(--ink); padding: 0 42px 0 39px; font-size: 14px; appearance: none; }
.search-wrap input::-webkit-search-cancel-button { display: none; }
.search-wrap input::placeholder { color: #7b837e; }
.search-wrap input:focus { outline: none; border-color: #a6b5aa; background: #f7f9f7; }
.search-icon { position: absolute; top: 16px; left: 14px; pointer-events: none; color: #6a786d; }
.search-icon svg { width: 16px; height: 16px; }
.locate-button { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; color: #708076; border-radius: 8px; }
.locate-button:hover { background: #e5ece6; }
.suggestions { position: relative; margin-top: 7px; border-radius: 10px; background: #f6f8f6; padding: 4px; }
.suggestions button { width: 100%; text-align: left; justify-content: flex-start; padding: 11px 9px; border-radius: 7px; font-size: 13px; gap: 10px; line-height: 1.4; }
.suggestions svg { width: 16px; height: 16px; color: #879289; }
.suggestions small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.suggestions button:hover, .suggestions button[aria-selected=true] { background: #e9eeea; }
.suggestions p { padding: 12px; font-size: 13px; line-height: 1.5; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.print-options { gap: 8px; min-height: 44px; padding: 0; color: #707973; font-size: 12px; white-space: nowrap; }
.chevron { width: 5px; height: 5px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); margin-top: -3px; }
.primary-button { width: auto; min-height: 44px; flex: none; justify-content: center; gap: 12px; padding: 0 17px; border-radius: 12px; background: var(--accent-surface); color: var(--accent); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .15s; }
.primary-button:hover { background: #f0d9d4; }
.primary-button svg { width: 15px; height: 15px; }
.demo-note { flex: none; padding: 16px 24px 19px; color: #899189; font-size: 10px; line-height: 1.5; }
.results { padding-top: 24px; }
.results-heading { display: flex; justify-content: space-between; align-items: center; }
.results-heading button { color: #718078; width: 44px; height: 44px; margin-right: -7px; }
.results-heading svg { width: 16px; height: 16px; }
.results-summary { padding: 3px 0 9px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.printer-row { width: 100%; padding: 16px 0; gap: 11px; justify-content: flex-start; align-items: center; text-align: left; border-bottom: 1px solid #edf0ed; }
.printer-row:hover { background: #f7f9f7; }
.printer-mini { flex: none; display: flex; align-items: center; justify-content: center; width: 33px; height: 35px; border-radius: 9px; background: #eef2ee; }
.printer-mini svg { width: 16px; height: 16px; }
.row-body { flex: 1; min-width: 0; }
.printer-name { display: block; font-size: 13px; line-height: 1.45; font-weight: 550; }
.row-meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.row-time { flex: none; text-align: right; font-size: 14px; white-space: nowrap; }
.row-time small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.row-best { display: block; margin-bottom: 4px; color: var(--green); font-size: 10px; font-weight: 550; }
.unavailable-printers { margin-top: 14px; }
.unavailable-printers > summary { padding: 8px 0; color: var(--muted); font-size: 12px; cursor: pointer; }
.unavailable-printers .printer-name { color: #768078; }
.state { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 12px; }
.state.busy-text { color: var(--amber); }
.state.unavailable-text { color: var(--muted); }
.dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; }
.ready { background: #5f8c70; }
.busy { background: #b6a06b; }
.unavailable { background: #9ba29e; }
.printer-detail { padding: 0; }
.back-button { justify-content: flex-start; min-height: 44px; padding: 0; margin: 0 0 12px; color: #657268; font-size: 12px; }
.back-button svg { width: 15px; height: 15px; }
.printer-detail h2 { font-size: 25px; font-weight: 600; letter-spacing: -.65px; line-height: 1.25; }
.detail-room { margin: 10px 0 13px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.detail-time { padding: 20px 0 15px; }
.detail-time strong { font-size: 31px; letter-spacing: -1px; font-weight: 500; }
.detail-time strong small { font-size: 16px; letter-spacing: -.2px; }
.detail-time > span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.diagnostics { margin: 20px 0 3px; }
.diagnostic { padding-bottom: 21px; }
.metric-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 9px; color: #758177; font-size: 12px; }
.metric-line strong { color: var(--ink); font-size: 13px; font-weight: 550; }
.metric-line small { color: var(--muted); font-size: 10px; font-weight: 400; }
.meter { height: 3px; border-radius: 2px; background: #e9eeea; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 2px; background: #8c9e8e; transition: width 300ms ease; }
.detail-alert { padding: 13px; margin: 18px 0; border-radius: 10px; background: var(--surface); color: #748078; font-size: 12px; line-height: 1.6; }
.detail-link { width: 100%; justify-content: space-between; padding: 15px 0; color: #5f7264; font-size: 12px; }
.detail-fineprint { margin-top: 7px; color: #8a938b; font-size: 10px; line-height: 1.6; }
.map-section { position: absolute; inset: 0; isolation: isolate; overflow: hidden; background: #edf1ef; }
#printer-map { width: 100%; height: 100%; z-index: 1; background: #edf1ef; }
.leaflet-tile-pane { filter: saturate(.28) brightness(1.055) contrast(.82); }
.leaflet-container { font-family: inherit; }
.map-toolbar { position: absolute; top: 88px; right: 74px; z-index: 800; }
.map-view { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 11px; background: #ffffffed; box-shadow: 0 2px 15px #243d2b08; }
.map-view svg { width: 16px; height: 16px; }
.map-view select { max-width: 135px; border: 0; padding: 5px 9px 5px 0; color: #4e5f53; background: transparent; font-size: 12px; cursor: pointer; }
.map-fit { position: absolute; top: 88px; right: 24px; z-index: 700; width: 44px; height: 44px; border-radius: 10px; background: #fffffff0; box-shadow: 0 2px 15px #243d2b0a; }
.map-fit svg { width: 17px; height: 17px; }
.leaflet-bottom.leaflet-right .leaflet-control-zoom { margin: 0 24px 26px 0; }
.leaflet-control-zoom { border: 0 !important; border-radius: 10px !important; box-shadow: 0 2px 15px #243d2b0a !important; overflow: hidden; }
.leaflet-control-zoom a { width: 44px !important; height: 44px !important; line-height: 44px !important; font-size: 22px !important; font-weight: 400 !important; color: #506154 !important; border-color: #f0f2f0 !important; }
.leaflet-control-attribution { color: #77877a !important; background: #ffffffa6 !important; font-size: 9px !important; }
.leaflet-control-attribution a { color: #6c8172; }
.map-key { position: absolute; left: 26px; bottom: 25px; z-index: 600; display: flex; align-items: center; gap: 6px; color: #708175; font-size: 10px; text-shadow: 0 1px 3px white; }
.map-key .dot:not(:first-child) { margin-left: 9px; }
.map-pin { position: relative; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 2px solid white; border-radius: 50%; background: #fff; color: #4b6b54; box-shadow: 0 2px 9px #23472d28; transition: background .12s, transform .12s; }
.map-pin svg { width: 16px; height: 16px; }
.map-pin.is-selected { transform: scale(1.16); background: var(--red); color: white; }
.map-pin.is-unavailable { background: #f4f6f4; color: #9ba79d; }
.printer-map-marker { display: grid; place-items: center; }
.pin-status { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; }
.you-pin { width: 17px; height: 17px; border: 3px solid white; border-radius: 50%; background: #608aaf; box-shadow: 0 0 0 7px #608aaf20, 0 1px 5px #0003; }
.leaflet-tooltip { border: 0; border-radius: 7px; padding: 8px 11px; box-shadow: 0 2px 10px #23472d18; font-family: inherit; font-size: 12px; }
.pin-mode { cursor: crosshair !important; }
.pin-instructions { position: absolute; top: 145px; right: 24px; z-index: 850; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 424px); padding: 12px 16px; border-radius: 12px; background: #fff; box-shadow: 0 3px 18px #23472d10; font-size: 12px; }
.pin-instructions button { min-height: 44px; font-size: 11px; }
.pin-instructions button:first-of-type { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.pin-instructions button:last-of-type { font-size: 21px; }
.map-failure { position: absolute; top: 145px; right: 24px; max-width: 350px; z-index: 800; padding: 15px; border-radius: 12px; background: white; font-size: 12px; line-height: 1.6; }
#campus-map-wrap { position: absolute; inset: 144px 24px 24px 404px; z-index: 2; border-radius: 16px; overflow: hidden; background: #f0f3ef; }
#campus-map { width: 100%; height: 100%; border: 0; }
.toast { position: fixed; top: 85px; left: 50%; transform: translateX(-50%); z-index: 3000; width: max-content; max-width: min(520px,90vw); padding: 13px 18px; border-radius: 12px; background: #fff; color: #4f6657; box-shadow: 0 5px 30px #23472d22; font-size: 12px; line-height: 1.6; }
dialog { width: calc(100% - 36px); max-width: 430px; max-height: calc(100dvh - 40px); border: 0; border-radius: 20px; padding: 30px; color: var(--ink); box-shadow: 0 20px 70px #172d2326; overscroll-behavior: contain; }
dialog[open] { animation: dialog-in 180ms cubic-bezier(.22,1,.36,1); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
dialog::backdrop { background: #3242384d; backdrop-filter: blur(3px); }
.dialog-close { position: absolute; right: 6px; top: 5px; width: 44px; height: 44px; color: #748179; font-size: 25px; }
dialog h2 { margin: 0 0 23px; font-size: 24px; letter-spacing: -.5px; }
dialog p, dialog li { color: #738176; font-size: 14px; line-height: 1.8; }
dialog p+p { margin-top: 14px; }
dialog ul, dialog ol { padding-left: 19px; }
dialog li { padding-left: 3px; margin-bottom: 10px; }
.dialog-actions { display: flex; justify-content: space-between; gap: 15px; padding-top: 20px; margin-top: 20px; }
.dialog-actions button { font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.job-controls fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.job-controls legend { margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.segmented { display: flex; background: #f1f4f1; padding: 4px; border-radius: 10px; }
.segmented button { flex: 1; min-height: 44px; padding: 7px 8px; border-radius: 7px; font-size: 12px; }
.segmented button.active { background: white; box-shadow: 0 1px 4px #23382b0e; }
.option-row { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; font-size: 13px; }
.option-row input, .option-row select { padding: 10px; border: 0; border-radius: 9px; background: #f1f4f1; font-size: 13px; }
.option-row input { width: 65px; }
.settings-footer { display: flex; justify-content: flex-end; margin-top: 27px; }
.field-error { color: var(--accent); font-size: 12px; line-height: 1.5; margin-top: 9px; }
.map-loading { position: absolute; right: 24px; top: 146px; z-index: 700; padding: 10px 14px; border-radius: 10px; color: #6d7d72; background: #fff; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 15px; z-index: 4000; background: white; padding: 12px; }
.skip-link:focus { top: 10px; }
[hidden] { display: none !important; }
@media (max-width: 900px) {
  .site-header { top: 14px; left: 16px; right: 16px; gap: 12px; }
  .brand-group { min-height: 44px; gap: 10px; }
  .brand { width: 102px; height: 44px; }
  .campus-brand { width: 164px; }
  .about-button { min-height: 44px; padding: 0; font-size: 11px; }
  .sidebar { top: auto; bottom: var(--keyboard-offset); left: 50%; transform: translateX(-50%); width: min(100%,600px); height: var(--sheet-height,280px); max-height: calc(100dvh - var(--keyboard-offset) - 112px); border-radius: 24px 24px 0 0; box-shadow: 0 -6px 35px #23472d12; padding-bottom: env(safe-area-inset-bottom,0px); transition: height var(--motion); }
  .sidebar.is-dragging, .sidebar.is-resizing { transition: none; }
  .keyboard-open .sidebar { max-height: calc(100dvh - var(--keyboard-offset) - 16px); padding-bottom: 0; }
  .keyboard-open .site-header, .keyboard-open .map-toolbar, .keyboard-open .map-fit, .keyboard-open .demo-note { display: none; }
  .sidebar-scroll { padding: 2px 24px 8px; transition: opacity 140ms ease, visibility 0s; }
  .sidebar.is-collapsed .sidebar-scroll { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 140ms ease, visibility 0s 140ms; }
  .sheet-toggle { display: flex; flex-direction: column; flex: none; align-self: center; gap: 8px; width: 96px; min-height: 44px; height: 44px; padding: 0 16px; color: #627469; touch-action: none; cursor: ns-resize; user-select: none; transition: height var(--motion); }
  .sheet-grip { display: block; width: 32px; height: 3px; border-radius: 2px; background: #d2dad3; }
  .sheet-label { display: none; font-size: 13px; }
  .sidebar.is-collapsed .sheet-toggle { height: 64px; width: auto; }
  .sidebar.is-collapsed .sheet-label { display: inline; }
  .form-heading { margin-bottom: 17px; }
  .search-wrap input { font-size: 16px; }
  .option-row input, .option-row select { font-size: 16px; }
  .demo-note { padding: 14px 24px 15px; font-size: 10px; }
  .map-toolbar { top: 76px; right: 66px; }
  .map-view { height: 37px; }
  .map-view select { font-size: 11px; }
  .map-fit { top: 74px; right: 16px; }
  .leaflet-bottom.leaflet-right { bottom: calc(var(--panel-height) + var(--keyboard-offset) + 10px); }
  .map-controls-constrained .leaflet-control-zoom { visibility: hidden; pointer-events: none; }
  .leaflet-bottom.leaflet-right .leaflet-control-zoom { margin-right: 16px; }
  .map-key { display: none; }
  .pin-instructions { top: 128px; right: 16px; left: 16px; max-width: none; gap: 8px; flex-wrap: wrap; padding: 10px 13px; }
  .pin-instructions > span { flex: 1; min-width: 180px; }
  .pin-instructions button:last-of-type { margin-left: auto; }
  .map-failure { top: 128px; right: 16px; left: 16px; max-width: none; }
  .map-loading { right: 16px; top: 130px; }
  #campus-map-wrap { inset: 128px 16px calc(var(--panel-height) + var(--keyboard-offset) + 12px) 16px; }
  .back-button { margin-bottom: 16px; }
  .printer-detail h2 { font-size: 23px; }
  .diagnostics { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
  .diagnostic { padding-bottom: 7px; }
  .diagnostic:first-child { grid-column: 1 / -1; }
  .detail-time { padding: 17px 0 8px; }
  .detail-link { padding: 12px 0; }
  .toast { top: 72px; }
}
@media (max-width: 480px) {
  .sidebar-scroll { padding-left: 20px; padding-right: 20px; }
  .demo-note { padding-left: 20px; padding-right: 20px; }
  h1 { font-size: 21px; }
}
@media (max-width: 380px) {
  .brand-group { gap: 6px; }
  .brand { width: 78px; }
  .brand-cross { font-size: 16px; }
  .campus-brand { width: 132px; }
}
@media (max-width: 350px) {
  .sidebar-scroll { padding-left: 16px; padding-right: 16px; }
  .form-heading { gap: 6px; }
  h1 { font-size: 19px; }
  .primary-button { gap: 8px; padding: 0 12px; font-size: 12px; }
  .print-options { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
