:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#1c2b24;background:#f5f7f3;line-height:1.5}
*{box-sizing:border-box}body{margin:0}a{color:inherit}button,select{font:inherit}button{cursor:pointer;border:0;border-radius:11px;padding:12px 18px;font-weight:700;background:#007a3d;color:white}button:hover{filter:brightness(.94)}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #d4af37;outline-offset:3px}.secondary{background:#e6efe8;color:#254d32}.danger{background:#a82d31}.top{background:#254d32;color:white;padding:16px max(22px,calc((100vw - 1120px)/2));display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.brand{text-decoration:none;font-size:1.2rem;font-weight:800}.brand em{color:#f0d47c;font-style:normal}.top nav{display:flex;gap:16px;flex-wrap:wrap}.top nav a{text-decoration:none}.top nav a[aria-current=page]{text-decoration:underline;text-decoration-color:#d4af37;text-decoration-thickness:3px;text-underline-offset:6px}.notice{background:#fff5d9;border-bottom:1px solid #eed99b;padding:10px 20px;text-align:center;font-size:.88rem;color:#634b12}.wrap{max-width:1120px;margin:auto;padding:30px 20px 70px}.eyebrow{color:#007a3d;font-weight:800;letter-spacing:.1em;text-transform:uppercase;font-size:.78rem;margin:0 0 6px}h1{font-size:clamp(2rem,4vw,3rem);line-height:1.12;margin:0 0 12px;color:#254d32}h2{margin:0 0 14px;color:#254d32;font-size:1.25rem}p{margin:0 0 16px}.muted{color:#617167}.panel{background:white;border:1px solid #e1e9e0;border-radius:18px;padding:23px;box-shadow:0 6px 22px #1c36230a}.hero{padding:38px 0}.hero p{max-width:660px;font-size:1.1rem}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}.actions a,.linkbtn{display:inline-block;text-decoration:none;border-radius:11px;background:#007a3d;color:white;font-weight:700;padding:13px 18px}.actions a:nth-child(2){background:#254d32}.featuregrid,.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.featuregrid{grid-template-columns:repeat(3,minmax(0,1fr))}.stat strong{font-size:2rem;color:#254d32;display:block}.stat span{font-size:.85rem;color:#617167}.toolbar{display:flex;justify-content:space-between;align-items:end;gap:18px;flex-wrap:wrap;margin-bottom:22px}.toolbar label{display:grid;gap:5px;font-weight:700}.toolbar select{padding:10px 35px 10px 12px;border:1px solid #b9c9bd;border-radius:9px;background:white}.stack{display:grid;gap:20px;margin-top:20px}.roster{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.student{background:#f8faf8;border:1px solid #dfe9e0;border-radius:13px;padding:14px;display:flex;justify-content:space-between;gap:8px;align-items:center}.status{font-size:.73rem;border-radius:99px;padding:5px 9px;background:#e3eee5;color:#254d32;font-weight:800;white-space:nowrap}.status.out{background:#ffebcf;color:#88531d}.kioskgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.kioskstudent{background:white;color:#254d32;border:2px solid #cfe2d3;border-radius:18px;min-height:144px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:16px;text-align:center;box-shadow:0 5px 15px #254d320a}.kioskstudent .studentname{font-size:1.32rem;font-weight:800}.kioskstudent .timelabel{font-variant-numeric:tabular-nums;font-size:1.05rem}.kioskstudent.out{border-color:#c68d2d;background:#fff5e4}.kioskstudent.overtime{border-color:#b33333;background:#fff0ee}.kioskstudent .state{font-size:.75rem;letter-spacing:.08em;font-weight:900}.kioskstudent.out .state{color:#9a611f}.kioskstudent.overtime .state{color:#a82d31}.tablewrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:12px 9px;border-bottom:1px solid #e4ebe4}th{font-size:.8rem;color:#617167}td{font-size:.92rem}.empty{padding:25px;color:#617167;text-align:center}.footnote{font-size:.83rem;color:#617167;margin-top:18px}dialog{border:0;border-radius:20px;max-width:min(440px,calc(100vw - 30px));width:100%;box-shadow:0 24px 80px #0005;padding:28px}dialog::backdrop{background:#10261b99}dialog h2{font-size:1.5rem}dialog .actions{justify-content:flex-end}dialog .actions button{min-width:100px}.error{color:#a82d31;min-height:1.4em}.setting-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.setting-row label{font-weight:700}.setting-row input{width:90px;padding:11px;border:1px solid #b9c9bd;border-radius:9px;font:inherit}.limit-note{display:inline-block;background:#e3eee5;color:#254d32;border-radius:9px;padding:9px 14px;font-weight:700;margin:0 0 20px}@media(max-width:800px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.roster,.kioskgrid,.featuregrid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:530px){.top{padding:15px 18px}.wrap{padding:23px 14px 60px}.roster,.kioskgrid,.featuregrid{grid-template-columns:1fr}.stats{gap:9px}.panel{padding:17px}.kioskstudent{min-height:118px}.toolbar{align-items:stretch}}

.reviewitem{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #e4ebe4}.reviewitem span{flex:1;min-width:220px}.restriction{color:#a82d31}.student{flex-wrap:wrap}.student button{font-size:.75rem;padding:8px 10px}.kioskstudent:has(.state){transition:background .2s}.kioskstudent .timelabel{overflow-wrap:anywhere}
dialog label{display:block;margin:12px 0 6px;font-weight:700}dialog select,dialog textarea{display:block;width:100%;max-width:100%;padding:10px;border:1px solid #b9c9bd;border-radius:8px;background:white;font:inherit}dialog [hidden]{display:none!important}#pause-current{font-weight:700;color:#254d32}

.emergency-panel{border:2px solid #a82d31}.emergency-panel #emergency-current{font-weight:800;color:#a82d31}.emergency-note:not(:empty){background:#ffe5e5;color:#8f2429;border:1px solid #c97c80}.emergency-note:empty{display:none}

/* V0.5 roster controls */
#roster-form {flex-wrap:wrap;align-items:end;}
#roster-form input {min-width:180px;}
#roster-form select {min-width:120px;}
.roster .student small {overflow-wrap:anywhere;font-size:.72rem;flex-basis:100%;}
.roster .student button {font-size:.8rem;}

/* V0.5.1: distinguish duplicate names without changing trip identity. */
.history-student-id{display:block;color:#617167;font-size:.72rem;overflow-wrap:anywhere;margin-top:3px;}

/* V0.6 reporting filters and responsive tables */
.report-filters{display:flex;gap:14px;flex-wrap:wrap}.report-filters label{display:grid;gap:6px;font-weight:700}.report-filters select{padding:10px 12px;border:1px solid #b9c9bd;border-radius:9px;background:white;font:inherit}.report-filters select:focus-visible{outline:3px solid #d4af37}.tablewrap{overflow-x:auto}.tablewrap table{min-width:580px}.tablewrap small{display:block}.panel .actions{margin-bottom:12px}

/* V0.7 accessibility and responsive usability */
:root{color-scheme:light}html{scroll-behavior:smooth}button,select,input,textarea{font:inherit;min-height:44px}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #a97700;outline-offset:3px}a:not(.brand):not(.linkbtn):hover{text-decoration:underline} .skip-link{position:absolute;left:12px;top:-90px;z-index:1000;background:white;color:#254d32;padding:12px 16px;border:3px solid #a97700;border-radius:8px}.skip-link:focus{top:10px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.tablewrap{max-width:100%;overscroll-behavior-x:contain}.tablewrap:focus-visible{outline:3px solid #a97700;outline-offset:2px}.tablewrap table{min-width:640px}.tablewrap th{white-space:nowrap}.tablewrap td,.tablewrap th{vertical-align:top}.tablewrap .history-student-id{overflow-wrap:anywhere}.report-filters select{max-width:100%}.kioskstudent:focus-visible{outline:4px solid #a97700;outline-offset:3px}.error:not(:empty){font-weight:700}dialog{max-height:calc(100dvh - 30px);overflow-y:auto}dialog .actions{position:relative}@media(max-width:600px){.report-filters{display:grid;grid-template-columns:1fr}.report-filters label{min-width:0}.report-filters select{width:100%}.tablewrap{border:1px solid #dfe9e0;border-radius:10px}.kioskstudent{min-height:120px}.actions button{max-width:100%}.top nav{gap:10px}.top nav a{padding:6px 0}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* V0.8.1 PDF preview */
#pdf-import input[type=file]{max-width:100%;font:inherit}#pdf-import-preview[hidden]{display:none}#pdf-import-rows input{min-width:170px;max-width:230px;width:100%;padding:8px;border:1px solid #b9c9bd;border-radius:7px}#pdf-import-rows select{padding:8px;border:1px solid #b9c9bd;border-radius:7px}#pdf-import-commit:disabled{opacity:.5;cursor:not-allowed}
