@font-face {
  font-family: Studio Hei;
  src: url(./heading-bold-Z0cllJHI.woff) format("woff");
  font-weight: 700;
  font-display: swap;
}
:root {
  color: #33211c;
  font-synthesis: none;
  --red: #bd583e;
  --heading:
    "Studio Hei", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC",
    "Noto Sans CJK SC", system-ui, sans-serif;
  --glass: linear-gradient(136deg, #fff5eac4, #ffe8db9c 56%, #fff0e0ba);
  --rim: inset 0 1px 1px #fffdf3dd, 0 10px 24px #a35b4c16;
  background: #dc967f;
  font-family:
    PingFang SC,
    Microsoft YaHei,
    Noto Sans CJK SC,
    system-ui,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
button:focus-visible,
.button:focus-within,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #9c3d29;
}
button {
  transition:
    filter 0.17s,
    transform 0.17s;
}
button:hover:not(:disabled) {
  filter: brightness(1.04);
}
button:active:not(:disabled) {
  transform: scale(0.975);
}
button svg,
.button svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: var(--heading);
}
small {
  font-size: 0.83em;
}
textarea {
  resize: vertical;
  min-height: 78px;
}
input,
textarea,
select {
  color: #392720;
  background: #fffaf2;
  border: 1px solid #b46c5448;
  border-radius: 9px;
  min-width: 0;
  padding: 9px 10px;
}
input[type="checkbox"],
input[type="color"] {
  accent-color: #cc6148;
  vertical-align: middle;
}
input[hidden] {
  display: none !important;
}
.scenery {
  z-index: -2;
  background: #c57a6f url(./reference-halo-DC41PwUT.webp) top/cover no-repeat;
  position: fixed;
  inset: 0;
}
.studio {
  isolation: isolate;
  max-width: 1850px;
  padding: max(14px, env(safe-area-inset-top))
    max(17px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom))
    max(17px, env(safe-area-inset-left));
  margin: auto;
  position: relative;
}
.glass {
  background: var(--glass);
  box-shadow: var(--rim);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border: 1px solid #fff8efb5;
  border-radius: 28px;
}
.masthead {
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  min-height: 91px;
  padding: 0 8px 0 35px;
  display: flex;
}
.brand {
  text-align: left;
  color: #fff8ef;
  background: 0 0;
  border: 0;
  align-items: center;
  gap: 28px;
  padding: 0;
  display: flex;
}
.brand strong {
  font: 700 clamp(24px, 2.62vw, 44px) / 1.13 var(--heading);
  letter-spacing: 0.035em;
  text-shadow: 0 2px 12px #7f36382c;
  display: block;
}
.brand em {
  font: 500 clamp(15px, 1.55vw, 25px) / 1.3 var(--heading);
  margin-top: 5px;
  display: block;
}
.logo {
  background: linear-gradient(128deg, #fc7a71, #ffb488);
  border-radius: 21px;
  place-items: center;
  width: 76px;
  height: 76px;
  display: grid;
  box-shadow:
    inset 0 1px 1px #ffd9c290,
    0 6px 23px #9d514444;
}
.logo svg {
  stroke-width: 2.2px;
  fill: #fff4df;
  width: 54%;
  height: 54%;
}
.mast-actions,
.utility,
.window-buttons {
  align-items: center;
  gap: 10px;
  display: flex;
}
.utility {
  box-shadow: var(--rim);
  background: #ffecdfb9;
  border: 1px solid #fff4e6c4;
  border-radius: 40px;
  gap: 8px;
  padding: 3px 11px;
}
.utility button,
.window-buttons button,
.icon-button {
  background: 0 0;
  border: 0;
  place-items: center;
  width: 45px;
  height: 45px;
  display: grid;
  position: relative;
}
.utility svg {
  stroke-width: 1.55px;
  width: 27px;
  height: 27px;
}
.utility i {
  background: #df473b;
  border-radius: 50%;
  width: 9px;
  height: 9px;
  position: absolute;
  top: 8px;
  right: 9px;
}
.window-buttons {
  gap: 0;
}
.window-buttons svg {
  width: 17px;
}
.workspace {
  grid-template-columns: clamp(162px, 13.3vw, 222px) minmax(0, 1fr);
  align-items: stretch;
  gap: 17px;
  display: grid;
}
.sidebar {
  background: linear-gradient(161deg, #fff9ede0, #fff0e2bc 76%, #ffe4d1bd);
  flex-direction: column;
  justify-content: space-between;
  min-height: 600px;
  margin-top: 41px;
  display: flex;
  position: relative;
  overflow: hidden;
}
.sidebar nav {
  gap: 7px;
  padding: 17px 3px 0;
  display: grid;
}
.sidebar button {
  text-align: left;
  white-space: nowrap;
  background: 0 0;
  border: 1px solid #0000;
  border-radius: 21px;
  align-items: center;
  gap: clamp(12px, 1.55vw, 27px);
  min-height: 60px;
  padding: 12px clamp(11px, 1.55vw, 26px);
  font-size: clamp(16px, 1.37vw, 23px);
  font-weight: 600;
  display: flex;
}
.sidebar svg {
  color: #b95e49;
  stroke-width: 1.65px;
  width: 33px;
  height: 33px;
}
.sidebar .active,
.day-buttons .active {
  color: #fff9eb;
  background: linear-gradient(150deg, #f6ba98, #dc8768);
  border-color: #ffefdf;
  box-shadow:
    inset 0 1px 7px #fff2de85,
    0 7px 12px #b35f453b;
}
.sidebar .active svg {
  color: inherit;
  fill: #fff5e8;
}
.clef {
  color: #c7735d;
  text-align: center;
  opacity: 0.88;
  min-height: 160px;
  margin: 8px 0 0;
  font-family:
    Noto Music,
    Segoe UI Symbol,
    serif;
  font-size: 140px;
  line-height: 1;
  transform: rotate(10deg);
}
.intro {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 17px;
  display: flex;
}
.greeting {
  color: #fff8ed;
  max-width: 44%;
  padding: 0 0 0 14px;
}
.greeting h1 {
  letter-spacing: 0.045em;
  text-shadow: 0 2px 12px #8d413822;
  margin: 0;
  font-size: clamp(27px, 3vw, 49px);
  line-height: 1.16;
}
.greeting > svg {
  width: min(100%, 340px);
  height: 23px;
  margin: 2px 0 0 15px;
  display: block;
}
.date-sync {
  color: #fff8ed;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  font-size: 12px;
  display: flex;
}
.date-sync button {
  color: inherit;
  background: #6d2a251e;
  border: 1px solid #fff0dd77;
  border-radius: 99px;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  display: inline-flex;
}
.actions {
  flex: 0 55%;
  justify-content: flex-end;
  gap: clamp(6px, 1vw, 17px);
  display: flex;
}
.actions button {
  white-space: nowrap;
  border-radius: 24px;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 75px;
  padding: 10px 13px;
  font-size: clamp(13px, 1.39vw, 23px);
  font-weight: 700;
  display: flex;
}
.actions svg {
  stroke-width: 1.65px;
  color: #cc6a4f;
  width: clamp(26px, 3vw, 48px);
  height: auto;
}
.dashboard {
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  display: grid;
}
.schedule,
.today {
  min-width: 0;
  padding: 12px;
}
.weekhead {
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 2vw, 29px);
  min-height: 58px;
  margin-bottom: 9px;
  display: flex;
}
.round {
  color: #a94e39;
  background: #fff5ecd6;
  border: 1px solid #fff6eb;
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 43px;
  height: 43px;
  display: inline-grid;
}
.weeklabel {
  align-items: center;
  gap: 14px;
  display: flex;
}
.weeklabel strong {
  font: 700 clamp(20px, 2vw, 33px) var(--heading);
  white-space: nowrap;
}
.range {
  cursor: pointer;
  white-space: nowrap;
  align-items: center;
  gap: 4px;
  font-size: clamp(12px, 1.2vw, 18px);
  display: inline-flex;
  position: relative;
}
.range input {
  opacity: 0;
  cursor: pointer;
  width: 100%;
  padding: 0;
  position: absolute;
  inset: 0;
}
.range input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  width: auto;
  height: auto;
  position: absolute;
  inset: 0;
}
.table-scroll {
  border-radius: 19px;
  overflow: auto;
}
.weekgrid {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  text-align: center;
  background: #fff9efac;
  width: 100%;
  font-size: clamp(12px, 1.05vw, 17px);
}
.weekgrid th,
.weekgrid td {
  border-bottom: 1px solid #d6957f44;
  border-right: 1px solid #d6957f44;
  height: clamp(53px, 6.5vh, 71px);
  padding: 2px;
}
.weekgrid th:first-child {
  width: 16%;
}
.weekgrid th:last-child,
.weekgrid td:last-child {
  border-right: 0;
}
.weekgrid tbody tr:last-child > * {
  border-bottom: 0;
}
.weekgrid thead th {
  background: #f6d8c43d;
}
.weekgrid th small,
.slot small {
  margin-top: 2px;
  font-weight: 500;
  line-height: 1.18;
  display: block;
}
.weekgrid th button {
  width: 100%;
  font-weight: inherit;
  background: 0 0;
  border: 0;
  display: block;
}
.weekgrid .today-col {
  background: #f6bca720;
}
.slot {
  overflow-wrap: anywhere;
  border: 1px solid #fff7eca3;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-height: 47px;
  padding: 3px;
  font-size: 0.88em;
  font-weight: 650;
  display: flex;
  box-shadow:
    0 3px 7px #b36a4825,
    inset 0 1px 3px #fff5ef9c;
}
.slot svg {
  color: #9b503d;
}
.slot.cancelled {
  opacity: 0.62;
  text-decoration: line-through;
}
.legend {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 2px 8px;
  display: grid;
}
.legend > div {
  text-align: center;
  background: #fff5eb8c;
  border: 1px solid #fff9efa1;
  border-radius: 17px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 9px 4px;
  font-size: clamp(10px, 0.95vw, 15px);
  font-weight: 700;
  display: flex;
}
.legend small {
  font-weight: 500;
  display: block;
}
.legend svg {
  flex: none;
  width: 23px;
}
.panel-title {
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  min-height: 57px;
  margin: 0 5px 10px;
  display: flex;
}
.panel-title > svg {
  color: #be6049;
  stroke-width: 1.65px;
  width: 33px;
  height: 33px;
}
.panel-title h2 {
  white-space: nowrap;
  margin: 0;
  font-size: clamp(22px, 2.05vw, 35px);
}
.panel-title > span {
  white-space: nowrap;
  font-size: clamp(12px, 1.13vw, 17px);
}
.panel-title > small {
  color: #744436;
  white-space: nowrap;
  margin-left: auto;
}
.lesson-list {
  gap: 9px;
  display: grid;
}
.lesson {
  text-align: left;
  background: linear-gradient(118deg, #fffbf2c9, #fff1e7bb);
  border: 1px solid #fff6eb;
  border-radius: 22px;
  grid-template-columns: 23% minmax(0, 1fr);
  gap: 0;
  width: 100%;
  padding: 0;
  display: grid;
  overflow: hidden;
  box-shadow: 0 3px 10px #b4695713;
}
.lesson-period {
  text-align: center;
  background: #f9e4d744;
  border-right: 1px solid #dfa58c37;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 7px 2px;
  display: flex;
}
.lesson-period b {
  font: 700 clamp(16px, 1.65vw, 26px) var(--heading);
}
.lesson-period small {
  white-space: normal;
  font-size: clamp(10px, 0.95vw, 15px);
}
.lesson-body {
  gap: 5px;
  min-width: 0;
  padding: 11px 12px;
  display: grid;
}
.lesson-top,
.lesson-top > span:first-child,
.lesson-body > small,
.progress {
  align-items: center;
  gap: 6px;
  display: flex;
}
.lesson-top {
  flex-wrap: wrap;
  justify-content: space-between;
}
.lesson-top svg,
.lesson-body > small > svg {
  color: #bd5b44;
  flex: none;
}
.lesson-top b {
  font-size: clamp(13px, 1.25vw, 20px);
}
.topic {
  font: 700 clamp(15px, 1.5vw, 24px) var(--heading);
  overflow-wrap: anywhere;
}
.state-pill {
  color: #fffaf0;
  white-space: nowrap;
  background: linear-gradient(#ec9e80, #c85c45);
  border-radius: 99px;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 11px;
  display: inline-flex;
}
.state-pill svg {
  color: inherit;
}
.lesson-body > small {
  color: #67483d;
  min-width: 0;
  display: flex;
  overflow: hidden;
}
.lesson-body .warning,
.lesson-body .leftover {
  color: #954626;
}
.progress {
  font-size: 12px;
}
progress {
  appearance: none;
  background: #eec4b4;
  border: none;
  border-radius: 10px;
  width: 100%;
  height: 9px;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: #eec4b4;
  border-radius: 10px;
}
progress::-webkit-progress-value {
  background: linear-gradient(90deg, #eab191, #e56c5d);
  border-radius: 10px;
}
progress::-moz-progress-bar {
  background: #df7660;
}
.empty {
  color: #76493d;
  text-align: center;
  background: #fff8ed65;
  border: 1px solid #fff7edbd;
  border-radius: 22px;
  align-content: center;
  justify-items: center;
  gap: 11px;
  min-height: 225px;
  padding: 16px;
  display: grid;
}
.empty > svg {
  color: #bd6952;
}
.empty button,
.text-button {
  color: #753625;
  background: 0 0;
  border: 0;
  align-items: center;
  gap: 3px;
  padding: 7px;
  display: inline-flex;
}
.mobile-nav,
.mobile-week {
  display: none;
}
.secondary-today {
  margin-top: 16px;
}
.page-heading {
  color: #fff9ee;
  align-items: center;
  gap: 12px;
  margin: 11px 0 18px;
  display: flex;
}
.page-heading h1 {
  margin: 0;
  font-size: 34px;
}
.content {
  min-height: 410px;
  padding: 21px;
}
.content h2 {
  margin: 19px 0 12px;
}
.content h2:first-child {
  margin-top: 0;
}
.content h3 {
  margin: 15px 0 8px;
}
.content p,
.content pre {
  white-space: pre-wrap;
}
.toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 9px 0 12px;
  display: flex;
}
.toolbar h2 {
  margin: 0 !important;
}
.toolbar input[type="number"] {
  width: 70px;
}
.content button,
.dialog button:not(.icon-button),
.toolbar button,
.button {
  background: #fff6e9dc;
  border: 1px solid #fff8ec;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 7px 11px;
  font-weight: 600;
  display: inline-flex;
}
.primary {
  color: #fffaf1;
  background: linear-gradient(135deg, #d17858, #b6513f) !important;
  border-color: #f6b39b !important;
}
.tiles {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 10px;
  margin: 10px 0;
  display: grid;
}
.tile,
.content .tile {
  background: #fff6ebad;
  border: 1px solid #fff9f1;
  border-radius: 15px;
  min-width: 0;
  padding: 13px;
}
.tiles button,
.stack button.tile {
  text-align: left;
  justify-content: stretch;
  gap: 7px;
  display: grid;
}
.stack {
  gap: 8px;
  display: grid;
}
.fields {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 10px;
  margin: 10px 0;
  display: grid;
}
.fields label {
  gap: 5px;
  display: grid;
}
label:has(> textarea) {
  gap: 5px;
  display: grid;
}
.fields .check,
.check {
  align-items: center;
  gap: 7px;
  margin: 5px 0;
  display: flex;
}
.record-form {
  margin-top: 18px;
}
.picker {
  background: #f8dece;
}
.picker:fullscreen {
  background: #f8dece;
  align-content: center;
  padding: 5vw;
  display: grid;
}
.picked {
  min-height: 92px;
  font: 700 clamp(23px, 5vw, 64px) var(--heading);
  color: #923f2d;
  place-items: center;
  display: grid;
}
details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
}
.period-edit {
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  display: flex;
}
.overlay {
  z-index: 10;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: #4b241f6e;
  place-items: center;
  padding: 15px;
  display: grid;
  position: fixed;
  inset: 0;
}
.dialog {
  background: linear-gradient(145deg, #fff4e8, #f7d8c9);
  border: 1px solid #fff;
  border-radius: 23px;
  width: min(100%, 900px);
  max-height: 90dvh;
  padding: 18px;
  overflow: auto;
  box-shadow: 0 20px 80px #56261e68;
}
.dialog > header {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}
.dialog h2 {
  margin: 0;
}
.drop {
  border: 1px dashed #b87865;
  border-radius: 14px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 170px;
  padding: 11px;
  display: flex;
}
.drop img {
  object-fit: contain;
  max-width: 100%;
  max-height: 230px;
}
.import-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  gap: 14px;
  display: grid;
}
.import-rows {
  gap: 8px;
  margin-bottom: 11px;
  display: grid;
}
.import-row {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(
      0,
      0.8fr
    ) minmax(0, 0.8fr) auto;
  align-items: center;
  gap: 4px;
  display: grid;
}
.import-row small {
  color: #985625;
}
.toast {
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 20;
  color: #fff5e9;
  background: #633b31;
  border-radius: 14px;
  width: max-content;
  max-width: 90vw;
  padding: 11px 18px;
  position: fixed;
  left: 50%;
  transform: translate(-50%);
  box-shadow: 0 6px 20px #52251f55;
}
.loading {
  place-items: center;
  min-height: 100dvh;
  display: grid;
}
.no-motion *,
.no-motion :after,
.no-motion :before {
  scroll-behavior: auto !important;
  transition: none !important;
  animation: none !important;
}
@media (width<=1150px) and (width>=851px) {
  .workspace {
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 10px;
  }
  .sidebar button {
    gap: 8px;
    padding-inline: 8px;
  }
  .sidebar svg {
    width: 25px;
  }
  .actions {
    flex-basis: 57%;
  }
  .actions button {
    gap: 6px;
    padding: 8px;
  }
  .schedule,
  .today {
    padding: 8px;
  }
  .dashboard {
    gap: 9px;
  }
  .legend svg {
    width: 18px;
  }
  .lesson-body {
    padding: 8px;
  }
  .panel-title {
    gap: 5px;
  }
  .panel-title > svg {
    width: 26px;
  }
}
@media (width<=850px) {
  .studio {
    max-width: 680px;
    padding-top: max(15px, env(safe-area-inset-top));
    padding-inline: max(14px, env(safe-area-inset-left));
    padding-bottom: max(36px, env(safe-area-inset-bottom));
  }
  .scenery {
    background-position: 54% 0;
  }
  .masthead {
    align-items: center;
    gap: 5px;
    min-height: 0;
    margin-bottom: 18px;
    padding: 4px 0 0;
  }
  .brand {
    gap: 10px;
  }
  .brand strong {
    letter-spacing: 0;
    font-size: clamp(18px, 4.5vw, 32px);
  }
  .brand em {
    margin-top: 3px;
    font-size: clamp(12px, 3vw, 18px);
  }
  .logo {
    border-radius: 15px;
    flex: none;
    width: clamp(43px, 10vw, 65px);
    height: clamp(43px, 10vw, 65px);
  }
  .utility {
    gap: 4px;
    padding: 2px 4px;
  }
  .utility button {
    width: 35px;
    height: 35px;
  }
  .utility svg {
    width: 23px;
    height: 23px;
  }
  .window-buttons,
  .sidebar {
    display: none;
  }
  .workspace {
    display: block;
  }
  .intro {
    margin-bottom: 14px;
    display: block;
  }
  .greeting {
    max-width: 100%;
    padding: 0 4px;
  }
  .greeting h1 {
    font-size: clamp(27px, 6.3vw, 42px);
  }
  .greeting > svg {
    width: min(67%, 330px);
    height: 17px;
    margin: 0 0 1px 5px;
  }
  .date-sync {
    margin: 1px 0 12px;
  }
  .actions {
    gap: clamp(7px, 2vw, 16px);
  }
  .actions button {
    border-radius: 19px;
    flex-direction: column;
    gap: 5px;
    min-height: clamp(70px, 17vw, 106px);
    padding: 7px 2px;
    font-size: clamp(12px, 3.25vw, 21px);
  }
  .actions svg {
    width: clamp(24px, 6.5vw, 40px);
    height: auto;
  }
  .dashboard {
    flex-direction: column;
    gap: 13px;
    display: flex;
  }
  .dashboard > .schedule {
    display: none;
  }
  .today,
  .mobile-week,
  .schedule {
    border-radius: 22px;
    padding: 9px;
  }
  .panel-title {
    gap: 2px 6px;
    min-height: 38px;
    margin: 1px 2px 8px;
  }
  .panel-title h2 {
    font-size: clamp(18px, 4.8vw, 29px);
  }
  .panel-title > svg {
    width: 25px;
    height: 25px;
  }
  .panel-title > span,
  .panel-title > small,
  .text-button {
    font-size: clamp(10px, 2.75vw, 15px);
  }
  .empty {
    border-radius: 16px;
    min-height: 128px;
  }
  .lesson {
    border-radius: 15px;
    grid-template-columns: 24% minmax(0, 1fr);
  }
  .lesson-period b {
    font-size: clamp(15px, 4vw, 23px);
  }
  .lesson-period small {
    font-size: clamp(9px, 2.55vw, 14px);
  }
  .lesson-body {
    gap: 4px;
    padding: 7px;
  }
  .lesson-top {
    gap: 4px;
  }
  .lesson-top b {
    font-size: clamp(12px, 3.2vw, 20px);
  }
  .lesson-top > span:first-child > svg {
    width: 16px;
  }
  .lesson-body small {
    font-size: clamp(10px, 2.75vw, 15px);
  }
  .topic {
    font-size: clamp(15px, 3.9vw, 23px);
  }
  .state-pill {
    font-size: clamp(9px, 2.35vw, 13px);
  }
  .state-pill svg {
    display: none;
  }
  .mobile-week {
    display: block;
  }
  .mobile-week .text-button {
    margin-left: auto;
    padding: 3px 0;
  }
  .day-buttons {
    gap: 6px;
    display: flex;
    overflow: auto;
  }
  .day-buttons button {
    white-space: nowrap;
    background: #fff6eb9e;
    border: 1px solid #fff8ee;
    border-radius: 12px;
    flex: 1;
    min-width: 0;
    min-height: 47px;
    padding: 4px 2px;
    font-size: clamp(10px, 3vw, 17px);
    font-weight: 650;
  }
  .day-buttons small {
    margin-top: 2px;
    display: block;
  }
  .mobile-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 13px;
    display: grid;
  }
  .mobile-nav button {
    border-radius: 18px;
    align-content: center;
    justify-items: center;
    gap: 6px;
    min-height: 67px;
    font-size: clamp(13px, 3.4vw, 20px);
    font-weight: 650;
    display: grid;
  }
  .mobile-nav svg {
    color: #bd624b;
    stroke-width: 1.65px;
    width: 27px;
    height: 27px;
  }
  .weekgrid {
    min-width: 440px;
  }
  .legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .content {
    padding: 12px;
  }
  .import-layout {
    grid-template-columns: 1fr;
  }
  .import-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 35px;
  }
  .import-row button {
    grid-area: 1/3 / span 2;
  }
  .import-row small {
    grid-column: 1/-1;
  }
  .student input {
    max-width: 43%;
  }
  .fields input,
  .fields select,
  .fields textarea {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
.slot {
  touch-action: pan-y;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.slot.lifted {
  outline: 2px solid #a74c34;
  transform: scale(1.035);
  box-shadow: 0 8px 13px #9b503d55;
}
@media (width>=851px) {
  .clef {
    min-height: 151px;
    margin-bottom: 15px;
    font-size: clamp(98px, 9.5vw, 150px);
  }
}
.account-gate {
  place-items: center;
  min-height: 100vh;
  display: grid;
}
.account-gate section {
  width: min(100%, 28rem);
  padding: 2rem;
}
.account-gate form {
  gap: 0.8rem;
  margin-bottom: 0.7rem;
  display: grid;
}
.account-gate label {
  gap: 0.3rem;
  display: grid;
}
.account-gate small {
  color: #62433b;
  margin-top: 1rem;
  display: block;
}
.account-gate .logo {
  margin-bottom: 1rem;
}
.account-gate h2 {
  font-size: 1.2rem;
}
.onboarding {
  min-height: 0;
  margin: 0 0 1rem;
}
.import-times {
  flex-wrap: wrap;
  grid-column: 1/-1;
  gap: 0.5rem;
  display: flex;
}
.import-times label {
  align-items: center;
  gap: 0.3rem;
  display: flex;
}
.brand strong,
.brand em,
.greeting h1,
.dialog > header h2 {
  font-family: var(--heading);
  font-style: normal;
  font-weight: 700;
}
.import-template-bar {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 12px 0 16px;
  display: flex;
}
.dialog .template-download {
  min-height: 44px;
  padding: 9px 16px;
  font-weight: 700;
}
.import-template-bar span {
  color: #654238;
  font-size: 0.875rem;
}
.logo {
  background:
    radial-gradient(at 94% 8%, #ffd2a9 0%, #ffab8c 31%, #0000 66%),
    linear-gradient(145deg, #ff8a7f, #e9725d 78%);
  border: 1px solid #ffb7978c;
  flex: none;
  box-shadow:
    inset 0 1px 3px #ffddbf75,
    0 9px 21px #84403442;
}
.logo img {
  filter: drop-shadow(0 2px 1px #b9543838);
  width: 88%;
  height: 88%;
}
.glass {
  background: linear-gradient(146deg, #fff5ece0, #ffeddeac 56%, #ffe9dbb8);
  border-color: #fff6eed6;
}
.actions .glass,
.mobile-nav button {
  background: linear-gradient(148deg, #fff0e1d9, #ffe2d4b8);
}
.brand em {
  letter-spacing: 0.025em;
  font-family:
    Georgia,
    Times New Roman,
    serif;
  font-style: italic;
  font-weight: 400;
}
.greeting h1 {
  letter-spacing: 0.035em;
  text-shadow: 0 2px 16px #6f372b6b;
}
.greeting h1 span {
  color: #ffe8cf;
}
.actions {
  flex-basis: 39%;
}
.memo-editor form,
.memo-editor label {
  gap: 6px;
  display: grid;
}
.memo-editor textarea {
  min-height: 88px;
}
.memo-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}
.memo-list,
.day-memos {
  gap: 6px;
  margin: 8px 0 12px;
  display: grid;
}
.dialog .memo-list button {
  text-align: left;
  justify-content: flex-start;
}
.memo-list button span,
.memo-chip span {
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 0;
}
.memo-chip {
  text-align: left;
  color: #714637;
  background: #fff1ceeb;
  border: 1px solid #fffcf1;
  border-radius: 8px;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  padding: 5px 6px;
  font-size: 0.76rem;
  line-height: 1.25;
  display: flex;
}
.memo-chip[draggable] {
  cursor: grab;
  touch-action: none;
}
.memo-chip[draggable]:active {
  cursor: grabbing;
}
.weekgrid .memo-chip {
  margin: 2px 0;
}
.memo-chip svg {
  color: #a75a3b;
  flex: none;
}
.memo-chip span {
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}
.memo-day-row td {
  min-height: 28px;
}

/* Compact homepage actions and a shared backdrop for every workspace page. */
.scenery {
  background-image: linear-gradient(100deg, #6e28241e, transparent 60%),
    url(./reference-halo-DC41PwUT.webp);
  background-position: center, center 43%;
  background-size: cover;
}
.brand {
  gap: clamp(10px, 2vw, 22px);
  min-width: 0;
}
.brand .logo {
  width: clamp(42px, 5.5vw, 70px);
  height: auto;
  aspect-ratio: 1;
  background: transparent;
  border: 0;
  border-radius: 25%;
}
.brand .logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}
.actions {
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}
.actions button {
  min-height: 42px;
  padding: 7px 12px;
  flex: 0 0 auto;
  flex-direction: row;
  gap: 6px;
  border-radius: 12px;
  font-size: 0.9rem;
  background: #fff0e3ed;
  color: #563229;
}
.actions svg {
  width: 18px;
}
.weekgrid .slot[draggable="true"] {
  cursor: grab;
}
.weekgrid .slot[draggable="true"]:active {
  cursor: grabbing;
}
@media (max-width: 850px) {
  .dashboard > .schedule {
    display: block;
  }
  .intro .actions {
    justify-content: flex-end;
    margin-bottom: 10px;
  }
}

.studio-simple {
  max-width: 1500px;
  margin: 0 auto;
}
.studio-home-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}
.studio-home-actions h1 {
  flex: 1;
  margin: 0;
  color: #fff7ec;
  font-size: clamp(24px, 3vw, 38px);
}
.studio-home-actions button {
  padding: 9px 14px;
  min-height: 40px;
  border-radius: 12px;
}
.studio-simple .dashboard {
  grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr);
  align-items: start;
}
.studio-simple .today .lesson {
  align-items: center;
  min-height: 62px;
}
.studio-lesson-title {
  align-content: center;
}
.studio-empty {
  margin: 10px 5px;
  color: #62433b;
}
.studio-record {
  width: min(100%, 740px);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px);
}
.studio-record-controls {
  justify-content: space-between;
  margin-bottom: 16px;
}
.studio-record h1 {
  margin: 0;
  color: #442e27;
}
.studio-record-date {
  margin: 5px 0 15px;
}
.studio-previous {
  background: #fff5e9ee;
  border: 1px solid #fff8ef;
  border-radius: 14px;
  padding: 14px 16px;
}
.studio-previous h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.studio-previous time {
  color: #754e40;
  font-size: .9rem;
}
.studio-previous p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 6px 0 0;
}
.studio-progress-form {
  display: grid;
  margin-top: 16px;
  gap: 8px;
}
.studio-progress-form label {
  font-weight: 700;
}
.studio-progress-form textarea {
  width: 100%;
  resize: vertical;
}
.studio-progress-form button {
  justify-self: start;
  margin-top: 3px;
}
.utility:empty {
  display: none;
}
.utility button[aria-label="自动更新"] {
  width: auto;
  padding-inline: 6px;
  white-space: nowrap;
}
.studio-build-label {
  margin-left: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.85;
}

.masthead {
  align-items: center;
  min-height: 0;
  padding: 0;
  margin: 0 auto 10px;
  max-width: 1500px;
  flex-wrap: wrap;
}
.masthead .brand strong {
  font-size: clamp(19px, 2.3vw, 34px);
}
.masthead .brand .logo {
  width: clamp(39px, 4vw, 56px);
}
.masthead .brand em {
  font-size: clamp(12px, 1.2vw, 17px);
  margin-top: 2px;
}
.studio-build-label {
  white-space: nowrap;
}
.studio-home-actions {
  margin: 0;
}
.studio-simple .schedule,
.studio-simple .today {
  padding: clamp(7px, 1vw, 12px);
}
.studio-simple .weekhead {
  min-height: 40px;
  margin-bottom: 6px;
}
.studio-simple .weekhead .round {
  width: 34px;
  height: 34px;
}
.studio-simple .weekgrid th,
.studio-simple .weekgrid td {
  height: clamp(35px, 6.2dvh, 60px);
}
.studio-simple .weekgrid .slot {
  min-height: 30px;
  padding: 1px 3px;
}
.studio-simple .today .lesson-list {
  gap: 5px;
}
.studio-simple .today .lesson {
  min-height: 48px;
  border-radius: 12px;
  grid-template-columns: minmax(73px, 23%) minmax(0, 1fr);
}
.studio-simple .today .lesson-period {
  padding: 4px 2px;
}
.studio-simple .today .lesson-period b {
  font-size: clamp(14px, 1.2vw, 18px);
}
.studio-simple .today .studio-lesson-title {
  min-width: 0;
  padding: 4px 8px;
  gap: 3px;
}
.studio-simple .today .studio-lesson-summary {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-size: .85rem;
  color: #68423a;
}
@media (min-width: 760px) {
  .studio-simple .dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(265px, 1fr);
  }
}
@media (max-width: 759px) {
  .masthead .mast-actions {
    flex-wrap: wrap;
  }
}

.studio-view-switch {
  display: none;
}
.studio-color-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.studio-color-fields label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fff3e9;
  border-radius: 9px;
  padding: 7px 10px;
}
.studio-color-fields input {
  width: 42px;
  min-height: 30px;
  padding: 2px;
}
.studio-simple .weekgrid .slot svg {
  color: currentColor;
}
.studio-simple .weekgrid th,
.studio-simple .weekgrid td {
  height: clamp(27px, calc((100dvh - 195px) / 9), 66px);
}
@media (max-height: 600px) {
  .studio-simple .weekgrid th,
  .studio-simple .weekgrid td {
    height: clamp(24px, calc((100dvh - 174px) / 9), 52px);
  }
  .studio-simple .weekgrid .slot {
    min-height: 24px;
    line-height: 1.05;
  }
  .studio-simple .weekgrid th small,
  .studio-simple .weekgrid .slot small {
    margin-top: 1px;
  }
}
@media (max-width: 759px) {
  .studio-view-switch {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
  }
  .studio-view-switch button {
    flex: 1;
    padding: 6px 9px;
    border-radius: 10px;
  }
  .studio-view-switch button[aria-pressed="true"] {
    font-weight: 700;
    background: #fff8ef;
  }
  .studio-simple .dashboard[data-mobile-view="week"] > .today,
  .studio-simple .dashboard[data-mobile-view="day"] > .schedule {
    display: none;
  }
  .studio-simple .weekgrid th,
  .studio-simple .weekgrid td {
    height: clamp(27px, calc((100dvh - 230px) / 9), 58px);
  }
  .studio-simple .weekgrid th:first-child {
    width: clamp(56px, 19%, 95px);
  }
  .studio-simple .weekgrid th small {
    font-size: clamp(9px, 2.3vw, 12px);
  }
  .studio-simple .weekgrid .slot {
    min-height: 25px;
  }
  .studio-simple .weekgrid .slot svg {
    display: none;
  }
  .studio-simple .weekgrid .slot small {
    font-size: .85em;
  }
}
.studio:has(.dashboard) {
  max-width: 1850px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
@media (max-width: 759px) {
  .studio-simple .dashboard > .schedule,
  .studio-simple .dashboard > .today {
    width: 100%;
    min-width: 0;
  }
  .studio-simple .weekgrid {
    min-width: 0;
  }
  .studio-simple .weekgrid th,
  .studio-simple .weekgrid td {
    height: clamp(25px, calc((100dvh - 255px) / 9), 56px);
  }
}
@media (max-width: 759px) and (max-height: 660px) {
  .studio-simple .weekgrid th small {
    white-space: nowrap;
    font-size: 9px;
    letter-spacing: -.02em;
  }
  .studio-simple .weekgrid th,
  .studio-simple .weekgrid td {
    padding: 0 1px;
  }
  .studio-simple .weekgrid th button {
    padding: 0;
  }
  .studio-simple .weekgrid .slot {
    min-height: 23px;
    font-size: .8em;
    line-height: 1.05;
  }
  .studio-simple .weekhead {
    min-height: 34px;
    margin-bottom: 4px;
  }
  .studio-view-switch button,
  .studio-home-actions button {
    min-height: 32px;
    padding: 4px 9px;
  }
}

.studio-simple .weekgrid .slot {
  min-height: 35px;
  padding-block: 3px;
}
@media (max-width: 759px) {
  .studio-simple .weekgrid .slot {
    min-height: 30px;
  }
}
@media (max-width: 759px) and (max-height: 660px) {
  .studio-simple .weekgrid .slot {
    min-height: 27px;
    padding-block: 2px;
  }
}
@media (max-width: 759px) {
  .masthead { margin-bottom: 8px; }
  .studio-view-switch { margin-bottom: 6px; }
  .studio-simple .weekhead { min-height: 34px; margin-bottom: 4px; }
}

.studio-sync-status {
  font-size: .82rem;
  color: #fff7ed;
  align-self: center;
}
.studio-sync-conflict {
  max-width: 900px;
  margin: 12px auto;
}
@media (max-width: 759px) {
  .studio-account-app .account-dashboard {
    display: flex;
    flex-direction: column;
  }
  .studio-account-app .account-dashboard > .today {
    order: -1;
  }
  .studio-account-app .account-dashboard[data-mobile-view] > .today,
  .studio-account-app .account-dashboard[data-mobile-view] > .schedule {
    display: block;
  }
  .studio-home-actions {
    flex-wrap: wrap;
  }
}
