:root {
  --page-blue: #174c73;
  --page-blue-dark: #0e3555;
  --page-blue-light: #d9edf7;
  --page-orange: #e77822;
  --page-orange-light: #fff0cf;
  --page-green: #42794f;
  --page-purple: #6a5a91;
  --page-rose: #a95564;
  --page-slate: #5d6d78;
  --old-border: #9bacb8;
  --old-line: #c2ccd2;
  --old-paper: #fffef8;
  --old-link: #003f9d;
  --old-visited: #5b2b84;
  --old-shadow: #4d5960;
  --font-ming: PMingLiU, MingLiU, "Noto Serif TC", serif;
  --font-sans: Arial, "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: #252525;
  background-color: #aeb9bf;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(65, 82, 93, .08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(65, 82, 93, .08) 75%);
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
  background-size: 10px 10px;
  font-family: var(--font-ming);
  font-size: 13px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: var(--old-link);
}

a:visited {
  color: var(--old-visited);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 5px;
  left: 5px;
  z-index: 10000;
  padding: 7px 12px;
  border: 2px solid #000;
  color: #000;
  background: #fff;
  font-family: var(--font-sans);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.archive-strip {
  min-height: 25px;
  border-bottom: 1px solid #87939b;
  color: #37424a;
  background: #e8ecee;
  font-family: var(--font-sans);
  font-size: 11px;
}

.archive-strip__inner {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 1000px;
  min-height: 25px;
  margin: 0 auto;
  padding: 2px 4px;
}

.archive-strip__mark {
  color: #234a61;
  font-weight: 700;
}

.archive-strip label {
  margin-left: 2px;
}

.archive-strip select {
  height: 20px;
  padding: 0 18px 0 3px;
  border: 1px solid #829099;
  border-radius: 0;
  background: #fff;
  font-size: 11px;
}

.archive-strip__link {
  padding: 0;
  border: 0;
  color: #174f78;
  background: transparent;
  text-decoration: underline;
  cursor: pointer;
}

.archive-strip__status {
  margin-left: auto;
  color: #6b7378;
}

.compatibility-note {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  width: 1000px;
  margin: 2px auto;
  color: #48545a;
  font-family: var(--font-sans);
  font-size: 10px;
  text-shadow: 0 1px rgba(255, 255, 255, .65);
}

.site-frame {
  width: 1000px;
  margin: 0 auto 18px;
  border: 1px solid #586a75;
  background: #eef3f5;
  box-shadow: 0 2px 8px rgba(18, 29, 35, .42);
}

.school-banner {
  position: relative;
  height: 145px;
  overflow: hidden;
  border-bottom: 4px solid var(--page-orange);
  color: #fff;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 60%),
    linear-gradient(100deg, #0e3c61 0, #1a5f86 54%, #4e99b5 100%);
}

.school-banner__wash {
  position: absolute;
  inset: 0;
  opacity: .15;
  background-image: repeating-linear-gradient(0deg, transparent 0, transparent 2px, #fff 3px);
}

.school-banner__identity {
  position: absolute;
  top: 17px;
  left: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 13px;
}

.school-logo {
  width: 91px;
  height: 91px;
  filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, .5));
}

.school-name p,
.school-name h1,
.school-name span {
  margin: 0;
}

.school-name p {
  letter-spacing: .27em;
  font-size: 15px;
  text-shadow: 1px 1px 1px #0a2941;
}

.school-name h1 {
  margin-top: -2px;
  color: #fffef7;
  font-family: DFKai-SB, BiauKai, KaiTi, var(--font-ming);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.16;
  text-shadow: 2px 2px 0 #0b304e, 3px 3px 2px rgba(0, 0, 0, .3);
}

.school-name span {
  display: block;
  padding-left: 3px;
  font-family: "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: .15em;
}

.school-banner__scene {
  position: absolute;
  top: 0;
  right: 0;
  width: 390px;
  height: 145px;
  overflow: hidden;
}

.school-banner__scene .sun {
  position: absolute;
  top: 16px;
  right: 94px;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  background: #ff9a3d;
  box-shadow: 0 0 15px rgba(255, 208, 111, .65);
}

.school-banner__scene .cloud {
  position: absolute;
  width: 65px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .54);
  box-shadow: 17px -8px 0 2px rgba(255, 255, 255, .48), 35px 1px 0 rgba(255, 255, 255, .42);
}

.cloud--one {
  top: 35px;
  right: 190px;
}

.cloud--two {
  top: 60px;
  right: 20px;
  transform: scale(.7);
}

.school-banner__scene .wave {
  position: absolute;
  right: -30px;
  width: 370px;
  height: 45px;
  border-top: 4px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
}

.wave--one {
  bottom: -7px;
  transform: rotate(-3deg);
}

.wave--two {
  right: -70px !important;
  bottom: -20px;
  opacity: .65;
  transform: rotate(4deg);
}

.school-banner__motto {
  position: absolute;
  right: 25px;
  bottom: 16px;
  z-index: 3;
  padding: 4px 11px;
  border: 1px solid rgba(255, 255, 255, .58);
  background: rgba(11, 53, 81, .72);
  font-size: 14px;
  letter-spacing: .1em;
}

.school-banner__motto b {
  color: #fff7bf;
}

.school-banner__year {
  position: absolute;
  top: 8px;
  right: 9px;
  z-index: 3;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, .46);
  background: rgba(7, 40, 62, .58);
  font-family: var(--font-sans);
  font-size: 11px;
}

.utility-nav {
  display: flex;
  min-height: 30px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #082a42;
  background: linear-gradient(#3d7da3, #174c73 55%, #0f3d61 56%, #174d72);
}

.utility-nav a,
.utility-nav button {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 5px 7px;
  border: 0;
  border-right: 1px solid #092f4b;
  border-left: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0;
  color: #fff;
  background: transparent;
  font-size: 13px;
  text-decoration: none;
  text-shadow: 1px 1px #0a2b42;
  cursor: pointer;
}

.utility-nav a:hover,
.utility-nav button:hover,
.utility-nav a:focus-visible,
.utility-nav button:focus-visible {
  color: #fff9b5;
  background: rgba(0, 0, 0, .2);
}

.notice-marquee {
  display: grid;
  grid-template-columns: 78px 1fr 80px;
  align-items: center;
  min-height: 29px;
  border-bottom: 1px solid #b08d3e;
  color: #352b14;
  background: #fff3ad;
}

.notice-marquee__label {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #b38b36;
  color: #fff;
  background: #dc751f;
  font-weight: 700;
  letter-spacing: .1em;
}

.notice-marquee__window {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.notice-marquee__window p {
  width: max-content;
  margin: 0;
  padding-left: 100%;
  animation: old-marquee 34s linear infinite;
}

.notice-marquee__window:hover p,
.notice-marquee__window:focus-within p {
  animation-play-state: paused;
}

.notice-marquee__date {
  justify-self: stretch;
  padding: 2px 7px;
  border-left: 1px solid #c8a348;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 11px;
}

@keyframes old-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.page-grid {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr) 178px;
  gap: 6px;
  padding: 6px;
  background: #edf3f6;
}

.sidebar,
.main-column {
  min-width: 0;
}

.side-panel,
.content-panel {
  margin: 0 0 6px;
  border: 1px solid var(--old-border);
  background: var(--old-paper);
}

.side-panel > h2 {
  margin: 0;
  padding: 4px 7px;
  border-bottom: 1px solid #0d3857;
  color: #fff;
  background: linear-gradient(to right, #164d74, #327ba3);
  font-size: 13px;
  line-height: 1.35;
  text-shadow: 1px 1px #0e3551;
}

.side-panel > h2 span {
  color: #ffcf61;
}

.old-menu {
  padding: 3px;
  background: #e8f0f4;
}

.old-menu a,
.old-menu button {
  position: relative;
  display: block;
  width: 100%;
  min-height: 26px;
  margin: 0 0 2px;
  padding: 4px 6px 4px 19px;
  border: 1px solid #aab9c2;
  border-top-color: #fff;
  border-left-color: #fff;
  border-radius: 0;
  color: #154a70;
  background: linear-gradient(to right, #fff, #dae8ef);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.old-menu a::before,
.old-menu button::before {
  content: "▸";
  position: absolute;
  left: 6px;
  color: #e37022;
}

.old-menu a:hover,
.old-menu button:hover,
.old-menu a:focus-visible,
.old-menu button:focus-visible {
  color: #8c3100;
  background: #fff5c5;
}

.old-menu__home {
  color: #fff !important;
  background: linear-gradient(#e9913d, #cc6416) !important;
  font-weight: 700;
  text-shadow: 1px 1px #7f3500;
}

.old-menu__home::before {
  color: #fff !important;
}

.old-menu i {
  color: #e10000;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.search-panel form {
  padding: 7px;
}

.search-panel label {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.search-panel__row {
  display: flex;
  gap: 3px;
}

.search-panel input[type="search"] {
  min-width: 0;
  width: 100%;
  height: 24px;
  border: 1px inset #aaa;
  border-radius: 0;
  background: #fff;
}

.search-panel button,
.summary-panel > button {
  border: 1px outset #d8d8d8;
  border-radius: 0;
  background: #eee;
  cursor: pointer;
}

.search-panel__scope {
  margin: 5px 0 0 !important;
  color: #555;
}

.search-results {
  max-height: 220px;
  overflow: auto;
  margin: 0 5px 6px;
  padding: 5px;
  border: 1px inset #bbc3c8;
  background: #fff;
  font-size: 11px;
}

.search-results p {
  margin: 3px 0;
}

.search-results button {
  padding: 0;
  border: 0;
  color: var(--old-link);
  background: transparent;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.contact-panel > div,
.counter-panel > :not(h2),
.badge-panel > :not(h2) {
  margin-right: 7px;
  margin-left: 7px;
}

.contact-panel > div {
  padding: 7px 0;
}

.contact-panel strong {
  color: #174c73;
}

.contact-panel p {
  margin: 6px 0;
  font-size: 11px;
}

.counter-panel {
  padding-bottom: 7px;
  text-align: center;
}

.counter-panel p {
  margin-top: 6px;
  margin-bottom: 4px;
}

.counter-panel small {
  color: #555;
  font-family: Arial, sans-serif;
}

.counter-digits {
  display: flex;
  justify-content: center;
  gap: 1px;
}

.counter-digits b {
  min-width: 17px;
  padding: 1px 2px;
  border: 1px inset #9aa;
  color: #68ff68;
  background: #101916;
  font-family: "Courier New", monospace;
  font-size: 17px;
  line-height: 1.2;
}

.welcome-block {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(160px, 1fr);
  min-height: 180px;
  margin-bottom: 6px;
  border: 1px solid #7d929f;
  background: #d7e8f0;
}

.campus-photo {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 5px solid #fff;
  border-right-width: 2px;
  background: #777;
}

.campus-photo img {
  display: block;
  width: 100%;
  height: 176px;
  object-fit: cover;
  object-position: center 52%;
  filter: saturate(.83) contrast(.95) sepia(.06);
}

.campus-photo figcaption {
  position: absolute;
  right: 5px;
  bottom: 4px;
  padding: 2px 5px;
  color: #fff;
  background: rgba(0, 0, 0, .6);
  font-size: 11px;
}

.welcome-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 4px solid #fff;
  border-left-width: 2px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 45%),
    linear-gradient(#eefdff, #cde5ed);
  text-align: center;
}

.welcome-copy > img {
  max-width: 190px;
  width: 100%;
  height: auto;
}

.welcome-copy p {
  margin: 7px 0;
  color: #174c73;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.welcome-copy small {
  color: #52636c;
  font-size: 10px;
  font-weight: 400;
}

.welcome-links {
  display: flex;
  gap: 4px;
}

.welcome-links button {
  padding: 2px 8px;
  border: 1px outset #fff;
  border-radius: 0;
  color: #064c87;
  background: #f4f4f4;
  font-size: 11px;
  cursor: pointer;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 27px;
  border-bottom: 1px solid #153f5c;
  color: #fff;
  background: linear-gradient(to right, #174c73 0, #4a90ae 72%, #d7e9ef 100%);
}

.panel-heading h2 {
  margin: 0;
  padding: 3px 7px;
  font-size: 14px;
  text-shadow: 1px 1px #0b3150;
}

.panel-heading h2 span {
  color: #ffdc70;
}

.panel-heading > button {
  margin-right: 5px;
  padding: 1px 3px;
  border: 0;
  color: #072f4d;
  background: transparent;
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
}

.panel-heading--orange {
  border-bottom-color: #8c3b08;
  background: linear-gradient(to right, #c45d14, #e79046 72%, #ffead5 100%);
}

.panel-heading--green {
  border-bottom-color: #24552f;
  background: linear-gradient(to right, #356b40, #70a677 72%, #e3f2e4 100%);
}

.panel-heading--purple {
  border-bottom-color: #403568;
  background: linear-gradient(to right, #65528a, #9a8ab8 72%, #eee9f7 100%);
}

.panel-heading--rose {
  border-bottom-color: #7e3542;
  background: linear-gradient(to right, #a14a59, #cb7e87 72%, #fae7ea 100%);
}

.panel-heading--slate {
  border-bottom-color: #344550;
  background: linear-gradient(to right, #536771, #8499a4 72%, #edf2f4 100%);
}

.panel-heading--orange > button,
.panel-heading--green > button,
.panel-heading--purple > button,
.panel-heading--rose > button,
.panel-heading--slate > button {
  color: #31281f;
}

.table-scroll {
  overflow-x: auto;
}

.old-data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.old-data-table th,
.old-data-table td {
  padding: 4px 6px;
  border: 1px solid #c3cdd2;
  vertical-align: top;
}

.old-data-table th {
  color: #19394b;
  background: #e2edf2;
  font-weight: 700;
  text-align: center;
}

.old-data-table tbody tr:nth-child(even) {
  background: #f7fafb;
}

.old-data-table tbody tr:hover {
  background: #fffbe0;
}

.announcement-table th:first-child,
.announcement-table td:first-child {
  width: 72px;
  white-space: nowrap;
  text-align: center;
}

.announcement-table th:last-child,
.announcement-table td:last-child {
  width: 78px;
  text-align: center;
}

.announcement-table td button,
.dated-list button,
.student-work-row button {
  padding: 0;
  border: 0;
  color: var(--old-link);
  background: transparent;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.new-label {
  display: inline-block;
  margin-right: 3px;
  color: #e10000;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  animation: new-blink 1.4s steps(1) infinite;
}

@keyframes new-blink {
  50% { opacity: .25; }
}

.panel-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  padding: 3px 5px;
  border-top: 1px solid #ccd5da;
  color: #555;
  background: #f0f3f4;
  font-size: 11px;
}

.panel-pager button {
  padding: 0 3px;
  border: 0;
  color: var(--old-link);
  background: transparent;
  text-decoration: underline;
  cursor: pointer;
}

.panel-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.compact-panel {
  min-height: 149px;
}

.dated-list,
.event-list {
  margin: 0;
  padding: 5px 7px;
  list-style: none;
}

.dated-list li,
.event-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 4px;
  padding: 4px 2px;
  border-bottom: 1px dotted #aaa;
}

.dated-list time,
.event-list time {
  color: #a04717;
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.meal-card {
  padding: 10px 8px;
  text-align: center;
}

.meal-card time,
.meal-card strong,
.meal-card span {
  display: block;
}

.meal-card time {
  color: #4e6550;
  font-size: 11px;
}

.meal-card strong {
  margin: 8px 0;
  color: #264e30;
  font-size: 14px;
  line-height: 1.6;
}

.meal-card span {
  color: #8f541f;
  font-size: 11px;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 7px;
}

.thumbnail-grid > button {
  min-width: 0;
  padding: 4px;
  border: 1px solid #aebac0;
  border-top-color: #fff;
  border-left-color: #fff;
  border-radius: 0;
  background: #e9eef0;
  cursor: pointer;
}

.thumbnail-grid > button:hover,
.thumbnail-grid > button:focus-visible {
  background: #fff9d7;
}

.thumbnail-grid b,
.thumbnail-grid small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thumbnail-grid b {
  margin-top: 4px;
  color: #154b71;
  font-size: 11px;
}

.thumbnail-grid small {
  color: #777;
  font-family: Arial, sans-serif;
  font-size: 10px;
}

.thumbnail-image {
  position: relative;
  display: block;
  height: 76px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #818e94;
  background: #8ea4aa;
}

.thumbnail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.75) contrast(.94) sepia(.08);
}

.thumbnail-image--sports {
  background:
    linear-gradient(to bottom, #a8cedc 0 40%, transparent 40%),
    repeating-linear-gradient(90deg, #c89062 0 6px, #b57b50 6px 12px);
}

.thumbnail-image--sports::before,
.thumbnail-image--sports::after {
  content: "";
  position: absolute;
  bottom: 12px;
  width: 9px;
  height: 25px;
  border-radius: 5px 5px 2px 2px;
  background: #405f89;
  box-shadow: 19px 3px #e8e6da, 41px -2px #8a4b4b, 67px 4px #dbb345;
}

.thumbnail-image--sports::before { left: 18px; }
.thumbnail-image--sports::after { left: 7px; bottom: 5px; transform: scale(.72); }

.thumbnail-image--drill {
  background: linear-gradient(150deg, #d8d3bf 0 38%, #7e8c88 39% 55%, #aeb7b1 56%);
}

.thumbnail-image--drill::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 11px;
  width: 11px;
  height: 28px;
  background: #d2613a;
  box-shadow: 18px 3px #557aa0, 36px -1px #d7b357, 54px 4px #8a6d91, 72px 0 #3f7a56;
}

.thumbnail-image--reading {
  background:
    linear-gradient(90deg, #6c4e38 0 9%, #cbb88f 9% 91%, #6c4e38 91%),
    #bfa781;
}

.thumbnail-image--reading::after {
  content: "書　書　書\A 書　書　書";
  position: absolute;
  inset: 9px 13px;
  color: #5e3d27;
  background: #d8c79e;
  white-space: pre;
  font-size: 15px;
  line-height: 1.5;
}

.student-work-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 7px;
  align-items: center;
  padding: 7px;
  border-bottom: 1px dotted #aaa;
}

.student-work-row small {
  display: block;
  margin-top: 1px;
  color: #666;
}

.file-symbol {
  display: grid;
  place-items: center;
  width: 29px;
  height: 33px;
  border: 1px solid #7192aa;
  color: #144d76;
  background: #e1f0fa;
  font-weight: 700;
  box-shadow: 2px 2px #c4c4c4;
}

.file-symbol--art {
  border-color: #9c7552;
  color: #7d3c16;
  background: #fff0c6;
}

.file-symbol--voice {
  border-color: #725c91;
  color: #563b77;
  background: #eee5f6;
}

.event-list li {
  grid-template-columns: 50px 1fr;
  padding: 5px 2px;
}

.event-list time {
  padding: 1px 4px;
  color: #fff;
  background: #a65160;
  text-align: center;
}

.service-directory__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 7px;
}

.service-directory__grid button {
  position: relative;
  min-height: 55px;
  padding: 6px 7px 6px 25px;
  border: 1px solid #aeb9bf;
  border-top-color: #fff;
  border-left-color: #fff;
  border-radius: 0;
  color: #174c73;
  background: linear-gradient(to bottom, #fff, #e4ecf0);
  text-align: left;
  cursor: pointer;
}

.service-directory__grid button::before {
  content: "■";
  position: absolute;
  top: 7px;
  left: 8px;
  color: #e57624;
  font-size: 9px;
}

.service-directory__grid button:hover {
  background: #fff9d4;
}

.service-directory__grid b,
.service-directory__grid small {
  display: block;
}

.service-directory__grid small {
  margin-top: 2px;
  color: #66747b;
  font-size: 10px;
}

.button-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 7px;
}

.button-links button {
  flex: 1 1 105px;
  min-height: 28px;
  border: 2px outset #efefef;
  border-radius: 0;
  color: #154b71;
  background: #e8eef1;
  cursor: pointer;
}

.quick-buttons {
  padding: 4px;
  background: #ecf2f5;
}

.quick-buttons button {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  width: 100%;
  min-height: 44px;
  margin-bottom: 3px;
  padding: 3px;
  border: 1px solid #a2b1b9;
  border-top-color: #fff;
  border-left-color: #fff;
  border-radius: 0;
  color: #174c73;
  background: linear-gradient(to right, #fff, #d9e7ee);
  text-align: left;
  cursor: pointer;
}

.quick-buttons button:hover,
.quick-buttons button:focus-visible {
  background: #fff4bf;
}

.quick-buttons button > b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #37698b;
  border-radius: 50%;
  color: #fff;
  background: #31739a;
  font-family: DFKai-SB, var(--font-ming);
  font-size: 16px;
}

.quick-buttons span,
.quick-buttons small {
  display: block;
}

.quick-buttons span {
  padding-left: 3px;
  font-weight: 700;
}

.quick-buttons small {
  color: #68777e;
  font-size: 9px;
  font-weight: 400;
}

.mini-calendar__head {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  padding: 4px;
  color: #1c4f70;
  background: #e8f1f5;
  text-align: center;
}

.mini-calendar__head button {
  width: 22px;
  height: 20px;
  padding: 0;
  border: 1px outset #fff;
  border-radius: 0;
  background: #eee;
  font-size: 9px;
  cursor: pointer;
}

.mini-calendar {
  width: calc(100% - 8px);
  margin: 0 4px;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 10px;
  text-align: center;
}

.mini-calendar th,
.mini-calendar td {
  width: 14.28%;
  height: 22px;
  padding: 1px;
  border: 1px solid #c4cdd1;
}

.mini-calendar th {
  color: #fff;
  background: #66899e;
}

.mini-calendar th:first-child,
.mini-calendar td:first-child {
  color: #ba3939;
}

.mini-calendar .has-event {
  background: #fff09c;
}

.mini-calendar td button {
  width: 100%;
  padding: 0;
  border: 0;
  color: #9b2f00;
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.mini-calendar-panel > p {
  margin: 5px 6px 7px;
  font-size: 10px;
}

.mini-calendar-panel > p i {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #f1d654;
}

.summary-panel dl,
.duty-panel dl {
  margin: 0;
  padding: 5px 7px;
}

.summary-panel dl div,
.duty-panel dl div {
  display: flex;
  justify-content: space-between;
  padding: 4px 1px;
  border-bottom: 1px dotted #aaa;
}

.summary-panel dt,
.summary-panel dd,
.duty-panel dt,
.duty-panel dd {
  margin: 0;
}

.summary-panel dd,
.duty-panel dd {
  color: #194f72;
  font-weight: 700;
}

.summary-panel > button {
  display: block;
  margin: 0 auto 7px;
  color: #174c73;
  font-size: 11px;
}

.weather-panel__body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 4px 4px;
}

.weather-symbol {
  display: block;
  color: #4b7f9b;
  font-family: Georgia, serif;
  font-size: 45px;
  line-height: 1;
  transform: rotate(-8deg);
}

.weather-panel p {
  margin: 0;
}

.weather-panel > small {
  display: block;
  padding: 3px 5px;
  border-top: 1px dotted #aaa;
  color: #666;
  font-family: Arial, sans-serif;
  font-size: 9px;
  text-align: center;
}

.retro-badge {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  width: calc(100% - 14px);
  min-height: 39px;
  margin-top: 7px !important;
  padding: 2px;
  border: 2px outset #ddd;
  color: #173d56;
  background: #e4eee6;
  font-family: Arial, sans-serif;
  font-size: 9px;
  text-align: center;
}

.retro-badge b {
  color: #fff;
  background: #39794b;
  font-size: 21px;
}

.retro-badge--blue {
  background: #e2edf5;
}

.retro-badge--blue b {
  background: #2b668d;
  font-size: 11px;
}

.badge-panel > p {
  margin-top: 7px !important;
  margin-bottom: 7px !important;
  color: #666;
  font-size: 10px;
  text-align: center;
}

.school-footer {
  padding: 11px 14px 13px;
  border-top: 4px solid var(--page-orange);
  color: #eaf4f9;
  background: #174c73;
  font-family: var(--font-sans);
  font-size: 10px;
  text-align: center;
}

.school-footer nav {
  margin-bottom: 7px;
}

.school-footer nav a,
.school-footer nav button {
  padding: 0 2px;
  border: 0;
  color: #fff5a9;
  background: transparent;
  text-decoration: underline;
  cursor: pointer;
}

.school-footer p {
  margin: 3px 0;
}

.footer-standards {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 9px 0;
}

.footer-standards span {
  min-width: 95px;
  padding: 3px 8px;
  border: 2px outset #7395a9;
  color: #dceaf2;
  background: #163d58;
  font-family: Arial, sans-serif;
  font-size: 8px;
  line-height: 1.2;
}

.footer-standards b {
  color: #fffac2;
}

.restoration-footer {
  max-width: 840px;
  margin: 9px auto 0;
  padding-top: 6px;
  border-top: 1px dotted #7794a6;
  color: #ccdce5;
  line-height: 1.45;
}

/* Shared old-site document controls, used by pages generated at runtime. */
.document-page {
  color: #222;
}

.document-page h1,
.document-page h2,
.document-page h3 {
  color: #174c73;
}

.document-page h1 {
  margin: 0 0 10px;
  padding: 6px 9px;
  border-left: 8px solid var(--page-orange);
  border-bottom: 1px solid #9aacb7;
  background: #e9f1f5;
  font-size: 20px;
}

.document-page h2 {
  margin: 14px 0 7px;
  padding: 3px 6px;
  border-bottom: 1px dotted #839aa8;
  font-size: 16px;
}

.document-page h3 {
  margin: 10px 0 5px;
  font-size: 14px;
}

.document-page p {
  margin: 7px 0;
}

.document-lead,
.old-notice,
.system-message {
  margin: 8px 0;
  padding: 7px 9px;
  border: 1px solid #aebcc4;
  background: #f3f8fa;
}

.old-notice--yellow {
  border-color: #cfb45d;
  background: #fff8ce;
}

.old-notice--error {
  border-color: #bd7979;
  color: #7c2424;
  background: #fff0f0;
}

.document-meta {
  margin: 6px 0 12px;
  padding: 4px 6px;
  border: 1px solid #ccc;
  color: #555;
  background: #f4f4f4;
  font-size: 11px;
}

.document-actions,
.old-toolbar,
.filter-bar,
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 6px 0;
  padding: 5px;
  border: 1px solid #aab5bb;
  background: #e7ebed;
}

.document-actions button,
.old-toolbar button,
.filter-bar button,
.filter-bar select,
.filter-bar input,
.admin-toolbar button,
.admin-toolbar select,
.admin-toolbar input,
.old-button {
  min-height: 24px;
  padding: 2px 7px;
  border: 2px outset #eee;
  border-radius: 0;
  color: #222;
  background: #e9e9e9;
  cursor: pointer;
}

.filter-bar input,
.filter-bar select,
.admin-toolbar input,
.admin-toolbar select {
  border: 1px inset #bbb;
  background: #fff;
  cursor: auto;
}

.archive-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 7px 0 0;
  border-bottom: 1px solid #6c8290;
}

.archive-tabs button {
  padding: 4px 9px;
  border: 1px solid #8c9ca5;
  border-bottom: 0;
  border-radius: 0;
  color: #164b70;
  background: #e4edf1;
  cursor: pointer;
}

.archive-tabs button.is-active,
.archive-tabs button[aria-selected="true"] {
  margin-bottom: -1px;
  border-bottom: 1px solid #fff;
  background: #fff;
  font-weight: 700;
}

.record-table,
.admin-table,
.statistics-table,
.staff-table,
.lunch-table,
.health-table,
.library-table,
.log-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.record-table th,
.record-table td,
.admin-table th,
.admin-table td,
.statistics-table th,
.statistics-table td,
.staff-table th,
.staff-table td,
.lunch-table th,
.lunch-table td,
.health-table th,
.health-table td,
.library-table th,
.library-table td,
.log-table th,
.log-table td {
  padding: 5px 6px;
  border: 1px solid #aebcc4;
  vertical-align: top;
}

.record-table th,
.admin-table th,
.statistics-table th,
.staff-table th,
.lunch-table th,
.health-table th,
.library-table th,
.log-table th {
  color: #173f59;
  background: #dceaf1;
  text-align: center;
}

.record-table tbody tr:nth-child(even),
.admin-table tbody tr:nth-child(even),
.statistics-table tbody tr:nth-child(even),
.staff-table tbody tr:nth-child(even),
.lunch-table tbody tr:nth-child(even),
.health-table tbody tr:nth-child(even),
.library-table tbody tr:nth-child(even),
.log-table tbody tr:nth-child(even) {
  background: #f6f9fa;
}

.record-table button,
.admin-table button,
.folder-list button,
.file-list button,
.link-list button,
.result-list button {
  padding: 0;
  border: 0;
  color: var(--old-link);
  background: transparent;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.folder-list,
.file-list,
.link-list,
.result-list {
  margin: 7px 0;
  padding: 0;
  border: 1px solid #b8c2c7;
  background: #fff;
  list-style: none;
}

.folder-list li,
.file-list li,
.link-list li,
.result-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 5px 7px;
  border-bottom: 1px dotted #aaa;
}

.folder-list li::before {
  content: "▰";
  color: #c78b25;
}

.file-size,
.file-date,
.muted {
  color: #68747a;
  font-size: 11px;
}

.status-ok,
.status-open,
.status-active {
  color: #236b32;
  font-weight: 700;
}

.status-closed,
.status-failed,
.status-offline {
  color: #9d2f2f;
  font-weight: 700;
}

.status-pending,
.status-warning {
  color: #8c5800;
  font-weight: 700;
}

.corrupt-text {
  padding: 8px;
  border: 1px inset #aaa;
  color: #343434;
  background: #f2f2ee;
  font-family: MingLiU, "Courier New", monospace;
  white-space: pre-wrap;
}

.photo-browser {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 420px;
  border: 1px solid #8c9ba3;
  background: #dfe6e9;
}

.photo-browser__folders {
  padding: 5px;
  border-right: 1px solid #87979f;
  background: #eef2f4;
}

.photo-browser__folders h2 {
  margin: 0 0 5px;
  padding: 4px;
  color: #fff;
  background: #52778d;
  font-size: 13px;
}

.photo-browser__folders button {
  display: block;
  width: 100%;
  padding: 4px 5px;
  border: 0;
  color: #164b70;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.photo-browser__folders button:hover,
.photo-browser__folders button.is-active {
  background: #fff5c4;
}

.photo-browser__main {
  min-width: 0;
  padding: 7px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.photo-grid button {
  padding: 5px;
  border: 1px outset #ddd;
  border-radius: 0;
  background: #eee;
  cursor: pointer;
}

.photo-grid img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  border: 3px solid #fff;
}

.photo-grid b,
.photo-grid small {
  display: block;
  margin-top: 3px;
}

.photo-viewer {
  margin: 8px auto;
  padding: 7px;
  border: 1px solid #737f85;
  background: #c7cdd0;
}

.photo-stage {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 7px solid #fff;
  background: #333;
  text-align: center;
}

.photo-stage img {
  display: block;
  max-width: 100%;
  max-height: 540px;
  margin: 0 auto;
  object-fit: contain;
  filter: saturate(.82) contrast(.96) sepia(.05);
}

.photo-caption {
  padding: 6px;
  border-top: 1px solid #8a989e;
  background: #f1f3f4;
}

.zoom-controls {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 5px;
}

.zoom-controls button {
  min-width: 30px;
  border: 2px outset #eee;
  border-radius: 0;
  background: #eee;
  cursor: pointer;
}

.audio-player {
  max-width: 560px;
  margin: 10px auto;
  padding: 8px;
  border: 2px outset #d0d0d0;
  background: #e7e7e7;
  font-family: Arial, sans-serif;
}

.audio-player__display {
  padding: 5px 8px;
  border: 2px inset #aaa;
  color: #83db82;
  background: #1b2520;
  font-family: "Courier New", monospace;
}

.audio-player__controls {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}

.audio-player button {
  min-width: 34px;
  border: 2px outset #eee;
  border-radius: 0;
  background: #eee;
  cursor: pointer;
}

.audio-progress {
  flex: 1;
  height: 15px;
  border: 2px inset #bbb;
  background: #fff;
}

.audio-progress > i {
  display: block;
  width: 0;
  height: 100%;
  background: #4a8f5e;
}

.seat-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(48px, 1fr));
  gap: 5px;
  max-width: 620px;
  margin: 10px auto;
  padding: 18px 12px 12px;
  border: 5px ridge #a37747;
  background: #2e654f;
}

.seat-board::before {
  content: "黑　板";
  grid-column: 1 / -1;
  margin: -10px 20% 5px;
  padding: 2px;
  color: #493820;
  background: #f5e3b2;
  text-align: center;
}

.seat {
  min-height: 48px;
  padding: 3px;
  border: 2px outset #d6bb8c;
  background: #e5c99b;
  text-align: center;
  cursor: pointer;
}

.seat span,
.seat small {
  display: block;
}

.seat.is-empty {
  border-style: dashed;
  opacity: .75;
}

.dialog,
.login {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.dialog__shade,
.login__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(13, 25, 34, .68);
  cursor: default;
}

.dialog-window {
  position: relative;
  display: grid;
  grid-template-rows: 28px 32px minmax(0, 1fr) 23px;
  width: min(900px, calc(100vw - 48px));
  height: min(720px, calc(100vh - 48px));
  border: 3px outset #ccd6dc;
  background: #d5d9dc;
  box-shadow: 4px 5px 18px rgba(0, 0, 0, .6);
}

.dialog-window__titlebar,
.login-box > header,
.dead-browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 5px;
  color: #fff;
  background: linear-gradient(to right, #083b83, #3f83c1);
  font-family: Arial, var(--font-sans);
  font-size: 12px;
  font-weight: 700;
}

.dialog-window__titlebar > button,
.dead-browser-bar > button {
  width: 21px;
  height: 19px;
  padding: 0;
  border: 2px outset #ddd;
  border-radius: 0;
  background: #d8d8d8;
  color: #111;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 13px;
  cursor: pointer;
}

.dialog-window__toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border-bottom: 1px solid #8f989d;
  background: #e5e5e5;
}

.dialog-window__toolbar button {
  padding: 2px 7px;
  border: 2px outset #eee;
  border-radius: 0;
  background: #e8e8e8;
  cursor: pointer;
}

.dialog-window__toolbar span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 2px 5px;
  border: 1px inset #bbb;
  background: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog-window__content {
  overflow: auto;
  padding: 14px 16px 24px;
  background: #fffef9;
}

.dialog-window > footer {
  padding: 3px 6px;
  border-top: 1px solid #91999e;
  color: #4b555b;
  background: #e5e5e5;
  font-size: 10px;
}

.login {
  z-index: 5500;
}

.login-box {
  position: relative;
  width: min(460px, calc(100vw - 32px));
  border: 3px outset #d6d6d6;
  background: #d4d4d4;
  box-shadow: 4px 5px 17px rgba(0, 0, 0, .58);
}

.login-box__body {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 17px;
  background: #ececec;
}

.login-key {
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  border: 2px inset #bbb;
  border-radius: 50%;
  color: #b36f11;
  background: #fff4bd;
  font-size: 29px;
  font-weight: 700;
}

.login-box h2 {
  margin: 0 0 5px;
  color: #173f59;
  font-size: 17px;
}

.login-box p {
  margin: 4px 0 10px;
}

.login-box form {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}

.login-box input {
  height: 25px;
  border: 2px inset #c6c6c6;
  border-radius: 0;
  background: #fff;
}

.login-box__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 7px;
}

.login-box__actions button {
  min-width: 70px;
  padding: 3px 8px;
  border: 2px outset #eee;
  border-radius: 0;
  background: #e6e6e6;
  cursor: pointer;
}

.form-message {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 0 !important;
  color: #a02020;
}

.login-box > footer {
  padding: 3px 6px;
  border-top: 1px solid #9d9d9d;
  color: #555;
  font-size: 10px;
}

.admin-shell {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: grid;
  grid-template-rows: 48px 30px minmax(0, 1fr) 24px;
  min-width: 760px;
  overflow: auto;
  color: #1b1b1b;
  background: #cfd5d8;
  font-family: Arial, var(--font-sans);
  font-size: 12px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border-bottom: 2px solid #082d50;
  color: #fff;
  background: linear-gradient(to right, #0a3970, #3375a4);
}

.admin-topbar > div b,
.admin-topbar > div span {
  display: block;
}

.admin-topbar > div b {
  font-size: 17px;
}

.admin-topbar > div span {
  color: #d7e9f4;
  font-size: 9px;
}

.admin-topbar p {
  margin: 0;
}

.admin-topbar button {
  margin-left: 5px;
  border: 2px outset #d8d8d8;
  border-radius: 0;
  background: #e3e3e3;
  cursor: pointer;
}

.admin-menubar {
  display: flex;
  padding: 2px 4px;
  border-bottom: 1px solid #7a858b;
  background: #e7e7e7;
}

.admin-menubar button {
  padding: 3px 12px;
  border: 0;
  border-right: 1px solid #aaa;
  background: transparent;
  cursor: pointer;
}

.admin-menubar button:hover {
  background: #fff4ba;
}

.admin-body {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.admin-sidebar {
  overflow: auto;
  padding: 5px;
  border-right: 1px solid #6f7d84;
  background: #dce2e5;
}

.admin-sidebar section {
  margin-bottom: 6px;
  border: 1px solid #7f919c;
  background: #f2f4f5;
}

.admin-sidebar h2 {
  margin: 0;
  padding: 4px 6px;
  color: #fff;
  background: #537a91;
  font-size: 12px;
}

.admin-sidebar button {
  display: block;
  width: 100%;
  padding: 4px 8px 4px 20px;
  border: 0;
  border-bottom: 1px solid #c4ced3;
  color: #173f59;
  background: linear-gradient(to right, #fff, #e5ecef);
  text-align: left;
  cursor: pointer;
}

.admin-sidebar button::before {
  content: "›";
  margin-left: -11px;
  margin-right: 6px;
  color: #c65c15;
  font-weight: 700;
}

.admin-sidebar button:hover,
.admin-sidebar button.is-active {
  background: #fff2ad;
}

.admin-content {
  overflow: auto;
  padding: 8px 12px 25px;
  background: #fff;
}

.admin-breadcrumb {
  margin: -8px -12px 8px;
  padding: 4px 8px;
  border-bottom: 1px solid #adb8bd;
  color: #4d5d66;
  background: #edf1f3;
}

.admin-content > h1 {
  margin: 5px 0 10px;
  padding: 5px 7px;
  border-left: 7px solid #2d739b;
  border-bottom: 1px solid #9fafb8;
  color: #173f59;
  background: #e5eef2;
  font-size: 18px;
}

.admin-content h2 {
  color: #214f69;
  font-size: 14px;
}

.admin-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}

.admin-status-grid section {
  border: 1px solid #84949c;
  background: #f6f8f9;
}

.admin-status-grid h2 {
  margin: 0;
  padding: 4px 7px;
  color: #fff;
  background: #5f7f91;
  font-size: 13px;
}

.admin-status-grid dl,
.admin-status-grid ul {
  margin: 0;
  padding: 8px 20px;
}

.admin-status-grid dl div {
  display: flex;
  justify-content: space-between;
  padding: 3px;
  border-bottom: 1px dotted #aaa;
}

.admin-status-grid dt,
.admin-status-grid dd {
  margin: 0;
}

.admin-footer {
  padding: 3px 8px;
  border-top: 1px solid #7a888f;
  color: #49555b;
  background: #e2e5e6;
  font-size: 10px;
}

.dead-page {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: grid;
  grid-template-rows: 28px 35px minmax(0, 1fr);
  color: #111;
  background: #fff;
  font-family: Arial, sans-serif;
}

.dead-toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border-bottom: 1px solid #888;
  background: #e5e5e5;
}

.dead-toolbar button {
  min-width: 75px;
  border: 2px outset #eee;
  border-radius: 0;
  background: #e5e5e5;
  cursor: pointer;
}

.dead-toolbar input {
  flex: 1;
  height: 23px;
  border: 2px inset #bbb;
  background: #fff;
}

.dead-content {
  display: grid;
  grid-template-columns: 48px minmax(0, 640px);
  gap: 15px;
  justify-content: center;
  align-content: start;
  padding: 70px 30px;
  overflow: auto;
}

.dead-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  color: #fff;
  background: #d64134;
  font-size: 30px;
  font-weight: 700;
}

.dead-content h1 {
  margin: 0 0 15px;
  color: #333;
  font-size: 24px;
  font-weight: 400;
}

.dead-content p,
.dead-content li {
  font-size: 13px;
}

.dead-back-button {
  padding: 4px 12px;
  border: 2px outset #eee;
  border-radius: 0;
  background: #e8e8e8;
  cursor: pointer;
}

.dead-server {
  margin-top: 30px !important;
  color: #666;
  font-size: 11px !important;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9000;
  max-width: 330px;
  padding: 8px 11px;
  border: 2px outset #eee;
  color: #111;
  background: #fff7c2;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, .38);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .15s, transform .15s;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript-note {
  position: fixed;
  right: 8px;
  bottom: 8px;
  z-index: 10000;
  padding: 8px;
  border: 1px solid #b98a23;
  background: #fff1a4;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .notice-marquee__window p,
  .new-label { animation: none; }
}

@media (max-width: 1020px) {
  .archive-strip__inner,
  .compatibility-note,
  .site-frame {
    width: calc(100% - 12px);
  }

  .page-grid {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .sidebar--right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .sidebar--right .side-panel {
    margin-bottom: 0;
  }

  .quick-panel,
  .service-menu {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
  }

  .archive-strip__inner {
    flex-wrap: wrap;
  }

  .archive-strip__status,
  .archive-strip__sep {
    display: none;
  }

  .compatibility-note {
    display: none;
  }

  .site-frame {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-left: 0;
  }

  .school-banner {
    height: 128px;
  }

  .school-banner__identity {
    top: 18px;
    left: 10px;
  }

  .school-logo {
    width: 70px;
    height: 70px;
  }

  .school-name p {
    font-size: 12px;
  }

  .school-name h1 {
    font-size: clamp(27px, 7.5vw, 37px);
  }

  .school-name span {
    font-size: 9px;
  }

  .school-banner__scene,
  .school-banner__motto {
    display: none;
  }

  .utility-nav {
    overflow-x: auto;
  }

  .utility-nav a,
  .utility-nav button {
    flex: 0 0 auto;
    min-width: 90px;
  }

  .notice-marquee {
    grid-template-columns: 75px minmax(0, 1fr);
  }

  .notice-marquee__date {
    display: none;
  }

  .page-grid {
    display: flex;
    flex-direction: column;
  }

  .main-column {
    order: 1;
  }

  .sidebar--left {
    order: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .sidebar--right {
    order: 3;
    grid-template-columns: 1fr 1fr;
  }

  .welcome-block,
  .panel-pair {
    grid-template-columns: 1fr;
  }

  .welcome-copy {
    display: none;
  }

  .campus-photo {
    border-right-width: 5px;
  }

  .thumbnail-grid,
  .service-directory__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dialog,
  .login {
    padding: 6px;
  }

  .dialog-window {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
  }

  .dialog-window__toolbar span {
    display: none;
  }

  .photo-browser {
    grid-template-columns: 1fr;
  }

  .photo-browser__folders {
    border-right: 0;
    border-bottom: 1px solid #87979f;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .seat-board {
    grid-template-columns: repeat(4, minmax(42px, 1fr));
  }

  .dead-toolbar span,
  .dead-toolbar input {
    display: none;
  }

  .dead-content {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 35px 18px;
  }
}

@media (max-width: 480px) {
  .archive-strip__inner {
    justify-content: center;
  }

  .school-banner__identity {
    gap: 7px;
  }

  .school-logo {
    width: 59px;
    height: 59px;
  }

  .school-name p {
    letter-spacing: .12em;
  }

  .school-name h1 {
    letter-spacing: .03em;
  }

  .school-banner__year {
    top: auto;
    right: 5px;
    bottom: 5px;
  }

  .sidebar--left,
  .sidebar--right {
    grid-template-columns: 1fr;
  }

  .quick-panel,
  .service-menu {
    grid-column: auto;
  }

  .thumbnail-grid,
  .service-directory__grid {
    grid-template-columns: 1fr 1fr;
  }

  .thumbnail-image {
    height: 95px;
  }

  .school-footer {
    padding-right: 6px;
    padding-left: 6px;
  }

  .footer-standards {
    flex-wrap: wrap;
  }

  .login-box__body {
    grid-template-columns: 1fr;
  }

  .login-key {
    display: none;
  }

  .login-box form {
    grid-template-columns: 1fr;
  }

  .login-box__actions,
  .form-message {
    grid-column: 1;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }
}

/* Final old-site usability pass: keep native controls compact and clearly keyboard-operable. */
button,
input,
select,
textarea {
  border-radius: 0;
}

button:not(:disabled),
summary {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  color: #777;
  cursor: default;
}

summary {
  color: var(--old-link);
  text-decoration: underline;
}

summary::marker {
  color: #c5671d;
}

time,
.counter-digits,
.mini-calendar,
.old-data-table td:first-child {
  font-variant-numeric: tabular-nums;
}

#home-weather {
  min-height: 70px;
}

@media (forced-colors: active) {
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  [tabindex]:focus-visible {
    outline: 3px solid CanvasText;
  }
}
