      :root {
        color: #1c2c35;
        background: #eef8ff;
        font-family:
          Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
          "Segoe UI", sans-serif;
        font-size: 13px;
        line-height: 1.32;
      }

      * {
        box-sizing: border-box;
      }

      body {
        margin: 0;
        background:
          linear-gradient(180deg, #e7f6ff 0%, #f8fcff 42%, #ffffff 100%);
        font-size: 0.92rem;
        min-width: 1120px;
      }

      .sr-only {
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
      }

      @keyframes panelEnter {
        from {
          opacity: 0;
          transform: translateY(8px);
        }

        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      @keyframes progressFlow {
        from {
          background-position: 0 0;
        }

        to {
          background-position: 36px 0;
        }
      }

      @keyframes currentStepGlow {
        0%,
        100% {
          box-shadow: 0 8px 22px rgba(37, 153, 210, 0.12);
        }

        50% {
          box-shadow: 0 10px 28px rgba(37, 153, 210, 0.24);
        }
      }

      @keyframes lessonCompletePulse {
        0% {
          box-shadow: 0 0 0 rgba(23, 167, 115, 0);
          transform: translateY(0);
        }

        45% {
          box-shadow: 0 0 0 5px rgba(23, 167, 115, 0.14);
          transform: translateY(-1px);
        }

        100% {
          box-shadow: 0 0 0 rgba(23, 167, 115, 0);
          transform: translateY(0);
        }
      }

      @keyframes setupStepNext {
        from {
          opacity: 0;
          transform: translateX(16px);
        }

        to {
          opacity: 1;
          transform: translateX(0);
        }
      }

      @keyframes setupStepPrevious {
        from {
          opacity: 0;
          transform: translateX(-16px);
        }

        to {
          opacity: 1;
          transform: translateX(0);
        }
      }

      button,
      textarea {
        font: inherit;
      }

      button {
        cursor: pointer;
      }

      .app {
        display: grid;
        grid-template-columns: 204px minmax(0, 1fr);
        min-height: 100vh;
        min-width: 1120px;
      }

      .sidebar {
        background: linear-gradient(180deg, #fafdff 0%, #eaf7ff 100%);
        border-right: 1px solid #c8e3f2;
        color: #173243;
        display: flex;
        flex-direction: column;
        gap: 10px;
        overflow-y: auto;
        padding: 12px;
      }

      .brand {
        display: grid;
        gap: 4px;
      }

      .brand strong {
        color: #0f5f8d;
        font-size: 1.08rem;
      }

      .brand span,
      .scope-note,
      .side-label {
        color: #527286;
        font-size: 0.82rem;
      }

      .nav-list {
        display: grid;
        gap: 7px;
      }

      .nav-list-simple {
        gap: 6px;
      }

      .nav-section {
        display: grid;
        gap: 5px;
      }

      .nav-section-toggle {
        align-items: center;
        background: transparent;
        border: 0;
        color: #527286;
        display: flex;
        font-size: 0.72rem;
        font-weight: 900;
        justify-content: space-between;
        letter-spacing: 0;
        padding: 5px 2px 3px;
        text-align: left;
      }

      .nav-section-toggle::after {
        color: #246f97;
        content: "▾";
        font-size: 0.82rem;
        transition: transform 180ms ease;
      }

      .nav-section-toggle[aria-expanded="false"]::after {
        transform: rotate(-90deg);
      }

      .nav-section-title {
        color: #6a8798;
        font-size: 0.68rem;
        font-weight: 900;
        letter-spacing: 0;
        margin: 0;
      }

      .nav-section-items {
        display: grid;
        gap: 5px;
        max-height: 760px;
        opacity: 1;
        overflow: hidden;
        transition:
          max-height 220ms ease,
          opacity 180ms ease;
      }

      .nav-section-items.is-collapsed {
        max-height: 0;
        opacity: 0;
        pointer-events: none;
      }

      .nav-button strong {
        display: block;
      }

      .nav-button {
        background: rgba(255, 255, 255, 0.78);
        border: 1px solid #c8e3f2;
        border-radius: 8px;
        color: #173243;
        display: grid;
        gap: 3px;
        min-height: 38px;
        padding: 8px 9px;
        position: relative;
        text-align: left;
        transition:
          background 180ms ease,
          border-color 180ms ease,
          box-shadow 180ms ease,
          transform 180ms ease;
      }

      .nav-button {
        grid-template-columns: 26px minmax(0, 1fr);
      }

      .nav-button.is-compact {
        min-height: 38px;
        padding: 7px 9px;
      }

      .nav-button::before {
        align-items: center;
        background: #e9f7ff;
        border: 1px solid #b6ddf2;
        border-radius: 999px;
        color: #246f97;
        content: attr(data-icon);
        display: inline-flex;
        font-size: 0.72rem;
        font-weight: 900;
        grid-row: 1 / span 2;
        height: 22px;
        justify-content: center;
        width: 22px;
      }

      .nav-button:hover {
        background: #ffffff;
        border-color: #83c9ed;
        box-shadow: 0 8px 22px rgba(39, 123, 166, 0.12);
        transform: translateY(-1px);
      }

      .nav-button[aria-current="page"] {
        background: linear-gradient(135deg, #dff4ff 0%, #ffffff 100%);
        border-color: #53b7e7;
        box-shadow: 0 10px 28px rgba(37, 153, 210, 0.18);
      }

      .nav-button[aria-current="page"]::before {
        background: #2699d2;
        border-color: #2699d2;
        color: #ffffff;
      }

      .nav-button[data-status="done"]::before {
        background: #e3f8f1;
        border-color: #8bd4b6;
        color: #12785b;
      }

      .nav-button[data-status="needed"]::before {
        background: #fff4d8;
        border-color: #efbd65;
        color: #9b6500;
      }

      .nav-button[data-status="next"]::before {
        background: #e4f6ff;
        border-color: #83c9ed;
        color: #1979a9;
      }

      .nav-button span {
        color: #5d7684;
        font-size: 0.78rem;
      }

      .sidebar-summary {
        background: #ffffff;
        border: 1px solid #c8e3f2;
        border-radius: 8px;
        display: grid;
        gap: 6px;
        padding: 10px;
      }

      .sidebar-summary strong {
        display: block;
      }

      .sidebar-summary span {
        color: #5d7684;
        font-size: 0.78rem;
      }

      .sidebar-footer {
        border-top: 1px solid #c8e3f2;
        margin-top: auto;
        padding-top: 12px;
      }

      .workspace {
        display: grid;
        grid-template-rows: auto 1fr;
        min-width: 0;
      }

      .topbar {
        align-items: center;
        background: rgba(255, 255, 255, 0.9);
        border-bottom: 1px solid #c8e3f2;
        display: flex;
        gap: 12px;
        justify-content: space-between;
        padding: 10px 14px;
      }

      .topbar-main {
        align-items: center;
        display: flex;
        gap: 12px;
        min-width: 0;
      }

      .school-logo-slot {
        align-items: center;
        background: linear-gradient(135deg, #e3f6ff 0%, #ffffff 100%);
        border: 1px dashed #83c9ed;
        border-radius: 10px;
        color: #357b9e;
        display: inline-flex;
        flex: 0 0 auto;
        font-size: 0.72rem;
        font-weight: 900;
        height: 38px;
        justify-content: center;
        width: 84px;
      }

      .topbar-actions {
        align-items: center;
        display: flex;
        gap: 7px;
        justify-content: flex-end;
      }

      .topbar h1 {
        color: #173243;
        font-size: 1.08rem;
        margin: 0;
      }

      .topbar p {
        color: #5d7684;
        font-size: 0.84rem;
        margin: 2px 0 0;
      }

      .badge-row {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: flex-end;
        align-items: center;
      }

      .badge {
        background: #f6fbff;
        border: 1px solid #c8e3f2;
        border-radius: 999px;
        color: #2a617c;
        font-size: 0.72rem;
        font-weight: 800;
        padding: 4px 8px;
        white-space: nowrap;
      }

      .help-button {
        align-items: center;
        background: #ffffff;
        border: 1px solid #83c9ed;
        border-radius: 999px;
        color: #1979a9;
        display: inline-flex;
        font-weight: 900;
        height: 28px;
        justify-content: center;
        line-height: 1;
        width: 28px;
      }

      .badge.good {
        background: #e0f5ff;
        border-color: #83c9ed;
        color: #1979a9;
      }

      .badge.notice {
        background: #fff6dc;
        border-color: #efce74;
        color: #7a5c10;
      }

      .content {
        display: grid;
        align-items: start;
        gap: 10px;
        grid-auto-flow: dense;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        margin-inline: auto;
        max-width: 1240px;
        padding: 18px 0 28px;
        width: 76%;
      }

      #flow-panel {
        grid-column: 1 / 9;
      }

      #operation-panel {
        grid-column: 9 / 13;
        grid-row: 1;
      }

      #schedule-panel {
        grid-column: 1 / 9;
        grid-row: 2 / span 4;
      }

      #course-panel {
        grid-column: 1 / 9;
        grid-row: 1 / span 4;
      }

      #assignment-panel {
        grid-column: 1 / 9;
        grid-row: 1 / span 4;
      }

      #draft-panel {
        grid-column: 1 / 9;
        grid-row: 1 / span 4;
      }

      #review-panel,
      #result-panel,
      #detail-panel,
      #preview-panel,
      #difference-panel,
      #problem-panel,
      #question-panel,
      #batch-panel,
      #memo-panel {
        grid-column: 9 / 13;
      }

      #setup-panel {
        grid-column: 1 / 13;
        grid-row: 1 / span 4;
      }

      .panel {
        animation: panelEnter 220ms ease both;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid #dde9ef;
        border-radius: 8px;
        box-shadow: 0 14px 34px rgba(42, 97, 124, 0.05);
        min-width: 0;
      }

      .panel[hidden] {
        display: none;
      }

      .panel-header {
        align-items: flex-start;
        border-bottom: 1px solid #eef3f6;
        display: flex;
        gap: 10px;
        justify-content: space-between;
        padding: 10px 12px;
      }

      .panel-title {
        display: grid;
        gap: 3px;
      }

      .setup-title-row {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }

      .panel-title h2 {
        color: #173243;
        font-size: 0.98rem;
        margin: 0;
      }

      .panel-title span {
        color: #5d7684;
        display: none;
        font-size: 0.78rem;
      }

      .panel-body {
        padding: 12px;
      }

      .setup-guide-action {
        align-items: center;
        background: #f1fbff;
        border: 1px solid #b8dceb;
        border-radius: 999px;
        color: #116d98;
        display: inline-flex;
        font: inherit;
        font-size: 0.72rem;
        font-weight: 900;
        gap: 5px;
        min-height: 25px;
        padding: 4px 10px;
        white-space: nowrap;
      }

      .setup-guide-action::before {
        content: "?";
        align-items: center;
        background: #ffffff;
        border: 1px solid #b8dceb;
        border-radius: 999px;
        display: inline-flex;
        font-size: 0.68rem;
        height: 15px;
        justify-content: center;
        width: 15px;
      }

      .setup-guide-action:hover,
      .setup-guide-action:focus-visible,
      .setup-guide-action[aria-expanded="true"] {
        background: #dff4ff;
        border-color: #54b6e0;
        color: #075e8a;
      }

      .actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
      }

      .action-button {
        background: linear-gradient(135deg, #218fce 0%, #4bb8e8 100%);
        border: 1px solid #218fce;
        border-radius: 8px;
        color: #ffffff;
        font-weight: 800;
        min-height: 32px;
        padding: 6px 10px;
      }

      .action-button.secondary {
        background: #ffffff;
        border-color: #bdddeb;
        color: #173243;
      }

      .action-button.danger {
        background: #ffffff;
        border-color: #efb8bd;
        color: #b4232f;
      }

      .action-button.needs-attention {
        background: #ffffff;
        border-color: #d95f5f;
        box-shadow: 0 0 0 2px rgba(217, 95, 95, 0.16);
        color: #8b1e25;
      }

      .setup-save-action {
        min-width: 78px;
      }

      .setup-save-group {
        align-items: center;
        display: flex;
        gap: 8px;
      }

      .setup-save-state {
        color: #5d7684;
        font-size: 0.72rem;
        font-weight: 800;
        white-space: nowrap;
      }

      .action-button:disabled {
        background: #eef1ee;
        border-color: #dce2dd;
        color: #8b9691;
        cursor: not-allowed;
      }

      .summary-grid {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-bottom: 10px;
      }

      .operation-stage-list {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 8px;
      }

      .operation-stage {
        background: #ffffff;
        border: 1px solid #c7e1ee;
        border-radius: 8px;
        color: #173243;
        display: grid;
        gap: 2px;
        min-height: 42px;
        padding: 8px 9px;
        text-align: left;
      }

      .operation-stage[aria-pressed="true"] {
        animation: currentStepGlow 2.8s ease-in-out infinite;
        background: #e3f6ff;
        border-color: #53b7e7;
      }

      .operation-stage strong,
      .operation-card strong {
        display: block;
      }

      .operation-stage span,
      .operation-card span {
        color: #5d7684;
        font-size: 0.72rem;
      }

      .operation-stage span {
        display: none;
      }

      .operation-detail {
        display: grid;
        gap: 8px;
      }

      .operation-detail-grid {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .operation-card {
        background: #f7fcff;
        border: 1px solid #d7ecf6;
        border-radius: 8px;
        padding: 8px;
      }

      .operation-note-list {
        display: none;
        gap: 8px;
        margin: 0;
        padding: 0;
      }

      .operation-note-list li {
        background: #ffffff;
        border: 1px solid #e3e8e4;
        border-radius: 8px;
        list-style: none;
        padding: 10px;
      }

      .work-strip {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-bottom: 10px;
      }

      .workspace-note {
        align-items: center;
        background: linear-gradient(135deg, #e2f6ff 0%, #ffffff 100%);
        border: 1px solid #9ed5ef;
        border-radius: 8px;
        display: flex;
        gap: 8px;
        justify-content: space-between;
        margin-bottom: 8px;
        padding: 8px 10px;
      }

      .workspace-note span {
        color: #5d7684;
        font-size: 0.78rem;
        text-align: right;
      }

      .home-summary-grid {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-bottom: 10px;
      }

      .home-status-card {
        background: #ffffff;
        border: 1px solid #d7ecf6;
        border-radius: 8px;
        display: grid;
        gap: 2px;
        min-height: 60px;
        padding: 8px;
      }

      .home-status-card.warning {
        background: #fff8e6;
        border-color: #efd37b;
      }

      .home-status-card.good {
        background: #e7f7ff;
        border-color: #9ed5ef;
      }

      .home-status-card strong {
        color: #173243;
        display: block;
        font-size: 1rem;
      }

      .home-status-card span {
        color: #5d7684;
        font-size: 0.74rem;
      }

      .home-progress {
        align-items: center;
        background: #f8fcff;
        border: 1px solid #d7ecf6;
        border-radius: 8px;
        display: grid;
        gap: 8px;
        grid-template-columns: minmax(180px, 0.42fr) minmax(240px, 1fr);
        margin-bottom: 10px;
        padding: 9px;
      }

      .home-progress strong {
        display: block;
      }

      .home-progress span {
        color: #5d7684;
        font-size: 0.76rem;
      }

      .progress-track {
        background: #dceef8;
        border-radius: 999px;
        height: 10px;
        overflow: hidden;
      }

      .progress-fill {
        animation: progressFlow 1.8s linear infinite;
        background:
          linear-gradient(90deg, #1f92d0, #60c5f0),
          repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.28) 0,
            rgba(255, 255, 255, 0.28) 8px,
            rgba(255, 255, 255, 0) 8px,
            rgba(255, 255, 255, 0) 16px
          );
        background-blend-mode: screen;
        background-size: 36px 36px;
        border-radius: inherit;
        display: block;
        height: 100%;
        transition: width 360ms ease;
        width: 0;
      }

      .home-step-grid {
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        margin-bottom: 10px;
      }

      .home-step-card {
        background: #ffffff;
        border: 1px solid #d7ecf6;
        border-radius: 8px;
        display: grid;
        gap: 4px;
        min-height: 74px;
        padding: 8px;
        position: relative;
      }

      .home-step-card::after {
        color: #91bfd6;
        content: "›";
        font-size: 1.28rem;
        font-weight: 900;
        position: absolute;
        right: -8px;
        top: 22px;
        z-index: 1;
      }

      .home-step-card:last-child::after {
        content: "";
      }

      .home-step-card.current {
        animation: currentStepGlow 2.8s ease-in-out infinite;
        background: #e4f6ff;
        border-color: #53b7e7;
      }

      .home-step-card.done {
        background: #f0fbff;
        border-color: #a9dff4;
      }

      .home-step-card.waiting {
        background: #ffffff;
      }

      .home-step-number {
        align-items: center;
        background: #e7f7ff;
        border: 1px solid #9ed5ef;
        border-radius: 999px;
        color: #1979a9;
        display: inline-flex;
        font-size: 0.72rem;
        font-weight: 900;
        height: 22px;
        justify-content: center;
        width: 22px;
      }

      .home-step-card.current .home-step-number {
        background: #218fce;
        border-color: #218fce;
        color: #ffffff;
      }

      .home-step-card strong {
        color: #173243;
        display: block;
      }

      .home-step-card span:not(.home-step-number) {
        color: #5d7684;
        font-size: 0.72rem;
      }

      .home-task-grid,
      .home-next-grid {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-bottom: 10px;
      }

      .home-task-card,
      .home-next-card {
        border: 1px solid #d7ecf6;
        border-radius: 8px;
        display: grid;
        gap: 3px;
        min-height: 66px;
        padding: 8px;
      }

      .home-task-card {
        background: #f8fcff;
        border-color: #d7ecf6;
      }

      .home-next-card {
        background: #f0fbff;
        border-color: #a9dff4;
      }

      .home-task-card.warning {
        background: #fff8e6;
        border-color: #efd37b;
      }

      .home-next-card.current {
        background: #e4f6ff;
        border-color: #53b7e7;
      }

      .home-task-card strong,
      .home-next-card strong {
        color: #173243;
        display: block;
      }

      .home-task-card span,
      .home-next-card span {
        color: #5d7684;
        font-size: 0.74rem;
      }

      .compact-label {
        color: #2a617c;
        font-size: 0.78rem;
        font-weight: 900;
        margin: 2px 0 6px;
      }

      .school-setup-grid {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        margin-bottom: 10px;
      }

      .condition-grid {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        margin-bottom: 10px;
      }

      .course-opening-grid {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        margin-bottom: 10px;
      }

      .course-work-summary,
      .course-basis-grid,
      .choice-group-grid,
      .course-readiness-grid {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-bottom: 10px;
      }

      .assignment-work-summary,
      .assignment-basis-grid,
      .assignment-signal-grid {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-bottom: 10px;
      }

      .draft-work-summary,
      .draft-view-grid,
      .draft-check-grid {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-bottom: 10px;
      }

      .section-assignment-work-list {
        border: 1px solid #cbe2dc;
        border-radius: 8px;
        display: grid;
        margin-bottom: 10px;
        overflow: hidden;
      }

      .section-assignment-row {
        align-items: stretch;
        background: #ffffff;
        border-bottom: 1px solid #e2eee9;
        display: grid;
        grid-template-columns: minmax(150px, 1.2fr) 110px 84px 84px 84px minmax(94px, 0.8fr) minmax(120px, 1fr);
      }

      .section-assignment-row:last-child {
        border-bottom: 0;
      }

      .section-assignment-row.header {
        background: #edf7f4;
        color: #3d514c;
        font-weight: 900;
      }

      .section-assignment-row > span {
        border-right: 1px solid #e2eee9;
        display: grid;
        gap: 2px;
        min-width: 0;
        padding: 8px;
      }

      .section-assignment-row > span:last-child {
        border-right: 0;
      }

      .section-assignment-row small {
        color: #64736f;
        font-size: 0.72rem;
        font-weight: 700;
      }

      .assignment-status {
        border-radius: 999px;
        display: inline-flex;
        font-size: 0.72rem;
        font-weight: 900;
        justify-content: center;
        padding: 3px 7px;
      }

      .assignment-status.ready {
        background: #e7f3ef;
        color: #235348;
      }

      .assignment-status.review {
        background: #fff1df;
        color: #7a4b1d;
      }

      .assignment-status.blocked {
        background: #fdece6;
        color: #873d27;
      }

      .draft-placement-work-list {
        border: 1px solid #d8d2e8;
        border-radius: 8px;
        display: grid;
        margin-bottom: 10px;
        overflow: hidden;
      }

      .draft-placement-row {
        align-items: stretch;
        background: #ffffff;
        border-bottom: 1px solid #e8e3f1;
        display: grid;
        grid-template-columns: minmax(150px, 1.2fr) 88px 96px minmax(112px, 0.9fr) minmax(150px, 1fr);
      }

      .draft-placement-row:last-child {
        border-bottom: 0;
      }

      .draft-placement-row.header {
        background: #f3effb;
        color: #49415c;
        font-weight: 900;
      }

      .draft-placement-row > span {
        border-right: 1px solid #e8e3f1;
        display: grid;
        gap: 2px;
        min-width: 0;
        padding: 8px;
      }

      .draft-placement-row > span:last-child {
        border-right: 0;
      }

      .draft-placement-row small {
        color: #686078;
        font-size: 0.72rem;
        font-weight: 700;
      }

      .draft-placement-status {
        border-radius: 999px;
        display: inline-flex;
        font-size: 0.72rem;
        font-weight: 900;
        justify-content: center;
        padding: 3px 7px;
      }

      .draft-placement-status.ready {
        background: #e9f3ed;
        color: #24543d;
      }

      .draft-placement-status.review {
        background: #fff2df;
        color: #79501b;
      }

      .draft-placement-status.blocked {
        background: #fdece6;
        color: #873d27;
      }

      .course-opening-work-list {
        border: 1px solid #d7dee9;
        border-radius: 8px;
        display: grid;
        margin-bottom: 10px;
        overflow: hidden;
      }

      .course-opening-row {
        align-items: stretch;
        background: #ffffff;
        border-bottom: 1px solid #e6ebf0;
        display: grid;
        grid-template-columns: minmax(150px, 1.2fr) 84px 84px 84px minmax(120px, 1fr) minmax(120px, 1fr);
      }

      .course-opening-row:last-child {
        border-bottom: 0;
      }

      .course-opening-row.header {
        background: #eef3f7;
        color: #455360;
        font-weight: 900;
      }

      .course-opening-row > span {
        border-right: 1px solid #e6ebf0;
        display: grid;
        gap: 2px;
        min-width: 0;
        padding: 8px;
      }

      .course-opening-row > span:last-child {
        border-right: 0;
      }

      .course-opening-row small {
        color: #687481;
        font-size: 0.72rem;
        font-weight: 700;
      }

      .course-opening-status {
        border-radius: 999px;
        display: inline-flex;
        font-size: 0.72rem;
        font-weight: 900;
        justify-content: center;
        padding: 3px 7px;
      }

      .course-opening-status.ready {
        background: #e7f3ef;
        color: #235348;
      }

      .course-opening-status.review {
        background: #fff1df;
        color: #7a4b1d;
      }

      .course-opening-status.blocked {
        background: #fdece6;
        color: #873d27;
      }

      .assignment-grid {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        margin-bottom: 10px;
      }

      .draft-grid {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        margin-bottom: 10px;
      }

      .explanation-grid {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        margin-bottom: 10px;
      }

      .comparison-grid {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        margin-bottom: 10px;
      }

      .candidate-grid {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        margin-bottom: 10px;
      }

      .daily-operation-grid {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        margin-bottom: 10px;
      }

      .output-readiness-grid {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        margin-bottom: 10px;
      }

      .review-bundle-grid {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        margin-bottom: 10px;
      }

      .school-setup-card {
        background: #ffffff;
        border: 1px solid #dfe5e1;
        border-radius: 8px;
        display: grid;
        gap: 2px;
        min-height: 54px;
        padding: 8px;
      }

      .school-setup-card strong {
        color: #27312e;
        display: block;
      }

      .school-setup-card span {
        color: #63706a;
        font-size: 0.76rem;
      }

      .condition-card {
        background: #fffaf1;
        border: 1px solid #ead7b9;
        border-radius: 8px;
        display: grid;
        gap: 2px;
        min-height: 54px;
        padding: 8px;
      }

      .condition-card strong {
        color: #4f371d;
        display: block;
      }

      .condition-card span {
        color: #6d6254;
        font-size: 0.76rem;
      }

      .course-opening-card {
        background: #f6f8fb;
        border: 1px solid #d7dee9;
        border-radius: 8px;
        display: grid;
        gap: 2px;
        min-height: 56px;
        padding: 8px;
      }

      .course-opening-card.warning {
        background: #fff5e8;
        border-color: #e8c18c;
      }

      .course-opening-card strong {
        color: #29364d;
        display: block;
      }

      .course-opening-card span {
        color: #626c79;
        font-size: 0.76rem;
      }

      .course-basis-card,
      .choice-group-card,
      .course-readiness-card,
      .assignment-basis-card,
      .assignment-signal-card,
      .draft-view-card,
      .draft-check-card {
        background: #f8faf8;
        border: 1px solid #dfe5e1;
        border-radius: 8px;
        display: grid;
        gap: 3px;
        min-height: 62px;
        padding: 8px;
      }

      .choice-group-card.warning,
      .course-readiness-card.warning,
      .assignment-signal-card.warning,
      .draft-check-card.warning {
        background: #fff7eb;
        border-color: #e5c08a;
      }

      .course-readiness-card.blocked,
      .assignment-signal-card.blocked,
      .draft-check-card.blocked {
        background: #fff4ef;
        border-color: #e6ae9a;
      }

      .course-basis-card strong,
      .choice-group-card strong,
      .course-readiness-card strong,
      .assignment-basis-card strong,
      .assignment-signal-card strong,
      .draft-view-card strong,
      .draft-check-card strong {
        color: #27312e;
        display: block;
      }

      .course-basis-card span,
      .choice-group-card span,
      .course-readiness-card span,
      .assignment-basis-card span,
      .assignment-signal-card span,
      .draft-view-card span,
      .draft-check-card span {
        color: #63706a;
        font-size: 0.74rem;
      }

      .assignment-card {
        background: #f4faf9;
        border: 1px solid #cbe2dc;
        border-radius: 8px;
        display: grid;
        gap: 2px;
        min-height: 56px;
        padding: 8px;
      }

      .assignment-card.warning {
        background: #fff6f2;
        border-color: #e5b19d;
      }

      .assignment-card strong {
        color: #214d47;
        display: block;
      }

      .assignment-card span {
        color: #5f6f6b;
        font-size: 0.76rem;
      }

      .draft-card {
        background: #f7f5ff;
        border: 1px solid #d7d1ea;
        border-radius: 8px;
        display: grid;
        gap: 2px;
        min-height: 56px;
        padding: 8px;
      }

      .draft-card.warning {
        background: #fff6ec;
        border-color: #e6bd8b;
      }

      .draft-card strong {
        color: #35304d;
        display: block;
      }

      .draft-card span {
        color: #666174;
        font-size: 0.76rem;
      }

      .explanation-card {
        background: #fbf7f1;
        border: 1px solid #e5d1b6;
        border-radius: 8px;
        display: grid;
        gap: 2px;
        min-height: 58px;
        padding: 8px;
      }

      .explanation-card.warning {
        background: #fff4ef;
        border-color: #e6ae9a;
      }

      .explanation-card strong {
        color: #533922;
        display: block;
      }

      .explanation-card span {
        color: #6d6254;
        font-size: 0.76rem;
      }

      .comparison-card {
        background: #f3f8fb;
        border: 1px solid #c9dce8;
        border-radius: 8px;
        display: grid;
        gap: 2px;
        min-height: 70px;
        padding: 8px;
      }

      .comparison-card.warning {
        background: #fff7eb;
        border-color: #e5c08a;
      }

      .comparison-card strong {
        color: #263f53;
        display: block;
      }

      .comparison-card span {
        color: #5d6a73;
        font-size: 0.74rem;
      }

      .candidate-card {
        background: #f6faf7;
        border: 1px solid #c9ddd2;
        border-radius: 8px;
        display: grid;
        gap: 2px;
        min-height: 58px;
        padding: 8px;
      }

      .candidate-card.warning {
        background: #fff7eb;
        border-color: #e5c08a;
      }

      .candidate-card.resolved {
        background: #eef5fb;
        border-color: #c4d9e8;
      }

      .candidate-card strong {
        color: #234b42;
        display: block;
      }

      .candidate-card span {
        color: #5f6f6b;
        font-size: 0.74rem;
      }

      .daily-operation-card {
        background: #fbfaf3;
        border: 1px solid #ded6b9;
        border-radius: 8px;
        display: grid;
        gap: 2px;
        min-height: 74px;
        padding: 8px;
      }

      .daily-operation-card.warning {
        background: #fff6ec;
        border-color: #e6bd8b;
      }

      .daily-operation-card strong {
        color: #4c4124;
        display: block;
      }

      .daily-operation-card span {
        color: #6d6254;
        font-size: 0.74rem;
      }

      .output-readiness-card {
        background: #f4f7fb;
        border: 1px solid #cbd8e7;
        border-radius: 8px;
        display: grid;
        gap: 2px;
        min-height: 62px;
        padding: 8px;
      }

      .output-readiness-card.warning {
        background: #fff8ef;
        border-color: #e8c18c;
      }

      .output-readiness-card strong {
        color: #2c3e56;
        display: block;
      }

      .output-readiness-card span {
        color: #626c79;
        font-size: 0.74rem;
      }

      .review-bundle-card {
        background: #f7f8f4;
        border: 1px solid #d7ddc8;
        border-radius: 8px;
        display: grid;
        gap: 2px;
        min-height: 64px;
        padding: 8px;
      }

      .review-bundle-card.warning {
        background: #fff7ef;
        border-color: #e8c18c;
      }

      .review-bundle-card strong {
        color: #3f4728;
        display: block;
      }

      .review-bundle-card span {
        color: #68705f;
        font-size: 0.74rem;
      }

      .work-card {
        background: #f9faf8;
        border: 1px solid #dfe5e1;
        border-radius: 8px;
        display: grid;
        gap: 2px;
        padding: 8px;
      }

      .work-card strong {
        display: block;
      }

      .work-card span {
        color: #63706a;
        font-size: 0.76rem;
      }

      .metric {
        background: #f9faf8;
        border: 1px solid #dfe5e1;
        border-radius: 8px;
        padding: 8px;
      }

      .metric strong {
        display: block;
        font-size: 1.03rem;
      }

      .metric span {
        color: #63706a;
        display: block;
        font-size: 0.78rem;
      }

      .step-list {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        margin: 0;
        padding: 0;
      }

      .step-list li {
        align-items: center;
        border: 1px solid #dfe5e1;
        border-radius: 8px;
        display: grid;
        gap: 6px;
        grid-template-columns: 1fr;
        min-height: 66px;
        list-style: none;
        padding: 8px;
      }

      .step-state {
        border-radius: 999px;
        font-size: 0.66rem;
        font-weight: 850;
        padding: 3px 6px;
        text-align: center;
      }

      .step-state.done {
        background: #e5f2ee;
        color: #235348;
      }

      .step-state.current {
        background: #fff0da;
        color: #7a4b1d;
      }

      .step-state.waiting {
        background: #edf0ee;
        color: #66716c;
      }

      .step-copy strong {
        display: block;
      }

      .step-copy span {
        color: #63706a;
        display: none;
        font-size: 0.82rem;
      }

      .schedule-wrap {
        overflow-x: auto;
      }

      .schedule {
        border: 1px solid #d9dfda;
        border-radius: 8px;
        display: grid;
        grid-template-columns: 52px repeat(5, minmax(118px, 1fr));
        min-width: 642px;
        overflow: hidden;
      }

      .cell {
        align-items: flex-start;
        background: #ffffff;
        border-bottom: 1px solid #e4e8e5;
        border-right: 1px solid #e4e8e5;
        color: #27312e;
        display: flex;
        flex-direction: column;
        font-size: 0.82rem;
        min-height: 72px;
        padding: 8px;
      }

      .cell.header,
      .cell.time {
        align-items: center;
        background: #eef3ef;
        color: #65706b;
        font-weight: 800;
        justify-content: center;
      }

      .cell.lesson {
        background: #e8f4f0;
        color: #24584c;
        font-weight: 800;
      }

      .cell.lesson.choice {
        background: #fff2dc;
        color: #7b4f20;
      }

      .cell.lesson.problem {
        background: #f9e5de;
        color: #873d27;
      }

      .cell.lesson.changed {
        background: #e9edf7;
        color: #33436c;
      }

      .lesson-line {
        border-bottom: 1px solid rgba(37, 88, 76, 0.18);
        display: grid;
        gap: 1px;
        padding-bottom: 5px;
        width: 100%;
      }

      .lesson-line + .lesson-line {
        padding-top: 5px;
      }

      .lesson-line:last-child {
        border-bottom: 0;
        padding-bottom: 0;
      }

      .cell small {
        color: inherit;
        font-size: 0.72rem;
        font-weight: 650;
        margin-top: 2px;
        opacity: 0.76;
      }

      .info-list,
      .issue-list,
      .review-list,
      .setup-grid {
        display: grid;
        gap: 7px;
      }

      .info,
      .issue,
      .review-item,
      .setup-item {
        border: 1px solid #dfe5e1;
        border-radius: 8px;
        padding: 9px;
      }

      .issue.problem {
        background: #fff8f5;
        border-color: #e2a78f;
      }

      .issue.answer,
      .info,
      .review-item,
      .setup-item {
        background: #f2faf7;
        border-color: #a8cec2;
      }

      .issue strong,
      .info strong,
      .review-item strong,
      .setup-item strong {
        display: block;
      }

      .issue span,
      .info span,
      .review-item span,
      .setup-item span,
      .note-list li,
      .helper-copy {
        color: #63706a;
        font-size: 0.78rem;
      }

      .review-item {
        align-items: center;
        display: grid;
        gap: 8px;
        grid-template-columns: 1fr auto;
      }

      .review-copy {
        display: grid;
        gap: 2px;
      }

      .review-change {
        background: #ffffff;
        border: 1px solid #cfd7d1;
        border-radius: 999px;
        color: #27312e;
        font-size: 0.78rem;
        font-weight: 850;
        min-height: 32px;
        padding: 5px 10px;
        white-space: nowrap;
      }

      .review-actions {
        display: flex;
        justify-content: flex-end;
        margin-top: 8px;
      }

      .choice-list {
        display: grid;
        gap: 6px;
        margin-top: 8px;
      }

      .setup-actions {
        display: grid;
        gap: 6px;
        grid-template-columns: 1fr;
        margin-top: 8px;
      }

      .setup-step-controls {
        align-items: center;
        display: flex;
        gap: 8px;
        justify-content: space-between;
        margin-top: 12px;
      }

      .setup-step-controls .action-button {
        min-width: 92px;
      }

      .setup-actions[hidden],
      #setup-step-controls[hidden],
      #setup-action-label[hidden],
      #setup-summary-list[hidden] {
        display: none;
      }

      .setup-summary-strip {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 10px;
      }

      .foundation-stepper {
        align-items: start;
        display: grid;
        gap: 0;
        grid-template-columns: repeat(14, minmax(0, 1fr));
        margin: 2px auto 16px;
        max-width: 1080px;
        overflow: visible;
        padding: 3px 0 8px;
      }

      .foundation-stepper[hidden] {
        display: none;
      }

      .foundation-step {
        align-items: center;
        background: transparent;
        border: 0;
        color: #7f909a;
        display: grid;
        gap: 4px;
        justify-items: center;
        min-width: 0;
        padding: 0;
        position: relative;
        text-align: center;
      }

      .foundation-step::before {
        background: #dbe6ed;
        content: "";
        height: 1px;
        left: 0;
        position: absolute;
        right: 0;
        top: 13px;
        z-index: 0;
      }

      .foundation-step:first-child::before {
        left: 50%;
      }

      .foundation-step:last-child::before {
        right: 50%;
      }

      .foundation-step-number {
        align-items: center;
        background: #ffffff;
        border: 2px solid #d5e2e9;
        border-radius: 999px;
        color: #7f909a;
        display: inline-flex;
        font-size: 0.78rem;
        font-weight: 900;
        height: 28px;
        justify-content: center;
        position: relative;
        width: 28px;
        z-index: 1;
      }

      .foundation-step strong {
        color: inherit;
        font-size: clamp(0.58rem, 0.5rem + 0.18vw, 0.72rem);
        font-weight: 850;
        line-height: 1.15;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .foundation-step.done::before,
      .foundation-step.active::before {
        background: #55bde8;
      }

      .foundation-step.done .foundation-step-number {
        background: #e4f7ff;
        border-color: #38aee4;
        color: #1979a9;
      }

      .foundation-step.active {
        color: #0f6f9c;
      }

      .foundation-step.active .foundation-step-number {
        animation: currentStepGlow 2.8s ease-in-out infinite;
        background: #f8fdff;
        border-color: #1fa3db;
        color: #0f6f9c;
      }

      .setup-choice-group {
        background: #fbfcfb;
        border: 1px solid #dfe5e1;
        border-radius: 8px;
        display: grid;
        gap: 6px;
        padding: 9px;
      }

      .setup-form {
        display: grid;
        gap: 10px;
      }

      .setup-form.setup-motion-next,
      .setup-grid.setup-motion-next {
        animation: setupStepNext 220ms ease both;
      }

      .setup-form.setup-motion-previous,
      .setup-grid.setup-motion-previous {
        animation: setupStepPrevious 220ms ease both;
      }

      .setup-form-header {
        align-items: end;
        display: grid;
        gap: 8px;
        grid-template-columns: minmax(220px, 360px) minmax(220px, 360px);
        justify-content: start;
      }

      .setup-field,
      .setup-segment-field,
      .setup-note-box {
        background: #ffffff;
        border: 1px solid #d8e8f0;
        border-radius: 8px;
        display: grid;
        gap: 5px;
        padding: 10px;
      }

      .setup-field label,
      .setup-segment-field > span,
      .setup-note-box strong {
        color: #173243;
        font-size: 0.82rem;
        font-weight: 900;
      }

      .field-heading,
      .setup-table-title-main {
        align-items: center;
        display: flex;
        gap: 5px;
      }

      .inline-help {
        align-items: center;
        background: #ffffff;
        border: 1px solid #c6d7e0;
        border-radius: 999px;
        color: #5f7581;
        cursor: help;
        display: inline-flex;
        font-size: 0.68rem;
        font-weight: 900;
        height: 17px;
        justify-content: center;
        line-height: 1;
        padding: 0;
        position: relative;
        width: 17px;
        z-index: 120;
      }

      .inline-help::after,
      .inline-help::before {
        opacity: 0;
        pointer-events: none;
        position: absolute;
        transition:
          opacity 0.12s ease,
          transform 0.12s ease,
          visibility 0s linear 0.12s;
        visibility: hidden;
        z-index: 1300;
      }

      .inline-help::after {
        background: #173243;
        border-radius: 7px;
        bottom: calc(100% + 8px);
        box-shadow: 0 10px 22px rgba(23, 50, 67, 0.18);
        color: #ffffff;
        content: attr(data-tooltip);
        font-size: 0.72rem;
        font-weight: 750;
        left: 50%;
        line-height: 1.45;
        max-width: 250px;
        min-width: 190px;
        padding: 7px 9px;
        text-align: left;
        transform: translate(-50%, 4px);
        white-space: normal;
      }

      .inline-help::before {
        border-color: #173243 transparent transparent transparent;
        border-style: solid;
        border-width: 6px 5px 0 5px;
        bottom: calc(100% + 3px);
        content: "";
        left: 50%;
        transform: translate(-50%, 4px);
      }

      .inline-help:hover::after,
      .inline-help:hover::before,
      .inline-help:focus-visible::after,
      .inline-help:focus-visible::before {
        opacity: 1;
        transform: translate(-50%, 0);
        transition-delay: 0.2s, 0.2s, 0s;
        visibility: visible;
      }

      .inline-help:hover,
      .inline-help:focus-visible {
        z-index: 1300;
      }

      .course-tab-help::after {
        bottom: auto;
        top: calc(100% + 8px);
        transform: translate(-50%, -4px);
      }

      .course-tab-help::before {
        border-color: transparent transparent #173243 transparent;
        border-width: 0 5px 6px 5px;
        bottom: auto;
        top: calc(100% + 3px);
        transform: translate(-50%, -4px);
      }

      .course-tab-help:hover::after,
      .course-tab-help:hover::before,
      .course-tab-help:focus-visible::after,
      .course-tab-help:focus-visible::before {
        transform: translate(-50%, 0);
      }

      .teacher-add-row input,
      .setup-field input,
      .setup-field select {
        background: #fbfdfe;
        border: 1px solid #c8dce7;
        border-radius: 7px;
        color: #173243;
        font: inherit;
        font-size: 0.84rem;
        font-weight: 800;
        min-height: 32px;
        padding: 5px 8px;
      }

      .school-year-control {
        align-items: center;
        display: grid;
        position: relative;
      }

      .school-year-control input {
        padding-right: 68px;
      }

      .school-year-unit {
        color: #527286;
        font-size: 0.78rem;
        font-weight: 900;
        pointer-events: none;
        position: absolute;
        right: 10px;
      }

      .setup-field small,
      .setup-note-box span {
        color: #5d7684;
        font-size: 0.74rem;
      }

      .lesson-rule-grid {
        display: grid;
        gap: 8px;
        grid-template-columns: minmax(180px, 0.75fr) repeat(2, minmax(220px, 1fr));
      }

      .lesson-rule-card {
        background: #ffffff;
        border: 1px solid #d8e8f0;
        border-radius: 8px;
        display: grid;
        gap: 8px;
        padding: 10px;
      }

      .lesson-rule-card select {
        background: #fbfdfe;
        border: 1px solid #c8dce7;
        border-radius: 7px;
        color: #173243;
        font: inherit;
        font-size: 0.84rem;
        font-weight: 800;
        min-height: 32px;
        padding: 5px 8px;
      }

      .lesson-rule-heading,
      .lesson-rule-check {
        align-items: center;
        display: flex;
        gap: 6px;
      }

      .lesson-rule-heading strong {
        color: #173243;
        font-size: 0.82rem;
        font-weight: 900;
      }

      .lesson-rule-value {
        background: #f2f9fd;
        border: 1px solid #c8dce7;
        border-radius: 7px;
        color: #173243;
        font-size: 0.84rem;
        font-weight: 900;
        min-height: 32px;
        padding: 6px 9px;
      }

      .lesson-rule-check {
        color: #244756;
        font-size: 0.78rem;
        font-weight: 850;
      }

      .lesson-rule-check input {
        accent-color: #1fa3db;
        height: 16px;
        margin: 0;
        width: 16px;
      }

      .lesson-allocation-shell {
        align-items: start;
        display: grid;
        gap: 12px;
        grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr);
      }

      .lesson-allocation-main,
      .lesson-allocation-side {
        display: grid;
        gap: 10px;
      }

      .lesson-sentence-card,
      .lesson-class-card,
      .lesson-dashboard-card,
      .lesson-history-card {
        background: #ffffff;
        border: 1px solid #d8e8f0;
        border-radius: 12px;
        box-shadow: 0 4px 14px rgba(20, 70, 96, 0.035);
        padding: 13px 14px;
      }

      .lesson-sentence-card {
        overflow: visible;
        position: relative;
        z-index: 5;
      }

      .lesson-card-title {
        align-items: center;
        display: flex;
        gap: 6px;
        justify-content: space-between;
        margin-bottom: 10px;
      }

      .lesson-card-title strong {
        color: #173243;
        font-size: 0.9rem;
      }

      .lesson-sentence {
        align-items: baseline;
        color: #173243;
        display: flex;
        flex-wrap: wrap;
        font-size: 1rem;
        font-weight: 850;
        gap: 6px;
        line-height: 1.85;
        margin: 0;
      }

      .sentence-token {
        background: #f7fbfd;
        border: 1px solid #c7dce7;
        border-radius: 7px;
        color: #0d668f;
        font: inherit;
        font-size: 0.96rem;
        font-weight: 900;
        min-width: 112px;
        min-height: 28px;
        padding: 2px 24px 2px 9px;
        position: relative;
        text-align: left;
      }

      .sentence-token::after {
        color: #5d7684;
        content: "▾";
        font-size: 0.72rem;
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
      }

      .sentence-token[aria-expanded="true"] {
        background: #dff4ff;
        border-color: #1fa3db;
        box-shadow: 0 0 0 3px rgba(31, 163, 219, 0.12);
      }

      .sentence-picker {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(15, 45, 64, 0.08);
        display: grid;
        gap: 6px;
        left: var(--lesson-picker-left, 0);
        max-width: min(360px, calc(100% - 32px));
        min-width: 0;
        padding: 8px;
        position: absolute;
        top: var(--lesson-picker-top, calc(100% - 8px));
        width: var(--lesson-picker-width, 240px);
        z-index: 30;
      }

      .sentence-picker[data-lesson-picker="hours"] {
        gap: 0;
        min-width: 0;
        padding: 6px;
      }

      .sentence-picker[hidden] {
        display: none;
      }

      .sentence-search {
        background: #f8fcff;
        border: 1px solid #c8dce7;
        border-radius: 7px;
        color: #173243;
        font: inherit;
        font-size: 0.8rem;
        font-weight: 800;
        min-height: 32px;
        padding: 5px 9px;
        width: 100%;
      }

      .sentence-option-list {
        display: grid;
        gap: 0;
        max-height: 190px;
        overflow-y: auto;
        padding-right: 2px;
      }

      .sentence-picker[data-lesson-picker="hours"] .sentence-option-list {
        gap: 0;
        max-height: none;
        overflow: visible;
        padding-right: 0;
      }

      .sentence-picker button {
        background: #ffffff;
        border: 0;
        border-radius: 6px;
        color: #173243;
        display: flex;
        font: inherit;
        font-size: 0.78rem;
        font-weight: 850;
        justify-content: flex-start;
        min-height: 32px;
        overflow: hidden;
        padding: 6px 9px;
        text-align: left;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
      }

      .sentence-picker button:hover {
        background: #ebf8ff;
      }

      .sentence-picker[data-lesson-picker="hours"] button {
        min-height: 30px;
      }

      .sentence-picker button[aria-pressed="true"] {
        background: #e7f7ff;
        color: #0f6f9c;
      }

      .sentence-picker button[hidden] {
        display: none;
      }

      .class-tile-groups {
        display: grid;
        gap: 10px;
      }

      .lesson-grade-tabs {
        margin-bottom: 10px;
      }

      .lesson-target-copy {
        align-items: center;
        color: #5d7684;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: space-between;
        margin-bottom: 8px;
      }

      .lesson-target-copy strong {
        color: #173243;
        font-size: 0.84rem;
        font-weight: 950;
      }

      .lesson-target-copy span {
        font-size: 0.72rem;
        font-weight: 750;
      }

      .class-tile-group {
        background: #f8fafc;
        border: 1px solid #e3eef4;
        border-radius: 10px;
        display: grid;
        gap: 8px;
        padding: 10px;
      }

      .class-tile-group > strong {
        border-bottom: 1px solid #e3eef4;
        color: #456273;
        font-size: 0.76rem;
        padding-bottom: 7px;
      }

      .class-tile-grid {
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(var(--visible-class-columns, 12), 44px);
      }

      .lesson-class-tile {
        background: #ffffff;
        border: 1px solid #c8dce7;
        border-radius: 7px;
        color: #173243;
        cursor: pointer;
        font: inherit;
        font-size: 0.76rem;
        font-weight: 850;
        height: 40px;
        padding: 0;
        transition:
          background 120ms ease,
          border-color 120ms ease,
          box-shadow 120ms ease,
          color 120ms ease,
          transform 120ms ease;
        width: 44px;
      }

      .lesson-class-tile:hover {
        border-color: #1fa3db;
        box-shadow: 0 6px 14px rgba(31, 163, 219, 0.14);
        transform: translateY(-1px);
      }

      .lesson-class-tile.is-selected {
        background: #e5f8ef;
        border-color: #17a773;
        box-shadow: inset 0 0 0 2px rgba(23, 167, 115, 0.16);
        color: #116747;
      }

      .lesson-class-tile.is-taken,
      .lesson-class-tile:disabled {
        background: #eef2f4;
        border-color: #d6e0e5;
        color: #8999a2;
        cursor: not-allowed;
        transform: none;
      }

      .lesson-section-warning {
        background: #fff8e8;
        border: 1px solid #efd28e;
        border-radius: 10px;
        color: #654717;
        font-size: 0.75rem;
        font-weight: 850;
        margin: 0 0 8px;
        padding: 8px 10px;
      }

      .lesson-section-groups {
        display: grid;
        gap: 10px;
      }

      .lesson-section-group {
        background: #f8fafc;
        border: 1px solid #e3eef4;
        border-radius: 10px;
        display: grid;
        gap: 8px;
        padding: 10px;
      }

      .lesson-section-group-title {
        align-items: center;
        border-bottom: 1px solid #e3eef4;
        display: flex;
        justify-content: space-between;
        padding-bottom: 7px;
      }

      .lesson-section-group-title strong {
        color: #456273;
        font-size: 0.76rem;
        font-weight: 900;
      }

      .lesson-section-group-title span {
        color: #7d929e;
        font-size: 0.68rem;
        font-weight: 800;
      }

      .lesson-section-grid {
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
      }

      .lesson-section-card {
        background: #ffffff;
        border: 1px solid #c8dce7;
        border-radius: 9px;
        color: #173243;
        cursor: pointer;
        display: grid;
        font: inherit;
        gap: 4px;
        min-height: 76px;
        padding: 10px;
        text-align: left;
        transition:
          background 120ms ease,
          border-color 120ms ease,
          box-shadow 120ms ease,
          color 120ms ease,
          transform 120ms ease;
      }

      .lesson-section-card:hover {
        border-color: #1fa3db;
        box-shadow: 0 7px 16px rgba(31, 163, 219, 0.14);
        transform: translateY(-1px);
      }

      .lesson-section-card strong {
        color: #173243;
        font-size: 0.82rem;
        font-weight: 950;
      }

      .lesson-section-card span,
      .lesson-section-card small {
        color: #64748b;
        font-size: 0.7rem;
        font-weight: 750;
      }

      .lesson-section-card.is-selected {
        background: #e5f8ef;
        border-color: #17a773;
        box-shadow: inset 0 0 0 2px rgba(23, 167, 115, 0.16);
      }

      .lesson-section-card.is-assigned {
        background: #eaf7ff;
        border-color: #93cfe9;
      }

      .lesson-section-card.is-taken {
        background: #eef2f4;
        border-color: #d6e0e5;
      }

      .lesson-dashboard-card {
        background: linear-gradient(180deg, #f8fcff 0%, #ffffff 100%);
      }

      .lesson-side-card {
        background: #ffffff;
        display: grid;
        gap: 12px;
      }

      .lesson-side-section {
        display: grid;
        gap: 8px;
      }

      .lesson-side-section + .lesson-side-section {
        border-top: 1px solid #e7eff4;
        padding-top: 10px;
      }

      .lesson-dashboard-list {
        display: grid;
        gap: 0;
      }

      .lesson-dashboard-row {
        align-items: center;
        border-bottom: 1px solid #e7eff4;
        display: flex;
        justify-content: space-between;
        min-height: 32px;
        padding: 6px 0;
      }

      .lesson-dashboard-row:last-child {
        border-bottom: 0;
      }

      .lesson-dashboard-row span {
        color: #5d7684;
        font-size: 0.76rem;
        font-weight: 800;
      }

      .lesson-dashboard-row strong {
        color: #173243;
        font-size: 1rem;
        font-weight: 950;
      }

      .lesson-grade-summary {
        background: #f8fbfd;
        border: 1px solid #e1edf3;
        border-radius: 10px;
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(3, 1fr);
        padding: 8px;
      }

      .lesson-grade-summary span {
        color: #5d7684;
        display: grid;
        font-size: 0.68rem;
        font-weight: 800;
        gap: 2px;
      }

      .lesson-grade-summary strong {
        color: #173243;
        font-size: 0.72rem;
        font-weight: 950;
      }

      .lesson-dashboard-hint {
        align-items: flex-start;
        background: #fff8e8;
        border: 1px solid #efd28e;
        border-radius: 10px;
        color: #654717;
        display: flex;
        font-size: 0.78rem;
        font-weight: 850;
        gap: 7px;
        margin: 2px 0 0;
        padding: 8px;
      }

      .lesson-dashboard-hint::before {
        align-items: center;
        background: #fff1c7;
        border-radius: 999px;
        color: #8a5b11;
        content: "i";
        display: inline-flex;
        flex: 0 0 auto;
        font-size: 0.68rem;
        font-weight: 950;
        height: 17px;
        justify-content: center;
        width: 17px;
      }

      .lesson-dashboard-hint.is-complete {
        background: #e9f9f1;
        border-color: #9bdcbc;
        color: #116747;
      }

      .lesson-dashboard-hint.is-complete::before {
        background: #c9f1dd;
        color: #116747;
        content: "✓";
      }

      .lesson-dashboard-hint.is-over {
        background: #fff1f2;
        border-color: #f3b6bd;
        color: #8b1e25;
      }

      .lesson-dashboard-hint.is-over::before {
        background: #ffdfe3;
        color: #8b1e25;
        content: "!";
      }

      .lesson-dashboard-hint.is-pulsing {
        animation: lessonCompletePulse 500ms ease;
      }

      .lesson-assign-button {
        margin-top: 10px;
        min-height: 42px;
        padding: 8px 12px;
        width: 100%;
      }

      .lesson-history-list {
        display: grid;
        gap: 8px;
        overflow: visible;
      }

      .lesson-history-list.is-scrollable {
        max-height: 204px;
        overflow-y: auto;
        padding-right: 4px;
      }

      .lesson-history-item {
        border-bottom: 1px solid #e7eff4;
        display: block;
        padding: 12px 0;
        position: relative;
      }

      .lesson-history-item:first-child {
        padding-top: 0;
      }

      .lesson-history-item:last-child {
        border-bottom: 0;
        padding-bottom: 0;
      }

      .lesson-history-item strong {
        color: #173243;
        font-size: 0.82rem;
        font-weight: 950;
      }

      .lesson-history-item span,
      .lesson-empty {
        color: #64748b;
        font-size: 0.72rem;
        font-weight: 650;
      }

      .lesson-history-copy {
        display: grid;
        gap: 3px;
        min-width: 0;
        padding-right: 64px;
      }

      .lesson-history-title-row {
        align-items: baseline;
        display: flex;
        gap: 5px;
        min-width: 0;
        white-space: nowrap;
      }

      .lesson-history-title-row strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .lesson-history-hours {
        color: #64748b;
        font-size: 0.76rem;
        font-weight: 750;
      }

      .lesson-history-detail {
        display: block;
        line-height: 1.45;
        margin-top: 3px;
        white-space: nowrap;
      }

      .lesson-history-remove {
        background: #ffffff;
        border: 1px solid #d7e3ea;
        border-radius: 6px;
        color: #5d7684;
        font: inherit;
        font-size: 0.68rem;
        font-weight: 850;
        min-height: 24px;
        padding: 3px 6px;
        position: absolute;
        right: 0;
        top: 10px;
        white-space: nowrap;
      }

      .lesson-history-remove:hover {
        background: #f8fbfd;
        border-color: #b9d3e1;
        color: #173243;
      }

      .lesson-side-section.lesson-history-card {
        background: #fbfdfe;
        border: 1px solid #e1edf3;
        border-radius: 12px;
        padding: 20px;
      }

      .lesson-summary-button {
        font-size: 0.76rem;
        margin-top: 6px;
        min-height: 38px;
        padding: 7px 12px;
        width: 100%;
      }

      .lesson-summary-fab {
        background: linear-gradient(135deg, #218fce 0%, #4bb8e8 100%);
        border: 1px solid #1b8fc6;
        border-radius: 999px;
        bottom: 22px;
        box-shadow: 0 12px 30px rgba(31, 143, 206, 0.22);
        color: #ffffff;
        font: inherit;
        font-size: 0.78rem;
        font-weight: 900;
        min-height: 38px;
        padding: 8px 14px;
        position: fixed;
        right: 24px;
        z-index: 24;
      }

      .lesson-summary-fab span {
        display: block;
        font-size: 0.64rem;
        font-weight: 800;
        opacity: 0.82;
      }

      .lesson-summary-drawer {
        inset: 0;
        position: fixed;
        z-index: 80;
      }

      .lesson-summary-drawer[hidden] {
        display: none;
      }

      .lesson-summary-scrim {
        background: rgba(12, 31, 42, 0.28);
        inset: 0;
        position: absolute;
      }

      .lesson-summary-panel {
        animation: setupStepNext 180ms ease both;
        background: #f8fcff;
        border-left: 1px solid #c8dce7;
        box-shadow: -18px 0 38px rgba(18, 55, 74, 0.16);
        display: grid;
        grid-template-rows: auto auto minmax(0, 1fr) auto;
        height: 100%;
        margin-left: auto;
        max-width: none;
        padding: 18px;
        position: relative;
        width: 90vw;
      }

      .lesson-summary-panel header {
        align-items: center;
        display: flex;
        gap: 12px;
        justify-content: space-between;
        padding-bottom: 12px;
      }

      .lesson-summary-panel header > div:first-child {
        min-width: 0;
      }

      .lesson-summary-header-actions {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-end;
      }

      .lesson-summary-export-action {
        background: #ffffff;
        border: 1px solid #bdddeb;
        border-radius: 8px;
        color: #173243;
        font-size: 0.78rem;
        font-weight: 850;
        min-height: 32px;
        padding: 6px 10px;
        white-space: nowrap;
      }

      .lesson-summary-export-action[aria-disabled="true"] {
        cursor: default;
      }

      .lesson-summary-panel h2 {
        font-size: 1.02rem;
        margin: 0;
      }

      .lesson-summary-panel p {
        color: #5d7684;
        font-size: 0.76rem;
        margin: 4px 0 0;
      }

      .lesson-summary-stats {
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-bottom: 12px;
      }

      .lesson-summary-stat {
        background: #ffffff;
        border: 1px solid #d8e8f0;
        border-radius: 10px;
        display: grid;
        gap: 2px;
        padding: 10px;
      }

      .lesson-summary-stat span {
        color: #5d7684;
        font-size: 0.7rem;
        font-weight: 850;
      }

      .lesson-summary-stat strong {
        color: #173243;
        font-size: 1rem;
        font-weight: 950;
      }

      .lesson-summary-table-wrap {
        background: #ffffff;
        border: 1px solid #d8e8f0;
        border-radius: 12px;
        min-height: 0;
        overflow: auto;
      }

      .lesson-summary-table {
        border-collapse: separate;
        border-spacing: 0;
        min-width: 1320px;
        width: 100%;
      }

      .lesson-summary-table th,
      .lesson-summary-table td {
        border-bottom: 1px solid #e7eff4;
        border-right: 1px solid #edf3f6;
        color: #173243;
        font-size: 0.74rem;
        min-width: 58px;
        padding: 8px;
        text-align: center;
        white-space: nowrap;
      }

      .lesson-summary-table th {
        background: #f3f9fc;
        color: #5d7684;
        font-weight: 900;
      }

      .lesson-summary-table thead th {
        position: sticky;
        top: 0;
        z-index: 3;
      }

      .lesson-summary-table .sticky-col {
        left: 0;
        min-width: 118px;
        position: sticky;
        text-align: left;
        z-index: 4;
      }

      .lesson-summary-table .sticky-subject-col {
        left: 118px;
        min-width: 112px;
        position: sticky;
        text-align: left;
        z-index: 4;
      }

      .lesson-summary-table td.sticky-col,
      .lesson-summary-table td.sticky-subject-col {
        background: #ffffff;
      }

      .lesson-summary-table th.sticky-col,
      .lesson-summary-table th.sticky-subject-col {
        z-index: 6;
      }

      .lesson-summary-row.is-current td,
      .lesson-summary-row.is-current td.sticky-col,
      .lesson-summary-row.is-current td.sticky-subject-col {
        background: #fffbe8;
      }

      .lesson-summary-row.is-draft td,
      .lesson-summary-row.is-draft td.sticky-col,
      .lesson-summary-row.is-draft td.sticky-subject-col {
        background: #f5fbff;
      }

      .lesson-summary-cell-filled {
        background: #e6f6ff;
        color: #0f6f9c;
        font-weight: 950;
      }

      .lesson-summary-cell-selected {
        box-shadow: inset 0 0 0 2px rgba(23, 167, 115, 0.28);
      }

      .lesson-summary-edit-cell {
        background: transparent;
        border: 0;
        color: inherit;
        cursor: pointer;
        display: inline-flex;
        font: inherit;
        font-weight: 950;
        justify-content: center;
        min-width: 26px;
        padding: 0;
      }

      .lesson-summary-edit-cell:hover {
        color: #116747;
        text-decoration: underline;
      }

      .lesson-summary-total {
        background: #f3f9fc;
        font-weight: 950;
      }

      .lesson-summary-total.is-complete {
        background: #e9f9f1;
        color: #116747;
      }

      .lesson-summary-total.is-under {
        background: #fff8e8;
        color: #8a5b11;
      }

      .lesson-summary-total.is-over {
        background: #fff1f2;
        color: #8b1e25;
      }

      .lesson-summary-empty {
        color: #64748b;
        font-weight: 750;
        padding: 22px;
        text-align: center;
      }

      .lesson-summary-note {
        color: #5d7684;
        font-size: 0.72rem;
        margin: 10px 0 0;
      }

      .setup-segment {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .setup-segment button {
        background: #ffffff;
        border: 1px solid #c8dce7;
        border-radius: 7px;
        color: #173243;
        font: inherit;
        font-weight: 850;
        min-height: 32px;
      }

      .setup-segment button[aria-pressed="true"] {
        background: #e7f7ff;
        border-color: #1fa3db;
        color: #0f6f9c;
      }

      .setup-table-card {
        background: #ffffff;
        border: 1px solid #dfe9ee;
        border-radius: 8px;
        padding: 10px 12px;
      }

      .setup-table-title {
        align-items: center;
        display: flex;
        gap: 8px;
        justify-content: space-between;
        margin-bottom: 8px;
      }

      .setup-table-title strong {
        color: #173243;
        font-size: 0.9rem;
      }

      .setup-table-title span {
        color: #5d7684;
        font-size: 0.74rem;
      }

      .setup-number-table {
        border-collapse: collapse;
        table-layout: fixed;
        width: 100%;
      }

      .setup-number-table th,
      .setup-number-table td {
        border-top: 1px solid #edf2f5;
        color: #263b48;
        padding: 8px 6px;
        text-align: center;
      }

      .setup-number-table th {
        color: #5d7684;
        font-size: 0.74rem;
        font-weight: 900;
      }

      .setup-number-table th .field-heading {
        justify-content: center;
      }

      .setup-number-table th:first-child,
      .setup-number-table td:first-child {
        text-align: left;
        width: 80px;
      }

      .setup-number-table th:nth-child(3),
      .setup-number-table td:nth-child(3) {
        width: 240px;
      }

      .setup-number-table th:nth-child(n + 4),
      .setup-number-table td:nth-child(n + 4) {
        background: #f8fbfd;
      }

      .setup-number-table th:nth-child(4),
      .setup-number-table td:nth-child(4) {
        border-left: 1px solid #dfe9ee;
      }

      .setup-readonly-value {
        color: #173243;
        display: inline-flex;
        font-weight: 900;
        min-height: 28px;
        place-items: center;
      }

      .setup-inline-select {
        background: #fbfdfe;
        border: 1px solid #c8dce7;
        border-radius: 7px;
        color: #173243;
        font: inherit;
        font-size: 0.78rem;
        font-weight: 800;
        min-height: 30px;
        padding: 4px 8px;
        width: min(170px, 100%);
      }

      .class-name-cell {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
      }

      .class-name-cell .action-button {
        font-size: 0.76rem;
        min-height: 28px;
        padding: 4px 8px;
      }

      .number-stepper {
        align-items: center;
        display: inline-grid;
        grid-template-columns: 24px minmax(30px, 38px) 24px;
      }

      .number-stepper button,
      .number-stepper input {
        background: #ffffff;
        border: 1px solid #cfdae1;
        color: #173243;
        font: inherit;
        font-weight: 850;
        height: 28px;
        text-align: center;
      }

      .number-stepper button:first-child {
        border-radius: 7px 0 0 7px;
      }

      .number-stepper button:last-child {
        border-radius: 0 7px 7px 0;
      }

      .number-stepper input {
        border-left: 0;
        border-right: 0;
        min-width: 0;
        padding: 0 2px;
      }

      input[type="number"]::-webkit-inner-spin-button,
      input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
      }

      input[type="number"] {
        appearance: textfield;
        -moz-appearance: textfield;
      }

      .period-number-input {
        display: inline-grid;
        place-items: center;
      }

      .period-number-input input {
        background: #ffffff;
        border: 1px solid #cfdae1;
        border-radius: 7px;
        color: #173243;
        font: inherit;
        font-weight: 850;
        height: 28px;
        padding: 0 4px;
        text-align: center;
        transition:
          border-color 140ms ease,
          box-shadow 140ms ease,
          background 140ms ease;
        width: 42px;
      }

      .period-number-input input:hover,
      .period-number-input input:focus {
        background: #ffffff;
        border-color: #1fa3db;
        box-shadow: 0 0 0 3px rgba(31, 163, 219, 0.1);
        outline: 0;
      }

      .grade-mode-toggle {
        background: #eef6fb;
        border: 1px solid #d0e2ec;
        border-radius: 999px;
        display: inline-grid;
        gap: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 172px;
        padding: 3px;
      }

      .grade-mode-toggle button {
        background: transparent;
        border: 0;
        border-radius: 999px;
        color: #173243;
        font: inherit;
        font-size: 0.76rem;
        font-weight: 850;
        min-height: 28px;
        padding: 3px 5px;
        transition:
          background 160ms ease,
          box-shadow 160ms ease,
          color 160ms ease;
      }

      .grade-mode-toggle button[aria-pressed="true"] {
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(31, 163, 219, 0.16);
        color: #0f6f9c;
      }

      .setup-compact-grid {
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .setup-choice-title {
        align-items: center;
        display: flex;
        gap: 6px;
        justify-content: space-between;
      }

      .setup-choice-title strong {
        color: #27312e;
        font-size: 0.9rem;
      }

      .setup-choice-title span {
        color: #63706a;
        font-size: 0.76rem;
        text-align: right;
      }

      .setup-choice-options {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .result-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 8px;
      }

      .choice-button {
        background: #ffffff;
        border: 1px solid #cfd7d1;
        border-radius: 8px;
        color: #27312e;
        display: grid;
        gap: 3px;
        padding: 8px;
        text-align: left;
      }

      .setup-button {
        background: #ffffff;
        border: 1px solid #cfd7d1;
        border-radius: 8px;
        color: #27312e;
        display: grid;
        gap: 3px;
        padding: 8px;
        text-align: left;
      }

      .result-button {
        background: #ffffff;
        border: 1px solid #cfd7d1;
        border-radius: 8px;
        color: #27312e;
        font-weight: 850;
        min-height: 32px;
        padding: 6px 10px;
      }

      .choice-button[aria-pressed="true"] {
        background: #e7f3ef;
        border-color: #80baad;
      }

      .setup-button[aria-pressed="true"] {
        background: #fff1df;
        border-color: #e9bd82;
      }

      .choice-button strong {
        display: block;
      }

      .setup-button strong {
        display: block;
      }

      .choice-button span {
        color: #63706a;
        font-size: 0.78rem;
      }

      .setup-button span {
        color: #63706a;
        font-size: 0.78rem;
      }

      .memo {
        border: 1px solid #cfd7d1;
        border-radius: 8px;
        min-height: 100px;
        padding: 9px;
        resize: vertical;
        width: 100%;
      }

      .note-list {
        display: grid;
        gap: 6px;
        margin: 0;
        padding: 0;
      }

      .note-list li {
        border-bottom: 1px solid #edf0ee;
        list-style: none;
        padding-bottom: 6px;
      }

      .guide-popover {
        background: rgba(22, 35, 31, 0.32);
        display: grid;
        inset: 0;
        padding: 18px;
        place-items: center;
        position: fixed;
        z-index: 1200;
      }

      .guide-popover[hidden] {
        display: none;
      }

      .setup-guide-drawer {
        inset: 0;
        pointer-events: none;
        position: fixed;
        z-index: 1180;
      }

      .setup-guide-drawer[hidden] {
        display: none;
      }

      .setup-guide-panel {
        animation: setupGuideEnter 180ms ease both;
        background: #f9fdff;
        border-left: 1px solid #c8dce7;
        box-shadow: -18px 0 38px rgba(18, 55, 74, 0.14);
        display: grid;
        gap: 12px;
        grid-template-rows: auto minmax(0, 1fr);
        height: 100%;
        margin-left: auto;
        max-width: 420px;
        min-width: 340px;
        padding: 18px;
        pointer-events: auto;
        width: min(380px, 34vw);
      }

      .setup-guide-panel header {
        align-items: start;
        display: flex;
        gap: 12px;
        justify-content: space-between;
      }

      .setup-guide-panel h2 {
        color: #173243;
        font-size: 1rem;
        margin: 0;
      }

      .setup-guide-panel header p {
        color: #5d7684;
        font-size: 0.76rem;
        font-weight: 760;
        line-height: 1.45;
        margin: 5px 0 0;
      }

      .setup-guide-content {
        display: grid;
        gap: 10px;
        min-height: 0;
        overflow-y: auto;
        padding-right: 2px;
      }

      .setup-guide-card {
        background: #ffffff;
        border: 1px solid #d8e8f0;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(42, 97, 124, 0.05);
        display: grid;
        gap: 8px;
        padding: 12px;
      }

      .setup-guide-card strong {
        align-items: center;
        color: #173243;
        display: flex;
        font-size: 0.86rem;
        font-weight: 950;
        gap: 7px;
      }

      .setup-guide-index {
        align-items: center;
        background: #e5f7ff;
        border: 1px solid #a9d8ed;
        border-radius: 999px;
        color: #0d75a5;
        display: inline-flex;
        font-size: 0.68rem;
        height: 20px;
        justify-content: center;
        width: 20px;
      }

      .setup-guide-card ul {
        display: grid;
        gap: 6px;
        margin: 0;
        padding: 0;
      }

      .setup-guide-card li {
        color: #425865;
        font-size: 0.78rem;
        font-weight: 740;
        line-height: 1.5;
        list-style: none;
        padding-left: 16px;
        position: relative;
      }

      .setup-guide-card li::before {
        background: #45b7e6;
        border-radius: 999px;
        content: "";
        height: 5px;
        left: 2px;
        position: absolute;
        top: 0.55em;
        width: 5px;
      }

      .setup-guide-note {
        background: #fff8e6;
        border: 1px solid #f0d28d;
        border-radius: 12px;
        color: #70520c;
        font-size: 0.78rem;
        font-weight: 850;
        line-height: 1.5;
        padding: 10px 12px;
      }

      @keyframes setupGuideEnter {
        from {
          opacity: 0;
          transform: translateX(18px);
        }

        to {
          opacity: 1;
          transform: translateX(0);
        }
      }

      .guide-card {
        background: #ffffff;
        border: 1px solid #cfd7d1;
        border-radius: 8px;
        box-shadow: 0 16px 42px rgba(22, 35, 31, 0.18);
        max-width: 440px;
        padding: 16px;
        width: min(440px, 100%);
      }

      .class-name-card {
        max-width: 500px;
        padding: 18px;
        width: min(500px, 100%);
      }

      .homeroom-card {
        max-width: 560px;
        padding: 18px;
        width: min(560px, 100%);
      }

      .class-name-list {
        margin-top: 14px;
      }

      .homeroom-list {
        margin-top: 14px;
      }

      .class-name-card header,
      .homeroom-card header {
        margin-bottom: 10px;
      }

      .class-name-table-wrap,
      .homeroom-table-wrap {
        border: 1px solid #edf2f5;
        border-radius: 8px;
        overflow: hidden;
      }

      .homeroom-table-wrap {
        overflow: visible;
      }

      .class-name-list table,
      .homeroom-list table {
        border-collapse: collapse;
        table-layout: fixed;
        width: 100%;
      }

      .class-name-list th,
      .class-name-list td,
      .homeroom-list th,
      .homeroom-list td {
        border-top: 1px solid #edf2f5;
        padding: 6px 9px;
        text-align: left;
      }

      .class-name-list th:first-child,
      .class-name-list td:first-child {
        width: 72px;
      }

      .class-name-list th:nth-child(2),
      .class-name-list td:nth-child(2) {
        width: 280px;
      }

      .class-name-list th {
        color: #5d7684;
        font-size: 0.74rem;
        font-weight: 900;
      }

      .homeroom-list th:first-child,
      .homeroom-list td:first-child {
        width: 56px;
      }

      .homeroom-list th:nth-child(2),
      .homeroom-list td:nth-child(2) {
        width: auto;
      }

      .homeroom-list th {
        color: #5d7684;
        font-size: 0.74rem;
        font-weight: 900;
      }

      .class-name-list input,
      .homeroom-list input {
        background: #fbfdfe;
        border: 1px solid #c8dce7;
        border-radius: 7px;
        color: #173243;
        font: inherit;
        font-size: 0.8rem;
        font-weight: 800;
        min-height: 30px;
        padding: 4px 8px;
        width: 100%;
      }

      .class-name-list input {
        max-width: 280px;
      }

      .class-name-title-row {
        align-items: center;
        display: inline-flex;
        gap: 6px;
      }

      .class-name-card h2 {
        font-size: 0.92rem;
      }

      .homeroom-combo-cell {
        overflow: visible;
      }

      .homeroom-combo {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 34px;
        max-width: 360px;
        position: relative;
      }

      .homeroom-combo.is-open {
        z-index: 12;
      }

      .homeroom-combo .homeroom-combo-input {
        border-bottom-right-radius: 0;
        border-top-right-radius: 0;
        max-width: none;
      }

      .homeroom-combo-toggle {
        align-items: center;
        background: #fbfdfe;
        border: 1px solid #c8dce7;
        border-left: 0;
        border-radius: 0 7px 7px 0;
        color: #173243;
        display: inline-flex;
        font: inherit;
        font-size: 0.76rem;
        font-weight: 900;
        justify-content: center;
        min-height: 30px;
      }

      .homeroom-combo-list {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(15, 45, 64, 0.08);
        display: grid;
        gap: 6px;
        left: 0;
        max-height: 178px;
        overflow-y: auto;
        padding: 8px;
        position: absolute;
        right: 0;
        top: calc(100% + 6px);
        z-index: 20;
      }

      .homeroom-combo-list[hidden] {
        display: none;
      }

      .homeroom-combo-option {
        background: #ffffff;
        border: 1px solid #d8e8f0;
        border-radius: 7px;
        color: #173243;
        font: inherit;
        font-size: 0.78rem;
        font-weight: 850;
        min-height: 30px;
        padding: 5px 9px;
        text-align: left;
      }

      .homeroom-combo-option[aria-pressed="true"] {
        background: #e7f7ff;
        border-color: #1fa3db;
        color: #0f6f9c;
      }

      .homeroom-combo-option.is-already-assigned {
        background: #f1f5f9;
        border-color: #d5e0e7;
        color: #8a9aa5;
      }

      .homeroom-combo-option.is-already-assigned::after {
        color: #94a3ad;
        content: "이미 배정";
        float: right;
        font-size: 0.66rem;
        font-weight: 800;
        margin-left: 8px;
      }

      .homeroom-combo-option.is-already-assigned[aria-pressed="true"] {
        background: #e8f2f7;
        border-color: #9ec7d8;
        color: #466777;
      }

      .homeroom-combo-option[hidden] {
        display: none;
      }

      .homeroom-action-row {
        display: flex;
        gap: 8px;
        justify-content: flex-end;
        margin-top: 14px;
      }

      .homeroom-action-row .action-button {
        min-width: 78px;
      }

      .teacher-roster-form {
        display: grid;
        gap: 10px;
      }

      .teacher-roster-layout,
      .subject-roster-layout,
      .room-roster-layout {
        align-items: start;
        display: grid;
        gap: 12px;
        grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
        min-width: 0;
      }

      .subject-roster-layout,
      .room-roster-layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
      }

      .roster-work-header {
        align-items: center;
        display: flex;
        gap: 12px;
        grid-column: 1 / -1;
        justify-content: space-between;
      }

      .roster-work-header h3 {
        color: #173243;
        font-size: 0.92rem;
        margin: 0;
      }

      .roster-action-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-end;
        min-width: 0;
      }

      .teacher-panel,
      .subject-panel,
      .room-panel {
        align-content: start;
        align-self: start;
        background: #ffffff;
        border: 1px solid #dfe9ee;
        border-radius: 8px;
        display: grid;
        gap: 10px;
        min-width: 0;
        padding: 10px 12px;
      }

      .teacher-panel-title,
      .subject-panel-title,
      .room-panel-title {
        align-items: center;
        display: flex;
        gap: 6px;
        justify-content: space-between;
      }

      .teacher-panel-title strong,
      .subject-panel-title strong,
      .room-panel-title strong {
        color: #173243;
        font-size: 0.9rem;
      }

      .teacher-panel-title span,
      .subject-panel-title span,
      .room-panel-title span {
        color: #5d7684;
        font-size: 0.78rem;
        font-weight: 800;
      }

      .teacher-add-row,
      .subject-add-row {
        align-items: center;
        display: grid;
        gap: 8px;
        grid-template-columns: minmax(0, 1fr) auto;
      }

      .subject-entry-row {
        align-items: end;
        display: grid;
        gap: 8px;
        grid-template-columns: minmax(0, 1fr) minmax(120px, 0.58fr) auto;
      }

      .subject-entry-row .setup-field {
        background: transparent;
        border: 0;
        min-width: 0;
        padding: 0;
      }

      .subject-entry-row .setup-field input {
        min-height: 42px;
        width: 100%;
      }

      .subject-entry-row .action-button {
        min-height: 42px;
        min-width: 76px;
      }

      .room-entry-row {
        display: grid;
        gap: 10px;
      }

      .room-name-row {
        align-items: end;
        display: grid;
        gap: 8px;
        grid-template-columns: minmax(0, 1fr) auto;
      }

      .room-name-row .setup-field {
        background: transparent;
        border: 0;
        min-width: 0;
        padding: 0;
      }

      .room-name-row input {
        min-height: 42px;
      }

      .room-name-row .action-button {
        min-height: 42px;
        min-width: 76px;
      }

      .room-option-grid {
        display: grid;
        gap: 12px;
        grid-template-columns: minmax(0, 1fr);
      }

      .room-type-toggle {
        background: #f3f8fb;
        border: 1px solid #cfe1eb;
        border-radius: 999px;
        display: grid;
        gap: 3px;
        grid-template-columns: 1fr 1fr;
        max-width: 360px;
        min-height: 42px;
        padding: 3px;
        width: min(100%, 360px);
      }

      .room-type-button {
        background: transparent;
        border: 0;
        border-radius: 999px;
        color: #173243;
        font: inherit;
        font-size: 0.78rem;
        font-weight: 900;
        min-height: 34px;
        padding: 0 14px;
      }

      .room-type-button[aria-pressed="true"] {
        background: #ffffff;
        box-shadow: 0 1px 4px rgba(23, 50, 67, 0.1);
        color: #0f6f9c;
      }

      .room-capacity-field {
        align-items: start;
        display: grid;
        gap: 7px;
        justify-content: start;
        min-width: 0;
      }

      .room-capacity-field label {
        color: #5d7684;
        font-size: 0.72rem;
        font-weight: 900;
      }

      .room-capacity-stepper {
        align-items: center;
        border: 1px solid #cfe1eb;
        border-radius: 8px;
        display: grid;
        grid-template-columns: 34px minmax(42px, 1fr) 34px;
        min-height: 36px;
        overflow: hidden;
        width: 150px;
      }

      .room-capacity-stepper button,
      .room-capacity-stepper input {
        background: #ffffff;
        border: 0;
        color: #173243;
        font: inherit;
        font-weight: 900;
        height: 100%;
        min-height: 36px;
        text-align: center;
      }

      .room-capacity-stepper button {
        cursor: pointer;
      }

      .room-capacity-stepper input {
        border-left: 1px solid #cfe1eb;
        border-right: 1px solid #cfe1eb;
      }

      .subject-name-row {
        display: grid;
      }

      .subject-quick-panel,
      .room-quick-panel {
        border-top: 1px solid #edf2f5;
        display: grid;
        gap: 9px;
        padding-top: 10px;
      }

      .room-quick-panel {
        margin-top: 4px;
        padding-top: 14px;
      }

      .subject-quick-title,
      .room-quick-title {
        color: #5d7684;
        font-size: 0.76rem;
        font-weight: 900;
      }

      .subject-quick-list,
      .room-quick-list {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
      }

      .subject-quick-button,
      .room-quick-button {
        background: #f7fbfd;
        border: 1px solid #cfe1eb;
        border-radius: 999px;
        color: #173243;
        font: inherit;
        font-size: 0.76rem;
        font-weight: 850;
        min-height: 30px;
        padding: 5px 10px;
      }

      .subject-quick-button:hover,
      .room-quick-button:hover {
        background: #e7f7ff;
        border-color: #1fa3db;
        color: #0f6f9c;
      }

      .subject-quick-button[data-subject-group="language"] {
        background: #ebf8ff;
        border-color: #bfdbfe;
      }

      .subject-quick-button[data-subject-group="inquiry"] {
        background: #f0fdf4;
        border-color: #bbf7d0;
      }

      .subject-quick-button[data-subject-group="arts"] {
        background: #f3f4f6;
        border-color: #d1d5db;
      }

      .subject-quick-button[data-subject-group="language"]:hover,
      .subject-quick-button[data-subject-group="inquiry"]:hover,
      .subject-quick-button[data-subject-group="arts"]:hover {
        background: #e7f7ff;
        border-color: #1fa3db;
      }

      .room-quick-button[data-room-kind="special"] {
        background: #f0fdf4;
        border-color: #bbf7d0;
      }

      .teacher-add-row .action-button,
      .subject-add-row .action-button {
        min-height: 34px;
      }

      .teacher-clear-button,
      .teacher-import-button,
      .subject-clear-button,
      .subject-template-button,
      .subject-import-button,
      .room-clear-button,
      .room-import-button {
        justify-content: center;
        min-height: 34px;
        white-space: nowrap;
      }

      .teacher-list,
      .subject-list,
      .room-list {
        border: 1px solid #edf2f5;
        border-radius: 8px;
        display: grid;
        max-height: min(360px, calc(100vh - 420px));
        overflow-x: hidden;
        overflow-y: auto;
      }

      .teacher-list-header,
      .subject-list-header,
      .room-list-header,
      .teacher-list-row,
      .subject-list-row,
      .room-list-row {
        align-items: center;
        background: #ffffff;
        border-top: 1px solid #edf2f5;
        display: grid;
        gap: 8px;
        grid-template-columns: minmax(0, 1fr) 34px;
        min-height: 38px;
        padding: 6px 8px;
      }

      .teacher-list-header,
      .teacher-list-row {
        grid-template-columns: 78px minmax(0, 1fr) 34px;
      }

      .subject-list-header,
      .subject-list-row {
        grid-template-columns: 78px minmax(0, 1fr) 90px 34px;
      }

      .room-list-header,
      .room-list-row {
        grid-template-columns: 48px minmax(0, 1fr) 78px 78px 34px;
      }

      .teacher-list-header,
      .subject-list-header,
      .room-list-header {
        background: #fbfdfe;
        border-top: 0;
        color: #5d7684;
        font-size: 0.74rem;
        font-weight: 900;
        min-height: 32px;
      }

      .teacher-list-row:first-child,
      .subject-list-row:first-child,
      .room-list-row:first-child {
        border-top: 0;
      }

      .roster-order-cell {
        align-items: center;
        display: inline-flex;
        gap: 6px;
      }

      .drag-handle {
        align-items: center;
        background: transparent;
        border: 0;
        color: #8ba0aa;
        cursor: grab;
        display: inline-flex;
        font-size: 0.82rem;
        font-weight: 900;
        height: 18px;
        justify-content: center;
        line-height: 1;
        padding: 0;
        width: 12px;
      }

      .drag-handle:hover,
      .roster-order-cell:hover .drag-handle {
        color: #0f6f9c;
        cursor: grab;
      }

      .drag-handle::before {
        background-image: radial-gradient(#8ba0aa 1.05px, transparent 1.05px);
        background-position: center;
        background-size: 4px 4px;
        content: "";
        display: block;
        height: 13px;
        width: 8px;
      }

      .drag-handle:active {
        cursor: grabbing;
      }

      .teacher-list-row.is-dragging,
      .subject-list-row.is-dragging {
        opacity: 0.58;
      }

      .teacher-list-row.is-drag-over,
      .subject-list-row.is-drag-over {
        box-shadow: inset 0 2px 0 #29a7df;
      }

      .teacher-list-row strong,
      .subject-list-row strong,
      .room-list-row strong {
        color: #173243;
        font-size: 0.84rem;
      }

      .subject-list-row span,
      .room-list-row span {
        color: #5d7684;
        font-size: 0.78rem;
        font-weight: 800;
      }

      .subject-list-header span:first-child,
      .subject-list-header span:nth-child(3),
      .subject-list-header span:nth-child(4),
      .subject-list-row .roster-order-cell,
      .subject-list-row > span:nth-child(3) {
        justify-self: center;
        text-align: center;
      }

      .subject-list-row strong {
        padding-left: 6px;
      }

      .room-list-header span,
      .room-list-row > span {
        justify-self: start;
        text-align: left;
      }

      .room-list-header span:nth-child(5),
      .room-list-row .room-delete-button {
        justify-self: center;
        text-align: center;
      }

      .room-type-badge {
        background: #f7fbfd;
        border: 1px solid #d7e7ef;
        border-radius: 999px;
        color: #5d7684;
        display: inline-flex;
        font-size: 0.72rem;
        font-weight: 900;
        justify-content: center;
        min-width: 48px;
        padding: 4px 8px;
      }

      .room-type-badge[data-room-kind="special"] {
        background: #eefcf6;
        border-color: #b7eed6;
        color: #08784d;
      }

      .course-request-shell {
        display: grid;
        gap: 12px;
      }

      .course-request-tabs {
        background: #f8fbfd;
        border: 1px solid #d7e7ef;
        border-radius: 8px;
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 6px;
      }

      .course-request-grade-tabs {
        background: #edf6fb;
        border-color: #cfe1eb;
        border-radius: 999px;
        gap: 3px;
        grid-template-columns: repeat(3, minmax(142px, 1fr));
        justify-self: start;
        max-width: 560px;
        padding: 3px;
        width: min(100%, 560px);
      }

      .course-request-tab {
        align-items: center;
        background: #ffffff;
        border: 1px solid #cfe1eb;
        border-radius: 7px;
        color: #173243;
        display: flex;
        gap: 8px;
        justify-content: center;
        min-height: 42px;
        padding: 8px 10px;
      }

      .course-request-grade-tabs .course-request-tab {
        background: transparent;
        border: 0;
        border-radius: 999px;
        gap: 6px;
        min-height: 36px;
        padding: 0 12px;
      }

      .course-request-tab strong {
        font-size: 0.88rem;
      }

      .course-request-tab span {
        color: #5d7684;
        font-size: 0.72rem;
        font-weight: 900;
      }

      .course-request-tab[aria-pressed="true"] {
        background: #e3f5ff;
        border-color: #29a7df;
        color: #0f6f9c;
      }

      .course-request-grade-tabs .course-request-tab[aria-pressed="true"] {
        background: #ffffff;
        box-shadow: 0 1px 4px rgba(23, 50, 67, 0.1);
        color: #0f6f9c;
      }

      .course-request-grade-tabs .course-request-tab[aria-pressed="true"] span {
        color: #0f6f9c;
      }

      .course-request-tab:disabled,
      .course-request-tab[aria-disabled="true"] {
        background: #f2f5f7;
        border-color: #dfe9ee;
        color: #8ba0aa;
        cursor: not-allowed;
      }

      .course-request-tab:disabled strong,
      .course-request-tab:disabled span,
      .course-request-tab[aria-disabled="true"] strong,
      .course-request-tab[aria-disabled="true"] span {
        color: #8ba0aa;
      }

      .course-request-grade-tabs .course-request-tab[aria-disabled="true"] {
        background: #f1f5f9;
        box-shadow: inset 0 0 0 1px rgba(207, 225, 235, 0.55);
      }

      .course-request-tab .course-tab-help {
        flex: 0 0 auto;
        height: 16px;
        width: 16px;
      }

      .course-request-pass-card {
        background: #fff8e8;
        border: 1px solid #f0c36f;
        border-radius: 8px;
        color: #62420d;
        display: grid;
        gap: 6px;
        padding: 12px;
      }

      .course-request-pass-card strong {
        font-size: 0.9rem;
      }

      .course-request-pass-card span {
        color: #735521;
        font-size: 0.78rem;
        line-height: 1.45;
      }

      .course-request-source-panel {
        background: #f8fbfd;
        border: 1px solid #d7e7ef;
        border-radius: 8px;
        display: grid;
        gap: 8px;
        padding: 10px;
      }

      .course-request-source-title {
        align-items: center;
        color: #5d7684;
        display: flex;
        font-size: 0.76rem;
        font-weight: 900;
        gap: 6px;
      }

      .course-request-source-toggle {
        background: #edf6fb;
        border: 1px solid #cfe1eb;
        border-radius: 999px;
        display: grid;
        gap: 4px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 3px;
      }

      .course-request-source-button {
        background: transparent;
        border: 0;
        border-radius: 999px;
        color: #173243;
        font: inherit;
        font-size: 0.76rem;
        font-weight: 900;
        min-height: 34px;
        padding: 0 12px;
      }

      .course-request-source-button[aria-pressed="true"] {
        background: #ffffff;
        box-shadow: 0 1px 4px rgba(23, 50, 67, 0.1);
        color: #0f6f9c;
      }

      .course-request-source-note {
        color: #5d7684;
        font-size: 0.74rem;
        font-weight: 800;
        line-height: 1.45;
      }

      .course-request-workspace {
        align-items: start;
        display: grid;
        gap: 12px;
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
      }

      .course-request-card {
        background: #ffffff;
        border: 1px solid #dfe9ee;
        border-radius: 8px;
        display: grid;
        gap: 10px;
        min-width: 0;
        padding: 12px;
      }

      .course-request-card-title {
        align-items: center;
        display: flex;
        gap: 8px;
        justify-content: space-between;
      }

      .course-request-card-title strong {
        color: #173243;
        font-size: 0.9rem;
      }

      .course-upload-zone,
      .course-linked-zone {
        box-sizing: border-box;
        min-height: 172px;
      }

      .course-upload-zone {
        align-items: center;
        background: #f8fbfd;
        border: 1px dashed #9fcce3;
        border-radius: 8px;
        display: grid;
        gap: 8px;
        justify-items: center;
        padding: 18px;
        text-align: center;
      }

      .course-upload-zone.is-disabled {
        background: #f4f7f9;
        border-color: #d7e7ef;
        border-style: solid;
        color: #6f8591;
      }

      .course-upload-zone.is-disabled .action-button {
        opacity: 0.58;
        pointer-events: none;
      }

      .course-linked-zone {
        align-items: start;
        background: #eefcf6;
        border: 1px solid #b7eed6;
        border-radius: 8px;
        color: #08784d;
        display: grid;
        gap: 7px;
        padding: 16px;
      }

      .course-linked-zone strong {
        color: #075f3f;
        font-size: 0.94rem;
      }

      .course-linked-zone span {
        color: #256b51;
        font-size: 0.78rem;
        font-weight: 800;
        line-height: 1.45;
      }

      .course-upload-zone strong {
        color: #173243;
        font-size: 0.94rem;
      }

      .course-upload-zone span {
        color: #5d7684;
        font-size: 0.78rem;
        font-weight: 800;
      }

      .course-upload-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
      }

      .course-request-dashboard {
        display: grid;
        gap: 8px;
      }

      .course-request-metric {
        align-items: center;
        border-bottom: 1px solid #edf2f5;
        display: flex;
        gap: 12px;
        justify-content: space-between;
        padding: 8px 0;
      }

      .course-request-metric:last-child {
        border-bottom: 0;
      }

      .course-request-metric span {
        color: #5d7684;
        font-size: 0.78rem;
        font-weight: 850;
      }

      .course-request-metric strong {
        color: #173243;
        font-size: 1rem;
      }

      .course-request-groups {
        display: grid;
        gap: 10px;
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .course-request-group-card {
        background: #ffffff;
        border: 1px solid #dfe9ee;
        border-radius: 8px;
        display: grid;
        gap: 8px;
        padding: 12px;
      }

      .course-request-group-card strong {
        color: #173243;
        font-size: 0.86rem;
      }

      .course-request-tag-list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
      }

      .course-request-tag {
        background: #f7fbfd;
        border: 1px solid #cfe1eb;
        border-radius: 999px;
        color: #173243;
        font-size: 0.74rem;
        font-weight: 850;
        padding: 5px 9px;
      }

      .course-request-guide {
        background: #f8fbfd;
        border: 1px solid #dfe9ee;
        border-radius: 8px;
        color: #5d7684;
        display: grid;
        gap: 6px;
        grid-column: 1 / -1;
        padding: 12px;
      }

      .course-request-guide strong {
        color: #173243;
        font-size: 0.86rem;
      }

      .course-request-guide span {
        font-size: 0.78rem;
        font-weight: 800;
        line-height: 1.45;
      }

      .course-section-shell {
        display: grid;
        gap: 12px;
      }

      .course-section-toolbar {
        align-items: center;
        background: #f8fbfd;
        border: 1px solid #d7e7ef;
        border-radius: 8px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
        padding: 10px 12px;
      }

      .course-section-toolbar strong {
        color: #173243;
        font-size: 0.92rem;
      }

      .section-standard-control {
        align-items: center;
        display: flex;
        gap: 8px;
      }

      .section-standard-control label,
      .section-standard-control span {
        color: #5d7684;
        font-size: 0.78rem;
        font-weight: 900;
      }

      .section-standard-control input {
        appearance: textfield;
        background: #ffffff;
        border: 1px solid #b9d8e8;
        border-radius: 7px;
        color: #173243;
        font: inherit;
        font-size: 0.9rem;
        font-weight: 950;
        height: 38px;
        text-align: center;
        width: 70px;
      }

      .section-standard-control input::-webkit-inner-spin-button,
      .section-standard-control input::-webkit-outer-spin-button {
        appearance: none;
        margin: 0;
      }

      .course-section-card {
        background: #ffffff;
        border: 1px solid #dfe9ee;
        border-radius: 8px;
        display: grid;
        gap: 10px;
        padding: 12px;
      }

      .course-section-card-title {
        align-items: center;
        display: flex;
        gap: 8px;
        justify-content: space-between;
      }

      .course-section-card-title strong {
        color: #173243;
        font-size: 0.92rem;
      }

      .course-section-card-title span {
        color: #5d7684;
        font-size: 0.76rem;
        font-weight: 850;
      }

      .course-section-table-wrap {
        border: 1px solid #edf2f5;
        border-radius: 8px;
        max-height: 440px;
        overflow: auto;
      }

      .course-section-table {
        border-collapse: collapse;
        min-width: 920px;
        width: 100%;
      }

      .course-section-table th,
      .course-section-table td {
        border-bottom: 1px solid #edf2f5;
        color: #173243;
        font-size: 0.8rem;
        padding: 10px 12px;
        text-align: left;
        vertical-align: middle;
        white-space: nowrap;
      }

      .course-section-table th {
        background: #f8fbfd;
        color: #5d7684;
        font-size: 0.74rem;
        font-weight: 950;
        position: sticky;
        top: 0;
        z-index: 1;
      }

      .course-section-table td:first-child,
      .course-section-table th:first-child,
      .course-section-table td:nth-child(4),
      .course-section-table th:nth-child(4),
      .course-section-table td:nth-child(5),
      .course-section-table th:nth-child(5),
      .course-section-table td:nth-child(6),
      .course-section-table th:nth-child(6) {
        text-align: center;
      }

      .course-section-table tr:last-child td {
        border-bottom: 0;
      }

      .section-badge {
        background: #edf8ff;
        border: 1px solid #b9d8e8;
        border-radius: 999px;
        color: #0b6f9f;
        display: inline-flex;
        font-size: 0.72rem;
        font-weight: 900;
        padding: 5px 9px;
      }

      .section-count-stepper {
        align-items: center;
        border: 1px solid #cfe1eb;
        border-radius: 7px;
        display: inline-grid;
        grid-template-columns: 34px 46px 34px;
        height: 34px;
        overflow: hidden;
      }

      .section-count-stepper button,
      .section-count-stepper input {
        background: #ffffff;
        border: 0;
        color: #173243;
        font: inherit;
        font-size: 0.82rem;
        font-weight: 950;
        height: 100%;
        text-align: center;
      }

      .section-count-stepper button {
        cursor: pointer;
      }

      .section-count-stepper button:hover {
        background: #e3f5ff;
      }

      .section-count-stepper input {
        appearance: textfield;
        border-left: 1px solid #cfe1eb;
        border-right: 1px solid #cfe1eb;
        min-width: 0;
      }

      .section-count-stepper input::-webkit-inner-spin-button,
      .section-count-stepper input::-webkit-outer-spin-button {
        appearance: none;
        margin: 0;
      }

      .section-average {
        color: #173243;
        font-weight: 950;
      }

      .section-average.warning {
        color: #9a5b00;
      }

      .course-section-guide {
        background: #fff8e8;
        border: 1px solid #f0c36f;
        border-radius: 8px;
        color: #62420d;
        display: grid;
        gap: 6px;
        padding: 12px;
      }

      .course-section-guide strong {
        font-size: 0.86rem;
      }

      .course-section-guide span {
        font-size: 0.78rem;
        font-weight: 850;
        line-height: 1.45;
      }

      .teacher-delete-button,
      .subject-delete-button,
      .room-delete-button {
        align-items: center;
        background: #ffffff;
        border: 1px solid #c8dce7;
        border-radius: 7px;
        color: #8b1e25;
        display: inline-flex;
        font: inherit;
        font-size: 0.9rem;
        font-weight: 900;
        height: 30px;
        justify-content: center;
        width: 30px;
      }

      .teacher-empty,
      .subject-empty,
      .room-empty {
        color: #5d7684;
        font-size: 0.8rem;
        padding: 8px;
      }

      @media (max-width: 1360px) {
        .teacher-roster-layout,
        .subject-roster-layout,
        .room-roster-layout {
          grid-template-columns: minmax(240px, 0.9fr) minmax(300px, 1.1fr);
        }

        .subject-roster-layout,
        .room-roster-layout {
          grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        }

        .subject-entry-row {
          grid-template-columns: minmax(0, 1fr) minmax(120px, 0.58fr) auto;
        }
      }

      @media (max-width: 1120px) {
        .subject-roster-layout,
        .room-roster-layout,
        .course-request-workspace,
        .course-request-groups {
          grid-template-columns: minmax(0, 1fr);
        }

        .subject-roster-layout .roster-work-header,
        .room-roster-layout .roster-work-header {
          align-items: flex-start;
          flex-direction: column;
        }

        .subject-roster-layout .roster-action-row,
        .room-roster-layout .roster-action-row {
          justify-content: flex-start;
        }
      }

      @media (max-width: 640px) {
        .course-request-tabs {
          grid-template-columns: minmax(0, 1fr);
        }

        .room-capacity-field {
          align-items: stretch;
          flex-direction: column;
        }

        .room-capacity-stepper {
          flex-basis: auto;
          width: 100%;
        }
      }

      .class-name-card .guide-close,
      .homeroom-card .guide-close {
        height: 32px;
        width: 32px;
      }

      .guide-card header {
        align-items: center;
        display: flex;
        gap: 12px;
        justify-content: space-between;
      }

      .guide-card h2 {
        font-size: 1.02rem;
        margin: 0;
      }

      .guide-card p {
        color: #63706a;
        margin: 10px 0;
      }

      .guide-card ul {
        display: grid;
        gap: 7px;
        margin: 0;
        padding-left: 18px;
      }

      .guide-close {
        background: #ffffff;
        border: 1px solid #cfd7d1;
        border-radius: 999px;
        color: #27312e;
        font-weight: 900;
        height: 28px;
        width: 28px;
      }

      @media (max-width: 1360px) {
        .app {
          grid-template-columns: 184px minmax(0, 1fr);
        }

        .content {
          gap: 8px;
          max-width: 980px;
          padding: 12px 0 18px;
          width: 86%;
        }

        .sidebar {
          padding: 14px;
        }

        .topbar {
          padding: 10px 12px;
        }

        .panel-header,
        .panel-body {
          padding: 8px 10px;
        }

        .foundation-stepper {
          margin-bottom: 12px;
          max-width: 100%;
        }

        .schedule {
          grid-template-columns: 44px repeat(5, minmax(108px, 1fr));
          min-width: 584px;
        }

        .cell {
          font-size: 0.76rem;
          min-height: 64px;
          padding: 6px;
        }

        .summary-grid,
        .operation-detail-grid,
        .home-summary-grid,
        .home-step-grid,
        .home-task-grid,
        .home-next-grid,
        .school-setup-grid,
        .condition-grid,
        .course-opening-grid,
        .assignment-grid,
        .draft-grid,
        .explanation-grid,
        .comparison-grid,
        .candidate-grid,
        .daily-operation-grid,
        .output-readiness-grid,
        .review-bundle-grid,
        .work-strip {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .home-progress {
          grid-template-columns: 1fr;
        }

        .workspace-note {
          align-items: flex-start;
          display: grid;
        }

        .workspace-note span {
          text-align: left;
        }

        .step-list {
          grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .setup-form-header,
        .setup-compact-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .setup-number-table th,
        .setup-number-table td {
          padding: 6px 4px;
        }

        .number-stepper {
          grid-template-columns: 20px minmax(28px, 36px) 20px;
        }

        .setup-number-table th:nth-child(3),
        .setup-number-table td:nth-child(3) {
          width: 138px;
        }

        .grade-mode-toggle button {
          font-size: 0.7rem;
          padding-inline: 3px;
        }
      }

      @media (min-width: 1600px) {
        .app {
          grid-template-columns: 220px minmax(0, 1fr);
        }

        #flow-panel,
        #schedule-panel {
          grid-column: 1 / 10;
        }

        #operation-panel,
        #review-panel,
        #result-panel,
        #detail-panel,
        #preview-panel,
        #difference-panel,
        #problem-panel,
        #question-panel,
        #batch-panel,
        #memo-panel {
          grid-column: 10 / 13;
        }

        #setup-panel {
          grid-column: 1 / 13;
        }

        .schedule {
          grid-template-columns: 64px repeat(5, minmax(156px, 1fr));
          min-width: 844px;
        }

        .cell {
          min-height: 84px;
        }
      }
