:root {
    --ink: #2d3040;
    --muted: #8c94aa;
    --line: #e8ebf2;
    --panel: #ffffff;
    --page: #eef0f6;
    --nav: #292a38;
    --nav-deep: #242532;
    --accent: #5f69cc;
    --teal: #19aac0;
    --rose: #f25979;
    --amber: #ffb128;
    --blue: #3199e8;
    --green: #2fc1a0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 1120px;
    color: var(--ink);
    background: var(--page);
    font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.topbar {
    background: var(--nav);
    color: #c9ccd9;
}

.topbar__inner {
    width: 1200px;
    height: 96px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 180px 1fr auto;
    grid-template-rows: 48px 48px;
    align-items: center;
}

.brand {
    grid-row: 1 / 3;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
}

.brand__mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 2px solid #b8bccb;
    border-radius: 6px;
    font-size: 24px;
}

.brand__text {
    letter-spacing: 0;
}

.primary-nav {
    grid-column: 2 / 3;
    grid-row: 2;
    height: 48px;
    display: flex;
    align-items: stretch;
}

.primary-nav__item,
.dropdown__button {
    height: 48px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #777d98;
    font-weight: 700;
    cursor: pointer;
}

.primary-nav__item.is-active {
    position: relative;
    color: #ff5060;
}

.primary-nav__item.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 24px;
    height: 14px;
    transform: translateX(-50%) rotate(45deg);
    background: var(--page);
}

.top-actions {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.guide-button {
    border: 0;
    border-radius: 3px;
    padding: 5px 8px;
    background: #ef3c42;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.icon-button,
.round-button,
.plain-icon {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.icon-button {
    font-size: 18px;
}

.user-chip {
    color: #d7dae6;
}

.logout-form {
    margin: 0;
}

.logout-form button {
    height: 26px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 3px;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.dropdown {
    position: relative;
}

.dropdown:hover .mega-menu,
.dropdown:focus-within .mega-menu,
.dropdown:hover .menu-panel,
.dropdown:focus-within .menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu {
    position: absolute;
    top: 48px;
    left: 0;
    z-index: 20;
    width: 900px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    color: #68708c;
    box-shadow: 0 18px 36px rgba(32, 36, 54, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .16s ease;
}

.mega-menu section {
    min-height: 330px;
    padding: 24px 28px;
    border-right: 1px solid #edf0f5;
}

.mega-menu section:last-child {
    border-right: 0;
}

.mega-menu h2 {
    margin: 0 0 22px;
    color: #48516f;
    font-size: 18px;
}

.mega-menu a,
.menu-panel a {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #737b96;
    font-weight: 700;
}

.mega-menu i {
    color: #b6bdd0;
    font-size: 19px;
}

.mega-menu .is-muted {
    color: #bec4d4;
}

.menu-panel {
    position: absolute;
    top: 48px;
    left: 0;
    z-index: 20;
    width: 180px;
    padding: 14px 18px;
    border-radius: 0 0 6px 6px;
    background: #fff;
    color: #68708c;
    box-shadow: 0 18px 36px rgba(32, 36, 54, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .16s ease;
}

.page-shell {
    width: 1200px;
    margin: 36px auto 54px;
}

.notice-banner {
    height: 84px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0b9ec0;
    color: #fff;
    border: 1px solid #cfd8ea;
}

.notice-banner div {
    display: flex;
    align-items: center;
    gap: 18px;
}

.notice-banner strong {
    font-size: 28px;
}

.notice-banner b {
    color: #ffd566;
    font-size: 34px;
}

.notice-banner__logo {
    width: 62px;
    height: 48px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #347b8c;
    font-size: 11px;
    font-weight: 900;
}

.summary-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.summary-card {
    min-height: 78px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--panel);
    border-right: 1px solid var(--line);
}

.summary-card h2 {
    margin: 0 0 8px;
    font-size: 16px;
}

.summary-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.summary-card__count {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.summary-card__count--amber { background: var(--amber); }
.summary-card__count--rose { background: var(--rose); }
.summary-card__count--blue { background: var(--blue); }
.summary-card__count--green { background: var(--green); }

.panel {
    margin-top: 28px;
    background: var(--panel);
    border: 1px solid #e4e8f0;
}

.panel__header {
    height: 58px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.panel__header h2 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.panel__tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-field {
    width: 220px;
    height: 34px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: #a2a9bb;
}

.search-field input {
    width: 100%;
    border: 0;
    outline: 0;
}

.round-button {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid #8f98aa;
    border-radius: 50%;
    color: #7e8799;
}

.filters {
    height: 88px;
    padding: 24px;
    display: grid;
    grid-template-columns: 110px 130px 16px 130px 42px 1fr;
    align-items: center;
    gap: 12px;
}

.filters select,
.filters input {
    height: 34px;
    border: 1px solid var(--line);
    color: #6d7487;
    text-align: right;
}

.filters select {
    padding: 0 12px;
    text-align: left;
}

.range-track {
    height: 12px;
    position: relative;
    background: #dbe7ef;
}

.range-track span {
    position: absolute;
    inset: 0 0 0 0;
    background: var(--teal);
}

.table-wrap {
    padding: 0 24px 30px;
    min-height: 250px;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #4f5362;
}

th,
td {
    height: 52px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

th {
    background: #f7f8fb;
    color: #5e6578;
    font-size: 13px;
}

td:first-child,
th:first-child {
    text-align: left;
}

.status-badge {
    display: inline-flex;
    min-width: 64px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #eef1ff;
    color: var(--accent);
    font-weight: 800;
    font-size: 12px;
}

.text-button {
    border: 1px solid #d5daea;
    border-radius: 4px;
    background: #fff;
    color: #6670c8;
    cursor: pointer;
}

.calendar-toolbar {
    height: 56px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 34px 34px 56px 1fr auto;
    align-items: center;
    gap: 8px;
}

.calendar-toolbar button,
.segmented button {
    height: 30px;
    border: 1px solid var(--line);
    background: #fff;
    color: #7b8395;
    cursor: pointer;
}

.calendar-toolbar strong {
    justify-self: center;
}

.segmented {
    display: inline-flex;
}

.segmented button {
    padding: 0 16px;
}

.segmented .is-selected {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.calendar-grid {
    margin: 0 24px 24px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.calendar-grid__head,
.calendar-cell {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.calendar-grid__head {
    height: 34px;
    display: grid;
    place-items: center;
    background: #fbfcfe;
    color: #7d8494;
    font-size: 12px;
    font-weight: 800;
}

.calendar-cell {
    min-height: 118px;
    padding: 12px;
    background: #fff;
    color: #747b8b;
}

.calendar-cell.is-muted {
    background: #f8f8f8;
    color: #c6cad4;
}

.calendar-cell.is-today {
    background: #f1f0ff;
}

.calendar-cell span {
    display: block;
    text-align: right;
}

.calendar-cell b {
    margin-top: 10px;
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.board--wide {
    grid-column: 1 / -1;
}

.board-row {
    min-height: 46px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 24px 1fr 100px;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--line);
}

.board-row span {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ff5b67;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.board-row strong {
    color: #5d6578;
    font-size: 13px;
}

.board-row time {
    color: #a6adc1;
    font-size: 12px;
    text-align: right;
}

.empty-box {
    margin: 24px;
    height: 64px;
    display: grid;
    place-items: center start;
    padding-left: 24px;
    border: 4px solid #f0f1f4;
    color: #7d8496;
}

.footer {
    width: 1200px;
    height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #b5bac9;
    font-size: 12px;
}

@media (max-width: 900px) {
    body {
        min-width: 0;
    }

    .topbar__inner,
    .page-shell,
    .footer {
        width: min(100% - 28px, 760px);
    }

    .topbar__inner {
        height: auto;
        padding: 16px 0;
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
    }

    .primary-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
    }

    .top-actions {
        margin-left: auto;
        flex-wrap: wrap;
    }

    .mega-menu {
        width: min(96vw, 720px);
        grid-template-columns: 1fr 1fr;
    }

    .summary-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        height: auto;
        grid-template-columns: 1fr 1fr;
    }

    .range-track {
        grid-column: 1 / -1;
    }

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

    table {
        min-width: 860px;
    }

    .calendar-grid {
        overflow: hidden;
    }

    .calendar-cell {
        min-height: 80px;
        padding: 8px;
    }
}

.welcome-page,
.login-page {
    min-width: 0;
    background: #eef0f6;
}

.auth-shell {
    min-height: 100vh;
}

.welcome-hero {
    min-height: 100vh;
    padding: 28px max(28px, calc((100vw - 1200px) / 2)) 48px;
    background:
        linear-gradient(115deg, rgba(41, 42, 56, .96) 0%, rgba(41, 42, 56, .92) 48%, rgba(25, 170, 192, .80) 100%),
        url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80") center/cover;
    color: #fff;
}

.welcome-nav,
.welcome-nav div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.welcome-brand,
.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0;
}

.welcome-brand span,
.login-brand span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 6px;
    font-size: 24px;
}

.welcome-nav a {
    color: #fff;
    font-weight: 800;
}

.welcome-nav__button,
.secondary-cta {
    height: 40px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .54);
    border-radius: 4px;
}

.welcome-hero__grid {
    min-height: calc(100vh - 120px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 480px;
    align-items: center;
    gap: 72px;
}

.eyebrow {
    margin: 0 0 14px;
    color: #80e4f0;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.welcome-copy h1 {
    max-width: 760px;
    margin: 0;
    font-size: 52px;
    line-height: 1.15;
    letter-spacing: 0;
}

.welcome-copy p:not(.eyebrow) {
    max-width: 620px;
    margin: 22px 0 0;
    color: #d8ddea;
    font-size: 18px;
    line-height: 1.7;
}

.welcome-actions {
    margin-top: 34px;
    display: flex;
    gap: 12px;
}

.primary-cta {
    height: 48px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 4px;
    background: #ff5060;
    color: #fff;
    font-weight: 900;
}

.welcome-preview {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    color: var(--ink);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-top span {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: #19aac0;
}

.preview-stats {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.preview-stats article {
    min-height: 92px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8f9fd;
}

.preview-stats b {
    display: block;
    color: var(--accent);
    font-size: 30px;
}

.preview-stats span {
    color: var(--muted);
    font-weight: 800;
}

.preview-list {
    margin-top: 22px;
}

.preview-list p {
    min-height: 44px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--line);
    color: #596176;
    font-weight: 800;
}

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 480px) 1fr;
    background: #fff;
}

.login-panel {
    padding: 54px 58px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-brand {
    margin-bottom: 58px;
    color: var(--nav);
}

.login-panel h1 {
    margin: 0 0 12px;
    font-size: 34px;
    letter-spacing: 0;
}

.login-panel p {
    margin: 0 0 34px;
    color: var(--muted);
    line-height: 1.7;
}

.login-form {
    display: grid;
    gap: 18px;
}

.login-form label span {
    display: block;
    margin-bottom: 8px;
    color: #596176;
    font-size: 13px;
    font-weight: 900;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #dfe3ee;
    border-radius: 4px;
    outline: 0;
}

.login-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(95, 105, 204, .14);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #69728a;
    font-size: 13px;
    font-weight: 800;
}

.form-error {
    margin: -6px 0 0;
    padding: 10px 12px;
    border: 1px solid rgba(242, 89, 121, .35);
    border-radius: 4px;
    background: rgba(242, 89, 121, .08);
    color: #c73659;
    font-size: 13px;
    font-weight: 800;
}

.check-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.check-line span {
    margin: 0;
}

.login-form button {
    height: 50px;
    border: 0;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.login-side {
    padding: 70px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(145deg, rgba(41, 42, 56, .92), rgba(25, 170, 192, .72)),
        url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1400&q=80") center/cover;
    color: #fff;
}

.login-side h2 {
    max-width: 560px;
    margin: 0 0 30px;
    font-size: 42px;
    line-height: 1.2;
    letter-spacing: 0;
}

.login-side ul {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 12px;
    list-style: none;
}

.login-side li {
    min-height: 46px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 4px;
    background: rgba(255, 255, 255, .08);
    font-weight: 800;
}

@media (max-width: 900px) {
    .welcome-hero {
        padding: 22px;
    }

    .welcome-nav {
        align-items: flex-start;
    }

    .welcome-hero__grid,
    .login-layout {
        grid-template-columns: 1fr;
    }

    .welcome-hero__grid {
        gap: 34px;
        padding-top: 70px;
    }

    .welcome-copy h1 {
        font-size: 36px;
    }

    .welcome-copy p:not(.eyebrow) {
        font-size: 16px;
    }

    .welcome-preview {
        padding: 18px;
    }

    .preview-stats,
    .login-side ul {
        grid-template-columns: 1fr;
    }

    .login-panel,
    .login-side {
        padding: 34px 24px;
    }

    .login-side h2 {
        font-size: 30px;
    }
}
