:root {
    --bg: #f6f7f9;
    --panel: #ffffff;
    --line: #e3e6eb;
    --text: #252b33;
    --muted: #737b88;
    --green: #45ad62;
    --orange: #ef9637;
    --blue: #3377d6;
    --red: #e35656;
    --shadow: 0 14px 36px rgba(29, 37, 51, 0.10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", "Malgun Gothic", Arial, sans-serif;
    letter-spacing: 0;
}

button,
input {
    font: inherit;
}

.topbar {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
}

.brand,
.session {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    background: #ffffff;
    border: 1px solid var(--line);
}

.brand strong,
.brand span {
    display: block;
}

.brand span,
.session {
    color: var(--muted);
    font-size: 13px;
}

.page {
    width: min(1180px, calc(100% - 40px));
    margin: 38px auto;
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

.intro,
.login-card,
.sidebar,
.content {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.intro {
    padding: 44px 48px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff3e4;
    color: #b85f13;
    font-size: 13px;
    font-weight: 800;
}

h1,
h2 {
    margin: 18px 0 10px;
    line-height: 1.22;
}

h1 {
    font-size: 38px;
}

h2 {
    font-size: 28px;
}

p {
    margin: 0;
    color: var(--muted);
}

.login-card {
    padding: 28px;
    display: grid;
    gap: 18px;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    background: #f8f9fb;
    color: var(--text);
}

.primary-button,
.secondary-button,
.ghost-button,
.nav-button {
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 900;
}

.primary-button {
    height: 50px;
    background: var(--orange);
    color: #ffffff;
}

.secondary-button,
.ghost-button {
    height: 42px;
    padding: 0 16px;
    background: #eef4ff;
    color: var(--blue);
}

.table-button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #d8e5fb;
    border-radius: 8px;
    background: #eef4ff;
    color: var(--blue);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.message {
    min-height: 20px;
    color: var(--red);
    font-size: 13px;
}

.dashboard {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
}

.sidebar {
    padding: 16px;
    display: grid;
    align-content: start;
    gap: 8px;
}

.nav-button {
    min-height: 44px;
    padding: 0 14px;
    background: transparent;
    color: var(--text);
    text-align: left;
}

.nav-button.active {
    background: #e9f7ed;
    color: var(--green);
}

.content {
    padding: 22px;
}

.content-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.notice {
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8f9fb;
    color: var(--muted);
}

.action-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.form-grid h3 {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 16px;
}

.form-grid .wide {
    grid-column: span 2;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
}

select {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    background: #f8f9fb;
    color: var(--text);
    font: inherit;
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

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

th {
    background: #f4f6f8;
    font-size: 13px;
}

tr:last-child td {
    border-bottom: 0;
}

.empty {
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

.hidden {
    display: none !important;
}

@media (max-width: 860px) {
    .topbar {
        height: auto;
        padding: 16px 18px;
        align-items: flex-start;
    }

    .page {
        width: min(100% - 24px, 1180px);
        margin: 22px auto;
    }

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

    .intro {
        padding: 30px 24px;
    }

    h1 {
        font-size: 30px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .wide {
        grid-column: 1;
    }
}
