/* 로그인 화면 스타일. 다른 화면 디자인은 아직 작성하지 않는다. */

* {
    box-sizing: border-box;
}

body.login-page {
    margin: 0;
    min-height: 100vh;
    background: #F7F8FA;
    color: #1F2937;
    font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
}

.login-card-head {
    padding: 28px 24px 22px;
    background: #1F2937;
    color: #FFFFFF;
    border-radius: 12px 12px 0 0;
}

.login-brand,
.login-lead,
.login-status {
    margin: 0;
}

.login-brand {
    font-size: 14px;
    letter-spacing: 0.02em;
}

.login-card h1 {
    margin: 8px 0 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.login-lead {
    margin-top: 8px;
    color: #E5E7EB;
    font-size: 14px;
}

.login-card-body {
    padding: 24px;
}

.login-message,
.login-status {
    padding: 12px 14px;
    background: #F7F8FA;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.login-message {
    margin: 0 0 16px;
}

.login-status {
    margin: 0 0 20px;
}

.login-field {
    margin-bottom: 16px;
}

.login-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #1F2937;
    font-size: 14px;
    font-weight: 700;
}

.login-label svg {
    width: 16px;
    height: 16px;
    fill: #2563EB;
}

.login-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1F2937;
    font: inherit;
    font-size: 16px;
}

.login-input:focus {
    outline: 2px solid #2563EB;
    border-color: #2563EB;
}

.login-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    margin: 0 0 8px;
    color: #1F2937;
    font-size: 14px;
}

.login-check input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: #2563EB;
    color: #FFFFFF;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.login-button:focus {
    outline: 2px solid #1F2937;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .login-page {
        align-items: flex-start;
        padding-top: 32px;
    }

    .login-card h1 {
        font-size: 24px;
    }
}

/* 로그인 이후 공통 레이아웃 */

.app-body {
    margin: 0;
    min-height: 100vh;
    background: #F7F8FA;
    color: #1F2937;
    font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 272px;
    background: #1F2937;
    overflow-y: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
}

.sidebar-label {
    margin: 20px 20px 8px;
    color: #E5E7EB;
    font-size: 13px;
}

.sidebar-link,
.more-link,
.mobile-link {
    color: #E5E7EB;
    text-decoration: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 20px;
    font-size: 16px;
}

.more-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    font-size: 15px;
}

.sidebar-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex: 0 0 auto;
}

.more-link svg,
.mobile-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex: 0 0 auto;
}

.sidebar-link.is-active {
    background: #2563EB;
    color: #FFFFFF;
}

.sidebar-link:focus,
.more-link:focus,
.mobile-link:focus,
.app-logout:focus {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

.app-main {
    margin-left: 272px;
    min-height: 100vh;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 12px 24px;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
}

.app-title,
.app-user-name,
.content-card h1 {
    margin: 0;
}

.app-title {
    color: #1F2937;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.app-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .app-header {
        align-items: center;
    }

    .app-user {
        align-items: center;
        flex-shrink: 0;
        gap: 16px;
    }

    .app-user-name {
        line-height: 40px;
        white-space: nowrap;
    }
}

.app-user-name {
    color: #1F2937;
    font-size: 14px;
    font-weight: 700;
}

.app-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1F2937;
    font-size: 14px;
    text-decoration: none;
}

.app-content {
    padding: 24px;
}

.content-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
}

.content-card h1 {
    font-size: 22px;
    line-height: 1.4;
}

.staff-table-wrap {
    overflow-x: auto;
    margin-bottom: 24px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
}

.staff-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.staff-table th,
.staff-table td {
    padding: 12px;
    border-bottom: 1px solid #E5E7EB;
    color: #1F2937;
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
}

.staff-table th {
    background: #F7F8FA;
    color: #6B7280;
    font-weight: 700;
}

.staff-table tr:last-child td {
    border-bottom: 0;
}

.staff-form {
    display: grid;
    gap: 8px;
    max-width: 420px;
}

.staff-form h2 {
    margin: 0 0 8px;
    color: #1F2937;
    font-size: 18px;
}

.staff-note {
    margin: 0;
    color: #6B7280;
    font-size: 13px;
}

.staff-form .login-button {
    width: auto;
    min-width: 140px;
    margin-top: 8px;
}

a.staff-reset {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    text-decoration: none;
}

.staff-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.staff-filter {
    min-height: 32px;
    padding: 4px 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1F2937;
    font: inherit;
    font-size: 13px;
}

.staff-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.staff-actions form {
    display: inline;
    margin: 0;
}

.staff-table.is-compact th,
.staff-table.is-compact td {
    padding: 6px 8px;
    font-size: 13px;
}

.staff-table.is-compact .staff-reset {
    min-height: 28px;
    padding: 2px 8px;
    font-size: 12px;
}

.staff-table form {
    display: inline;
}

.staff-table .staff-reset {
    margin: 0 4px 4px 0;
}

.staff-reset {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #2563EB;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.staff-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(31, 41, 55, 0.45);
}

.staff-modal[hidden] {
    display: none;
}

.staff-modal-card {
    width: min(420px, 100%);
    max-height: calc(100% - 32px);
    overflow: auto;
    padding: 20px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #FFFFFF;
}

.staff-modal .staff-reset {
    min-height: 48px;
    margin-top: 8px;
}

.mobile-nav {
    display: none;
}

@media (max-width: 767px) {
    .sidebar {
        display: none;
    }

    .app-main {
        margin-left: 0;
    }

    .app-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .app-user {
        width: 100%;
        justify-content: space-between;
    }

    .app-logout {
        min-height: 44px;
    }

    .app-content {
        padding: 16px 16px 96px;
    }

    .mobile-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        background: #FFFFFF;
        border-top: 1px solid #E5E7EB;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-link,
    .mobile-more {
        flex: 1 1 0;
        min-width: 0;
    }

    .mobile-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-height: 64px;
        padding: 6px 2px;
        color: #6B7280;
        font-size: 12px;
    }

    .mobile-link.is-active,
    .mobile-more.is-active > .mobile-link {
        color: #2563EB;
    }

    .mobile-more {
        position: relative;
    }

    .mobile-more summary {
        list-style: none;
        cursor: pointer;
    }

    .mobile-more summary::-webkit-details-marker {
        display: none;
    }

    .more-menu {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(64px + env(safe-area-inset-bottom));
        max-height: 60vh;
        overflow-y: auto;
        background: #FFFFFF;
        border-top: 1px solid #E5E7EB;
    }

    .more-link {
        min-height: 52px;
        color: #1F2937;
        font-size: 16px;
    }

    .more-link.is-active {
        color: #2563EB;
    }
}

.content-card:has(.home-dashboard) {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.content-card:has(.home-dashboard) > h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.home-dashboard {
    display: grid;
    gap: 16px;
}

.home-heading h2 {
    margin: 0;
    color: #1F2937;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.home-heading p,
.home-label,
.home-meta {
    margin: 6px 0 0;
    color: #6B7280;
    font-size: 14px;
}

.home-label {
    margin: 0;
    font-weight: 600;
}

.home-grid,
.home-stat-row,
.home-month {
    display: grid;
    gap: 16px;
}

.home-grid-top {
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
}

.home-split {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    align-items: start;
}

.home-stat-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-card {
    padding: 20px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
}

.home-stat-btn {
    display: block;
    width: 100%;
    margin: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.home-stat-btn:hover {
    background: #F7F8FA;
}

.home-value {
    margin: 12px 0 0;
    color: #1F2937;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.home-value span,
.home-month small {
    margin-left: 4px;
    color: #6B7280;
    font-size: 16px;
    font-weight: 600;
}

.home-month {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.home-month li {
    padding-top: 12px;
    border-top: 1px solid #E5E7EB;
}

.home-month span,
.home-list span,
.home-workers span,
.home-notices span {
    color: #6B7280;
    font-size: 14px;
}

.home-month strong {
    display: block;
    margin-top: 6px;
    color: #1F2937;
    font-size: 24px;
}

.home-list,
.home-workers,
.home-notices {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.home-list li,
.home-workers li,
.home-notices li {
    display: grid;
    align-items: center;
    gap: 8px 16px;
    min-height: 48px;
    padding: 10px 0;
    border-top: 1px solid #E5E7EB;
}

.home-list li,
.home-workers li {
    grid-template-columns: minmax(72px, 1fr) minmax(64px, 0.8fr) minmax(120px, 1.2fr);
}

.home-list.home-pair li {
    grid-template-columns: minmax(72px, 0.8fr) minmax(0, 1.2fr);
}

.home-pending {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.home-pending li {
    display: grid;
    grid-template-columns: minmax(56px, 0.9fr) minmax(48px, 0.7fr) minmax(72px, 1fr) minmax(72px, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    border-top: 1px solid #E5E7EB;
    color: #6B7280;
    font-size: 14px;
}

.home-pending strong {
    color: #1F2937;
    font-size: 15px;
    font-weight: 600;
}

.home-pending-head {
    min-height: 32px;
    color: #6B7280;
    font-size: 12px;
    font-weight: 600;
}

.home-workers li {
    grid-template-columns: minmax(72px, 1fr) minmax(64px, 0.8fr) minmax(120px, 1.1fr) auto;
}

.home-notices li {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
}

.home-list strong,
.home-workers strong,
.home-notices strong {
    color: #1F2937;
    font-size: 15px;
    font-weight: 600;
}

.home-workers em {
    color: #6B7280;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}

.home-workers em.is-work {
    color: #2563EB;
}

@media (max-width: 1100px) {
    .home-stat-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .home-grid-top,
    .home-split,
    .home-month {
        grid-template-columns: 1fr;
    }

    .home-stat-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .home-stat-row > li:last-child {
        grid-column: 1 / -1;
    }

    .home-stat-row .home-stat-btn {
        padding: 8px 10px;
    }

    .home-stat-row .home-label {
        font-size: 12px;
        line-height: 1.3;
    }

    .home-stat-row .home-value {
        margin-top: 2px;
        font-size: 20px;
        line-height: 1.1;
    }

    .home-heading h2 {
        font-size: 22px;
    }

    .home-list li,
    .home-workers li {
        grid-template-columns: 1fr auto;
    }

    .home-list li span,
    .home-workers li span {
        grid-column: 1 / -1;
    }

    .home-workers em {
        grid-column: 2;
        grid-row: 1;
    }
}

.home-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-more {
    display: none;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2563EB;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

@media (min-width: 768px) {
    .home-more.is-over-pc {
        display: inline-flex;
        align-items: center;
    }

    .home-limited-coworkers > li:nth-child(n + 5) {
        display: none;
    }
}

.home-limited > li:nth-child(n + 8) {
    display: none;
}

.home-columns {
    display: grid;
    gap: 12px;
    align-items: start;
}

.home-column-side {
    display: grid;
    gap: 12px;
    align-content: start;
}

.home-columns + .home-card {
    margin-top: 12px;
}

.cal-find {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.cal-find-line {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
}

.cal-range-label,
.cal-range-mark {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: #6B7280;
    font-size: 13px;
    font-weight: 600;
}

.home-period .home-month {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cal-find-field {
    display: grid;
    gap: 4px;
    color: #6B7280;
    font-size: 12px;
    font-weight: 600;
}

.cal-find select,
.cal-find input {
    min-height: 36px;
    padding: 0 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1F2937;
    font: inherit;
    font-size: 14px;
}

.cal-find input {
    width: 120px;
}

.cal-find-submit,
.cal-today,
.cal-all {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.cal-find-submit {
    border: 0;
    background: #2563EB;
    color: #FFFFFF;
    cursor: pointer;
}

.cal-today,
.cal-all {
    display: inline-flex;
    align-items: center;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #1F2937;
    text-decoration: none;
}

.cal-find-note {
    flex-basis: 100%;
    margin: 0;
    color: #6B7280;
    font-size: 13px;
}

.cal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.cal-title {
    margin: 0;
    color: #1F2937;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.cal-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1F2937;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.cal-grid {
    border-top: 1px solid #E5E7EB;
    border-left: 1px solid #E5E7EB;
}

.cal-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cal-weekday,
.cal-day {
    border-right: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

.cal-weekday {
    padding: 6px 4px;
    background: #1F2937;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.cal-weekday.is-sun {
    color: #FFFFFF;
}

.cal-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-height: 60px;
    padding: 2px 5px;
    border: 0;
    border-right: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #1F2937;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.cal-day.is-out {
    background: #F7F8FA;
    color: #6B7280;
}

.cal-day.is-range {
    background: rgba(37, 99, 235, 0.08);
}

.cal-day.is-selected {
    box-shadow: inset 0 0 0 2px #2563EB;
}

.cal-day:focus-visible,
.cal-nav:focus-visible,
.home-more:focus-visible,
.home-layer-close:focus-visible,
.home-save:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

.cal-top {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
}

.cal-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    font-size: 12px;
    font-weight: 700;
}

.cal-day.is-holiday .cal-num {
    color: #2563EB;
}

.cal-day.is-today .cal-num {
    border-radius: 999px;
    background: #2563EB;
    color: #FFFFFF;
}

.cal-holiday {
    min-width: 0;
    overflow: hidden;
    color: #2563EB;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cal-note {
    display: block;
    max-width: 100%;
    margin-top: 1px;
    overflow: hidden;
    color: #2563EB;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-layer .home-day-notice {
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E5E7EB;
}

.home-card.home-day-notice {
    margin: 0;
}

.home-layer .home-day-notice strong,
.home-card.home-day-notice .home-label {
    color: #2563EB;
}

.home-layer .home-day-notice p,
.home-day-notice-text {
    margin: 4px 0 0;
    color: #1F2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.cal-summary {
    display: grid;
    gap: 0;
    margin-top: 1px;
    color: #6B7280;
    font-size: 11px;
    line-height: 1.05;
}

.cal-brief {
    display: none;
}

.cal-summary.cal-self,
.cal-brief.cal-self {
    line-height: 1.15;
}

.home-layer[hidden] {
    display: none;
}

.home-layer {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(31, 41, 55, 0.4);
}

.home-layer-sheet {
    width: min(560px, 100%);
    max-height: min(80vh, 720px);
    overflow: auto;
    padding: 20px;
    background: #FFFFFF;
    border-radius: 12px;
}

.home-layer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-layer-head h3 {
    margin: 0;
    color: #1F2937;
    font-size: 20px;
}

.home-layer-close,
.home-save {
    min-height: 44px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.home-layer-close {
    padding: 0 14px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #1F2937;
}

.home-facts {
    display: grid;
    margin: 16px 0 0;
}

.home-facts div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #E5E7EB;
}

.home-facts dt {
    color: #6B7280;
}

.home-facts dd {
    margin: 0;
    color: #1F2937;
    font-weight: 600;
    text-align: right;
}

.home-memo-form {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.home-memo-form label {
    color: #1F2937;
    font-size: 14px;
    font-weight: 600;
}

.home-memo {
    width: 100%;
    min-height: 96px;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #1F2937;
    font: inherit;
    resize: vertical;
}

.home-save {
    justify-self: start;
    padding: 0 16px;
    border: 0;
    background: #2563EB;
    color: #FFFFFF;
}

.home-group {
    margin-top: 18px;
}

.home-group h4 {
    margin: 0 0 4px;
    color: #1F2937;
    font-size: 15px;
}

.cal-summary.is-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 12px;
}

.home-notices p {
    margin: 4px 0 0;
    color: #6B7280;
    font-size: 14px;
}

body.home-layer-open {
    overflow: hidden;
}

@media (min-width: 768px) {
    .home-columns {
        grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
    }

    .home-column-side .home-stat-row,
    .home-column-side .home-month {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-column-side .home-grid-top {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }

    .home-column-side .home-split {
        grid-template-columns: 1fr;
    }

    .home-column-side {
        gap: 14px;
    }

    .home-column-side .home-card {
        padding: 12px;
    }

    .home-column-side .home-value {
        margin-top: 2px;
        font-size: 22px;
    }

    .home-column-side .home-meta {
        margin-top: 2px;
    }

    .home-column-side .home-month {
        gap: 6px 10px;
        margin-top: 6px;
    }

    .home-column-side .home-month li {
        padding-top: 6px;
    }

    .home-column-side .home-month strong {
        margin-top: 2px;
    }

    .home-column-side .home-list,
    .home-column-side .home-workers {
        margin-top: 4px;
    }

    .home-column-side .home-list li {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 36px;
        padding: 4px 0;
    }

    .home-column-side .home-list li span {
        grid-column: auto;
    }

    .home-column-side .home-workers li {
        grid-template-columns: minmax(0, 1fr) auto auto;
        min-height: 36px;
        padding: 4px 0;
    }

    .home-column-side .home-workers li span,
    .home-column-side .home-workers em {
        grid-column: auto;
        grid-row: auto;
    }

    .home-dashboard {
        gap: 10px;
    }

    .home-heading h2 {
        font-size: 20px;
    }

    .home-card {
        padding: 12px 14px;
    }

    .home-value {
        margin-top: 4px;
        font-size: 24px;
    }

    .home-month {
        gap: 10px;
        margin-top: 8px;
    }

    .home-month strong {
        font-size: 18px;
    }

    .home-list,
    .home-workers,
    .home-notices {
        margin-top: 8px;
    }

    .home-list li,
    .home-workers li,
    .home-notices li {
        min-height: 34px;
        padding: 4px 0;
    }
}

@media (max-width: 767px) {
    .home-more.is-over-mobile {
        display: inline-flex;
        align-items: center;
    }

    .home-limited > li:nth-child(n + 6) {
        display: none;
    }

    .cal-find select,
    .cal-find input,
    .cal-find-submit,
    .cal-today,
    .cal-all,
    .cal-nav {
        min-height: 44px;
    }

    .cal-find input {
        width: auto;
        flex: 1 1 120px;
    }

    .cal-title {
        font-size: 20px;
    }

    .cal-nav {
        min-width: 64px;
        padding: 0 8px;
    }

    .cal-weekday {
        padding: 8px 0;
        font-size: 12px;
    }

    .cal-day {
        min-height: 72px;
        padding: 6px 4px;
    }

    .cal-day .cal-summary,
    .cal-day .cal-holiday {
        display: none;
    }

    .home-layer .cal-summary {
        display: flex;
    }

    .cal-brief {
        display: grid;
        gap: 1px;
        color: #6B7280;
        font-size: 11px;
        line-height: 1.25;
    }

    .cal-brief.cal-self {
        font-size: 10px;
        line-height: 1.1;
        letter-spacing: -0.03em;
    }

    .cal-brief.cal-self .cal-time,
    .cal-brief.cal-self .cal-ot {
        display: grid;
        white-space: normal;
    }

    .cal-brief.cal-self .cal-tilde {
        display: none;
    }

    .cal-day .cal-note {
        font-size: 10px;
        line-height: 1.1;
    }

    .cal-num {
        min-width: 22px;
        height: 22px;
        font-size: 13px;
    }

    .home-layer {
        align-items: flex-end;
        padding: 0;
    }

    .home-layer-sheet {
        width: 100%;
        max-height: 78vh;
        border-radius: 16px 16px 0 0;
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 767px) {
    .home-dashboard[data-role="employee"] {
        gap: 8px;
    }

    .home-dashboard[data-role="employee"] .home-heading p {
        margin-top: 2px;
    }

    .home-dashboard[data-role="employee"] .home-columns,
    .home-dashboard[data-role="employee"] .home-column-side {
        gap: 8px;
    }

    .home-dashboard[data-role="employee"] .home-columns + .home-card {
        margin-top: 8px;
    }

    .home-dashboard[data-role="employee"] .home-card {
        padding: 10px 12px;
    }

    .home-dashboard[data-role="employee"] .home-calendar {
        display: flex;
        flex-direction: column;
        padding: 8px 8px 10px;
    }

    .home-dashboard[data-role="employee"] .cal-toolbar {
        order: 1;
        margin-bottom: 6px;
    }

    .home-dashboard[data-role="employee"] .home-calendar > .cal-find-note {
        order: 2;
        margin-bottom: 6px;
    }

    .home-dashboard[data-role="employee"] .cal-grid {
        order: 3;
    }

    .home-dashboard[data-role="employee"] .cal-find {
        order: 4;
        gap: 6px;
        margin: 10px 0 0;
    }

    .home-dashboard[data-role="employee"] .cal-find-line {
        display: grid;
        grid-template-columns: auto minmax(0, 1.35fr) minmax(0, 0.9fr) minmax(0, 0.75fr);
        align-items: center;
        gap: 6px;
    }

    .home-dashboard[data-role="employee"] .cal-range-mark {
        display: none;
    }

    .home-dashboard[data-role="employee"] .cal-range-label {
        min-height: 0;
        font-size: 13px;
    }

    .home-dashboard[data-role="employee"] .cal-find-field {
        display: block;
        position: relative;
        min-width: 0;
    }

    .home-dashboard[data-role="employee"] .cal-find-field > span {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .home-dashboard[data-role="employee"] .cal-find select {
        width: 100%;
        min-height: 40px;
        padding: 0 4px;
        font-size: 13px;
    }

    .home-dashboard[data-role="employee"] .cal-find-submit,
    .home-dashboard[data-role="employee"] .cal-today {
        grid-column: span 2;
        justify-content: center;
        width: 100%;
        min-height: 40px;
        padding: 0 8px;
    }

    .home-dashboard[data-role="employee"] .home-grid-top {
        gap: 8px;
    }

    .home-dashboard[data-role="employee"] .home-grid-top > .home-card {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 0;
    }

    .home-dashboard[data-role="employee"] .home-grid-top > .home-card .home-label {
        margin-right: auto;
    }

    .home-dashboard[data-role="employee"] .home-grid-top .home-value,
    .home-dashboard[data-role="employee"] .home-grid-top .home-meta {
        margin: 0;
        color: #1F2937;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.3;
        text-align: right;
    }

    .home-dashboard[data-role="employee"] .home-grid-top .home-meta {
        flex: 1 1 auto;
        min-width: 0;
    }

    .home-dashboard[data-role="employee"] .home-column-side > .home-card .home-month {
        grid-template-columns: 1fr 1fr;
        gap: 6px 16px;
        margin-top: 8px;
    }

    .home-dashboard[data-role="employee"] .home-column-side > .home-card .home-month li {
        display: flex;
        align-items: baseline;
        justify-content: flex-start;
        gap: 6px;
        padding-top: 0;
        border-top: 0;
        white-space: nowrap;
    }

    .home-dashboard[data-role="employee"] .home-column-side > .home-card .home-month strong {
        display: inline;
        margin-top: 0;
        font-size: 16px;
    }
}

.schedule-board {
    display: grid;
    gap: 12px;
}

.sched-tabs {
    display: flex;
    gap: 8px;
}

.sched-tabs a {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #E5E7EB;
    border-radius: 999px;
    background: #FFFFFF;
    color: #1F2937;
    font-size: 14px;
    font-weight: 700;
    line-height: 34px;
    text-decoration: none;
}

.sched-tabs a.is-active {
    border-color: #2563EB;
    background: #2563EB;
    color: #FFFFFF;
}

.sched-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sched-heading h2 {
    margin: 0;
    color: #1F2937;
    font-size: 20px;
    line-height: 1.3;
}

.schedule-board.is-mine .sched-scroll {
    display: none;
}

.schedule-board.is-mine .sched-mobile {
    display: block;
}

.schedule-board.is-mine .sched-month {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-top: 1px solid #E5E7EB;
    border-left: 1px solid #E5E7EB;
}

.schedule-board.is-mine .sched-week,
.schedule-board.is-mine .sched-blank,
.schedule-board.is-mine .sched-month .sched-cell {
    min-height: 88px;
    border-right: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

.schedule-board.is-mine .sched-week {
    min-height: 32px;
    background: #1F2937;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    line-height: 32px;
    text-align: center;
}

.schedule-board.is-mine .sched-week.is-rest {
    background: #2563EB;
}

.schedule-board.is-mine .sched-month .sched-cell {
    width: auto;
    align-items: center;
    padding: 4px 2px;
    text-align: center;
}

.schedule-board.is-mine .sched-month .sched-cell strong,
.schedule-board.is-mine .sched-month .sched-cell span {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.2;
}

.schedule-board.is-mine .sched-month .sched-cell b {
    color: #1F2937;
    font-size: 14px;
}

.schedule-board.is-mine .sched-month .sched-cell.is-rest b {
    color: #2563EB;
}

.sched-memo-form {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.sched-memo-form label {
    display: grid;
    gap: 4px;
    color: #6B7280;
    font-size: 12px;
    font-weight: 600;
}

.sched-memo-form textarea {
    min-height: 72px;
    padding: 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #1F2937;
    font: inherit;
    font-size: 14px;
    resize: vertical;
}

.sched-toolbar,
.sched-nav,
.sched-tools,
.sched-bulk,
.sched-foot-actions,
.sched-mobile-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sched-toolbar {
    justify-content: space-between;
}

.sched-nav label,
.sched-copy-panel label,
.sched-time-form label {
    display: grid;
    gap: 4px;
    color: #6B7280;
    font-size: 12px;
    font-weight: 600;
}

.sched-nav select,
.sched-copy-panel select,
.sched-time-form input {
    min-height: 36px;
    padding: 0 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1F2937;
    font: inherit;
    font-size: 14px;
}

.sched-text-btn,
.sched-primary,
.sched-choice,
.sched-people button,
.sched-name button {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.sched-text-btn,
.sched-choice,
.sched-people button,
.sched-name button {
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #1F2937;
}

.sched-text-btn.is-on,
.sched-status.is-confirmed {
    border-color: #2563EB;
    color: #2563EB;
}

.sched-primary {
    border: 0;
    background: #2563EB;
    color: #FFFFFF;
}

.sched-status {
    margin: 0;
    padding: 6px 10px;
    border: 1px solid #E5E7EB;
    border-radius: 999px;
    background: #F7F8FA;
    color: #1F2937;
    font-size: 13px;
    font-weight: 700;
}

.sched-copy {
    position: relative;
}

.sched-copy summary {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1F2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 36px;
    cursor: pointer;
    list-style: none;
}

.sched-copy summary::-webkit-details-marker {
    display: none;
}

.sched-copy:not([open]) > .sched-copy-panel {
    display: none;
}

.sched-copy-panel {
    position: absolute;
    right: 0;
    z-index: 5;
    display: grid;
    gap: 8px;
    width: 240px;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #FFFFFF;
}

.sched-copy-panel p,
.sched-foot p,
.sched-message,
.sched-view {
    margin: 0;
    color: #6B7280;
    font-size: 13px;
}

.sched-bulk[hidden],
.sched-empty[hidden],
.sched-foot-actions [hidden],
#sched-admin-note[hidden] {
    display: none;
}

.sched-empty {
    padding: 32px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #F7F8FA;
    text-align: center;
}

.sched-empty p,
#sched-admin-note {
    margin: 0;
    color: #1F2937;
    font-size: 15px;
    font-weight: 700;
}

#sched-admin-note {
    color: #6B7280;
    font-size: 13px;
    font-weight: 600;
}

.schedule-board.is-locked .sched-scroll,
.schedule-board.is-locked .sched-mobile {
    display: none;
}

.schedule-board:not(.is-mine) #sched-multi,
.schedule-board:not(.is-mine) .sched-bulk {
    display: none;
}

.sched-scroll.is-calendar {
    overflow: visible;
    max-height: none;
}

.sched-cal {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-top: 1px solid #E5E7EB;
    border-left: 1px solid #E5E7EB;
    background: #FFFFFF;
}

.sched-cal-week,
.sched-cal-blank,
.sched-cal-day {
    border-right: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

.sched-cal-week {
    padding: 8px 4px;
    background: #1F2937;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.sched-cal-week.is-rest {
    background: #2563EB;
}

.sched-cal-blank {
    min-height: 72px;
    background: #F7F8FA;
}

.sched-cal-day {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    min-width: 0;
    min-height: 148px;
    padding: 6px;
    border-top: 0;
    border-left: 0;
    background: #FFFFFF;
    color: #1F2937;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.sched-cal-day.is-sat {
    background: #F7F8FA;
}

.sched-cal-day.is-rest {
    background: rgba(37, 99, 235, 0.08);
}

.sched-cal-date {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.sched-cal-date b {
    color: #1F2937;
    font-size: 14px;
}

.sched-cal-day.is-rest .sched-cal-date b,
.sched-cal-day.is-rest .sched-cal-date i {
    color: #2563EB;
}

.sched-cal-day.is-today .sched-cal-date b {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sched-cal-date i,
.sched-cal-date em {
    color: #6B7280;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
}

.sched-cal-line {
    color: #1F2937;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.sched-cal-line.is-work {
    color: #2563EB;
}

.sched-cal-line.is-off,
.sched-cal-line.is-empty {
    color: #6B7280;
}

.sched-day-list {
    display: grid;
    gap: 8px;
}

.sched-day-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 8px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #FFFFFF;
    color: #1F2937;
    font: inherit;
    text-align: left;
}

.sched-day-row.is-sat {
    background: #F7F8FA;
}

.sched-day-row.is-rest {
    background: rgba(37, 99, 235, 0.08);
}

.sched-day-row b {
    min-width: 28px;
    font-size: 16px;
}

.sched-day-row.is-rest b,
.sched-day-row.is-rest span {
    color: #2563EB;
}

.sched-day-row.is-today b {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sched-day-row em {
    color: #6B7280;
    font-style: normal;
    font-weight: 600;
}

.sched-pop.is-day {
    width: min(720px, calc(100vw - 24px));
    max-height: min(86vh, 860px);
}

.sched-pop.is-day.is-day-edit {
    display: flex;
    flex-direction: column;
    top: 4vh;
    width: min(1200px, calc(100vw - 32px));
    height: 92vh;
    max-height: 92vh;
    overflow: hidden;
}

.sched-pop.is-day.is-day-edit > .sched-pop-head {
    flex: 0 0 auto;
}

@media (min-width: 768px) {
    .sched-pop.is-day.is-day-edit.is-center {
        left: calc(272px + (100vw - 272px) / 2);
        width: min(1200px, calc(100vw - 272px - 32px));
    }
}

.sched-pop.is-batch {
    display: flex;
    flex-direction: column;
    top: 16px;
    width: min(1180px, calc(100vw - 32px));
    height: calc(100vh - 32px);
    max-height: calc(100vh - 32px);
    overflow: hidden;
}

.sched-pop.is-batch > .sched-pop-head {
    flex: 0 0 auto;
}

@media (min-width: 768px) {
    .sched-pop.is-batch.is-center {
        left: calc(272px + (100vw - 272px) / 2);
        width: min(1180px, calc(100vw - 272px - 32px));
    }
}

.sched-pop.is-batch #sched-pop-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow: hidden;
}

.sched-batch-steps,
.sched-batch-summary,
.sched-batch-note {
    margin: 0;
}

.sched-batch-steps,
.sched-batch-note {
    color: #6B7280;
    font-size: 12px;
}

.sched-batch-summary {
    color: #1F2937;
    font-size: 13px;
    font-weight: 700;
}

.sched-batch-grid {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: minmax(250px, 1.15fr) minmax(220px, 0.95fr) minmax(190px, 0.8fr);
    gap: 8px;
    min-height: 0;
    overflow: hidden;
}

.sched-batch-grid .sched-day-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: auto;
}

.sched-batch-cal {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    overflow: auto;
}

.sched-batch-cal > span {
    min-height: 18px;
    color: #6B7280;
    font-size: 11px;
    text-align: center;
}

.sched-batch-day {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 32px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1F2937;
    font: inherit;
    cursor: pointer;
}

.sched-batch-day input {
    width: 14px;
    height: 14px;
    margin: 0;
}

.sched-batch-day.is-holiday:not(.is-on) {
    color: #2563EB;
}

.sched-batch-day.is-on {
    border-color: #2563EB;
    background: #2563EB;
    color: #FFFFFF;
}

.sched-batch-people {
    max-height: none;
}

.sched-batch-grid .sched-day-filters {
    flex-wrap: wrap;
    overflow: visible;
}

.sched-batch-preview {
    display: flex;
    flex: 0 1 168px;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    overflow: hidden;
}

.sched-pop.is-batch .sched-day-apply {
    position: sticky;
    bottom: 0;
    z-index: 2;
    flex: 0 0 auto;
    margin-top: 8px;
    box-shadow: 0 -8px 0 #FFFFFF;
}

.sched-batch-table {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
}

.sched-batch-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.sched-batch-table th,
.sched-batch-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #E5E7EB;
    text-align: left;
    white-space: nowrap;
}

.sched-batch-table tr.is-block td:last-child {
    font-weight: 700;
}

.sched-batch-table tr.is-same td {
    color: #6B7280;
}

.sched-day-filters input {
    flex: 0 0 auto;
    min-height: 32px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1F2937;
    font: inherit;
}

.sched-day-types label[data-kind="time"],
.sched-day-types label[data-kind="holiday"],
.sched-day-types label[data-kind="custom"] {
    box-shadow: inset 3px 0 0 #2563EB;
}

.sched-day-types label[data-kind="off"] {
    box-shadow: inset 3px 0 0 #6B7280;
}

.sched-day-types label[data-kind="annual"],
.sched-day-types label[data-kind="sick"],
.sched-day-types label[data-kind="family"] {
    box-shadow: inset 3px 0 0 #1F2937;
}

.sched-pop.is-day.is-day-edit #sched-pop-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow: hidden;
}

.sched-day-split {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.sched-day-section {
    margin: 0;
    padding: 8px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #F7F8FA;
    min-width: 0;
}

.sched-day-section.is-types {
    max-height: 100%;
    overflow: auto;
}

.sched-day-section.is-people {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}

.sched-day-section h3 {
    margin: 0 0 6px;
    color: #1F2937;
    font-size: 14px;
}

.sched-day-types {
    display: grid;
    gap: 4px;
}

.sched-day-types label {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    min-height: 32px;
    padding: 2px 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1F2937;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.sched-day-types label.is-on {
    border-color: #2563EB;
    color: #2563EB;
    box-shadow: inset 0 0 0 1px #2563EB;
}

.sched-day-types input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #2563EB;
}

.sched-day-custom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    flex-basis: 100%;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.sched-day-custom[hidden] {
    display: none;
}

.sched-day-custom .rich-note,
.sched-day-custom .sched-batch-note {
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
}

.sched-day-custom input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 32px;
    padding: 0 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1F2937;
    font: inherit;
}

.rich-note {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.rich-note-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.rich-note-tool {
    min-width: 32px;
    min-height: 32px;
    padding: 0 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1F2937;
}

.rich-note-glyph {
    border-bottom: 2px solid #DC2626;
    font-weight: 700;
}

.rich-note-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.rich-note-palette[hidden] {
    display: none;
}

.rich-note-swatch {
    width: 22px;
    height: 22px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    background: #1F2937;
}

.rich-note-swatch.is-red {
    background: #DC2626;
}

.rich-note-swatch.is-blue {
    background: #2563EB;
}

.rich-note-swatch.is-green {
    background: #15803D;
}

.rich-note-swatch.is-orange {
    background: #EA580C;
}

.rich-note-body {
    min-height: 72px;
    max-height: 140px;
    overflow: auto;
    padding: 6px 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1F2937;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.rich-note-body:empty:before {
    content: attr(data-placeholder);
    color: #6B7280;
}

.memo-pen {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.schedule-board.is-mine .sched-month .sched-cell > .memo-pen,
.schedule-board.is-mine .sched-mark-row .memo-pen {
    pointer-events: auto;
    cursor: pointer;
}

.schedule-board.is-mine .sched-mark-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
}

.schedule-board.is-mine .sched-mark-row .memo-pen {
    position: static;
    flex: 0 0 auto;
    margin-top: 2px;
}

.sched-leave-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    max-width: 100%;
    cursor: pointer;
}

.sched-leave-chip i {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    color: #FFFFFF;
}

.sched-leave-chip i svg {
    width: 14px;
    height: 14px;
}

.sched-leave-chip b {
    color: #1F2937;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
}

.sched-leave-chip.is-annual i {
    background: #15803D;
    color: #FFFFFF;
}

.sched-leave-chip.is-annual b {
    color: #15803D;
    background: transparent;
}

.sched-leave-chip.is-sick i {
    background: #DC2626;
    color: #FFFFFF;
}

.sched-leave-chip.is-sick b {
    color: #DC2626;
    background: transparent;
}

.sched-leave-chip.is-morning_half i {
    background: #2563EB;
    color: #FFFFFF;
}

.sched-leave-chip.is-morning_half b {
    color: #2563EB;
    background: transparent;
}

.sched-leave-chip.is-afternoon_half i {
    background: #7C3AED;
    color: #FFFFFF;
}

.sched-leave-chip.is-afternoon_half b {
    color: #7C3AED;
    background: transparent;
}

.sched-leave-chip.is-family i {
    background: #EA580C;
    color: #FFFFFF;
}

.sched-leave-chip.is-family b {
    color: #EA580C;
    background: transparent;
}

.schedule-board.is-mine .sched-month .sched-cell .sched-leave-chip b,
.schedule-board.is-mine .sched-month .sched-cell.is-rest .sched-leave-chip b {
    font-size: 10px;
    line-height: 1.1;
}

.schedule-board.is-mine .sched-month .sched-cell.is-rest .sched-leave-chip.is-annual b {
    color: #15803D;
}

.schedule-board.is-mine .sched-month .sched-cell.is-rest .sched-leave-chip.is-sick b {
    color: #DC2626;
}

.schedule-board.is-mine .sched-month .sched-cell.is-rest .sched-leave-chip.is-morning_half b {
    color: #2563EB;
}

.schedule-board.is-mine .sched-month .sched-cell.is-rest .sched-leave-chip.is-afternoon_half b {
    color: #7C3AED;
}

.schedule-board.is-mine .sched-month .sched-cell.is-rest .sched-leave-chip.is-family b {
    color: #EA580C;
}

.sched-leave-detail {
    margin: 0 0 8px;
    color: #1F2937;
    overflow-wrap: anywhere;
}

.cal-day > .memo-pen {
    top: 2px;
    bottom: auto;
    pointer-events: auto;
    cursor: pointer;
}

.cal-leave-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 3px;
    max-width: 100%;
    margin-top: 2px;
}

.cal-day .sched-leave-chip i {
    width: 18px;
    height: 18px;
    border-radius: 5px;
}

.cal-day .sched-leave-chip i svg {
    width: 12px;
    height: 12px;
}

.cal-day .sched-leave-chip b {
    font-size: 9px;
    line-height: 1.1;
}

.cal-day .cal-leave-row .memo-pen {
    position: static;
    width: 14px;
    height: 14px;
    margin-top: 2px;
    pointer-events: auto;
    cursor: pointer;
}

.ink-red {
    color: #DC2626;
}

.ink-blue {
    color: #2563EB;
}

.ink-green {
    color: #15803D;
}

.ink-orange {
    color: #EA580C;
}

.sched-time-form .rich-note,
.sched-note-form .rich-note,
.sched-memo-form .rich-note,
.home-memo-form .rich-note {
    width: 100%;
    min-width: 0;
}

.sched-day-filters,
.sched-day-people-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.sched-day-filters {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    min-height: 32px;
    overflow-x: auto;
}

.sched-day-filters button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.sched-day-people-tools {
    flex: 0 0 auto;
}

.sched-day-selects {
    display: flex;
    gap: 6px;
}

.sched-day-search {
    flex: 1 1 140px;
    min-width: 0;
    min-height: 32px;
    padding: 0 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1F2937;
    font: inherit;
    font-size: 13px;
}

.sched-day-people-tools {
    justify-content: space-between;
}

.sched-day-filters button,
.sched-day-apply {
    min-height: 32px;
    padding: 0 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1F2937;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.sched-day-filters button.is-on,
.sched-day-apply {
    border-color: #2563EB;
    background: #2563EB;
    color: #FFFFFF;
}

.sched-day-apply {
    flex: 0 0 auto;
    width: 100%;
    min-height: 40px;
    margin-top: 8px;
}

.sched-day-counts {
    margin: 0;
    color: #6B7280;
    font-size: 13px;
    font-weight: 700;
}

.sched-day-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: max-content;
    gap: 6px;
    align-content: start;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 400px;
    overflow: auto;
}

.sched-day-card {
    display: grid;
    gap: 1px;
    min-height: 52px;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1F2937;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.sched-day-card.is-selected {
    border-color: #2563EB;
    background: #F7F8FA;
    box-shadow: inset 0 0 0 1px #2563EB;
}

.sched-day-card strong,
.sched-day-card span,
.sched-day-card em,
.sched-day-card small {
    overflow: hidden;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sched-day-card .sched-day-card-name {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    color: #1F2937;
}

.sched-day-card .sched-day-card-name small {
    color: #6B7280;
}

.sched-day-card strong {
    font-size: 14px;
}

.sched-day-card span,
.sched-day-card em,
.sched-day-card small {
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
}

.sched-day-card span,
.sched-day-card small {
    color: #6B7280;
}

.sched-day-card em {
    color: #2563EB;
}

@media (min-width: 1200px) {
    .sched-day-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .sched-day-cards {
        grid-template-columns: 1fr;
    }
}

.sched-day-holiday {
    margin: 0 0 8px;
    color: #2563EB;
    font-size: 13px;
    font-weight: 700;
}

.sched-note-fold {
    flex: 0 0 auto;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #F7F8FA;
}

.sched-note-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 36px;
    padding: 4px 10px;
    border: 0;
    background: transparent;
    color: #1F2937;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.sched-note-toggle em {
    flex: 0 0 auto;
    color: #2563EB;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
}

.sched-note-fold .sched-day-notice,
.sched-note-fold .sched-note-form {
    margin: 0;
    padding: 0 10px 8px;
    border-bottom: 0;
}

.sched-note-fold .sched-note-form[hidden],
.sched-note-fold .sched-day-notice[hidden] {
    display: none;
}

.sched-day-notice,
.sched-note-form {
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E5E7EB;
}

.sched-day-notice strong,
.sched-note-form > span {
    display: block;
    color: #2563EB;
    font-size: 13px;
    font-weight: 700;
}

.sched-day-notice-body,
.home-day-notice-body {
    margin-top: 4px;
    color: #1F2937;
    font-size: 14px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.sched-day-notice p {
    margin: 4px 0 0;
    color: #1F2937;
    font-size: 14px;
    font-weight: 600;
    white-space: pre-wrap;
}

.sched-note-form {
    display: grid;
    gap: 8px;
}

.sched-note-form label {
    display: grid;
    gap: 4px;
}

.sched-note-form textarea {
    width: 100%;
    min-height: 72px;
    padding: 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #1F2937;
    font: inherit;
    font-size: 14px;
    resize: vertical;
}

.sched-note-form .sched-primary {
    justify-self: start;
    min-width: 120px;
}

.sched-day-person {
    padding: 10px 0;
    border-top: 1px solid #E5E7EB;
}

.sched-day-person strong {
    display: block;
    color: #1F2937;
    font-size: 15px;
}

.sched-day-person p {
    margin: 2px 0 0;
    color: #1F2937;
    font-size: 14px;
    font-weight: 600;
}

.sched-day-person p.is-work {
    color: #2563EB;
}

.sched-day-person p.is-off,
.sched-day-person p.is-empty {
    color: #6B7280;
}

.sched-day-person .sched-text-btn {
    margin-top: 6px;
}

.sched-bulk {
    padding: 8px 10px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #F7F8FA;
}

.sched-bulk p {
    margin: 0;
    color: #1F2937;
    font-size: 14px;
    font-weight: 600;
}

.sched-scroll {
    overflow: auto;
    max-height: calc(100vh - 280px);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #FFFFFF;
}

.sched-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 100%;
}

.sched-table th,
.sched-table td {
    padding: 0;
    border-right: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    vertical-align: stretch;
}

.sched-corner,
.sched-dayhead {
    position: sticky;
    top: 0;
    z-index: 2;
    min-width: 72px;
    padding: 6px 4px;
    background: #1F2937;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.sched-corner,
.sched-name {
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 92px;
    background: #FFFFFF;
    color: #1F2937;
    text-align: left;
}

.sched-corner {
    z-index: 4;
    background: #1F2937;
    color: #FFFFFF;
}

.sched-dayhead {
    white-space: nowrap;
}

.sched-dayhead strong,
.sched-dayhead span,
.sched-dayhead em {
    display: block;
    font-style: normal;
    font-weight: 600;
}

.sched-dayhead em {
    max-width: 72px;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
}

.sched-dayhead.is-rest,
.sched-corner.is-rest {
    background: #2563EB;
}

.sched-name {
    padding: 0 8px;
    font-size: 14px;
}

.sched-name button {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.sched-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 76px;
    min-height: 46px;
    padding: 4px;
    border: 0;
    background: #FFFFFF;
    color: #1F2937;
    font: inherit;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}

.sched-cell strong {
    font-size: 11px;
    font-weight: 700;
}

.sched-cell span,
.sched-month .sched-cell span {
    color: #6B7280;
    font-size: 10px;
    font-weight: 600;
}

.sched-cell.is-time strong,
.sched-cell.is-custom strong,
.sched-cell.is-holiday strong {
    color: #2563EB;
}

.sched-cell.is-sat {
    background: #F7F8FA;
}

.sched-cell.is-rest {
    background: rgba(37, 99, 235, 0.08);
}

.sched-cell.is-today strong {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sched-cell.is-selected {
    box-shadow: inset 0 0 0 2px #2563EB;
}

.sched-mobile {
    display: none;
}

.sched-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

.sched-layer[hidden] {
    display: none;
}

.sched-layer {
    position: fixed;
    inset: 0;
    z-index: 45;
}

.sched-pop {
    position: fixed;
    z-index: 46;
    width: min(280px, calc(100vw - 24px));
    max-height: min(420px, calc(100vh - 24px));
    overflow: auto;
    padding: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #FFFFFF;
}

.sched-pop.is-center {
    top: 96px;
    left: 50%;
    transform: translateX(-50%);
}

.sched-pop.is-batch.is-center {
    top: 16px;
    height: calc(100vh - 32px);
    max-height: calc(100vh - 32px);
}

.sched-pop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.sched-pop-head h2 {
    margin: 0;
    color: #1F2937;
    font-size: 16px;
}

.sched-choice,
.sched-time-form {
    width: 100%;
    margin-top: 8px;
}

.sched-time-form {
    display: grid;
    gap: 8px;
}

.sched-view {
    color: #1F2937;
    font-size: 16px;
    font-weight: 700;
}

.sched-text-btn:focus-visible,
.sched-primary:focus-visible,
.sched-choice:focus-visible,
.sched-cell:focus-visible,
.sched-people button:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .content-card:has(.schedule-board) {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .content-card:has(.schedule-board) > h1 {
        margin-bottom: 6px;
    }

    .schedule-board {
        gap: 6px;
    }

    .sched-tabs {
        display: inline-grid;
        grid-template-columns: repeat(2, max-content);
        gap: 6px;
        width: max-content;
        max-width: 100%;
    }

    .sched-tabs a {
        min-width: 7.4em;
        min-height: 32px;
        height: 32px;
        padding: 0 12px;
        font-size: 13px;
        line-height: 30px;
        border-radius: 999px;
        text-align: center;
        white-space: nowrap;
    }

    .sched-heading {
        justify-content: space-between;
        gap: 8px;
    }

    .sched-heading h2 {
        font-size: 17px;
        line-height: 1.2;
    }

    .sched-status {
        padding: 2px 8px;
        font-size: 12px;
        line-height: 1.3;
    }

    .sched-toolbar {
        gap: 6px;
    }

    .sched-nav {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: 4px;
        flex: 1 0 100%;
        width: 100%;
    }

    .sched-nav label {
        display: block;
        position: relative;
        min-width: 0;
    }

    .sched-nav label > span {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .schedule-board.is-mine .sched-week,
    .schedule-board.is-mine .sched-blank,
    .schedule-board.is-mine .sched-month .sched-cell {
        min-height: 72px;
    }

    .sched-scroll,
    .sched-copy-panel {
        position: static;
        width: auto;
    }

    .sched-scroll {
        display: none;
    }

    .sched-mobile {
        display: block;
    }

    .sched-people {
        display: grid;
        gap: 8px;
    }

    .sched-people button,
    .sched-text-btn,
    .sched-primary,
    .sched-choice,
    .sched-nav select,
    .sched-copy summary {
        min-height: 44px;
    }

    .sched-nav select,
    .sched-nav .sched-text-btn {
        width: 100%;
        min-width: 0;
        height: 36px;
        min-height: 36px;
        padding: 0 4px;
        font-size: 13px;
        line-height: 34px;
        white-space: nowrap;
    }

    .sched-people button {
        justify-content: flex-start;
        font-size: 16px;
    }

    .sched-mobile-bar {
        justify-content: space-between;
        margin-bottom: 8px;
    }

    .sched-mobile-bar strong {
        color: #1F2937;
        font-size: 18px;
    }

    .sched-month {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        border-top: 1px solid #E5E7EB;
        border-left: 1px solid #E5E7EB;
    }

    .sched-week,
    .sched-blank,
    .sched-month .sched-cell {
        min-height: 72px;
        border-right: 1px solid #E5E7EB;
        border-bottom: 1px solid #E5E7EB;
    }

    .sched-week {
        min-height: 32px;
        background: #1F2937;
        color: #FFFFFF;
        font-size: 12px;
        font-weight: 700;
        line-height: 32px;
        text-align: center;
    }

    .sched-week.is-rest {
        background: #2563EB;
    }

    .sched-month .sched-cell {
        width: auto;
        align-items: center;
        overflow: hidden;
        padding: 2px 1px;
        text-align: center;
    }

    .sched-month .sched-cell strong,
    .sched-month .sched-cell span {
        max-width: 100%;
        font-size: 11px;
        line-height: 1.15;
    }

    .sched-month .sched-cell b {
        color: #1F2937;
        font-size: 13px;
    }

    .sched-month .sched-cell.is-rest b {
        color: #2563EB;
    }

    .sched-layer {
        display: flex;
        align-items: flex-end;
        background: rgba(31, 41, 55, 0.28);
    }

    .sched-pop,
    .sched-pop.is-center,
    .sched-pop.is-day {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-height: 78vh;
        transform: none;
        border-radius: 16px 16px 0 0;
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }

    .sched-pop.is-day.is-day-edit {
        display: flex;
        flex-direction: column;
        top: auto;
        width: 100%;
        height: 92vh;
        max-height: 92vh;
        overflow: hidden;
    }

    .sched-pop.is-day.is-day-edit #sched-pop-body {
        flex: 1 1 auto;
        min-height: 0;
    }

    .sched-pop.is-batch,
    .sched-pop.is-batch.is-center {
        top: auto;
        width: 100%;
        height: calc(100vh - 16px);
        max-height: calc(100vh - 16px);
    }

    .sched-batch-grid {
        display: flex;
        flex-direction: column;
        overflow: auto;
    }

    .sched-batch-grid .sched-day-section {
        flex: 0 0 auto;
        overflow: visible;
    }

    .sched-batch-cal,
    .sched-batch-people {
        flex: 0 0 auto;
        height: 220px;
        max-height: 220px;
        overflow: auto;
    }

    .sched-batch-preview {
        flex: 0 0 auto;
        max-height: 240px;
    }

    .sched-day-split {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .sched-day-section.is-types {
        flex: 0 1 auto;
        max-height: 34vh;
        overflow: auto;
    }

    .sched-day-section.is-people {
        flex: 1 1 auto;
        height: auto;
        max-height: none;
        min-height: 0;
        overflow: hidden;
    }

    .sched-day-cards {
        flex: 1 1 auto;
        height: auto;
        max-height: 400px;
        min-height: 120px;
    }

    .sched-batch-people.sched-day-cards {
        flex: 0 0 auto;
        height: 220px;
        min-height: 220px;
        max-height: 220px;
    }

    .sched-batch-grid .sched-day-section.is-people,
    .sched-batch-grid .sched-day-section.is-types {
        flex: 0 0 auto;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .sched-pick {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        border-top: 1px solid #E5E7EB;
        border-left: 1px solid #E5E7EB;
        background: #FFFFFF;
    }

    .sched-pick-week,
    .sched-pick-blank,
    .sched-pick-day {
        border-right: 1px solid #E5E7EB;
        border-bottom: 1px solid #E5E7EB;
    }

    .sched-pick-week {
        min-height: 32px;
        background: #1F2937;
        color: #FFFFFF;
        font-size: 12px;
        font-weight: 700;
        line-height: 32px;
        text-align: center;
    }

    .sched-pick-week.is-rest {
        background: #2563EB;
    }

    .sched-pick-blank {
        min-height: 48px;
        background: #F7F8FA;
    }

    .sched-pick-day {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 4px 0;
        border-top: 0;
        border-left: 0;
        background: #FFFFFF;
        color: #1F2937;
        font: inherit;
        cursor: pointer;
    }

    .sched-pick-day b {
        font-size: 15px;
    }

    .sched-pick-day.is-sat {
        background: #F7F8FA;
    }

    .sched-pick-day.is-rest,
    .sched-pick-day.is-holiday {
        background: rgba(37, 99, 235, 0.08);
    }

    .sched-pick-day.is-rest b,
    .sched-pick-day.is-holiday b {
        color: #2563EB;
    }

    .sched-pick-day.is-today b {
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    .sched-pick-day.is-notice::after {
        content: "";
        width: 5px;
        height: 5px;
        margin-left: 3px;
        border-radius: 999px;
        background: #2563EB;
        flex: 0 0 auto;
    }
}

@media (min-width: 768px) {
    .content-card:has(.schedule-board) {
        padding: 16px 20px;
    }

    .schedule-board {
        gap: 8px;
    }

    .sched-heading {
        justify-content: flex-start;
        gap: 10px;
    }

    .sched-toolbar,
    .sched-nav {
        align-items: flex-end;
    }

    .sched-nav label {
        gap: 2px;
    }

    .sched-nav select,
    .sched-nav .sched-text-btn {
        min-height: 36px;
    }

    .schedule-board.is-mine .sched-week {
        min-height: 26px;
        line-height: 26px;
    }

    .schedule-board.is-mine .sched-blank,
    .schedule-board.is-mine .sched-month .sched-cell {
        min-height: 76px;
        padding: 5px 2px;
    }

    .schedule-board.is-mine .sched-month .sched-cell b {
        font-size: 13px;
        line-height: 1.3;
    }

    .schedule-board.is-mine .sched-month .sched-cell strong,
    .schedule-board.is-mine .sched-month .sched-cell span {
        font-size: 12px;
        line-height: 1.3;
    }

    .sched-cal-week {
        padding: 4px 2px;
        font-size: 12px;
    }

    .sched-cal-blank {
        min-height: 0;
    }

    .sched-cal-day {
        gap: 1px;
        min-height: 96px;
        padding: 5px 4px 6px;
    }

    .sched-cal-date {
        gap: 3px;
        margin-bottom: 3px;
    }

    .sched-cal-date b {
        font-size: 13px;
        line-height: 1.25;
    }

    .sched-cal-line {
        font-size: 12px;
        line-height: 1.3;
    }

    .sched-cal-note {
        color: #2563EB;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.3;
    }

    .sched-layer.is-mine-detail {
        left: 272px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(31, 41, 55, 0.16);
    }

    .sched-pop.is-mine-detail {
        position: relative;
        top: auto;
        left: auto;
        width: min(560px, calc(100% - 48px));
        max-height: min(80vh, 640px);
        padding: 20px 22px;
        transform: none;
    }

    .sched-pop.is-mine-detail .sched-pop-head {
        margin-bottom: 16px;
    }

    .sched-pop.is-mine-detail .sched-pop-head h2 {
        font-size: 18px;
    }

    .sched-detail-label {
        margin: 0;
        color: #6B7280;
        font-size: 12px;
        font-weight: 600;
    }

    .sched-pop.is-mine-detail .sched-view {
        margin: 4px 0 0;
        font-size: 18px;
    }

    .sched-pop.is-mine-detail .sched-memo-form {
        gap: 10px;
        margin-top: 18px;
    }

    .sched-pop.is-mine-detail .sched-memo-form textarea {
        width: 100%;
        min-height: 140px;
    }

    .sched-pop.is-mine-detail .sched-memo-form .sched-primary {
        justify-self: center;
        width: 200px;
        margin-top: 4px;
    }
}

.leave-year {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin: 0 0 12px;
}

.leave-year label {
    display: grid;
    gap: 4px;
    color: #6B7280;
    font-size: 13px;
    font-weight: 700;
}

.leave-year select,
.leave-year button {
    min-height: 44px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #1F2937;
    font: inherit;
    font-size: 14px;
}

.leave-year select {
    padding: 0 8px;
    background: #FFFFFF;
}

.leave-year select[name="department"] {
    max-width: 148px;
}

.leave-dept {
    display: block;
    color: #6B7280;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.leave-year button,
.leave-year-link,
.leave-admin-form button {
    background: #2563EB;
    color: #FFFFFF;
    font-weight: 700;
    cursor: pointer;
}

.leave-year-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.leave-year button {
    padding: 0 14px;
}

.leave-admin-wrap {
    margin-top: 4px;
}

.leave-admin-head,
.leave-admin-form {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.05fr) minmax(0, 0.95fr) repeat(6, minmax(0, 0.78fr)) minmax(0, 1.05fr) minmax(0, 1.05fr) 46px;
    column-gap: 4px;
    align-items: center;
    width: 100%;
}

.leave-admin-head {
    padding: 0 0 6px;
    color: #6B7280;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.leave-admin-head span,
.leave-admin-form > p,
.leave-admin-form > label,
.leave-admin-form > button,
.leave-admin-person {
    min-width: 0;
}

.leave-admin-form {
    margin: 0;
    padding: 6px 0;
    border-top: 1px solid #E5E7EB;
}

.leave-admin-form p {
    margin: 0;
    color: #1F2937;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.leave-admin-form label span,
.leave-admin-form p::before {
    display: none;
}

.leave-admin-form input,
.leave-admin-form button {
    width: 100%;
    height: 30px;
    min-height: 30px;
    padding: 0 4px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #1F2937;
    font: inherit;
    font-size: 13px;
}

.leave-admin-form input {
    background: #FFFFFF;
}

.leave-admin-form button {
    padding: 0;
    font-size: 12px;
}

.leave-admin-person {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    color: #1F2937;
    font-size: 13px;
}

.leave-admin-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 100%;
    min-width: 0;
    flex: 1 0 100%;
}

.leave-admin-form .leave-admin-actions button {
    width: 100%;
    height: 26px;
    min-height: 26px;
    padding: 0;
    background: #FFFFFF;
    color: #2563EB;
    font-size: 12px;
}

.leave-admin-person strong {
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leave-admin-state {
    flex: 0 0 auto;
    color: #6B7280;
    font-size: 12px;
    font-weight: 700;
}

.leave-warn,
.leave-admin-meta {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    color: #2563EB;
    font-size: 13px;
    font-weight: 700;
}

.leave-admin-meta {
    color: #6B7280;
    font-weight: 600;
}

.leave-warn[hidden] {
    display: none;
}

@media (max-width: 767px) {
    .leave-year,
    .leave-year select,
    .leave-year button,
    .leave-year-link {
        width: 100%;
    }

    .leave-year select[name="department"] {
        max-width: none;
    }

    .leave-year {
        flex-wrap: wrap;
    }

    .leave-admin-head {
        display: none;
    }

    .leave-admin-form {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 12px;
        padding: 12px;
        border: 1px solid #E5E7EB;
        border-radius: 12px;
    }

    .leave-admin-person,
    .leave-admin-reason,
    .leave-admin-form button,
    .leave-warn,
    .leave-admin-meta {
        grid-column: 1 / -1;
    }

    .leave-admin-form label span,
    .leave-admin-form p[data-label]::before {
        display: block;
        margin-bottom: 2px;
        color: #6B7280;
        font-size: 12px;
        font-weight: 700;
    }

    .leave-admin-form p[data-label]::before {
        content: attr(data-label);
    }

    .leave-admin-form input,
    .leave-admin-form button {
        height: 44px;
        min-height: 44px;
        font-size: 16px;
    }

    .leave-admin-person strong {
        overflow: visible;
        white-space: normal;
    }

    .leave-admin-form .leave-admin-actions button {
        height: 36px;
        min-height: 36px;
        font-size: 13px;
    }
}

.leave-adjust-card {
    width: min(480px, 100%);
}

.leave-adjust-card h2,
.leave-adjust-card h3 {
    margin: 0 0 8px;
    color: #1F2937;
    font-size: 18px;
}

.leave-adjust-card h3 {
    margin-top: 16px;
    font-size: 15px;
}

.leave-adjust-name {
    margin: 0 0 8px;
    color: #1F2937;
    font-size: 16px;
    font-weight: 700;
}

.leave-adjust-now {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    margin: 0 0 8px;
}

.leave-adjust-now div {
    min-width: 0;
}

.leave-adjust-now dt {
    color: #6B7280;
    font-size: 12px;
    font-weight: 700;
}

.leave-adjust-now dd {
    margin: 0;
    color: #1F2937;
    font-size: 14px;
    font-weight: 700;
}

.leave-adjust-note,
.leave-adjust-preview {
    margin: 8px 0;
    color: #1F2937;
    font-size: 13px;
    font-weight: 600;
    white-space: pre-line;
}

.leave-adjust-card label {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    color: #6B7280;
    font-size: 13px;
    font-weight: 700;
}

.leave-adjust-card select,
.leave-adjust-card input {
    width: 100%;
    min-height: 40px;
    padding: 0 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1F2937;
    font: inherit;
    font-size: 14px;
}

.leave-adjust-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.leave-adjust-actions button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.leave-adjust-actions button[type="submit"] {
    background: #2563EB;
    border-color: #2563EB;
    color: #FFFFFF;
}

.leave-adjust-close,
.leave-history-close {
    background: #FFFFFF;
    color: #1F2937;
}

.leave-adjust-history {
    margin: 0;
    padding: 0;
    list-style: none;
}

.leave-adjust-history li {
    padding: 8px 0;
    border-top: 1px solid #E5E7EB;
    color: #1F2937;
    font-size: 13px;
    line-height: 1.4;
}

.leave-adjust-history li span {
    display: block;
    color: #6B7280;
    font-size: 12px;
}

.leave-approve-list {
    margin-bottom: 16px;
}

.leave-approve-head,
.leave-approve-list article {
    display: grid;
    grid-template-columns: minmax(72px, 1.1fr) 84px 92px 92px minmax(56px, 0.7fr) minmax(72px, 1.1fr) minmax(64px, 0.9fr) 68px 68px minmax(72px, auto);
    gap: 6px;
    align-items: center;
}

.leave-approve-head {
    margin-bottom: 6px;
    color: #6B7280;
    font-size: 12px;
    font-weight: 700;
}

.leave-approve-list article {
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1F2937;
    font-size: 13px;
}

.leave-approve-list p {
    margin: 0;
    overflow-wrap: anywhere;
}

.leave-approve-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.leave-approve-actions form {
    margin: 0;
}

.leave-approve-actions button,
.leave-approve-detail button {
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #2563EB;
    color: #FFFFFF;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.leave-approve-actions a {
    color: #2563EB;
    font-weight: 700;
    text-decoration: none;
}

.leave-approve-detail {
    margin-top: 8px;
    padding: 16px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #FFFFFF;
    color: #1F2937;
}

.leave-approve-detail h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.leave-approve-detail p,
.leave-approve-detail li {
    margin: 0 0 6px;
}

.leave-approve-choice {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.leave-approve-choice fieldset {
    margin: 0;
    padding: 10px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
}

.leave-approve-choice legend {
    padding: 0 4px;
    color: #1F2937;
    font-weight: 700;
}

.leave-approve-choice label {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 6px 0;
    color: #1F2937;
    font-weight: 700;
}

.leave-approve-choice input[name^="holiday_reason"] {
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #1F2937;
    font: inherit;
    font-size: 16px;
}

.leave-approve-reject {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: end;
    margin-top: 12px;
}

.leave-approve-reject label {
    display: grid;
    gap: 4px;
    flex: 1 1 220px;
    color: #6B7280;
    font-size: 13px;
    font-weight: 700;
}

.leave-approve-reject input {
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #1F2937;
    font: inherit;
    font-size: 16px;
}

.leave-request-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 12px;
}

.leave-request-summary div {
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #F7F8FA;
}

.leave-request-summary dt {
    color: #6B7280;
    font-size: 12px;
    font-weight: 700;
}

.leave-request-summary dd {
    margin: 2px 0 0;
    color: #1F2937;
    font-size: 18px;
    font-weight: 700;
}

.leave-request-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 0.7fr) minmax(0, 1.3fr) auto;
    gap: 8px;
    align-items: end;
    margin-bottom: 8px;
}

.leave-request-count {
    display: grid;
    gap: 4px;
    min-width: 0;
    color: #6B7280;
    font-size: 13px;
    font-weight: 700;
}

.leave-request-count strong {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #F7F8FA;
    color: #1F2937;
    font-size: 16px;
}

.leave-request-calc {
    margin: 0 0 8px;
    color: #1F2937;
    font-size: 14px;
    font-weight: 700;
}

.leave-request-calc p,
.leave-request-calc li {
    margin: 0 0 4px;
}

.leave-request-form label,
.leave-request-preview label {
    display: grid;
    gap: 4px;
    min-width: 0;
    color: #6B7280;
    font-size: 13px;
    font-weight: 700;
}

.leave-request-form select,
.leave-request-form input,
.leave-request-preview button,
.leave-request-form button {
    width: 100%;
    min-height: 44px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1F2937;
    font: inherit;
    font-size: 14px;
}

.leave-request-form button,
.leave-request-preview button {
    padding: 0 14px;
    border-color: #2563EB;
    background: #2563EB;
    color: #FFFFFF;
    font-weight: 700;
    cursor: pointer;
}

.leave-request-preview {
    margin: 12px 0 16px;
    padding-top: 12px;
    border-top: 1px solid #E5E7EB;
}

.leave-request-preview h2,
.leave-request-heading {
    margin: 0 0 8px;
    color: #1F2937;
    font-size: 18px;
}

.leave-request-preview ul {
    margin: 0 0 8px;
    padding-left: 18px;
    color: #1F2937;
    font-size: 14px;
}

.leave-request-preview p {
    margin: 0 0 4px;
    color: #1F2937;
    font-size: 14px;
    font-weight: 700;
}

.leave-request-head,
.leave-request-history article {
    display: grid;
    grid-template-columns: 92px minmax(0, 1.3fr) minmax(0, 0.9fr) 64px minmax(0, 1.4fr) 72px minmax(0, 1.1fr) 52px;
    gap: 4px;
    align-items: center;
}

.leave-request-head {
    margin-bottom: 4px;
    color: #6B7280;
    font-size: 12px;
    font-weight: 700;
}

.leave-request-history article {
    padding: 6px 0;
    border-top: 1px solid #E5E7EB;
    color: #1F2937;
    font-size: 13px;
}

.leave-request-history p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leave-request-history button {
    width: 100%;
    height: 32px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #2563EB;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 767px) {
    .leave-approve-head {
        display: none;
    }

    .leave-approve-list article {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .leave-approve-list p[data-label]::before {
        content: attr(data-label);
        display: block;
        color: #6B7280;
        font-size: 12px;
        font-weight: 700;
    }

    .leave-approve-reject input {
        width: 100%;
        font-size: 16px;
    }

    .leave-request-summary {
        grid-template-columns: 1fr 1fr;
    }

    .leave-request-form {
        grid-template-columns: 1fr;
    }

    .leave-request-form input,
    .leave-request-form select {
        font-size: 16px;
    }

    .leave-request-head {
        display: none;
    }

    .leave-request-history article {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-bottom: 8px;
        padding: 10px;
        border: 1px solid #E5E7EB;
        border-radius: 8px;
    }

    .leave-request-history p {
        white-space: normal;
    }

    .leave-request-history p[data-label]::before {
        content: attr(data-label);
        display: block;
        color: #6B7280;
        font-size: 12px;
        font-weight: 700;
    }

    .leave-request-history button {
        height: 44px;
        font-size: 16px;
    }
}

.rule-days {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.rule-days label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #1F2937;
}

.attend-list {
    margin-top: 4px;
}

.attend-head,
.attend-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(88px, 1fr) minmax(88px, 1fr) minmax(0, 1.3fr) minmax(0, 0.9fr);
    column-gap: 8px;
    align-items: start;
}

.attend-own .attend-head,
.attend-own .attend-row {
    grid-template-columns: 92px minmax(0, 1.1fr) minmax(96px, 1fr) minmax(96px, 1fr) minmax(0, 1.3fr) minmax(0, 0.9fr);
}

.attend-filters {
    flex-wrap: wrap;
}

.leave-year input[type="date"] {
    min-height: 44px;
    padding: 0 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1F2937;
    font: inherit;
    font-size: 14px;
}

.attend-actions {
    display: flex;
    gap: 8px;
    margin: 0 0 12px;
}

.attend-actions button {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.attend-actions button[value="in"] {
    border: 0;
    background: #2563EB;
    color: #FFFFFF;
}

.attend-actions button[value="out"] {
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #1F2937;
}

.attend-head {
    padding: 0 0 6px;
    color: #6B7280;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.attend-row {
    margin: 0;
    padding: 8px 0;
    border-top: 1px solid #E5E7EB;
}

.attend-row p {
    margin: 0;
    min-width: 0;
    color: #1F2937;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.attend-row p.attend-time,
.attend-time {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
}

.attend-request {
    grid-column: 1 / -1;
}

.attend-pending {
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid #2563EB;
    border-radius: 12px;
    background: #FFFFFF;
}

.attend-pending h2 {
    margin: 0 0 8px;
    color: #1F2937;
    font-size: 16px;
    line-height: 1.4;
}

.attend-pending-item {
    margin: 0;
    padding: 10px 0;
    border-top: 1px solid #E5E7EB;
}

.attend-pending-item p {
    margin: 0 0 8px;
    color: #1F2937;
    font-size: 14px;
    font-weight: 600;
}

.attend-pending form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
}

.attend-pending label {
    display: grid;
    gap: 4px;
    color: #6B7280;
    font-size: 13px;
    font-weight: 700;
}

.attend-pending input {
    min-height: 44px;
    padding: 0 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1F2937;
    font: inherit;
    font-size: 14px;
}

.attend-pending button {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.attend-pending button[value="approve"] {
    border: 0;
    background: #2563EB;
    color: #FFFFFF;
}

.attend-pending button[value="reject"] {
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #1F2937;
}

.attend-row p::before {
    display: none;
}

.attend-sub {
    display: inline-block;
    margin-left: 4px;
    color: #6B7280;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .attend-head {
        display: none;
    }

    .attend-head,
    .attend-row,
    .attend-own .attend-head,
    .attend-own .attend-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .attend-row {
        gap: 8px;
        margin-bottom: 12px;
        padding: 12px;
        border: 1px solid #E5E7EB;
        border-radius: 12px;
    }

    .attend-person,
    .attend-source,
    .attend-state,
    .attend-request,
    .attend-own .attend-date,
    .attend-own .attend-plan {
        grid-column: 1 / -1;
    }

    .leave-year input[type="date"],
    .attend-actions,
    .attend-actions button {
        width: 100%;
    }

    .attend-actions {
        flex-wrap: wrap;
    }

    .attend-pending form,
    .attend-pending input,
    .attend-pending button {
        width: 100%;
    }

    .attend-row p::before {
        content: attr(data-label);
        display: block;
        color: #6B7280;
        font-size: 12px;
        font-weight: 700;
    }
}
