:root {
  --ink: #19343d;
  --muted: #58696e;
  --paper: #f6f5f0;
  --white: #fff;
  --line: #d9dedb;
  --teal: #176557;
  --tint: #e7f1eb;
  --navy: #183b45;
  --danger: #a1302a;
  --amber: #775715;
  --focus: #06799b;
  font-family: 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  font-size: 15px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--teal);
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button,
.button {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: white;
  padding: 10px 17px;
  border-radius: 7px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  min-height: 44px;
  white-space: normal;
}
button:hover,
.button:hover {
  background: #104e43;
  border-color: #104e43;
}
.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.secondary:hover {
  background: #eff2ed;
  border-color: #aebdb6;
}
.quiet {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.quiet:hover {
  background: #e8ebe4;
  border-color: transparent;
}
.small {
  font-size: 13px;
  padding: 7px 12px;
  min-height: 36px;
}
.danger {
  color: var(--danger);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
::selection {
  background: #b7dbc8;
  color: var(--ink);
}
input,
textarea {
  caret-color: var(--teal);
}
* {
  scrollbar-color: #a4b6ad var(--paper);
  scrollbar-width: thin;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(29px, 3vw, 38px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 16px;
  font-weight: 650;
}
.muted,
small {
  color: var(--muted);
}
.lead {
  font-size: 16px;
  max-width: 65ch;
  color: var(--muted);
  margin-top: 10px;
}
.skip {
  position: fixed;
  top: -80px;
  left: 15px;
  background: white;
  padding: 10px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
.loading {
  padding: 80px;
  text-align: center;
}
.shell {
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: var(--navy);
  color: #edf5ed;
  display: flex;
  flex-direction: column;
  padding: 35px 22px 25px;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
}
.brand-mark {
  display: block;
  font-size: 27px;
  letter-spacing: -0.05em;
  line-height: 1;
  border: 1px solid #79949a;
  padding: 9px 6px;
}
.brand small {
  display: block;
  font-size: 12px;
  color: #bcd0d2;
  font-weight: 400;
  margin-top: 5px;
}
.school {
  font-size: 12px;
  color: #bcd0d2;
  line-height: 1.6;
  margin-top: 29px;
  padding-bottom: 27px;
  border-bottom: 1px solid #40606a;
}
.nav {
  margin-top: 25px;
  display: grid;
  gap: 6px;
}
.nav a {
  color: #c7d8d9;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
}
.nav a:hover,
.nav a.active {
  color: white;
  background: #2d5058;
}
.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  vertical-align: middle;
}
.sidebar-foot {
  margin-top: auto;
  font-size: 12px;
  padding-top: 30px;
  color: #c7d8d9;
}
.sidebar-foot button {
  color: #c7d8d9;
  padding-left: 0;
  margin-top: 10px;
}
.sidebar-foot button:hover {
  color: white;
  background: transparent;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 68px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 42px;
  gap: 12px;
  font-size: 13px;
  background: #fbfbf7;
}
.topbar-right {
  display: flex;
  gap: 18px;
  align-items: center;
}
.preview {
  font-size: 11px;
  font-weight: 650;
  color: #775715;
  background: #f2eacd;
  border: 1px solid #e1d4a9;
  border-radius: 4px;
  padding: 4px 8px;
}
.content {
  max-width: 1500px;
  margin: auto;
  padding: 39px 42px 70px;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.page-head .actions {
  padding-top: 5px;
}
.summary {
  display: flex;
  gap: 0;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.summary-item {
  padding: 0 30px;
  border-left: 1px solid var(--line);
  min-width: 155px;
}
.summary-item:first-child {
  padding-left: 0;
  border: 0;
}
.summary-item strong {
  display: block;
  font-size: 29px;
  line-height: 1.2;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.summary-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}
.summary-item.period {
  margin-left: auto;
}
.summary-item.period strong {
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.panel-head {
  padding: 23px 25px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.panel-head h2 {
  font-size: 18px;
}
.toolbar {
  display: flex;
  gap: 10px;
  padding: 0 25px 20px;
}
.toolbar input {
  max-width: 370px;
}
.toolbar select {
  width: auto;
  min-width: 155px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  background: #f5f6f2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 12px 24px;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 24px;
  border-bottom: 1px solid #e8ebe6;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td strong {
  font-size: 14px;
  font-weight: 600;
  display: block;
}
td small {
  font-size: 12px;
  display: block;
  margin-top: 4px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: #edf0ed;
  color: #4b5d55;
}
.status::before {
  content: '';
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status.approved {
  background: var(--tint);
  color: #28644b;
}
.status.draft {
  background: #f6eedb;
  color: var(--amber);
}
.table-foot {
  padding: 15px 25px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.note {
  display: flex;
  gap: 12px;
  padding: 16px 19px;
  background: #eaf0ea;
  color: #3c5b4a;
  font-size: 13px;
  border-radius: 7px;
  margin-top: 22px;
}
.note .icon {
  margin-top: 1px;
}
.empty {
  padding: 55px 25px;
  text-align: center;
}
.empty h3 {
  font-size: 19px;
}
.empty p {
  color: var(--muted);
  margin: 9px auto 20px;
  max-width: 44ch;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.section {
  padding: 25px;
}
.section h2 {
  margin-bottom: 7px;
}
.section + .section {
  border-top: 1px solid var(--line);
}
.section .lead {
  font-size: 14px;
  margin-bottom: 24px;
}
.stack {
  display: grid;
  gap: 20px;
}
.field {
  display: grid;
  gap: 7px;
  align-content: start;
}
.field > label,
legend {
  font-size: 13px;
  font-weight: 600;
}
.field small {
  font-size: 12px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #bfc9c3;
  border-radius: 6px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  min-height: 44px;
}
input::placeholder,
textarea::placeholder {
  color: #687971;
}
textarea {
  resize: vertical;
  min-height: 106px;
  line-height: 1.6;
}
input[readonly] {
  background: #f1f3ee;
  color: var(--muted);
}
fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}
legend {
  padding: 0;
  margin-bottom: 9px;
}
.day-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.day-check {
  position: relative;
}
.day-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.day-check span {
  display: block;
  padding: 11px 13px;
  border: 1px solid #bfc9c3;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  background: white;
}
.day-check input:checked + span {
  background: var(--tint);
  border-color: var(--teal);
  color: var(--teal);
  font-weight: 600;
}
.day-check input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 21px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 25px;
  margin-bottom: 25px;
  overflow: auto;
}
.tabs button {
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tabs button[aria-selected='true'] {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.detail-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 15px 0;
  color: var(--muted);
  font-size: 13px;
}
.detail-meta span + span::before {
  content: '·';
  margin-right: 18px;
}
.plan-table textarea {
  min-width: 290px;
  min-height: 64px;
  font-size: 13px;
  border-color: #d5ddd7;
  padding: 8px 10px;
}
.plan-table td {
  padding: 11px 17px;
}
.plan-table th {
  padding: 11px 17px;
}
.plan-table .date {
  min-width: 120px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.plan-table select {
  min-width: 120px;
  font-size: 12px;
  padding: 8px;
}
.sticky-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 15px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  box-shadow: 0 -4px 18px #17393b08;
}
.warning {
  padding: 13px 16px;
  background: #f7efd9;
  color: #725216;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 15px;
}
.error {
  background: #fae8e5;
  color: var(--danger);
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 18px;
}
.form-error:empty {
  display: none;
}
.result-url {
  margin-top: 20px;
  padding: 18px;
  background: var(--tint);
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.result-url a {
  font-size: 13px;
}
.result-url .actions {
  margin-top: 12px;
}
.document-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.document-row:last-child {
  border-bottom: 0;
}
.document-row h3 {
  margin-bottom: 5px;
}
.inline-check {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 14px;
}
.inline-check input {
  width: 18px;
  min-height: 18px;
  height: 18px;
}
.plain-list {
  padding: 0;
  list-style: none;
  margin: 16px 0;
}
.plain-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.plain-list li:last-child {
  border: 0;
}
.holiday-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.holiday-row strong {
  display: block;
  font-size: 13px;
}
.holiday-row small {
  font-size: 12px;
}
.holiday-row a {
  font-size: 12px;
}
.public-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(310px, 40%) minmax(0, 1fr);
}
.public-aside {
  background: var(--navy);
  color: white;
  padding: 52px clamp(28px, 5vw, 80px);
  display: flex;
  flex-direction: column;
}
.public-aside .brand {
  max-width: 240px;
}
.public-copy {
  margin: auto 0;
  padding: 65px 0;
}
.public-copy h1 {
  font-size: clamp(35px, 4vw, 52px);
  line-height: 1.16;
  max-width: 11ch;
}
.public-copy p {
  color: #c4d5d5;
  margin-top: 22px;
  max-width: 34ch;
  line-height: 1.7;
}
.fixed-time {
  display: flex;
  gap: 30px;
  border-top: 1px solid #4d6870;
  padding-top: 28px;
  margin-top: 32px;
}
.fixed-time strong {
  display: block;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.fixed-time span {
  color: #b9cdcf;
  font-size: 12px;
  display: block;
  margin-top: 4px;
}
.public-aside footer {
  color: #b9cdcf;
  font-size: 12px;
  line-height: 1.6;
}
.public-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px clamp(25px, 6vw, 100px);
}
.public-form {
  width: 100%;
  max-width: 610px;
}
.public-form h2 {
  font-size: 28px;
}
.public-form .lead {
  font-size: 14px;
  margin-bottom: 28px;
}
.public-form .stack {
  gap: 19px;
}
.public-form .form-actions {
  margin-top: 24px;
}
.public-form .form-actions button {
  width: 100%;
}
.public-form > footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.public-form .preview {
  display: inline-block;
  margin-bottom: 20px;
}
.login {
  max-width: 400px;
}
.welcome-actions {
  display: grid;
  gap: 12px;
}
.success-icon {
  width: 52px;
  height: 52px;
  background: var(--tint);
  color: var(--teal);
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 20px;
}
.success-icon svg {
  width: 26px;
  height: 26px;
}
#notice {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 30;
  background: var(--navy);
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 7px 25px #183b4530;
  max-width: min(450px, calc(100vw - 40px));
  display: none;
}
#notice.visible {
  display: block;
  animation: notice-in 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes notice-in {
  from {
    transform: translateY(8px);
  }
  to {
    transform: translateY(0);
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    padding: 30px 17px;
  }
  .content {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .summary-item {
    min-width: 120px;
    padding: 0 20px;
  }
  .summary-item.period {
    display: none;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .page-head {
    flex-wrap: wrap;
  }
  td,
  th {
    padding-left: 18px;
    padding-right: 18px;
  }
}
@media (max-width: 720px) {
  :root {
    font-size: 15px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 18px 20px 0;
  }
  .sidebar .brand-mark {
    font-size: 21px;
    padding: 6px;
  }
  .sidebar .brand small {
    display: none;
  }
  .sidebar .school,
  .sidebar-foot {
    display: none;
  }
  .nav {
    display: flex;
    gap: 5px;
    margin-top: 15px;
    overflow: auto;
  }
  .nav a {
    border-radius: 6px 6px 0 0;
    padding: 11px;
    font-size: 13px;
    white-space: nowrap;
  }
  .nav .icon {
    width: 16px;
  }
  .topbar {
    height: 49px;
    padding: 0 20px;
    font-size: 12px;
  }
  .topbar-right > span:last-child {
    display: none;
  }
  .content {
    padding: 26px 20px 50px;
  }
  .page-head {
    gap: 15px;
    margin-bottom: 22px;
  }
  h1 {
    font-size: 29px;
  }
  .lead {
    font-size: 14px;
  }
  .summary {
    padding: 20px 0;
    margin-bottom: 22px;
  }
  .summary-item {
    min-width: 0;
    flex: 1;
    padding: 0 16px;
  }
  .summary-item strong {
    font-size: 25px;
  }
  .summary-item span {
    font-size: 11px;
  }
  .panel-head {
    padding: 20px 17px 16px;
  }
  .toolbar {
    padding: 0 17px 17px;
    flex-direction: column;
  }
  .toolbar input {
    max-width: none;
  }
  .toolbar select {
    width: 100%;
  }
  .table-foot {
    padding: 13px 17px;
  }
  .section {
    padding: 20px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .day-grid {
    gap: 6px;
  }
  .day-check span {
    padding: 10px 12px;
  }
  .sticky-actions {
    padding: 12px 15px;
    flex-wrap: wrap;
  }
  .sticky-actions > .muted {
    font-size: 12px;
  }
  .document-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .public-shell {
    display: block;
  }
  .public-aside {
    padding: 24px;
  }
  .public-copy {
    padding: 30px 0 0;
  }
  .public-copy h1 {
    font-size: 32px;
    max-width: 20ch;
  }
  .public-copy p {
    display: none;
  }
  .fixed-time {
    padding-top: 18px;
    margin-top: 22px;
  }
  .fixed-time strong {
    font-size: 19px;
  }
  .public-aside footer {
    display: none;
  }
  .public-content {
    padding: 30px 24px 50px;
  }
  .public-form h2 {
    font-size: 24px;
  }
  .public-form.login {
    max-width: 100%;
  }
  .detail-meta {
    gap: 8px;
  }
  .detail-meta span + span::before {
    margin-right: 8px;
  }
  .actions {
    gap: 7px;
  }
  .topbar-right {
    gap: 5px;
  }
  .public-form .form-actions button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .actions,
  .tabs,
  .toolbar,
  #notice {
    display: none !important;
  }
  .shell {
    display: block;
  }
  .content {
    padding: 0;
  }
  .panel {
    border: 0;
  }
  .table-scroll {
    overflow: visible;
  }
  body {
    background: white;
  }
}
[hidden] {
  display: none !important;
}
.space-top {
  margin-top: 24px;
}
.small-top {
  margin-top: 8px;
}
.preline {
  white-space: pre-line;
  margin-top: 8px;
}
.teacher-account {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.teacher-account small,
.teacher-list small,
.registration-summary small {
  display: block;
  margin-top: 3px;
}
.teacher-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.teacher-list li {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}
.teacher-list-heading,
.teacher-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.teacher-list-heading > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.teacher-list-meta {
  margin-top: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.missing-phone {
  color: var(--amber);
  font-weight: 600;
}
.access-toggle {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
}
.access-toggle input {
  width: 20px;
  height: 20px;
}
#code {
  font-size: 26px;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
}
.registration-summary {
  margin: 28px 0 0;
}
.registration-summary > div {
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.registration-summary dt {
  font-size: 13px;
  color: var(--muted);
}
.registration-summary dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}
.phase {
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
}
.mobile-logout {
  display: none;
}
@media (max-width: 720px) {
  .mobile-logout {
    display: inline-flex;
  }
  .topbar-right > span:not(.preview) {
    display: none;
  }
}
.panel-head {
  flex-wrap: wrap;
}
.panel-head > div {
  min-width: 0;
}
@media (max-width: 720px) {
  .records-table,
  .records-table tbody {
    display: block;
  }
  .records-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .records-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 13px 10px;
    padding: 19px 17px;
    border-top: 1px solid var(--line);
  }
  .records-table td {
    display: block;
    padding: 0;
    border: 0;
  }
  .records-table td:first-child {
    grid-column: 1/-1;
  }
  .records-table td:first-child strong {
    font-size: 15px;
  }
  .records-table td:nth-child(2),
  .records-table td:nth-child(3) {
    font-size: 13px;
  }
  .records-table td:nth-child(3),
  .records-table td:last-child {
    text-align: right;
  }
  .records-table td:nth-child(4) {
    align-self: center;
  }
  .records-table td small {
    margin-top: 3px;
  }
  .panel-head .actions {
    flex-wrap: nowrap;
  }
  .panel-head h2 {
    font-size: 17px;
  }
}
