:root {
    color-scheme: light;
    --background: #f3f5f8;
    --surface: #ffffff;
    --surface-soft: #f8f9fb;
    --ink: #172033;
    --ink-soft: #667085;
    --line: #e4e7ec;
    --primary: #2756d8;
    --primary-dark: #1d42ae;
    --primary-soft: #eef3ff;
    --good: #147d64;
    --good-soft: #eaf8f3;
    --warning: #b35f09;
    --warning-soft: #fff4e5;
    --danger: #c0362c;
    --danger-soft: #fff0ef;
    --shadow: 0 12px 35px rgb(21 34 58 / 8%);
    font-family: Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

.standalone-page {
    display: grid;
    min-height: 100vh;
    padding: 24px;
    place-items: center;
}

.standalone-page .panel {
    width: min(560px, 100%);
}

body {
    background: var(--background);
    color: var(--ink);
    font-size: 15px;
}

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff;
    color: var(--primary-dark);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

button,
input,
select {
    font: inherit;
}

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

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 24px 18px;
    background: #111827;
    color: #d5d9e2;
    overflow-y: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 24px;
    color: #fff;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(145deg, #4a72ec, #2148c6);
    box-shadow: 0 8px 20px rgb(39 86 216 / 35%);
    font-size: 13px;
    font-weight: 800;
    place-items: center;
}

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

.brand strong {
    font-size: 17px;
}

.brand small {
    margin-top: 3px;
    color: #9199aa;
    font-size: 12px;
}

.navigation {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-label {
    margin: 20px 12px 6px;
    color: #7c8495;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-radius: 10px;
    color: #d5d9e2;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.nav-link:hover {
    background: #202a3d;
    color: #fff;
}

.nav-link span {
    width: 20px;
    color: #8fa9ff;
    font-size: 18px;
    text-align: center;
}

.privacy-note {
    margin-top: auto;
    padding: 16px;
    border: 1px solid #2d374b;
    border-radius: 12px;
    background: #192234;
}

.privacy-note strong {
    color: #cbd7ff;
    font-size: 12px;
}

.privacy-note p {
    margin: 7px 0 0;
    color: #8f98a9;
    font-size: 12px;
    line-height: 1.55;
}

.main-content {
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 102px;
    padding: 20px 34px;
    border-bottom: 1px solid var(--line);
    background: rgb(255 255 255 / 88%);
    backdrop-filter: blur(14px);
}

.topbar h1 {
    margin: 4px 0 0;
    font-size: clamp(24px, 3vw, 31px);
    letter-spacing: -.035em;
}

.eyebrow {
    margin: 0;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
}

.signed-in-user {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 320px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.signed-in-user form {
    margin-left: 4px;
}

.signed-in-user small,
.signed-in-user strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.signed-in-user small {
    color: var(--ink-soft);
    font-size: 10px;
}

.signed-in-user strong {
    margin-top: 2px;
    font-size: 13px;
}

.user-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #20b486;
    box-shadow: 0 0 0 4px #e2f8f0;
}

.page-content {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: 30px 34px 60px;
}

.section-heading,
.panel-header,
.company-hero,
.hero-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading > div,
.metric-grid,
.metric-card {
    min-width: 0;
}

.section-heading h2,
.panel-header h2,
.panel-header h3,
.company-hero h2 {
    margin: 0;
    letter-spacing: -.025em;
}

.section-heading p,
.panel-header p {
    margin: 6px 0 0;
    color: var(--ink-soft);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.metric-card {
    position: relative;
    overflow: hidden;
    min-height: 145px;
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 7px 25px rgb(21 34 58 / 4%);
}

.metric-card::after {
    position: absolute;
    right: -22px;
    bottom: -34px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--primary-soft);
    content: "";
}

.metric-card.metric-warning::after {
    background: var(--warning-soft);
}

.metric-accent {
    border-color: transparent;
    background: linear-gradient(145deg, #315ed9, #203f9e);
    color: #fff;
}

.metric-accent::after {
    background: rgb(255 255 255 / 9%);
}

.metric-label,
.metric-card strong,
.metric-card small {
    position: relative;
    z-index: 1;
    display: block;
}

.metric-label {
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
}

.metric-accent .metric-label,
.metric-accent small {
    color: #dce5ff;
}

.metric-card strong {
    margin-top: 16px;
    font-size: 29px;
    letter-spacing: -.04em;
}

.metric-card small {
    margin-top: 7px;
    color: var(--ink-soft);
}

.panel {
    margin-bottom: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.panel-header {
    padding: 21px 24px;
    border-bottom: 1px solid var(--line);
}

.panel-header h2 {
    font-size: 19px;
}

.panel-header h3 {
    font-size: 17px;
}

.panel-header p {
    font-size: 13px;
}

.count-chip,
.status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.count-chip {
    padding: 6px 10px;
    background: var(--surface-soft);
    color: var(--ink-soft);
}

.status-badge {
    padding: 5px 9px;
}

.status-good {
    background-color: var(--good-soft);
    color: var(--good);
}

.status-warning {
    background-color: var(--warning-soft);
    color: #884600;
}

.status-danger {
    background-color: var(--danger-soft);
    color: var(--danger);
}

.status-muted {
    background-color: #f0f1f3;
    color: #475467;
}

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

.table-scroll:focus-visible {
    outline: 3px solid rgb(39 86 216 / 35%);
    outline-offset: 2px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 15px 18px;
    border-bottom: 1px solid #edf0f3;
    text-align: left;
    vertical-align: middle;
}

th {
    background: #fafbfc;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

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

tbody tr:hover {
    background: #fbfcff;
}

.table-subtitle {
    display: block;
    max-width: 220px;
    margin-top: 5px;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.storage-cell {
    min-width: 210px;
}

.storage-summary {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.storage-summary small,
.storage-cell > small {
    color: var(--ink-soft);
}

.quota-progress {
    display: block;
    width: 100%;
    height: 9px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #e9edf2;
    color: var(--primary);
    accent-color: var(--primary);
}

.quota-progress::-webkit-progress-bar {
    border-radius: 999px;
    background: #e9edf2;
}

.quota-progress::-webkit-progress-value {
    border-radius: 999px;
    background: currentcolor;
}

.quota-progress::-moz-progress-bar {
    border-radius: 999px;
    background: currentcolor;
}

.quota-progress.status-good {
    color: var(--good);
    accent-color: var(--good);
}

.quota-progress.status-warning {
    color: var(--warning);
    accent-color: var(--warning);
}

.quota-progress.status-danger {
    color: var(--danger);
    accent-color: var(--danger);
}

.compact-progress {
    margin: 7px 0 5px;
    height: 6px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--primary);
    color: #fff;
}

.button-primary:hover {
    background: var(--primary-dark);
}

.button-secondary {
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
}

.button-secondary:hover {
    border-color: #b9c2d0;
    background: #f9fafb;
}

.button-danger {
    border-color: #e3a7a1;
    background: #fff;
    color: var(--danger);
}

.button-danger:hover {
    background: var(--danger-soft);
}

.button-small {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
}

.text-link,
.text-button {
    border: 0;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.text-button {
    min-height: 40px;
    padding: 6px;
}

.text-link:hover,
.text-button:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.inline-form {
    display: inline;
}

.inline-form + .inline-form {
    margin-left: 8px;
}

.flash {
    margin: 18px 34px 0;
    padding: 13px 16px;
    border-radius: 10px;
    font-weight: 650;
}

.flash-success {
    border: 1px solid #b9ead9;
    background: var(--good-soft);
    color: var(--good);
}

.flash-warning {
    border: 1px solid #f0cf9b;
    background: var(--warning-soft);
    color: #884600;
}

.flash-error,
.validation-summary {
    border: 1px solid #f0c1bd;
    background: var(--danger-soft);
    color: var(--danger);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--ink-soft);
    font-size: 13px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb strong {
    color: var(--ink);
}

.company-hero {
    margin-bottom: 20px;
    padding: 23px 25px;
    border: 1px solid #dbe3fa;
    border-radius: 16px;
    background: linear-gradient(140deg, #fff, #f0f4ff);
}

.company-hero h2 {
    font-size: 25px;
}

.company-hero code {
    display: inline-block;
    margin-top: 8px;
    color: var(--ink-soft);
}

.provisioning-code-panel {
    display: grid;
    gap: 0.9rem;
    border-color: #93c5fd;
    background: #eff6ff;
}

.provisioning-code-value {
    display: block;
    width: 100%;
    padding: 1rem;
    overflow-wrap: anywhere;
    border: 1px solid #93c5fd;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #0f172a;
    font-size: 1rem;
    user-select: all;
}

.hero-title-row {
    justify-content: flex-start;
}

.company-hero h2,
.hero-title-row,
.company-hero code {
    overflow-wrap: anywhere;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 20px;
}

.approval-panel {
    overflow: hidden;
    border-left-width: 4px;
}

.approval-panel.approval-pending {
    border-left-color: var(--warning);
}

.approval-panel.approval-approved {
    border-left-color: var(--good);
}

.approval-panel.approval-rejected {
    border-left-color: var(--danger);
}

.approval-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
    gap: 24px;
    padding: 22px 24px;
}

.approval-summary h2 {
    margin-top: 10px;
    font-size: 20px;
}

.approval-summary p,
.approval-notice {
    color: var(--ink-soft);
}

.approval-facts {
    display: grid;
    gap: 12px;
    margin: 0;
}

.approval-facts div {
    display: grid;
    gap: 4px;
}

.approval-facts dt {
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
}

.approval-facts dd {
    margin: 0;
    font-weight: 750;
}

.approval-notice {
    margin: 0 24px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--warning-soft);
    font-size: 13px;
}

.approval-actions {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    padding: 18px 24px 22px;
}

.approval-reject-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.confirmation-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 390px;
    color: var(--ink-soft);
    font-size: 12px;
}

.confirmation-row input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.storage-overview .panel-header {
    border-bottom: 0;
    padding-bottom: 8px;
}

.storage-numbers,
.storage-overview > .quota-progress,
.mini-stats {
    margin-right: 24px;
    margin-left: 24px;
}

.storage-numbers {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 13px;
}

.storage-numbers strong {
    font-size: 31px;
    letter-spacing: -.04em;
}

.storage-numbers span {
    color: var(--ink-soft);
}

.mini-stats {
    display: flex;
    gap: 20px;
    margin-top: 17px;
    margin-bottom: 22px;
    color: var(--ink-soft);
}

.mini-stats strong {
    color: var(--ink);
}

.boundary-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 24px;
    border-color: #dbe3fa;
    background: #f5f7ff;
}

.boundary-card h3,
.boundary-card p {
    margin: 0;
}

.boundary-card p {
    margin-top: 7px;
    color: var(--ink-soft);
    line-height: 1.65;
}

.boundary-icon,
.context-icon {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 800;
    place-items: center;
}

.training-review-heading {
    align-items: center;
}

.training-review-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1px 10px;
    min-width: 250px;
    padding: 13px 15px;
    border-radius: 12px;
    background: var(--primary-soft);
}

.training-review-summary strong {
    grid-row: 1 / span 2;
    color: var(--primary);
    font-size: 28px;
    line-height: 1;
}

.training-review-summary span {
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
}

.training-review-summary button {
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.training-review-summary button:disabled {
    color: #8794a7;
    cursor: wait;
}

.training-review-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.training-candidate-panel {
    max-height: 720px;
    padding: 0;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.training-candidate-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.training-candidate-list li + li {
    border-top: 1px solid var(--line);
}

.training-candidate-list button {
    display: grid;
    gap: 6px;
    width: 100%;
    padding: 16px;
    border: 0;
    background: #fff;
    color: #41536d;
    text-align: left;
    cursor: pointer;
}

.training-candidate-list button:hover {
    background: #f5f8fd;
}

.training-candidate-list .training-candidate-selected {
    background: var(--primary-soft);
    color: #203b63;
    box-shadow: inset 4px 0 var(--primary);
}

.training-candidate-list button > span:not(.training-candidate-topline) {
    color: var(--ink-soft);
    font-size: 12px;
}

.training-candidate-list p {
    display: -webkit-box;
    margin: 1px 0 0;
    overflow: hidden;
    color: #334966;
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.training-candidate-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.training-candidate-topline strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.training-candidate-topline > span {
    flex: 0 0 auto;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 750;
}

.training-review-editor {
    display: grid;
    gap: 20px;
    padding: 22px;
}

.training-review-editor-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.training-review-editor-heading h3 {
    margin: 5px 0 4px;
    font-size: 23px;
    letter-spacing: -.025em;
}

.training-review-editor-heading p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 12px;
}

.training-speaker {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.training-speaker-self {
    background: var(--primary-soft);
    color: var(--primary);
}

.training-speaker-peer {
    background: var(--good-soft);
    color: var(--good);
}

.training-review-editor audio {
    width: 100%;
}

.training-recognized-text {
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
}

.training-recognized-text h4 {
    margin: 0 0 8px;
    color: var(--ink-soft);
    font-size: 12px;
}

.training-recognized-text p {
    margin: 0;
    color: #263d5f;
    line-height: 1.65;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.training-corrected-text {
    display: grid;
    gap: 8px;
}

.training-corrected-text > span {
    color: #263d5f;
    font-size: 13px;
    font-weight: 800;
}

.training-corrected-text textarea {
    width: 100%;
    min-height: 130px;
    padding: 13px 14px;
    resize: vertical;
    border: 1px solid #bfcbdc;
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    line-height: 1.6;
}

.training-corrected-text textarea:focus {
    border-color: var(--primary);
    outline: 3px solid rgb(39 86 216 / 18%);
}

.training-review-error {
    margin: -5px 0 0;
    padding: 11px 13px;
    border-radius: 9px;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 13px;
}

.training-review-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.training-review-actions button:disabled {
    opacity: .62;
    cursor: wait;
}

.training-review-loading,
.training-review-empty {
    display: grid;
    min-height: 430px;
    padding: 30px;
    text-align: center;
    place-items: center;
    align-content: center;
    gap: 12px;
}

.training-review-empty h2,
.training-review-empty p {
    margin: 0;
}

.training-review-empty p {
    color: var(--ink-soft);
}

.training-loading-mark {
    width: 36px;
    height: 36px;
    border: 4px solid #dce5fb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: training-loading-spin .8s linear infinite;
}

@keyframes training-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 720px) minmax(260px, 360px);
    align-items: start;
    gap: 20px;
}

.form-panel {
    padding-bottom: 24px;
}

.field,
.toggle-row,
.form-actions,
.validation-summary {
    margin-right: 24px;
    margin-left: 24px;
}

.field {
    margin-top: 21px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 750;
}

.field input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cfd5df;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--ink);
}

.field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgb(39 86 216 / 12%);
}

.business-registration-field {
    min-width: 0;
    padding: 0;
    border: 0;
}

.business-registration-field legend {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    font-size: 13px;
    font-weight: 750;
}

.business-registration-inputs {
    display: grid;
    grid-template-columns: minmax(0, 3fr) auto minmax(0, 2fr) auto minmax(0, 5fr);
    align-items: center;
    gap: 8px;
    max-width: 400px;
}

.field .business-registration-inputs input {
    min-width: 0;
    text-align: center;
    letter-spacing: .08em;
    font-variant-numeric: tabular-nums;
}

.business-registration-separator {
    color: var(--ink-soft);
    font-weight: 750;
}

.field small,
.toggle-row small {
    display: block;
    margin-top: 7px;
    color: var(--ink-soft);
    line-height: 1.5;
}

.input-suffix {
    position: relative;
}

.input-suffix input {
    padding-right: 60px;
}

.input-suffix > span {
    position: absolute;
    top: 50%;
    right: 13px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
    transform: translateY(-50%);
}

.toggle-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 23px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface-soft);
    cursor: pointer;
}

.toggle-row input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.toggle-row small {
    margin-top: 3px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 26px;
}

.login-panel {
    padding: 30px;
}

.login-panel h1 {
    margin: 0 0 10px;
}

.login-panel > p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.6;
}

.login-kicker {
    margin-bottom: 8px !important;
    color: var(--primary) !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}

.login-flash {
    margin: 20px 0 0;
}

.social-login-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.social-login-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 13px 52px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #182230;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.social-login-button:hover {
    transform: translateY(-1px);
}

.social-login-button:active {
    box-shadow: none;
    transform: translateY(0);
}

.social-login-button:focus-visible {
    outline: 3px solid rgb(39 86 216 / 28%);
    outline-offset: 3px;
}

.social-login-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    display: grid;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    place-items: center;
}

.social-login-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.social-login-button-google {
    border-color: #d0d5dd;
    background: #fff;
    box-shadow: 0 1px 2px rgb(16 24 40 / 5%);
}

.social-login-button-google:hover {
    border-color: #aeb7c5;
    box-shadow: 0 8px 18px rgb(16 24 40 / 10%);
}

.social-login-button-kakao {
    border-color: #f2d900;
    background: #fee500;
    color: rgb(0 0 0 / 85%);
    box-shadow: 0 1px 2px rgb(16 24 40 / 8%);
}

.social-login-button-kakao:hover {
    border-color: #e2ca00;
    background: #f5dc00;
    box-shadow: 0 8px 18px rgb(74 64 0 / 16%);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 18px;
    color: var(--ink-soft);
    font-size: 12px;
}

.login-divider::before,
.login-divider::after {
    height: 1px;
    background: var(--line);
    content: "";
    flex: 1;
}

.approval-form {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 620px;
}

.approval-form select {
    min-height: 40px;
    padding: 7px 9px;
    border: 1px solid #cfd5df;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
}

.toggle-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.toggle-inline input {
    accent-color: var(--primary);
}

.context-card {
    padding: 22px;
    border: 1px solid #dbe3fa;
    border-radius: 15px;
    background: #f5f7ff;
}

.context-card h3 {
    margin: 15px 0 7px;
}

.context-card p {
    margin: 8px 0 0;
    color: var(--ink-soft);
    line-height: 1.65;
}

.warning-card {
    border-color: #f1d3ae;
    background: #fff9f1;
}

.warning-card .context-icon {
    background: var(--warning-soft);
    color: var(--warning);
}

.validation-summary {
    margin-top: 20px;
    padding: 12px 14px;
    border-radius: 9px;
}

.validation-summary:empty {
    display: none;
}

.validation-summary-valid {
    display: none;
}

.validation-summary ul {
    margin: 0;
    padding-left: 18px;
}

.field-error {
    display: block;
    margin-top: 6px;
    color: var(--danger);
    font-size: 12px;
}

.empty-state {
    display: grid;
    justify-items: center;
    min-height: 360px;
    padding: 50px 24px;
    text-align: center;
    place-content: center;
}

.empty-state.compact {
    min-height: 210px;
    padding: 38px 24px;
}

.empty-state h2,
.empty-state h3,
.empty-state p {
    margin: 0;
}

.empty-state p {
    max-width: 500px;
    margin-top: 8px;
    color: var(--ink-soft);
    line-height: 1.6;
}

.empty-state .button,
.empty-state code {
    margin-top: 18px;
}

.empty-icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 15px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 21px;
    font-weight: 800;
    place-items: center;
}

code {
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: .86em;
}

.code-small {
    display: block;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .social-login-button {
        transition: none;
    }

    .social-login-button:hover {
        transform: none;
    }

    .training-loading-mark {
        animation: none;
    }
}

@media (max-width: 1100px) {
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .training-review-layout {
        grid-template-columns: 1fr;
    }

    .training-candidate-panel {
        max-height: 330px;
    }
}

@media (max-width: 760px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: static;
        display: block;
        width: 100%;
        height: auto;
        padding: 16px;
    }

    .brand {
        padding-bottom: 12px;
    }

    .navigation {
        flex-flow: row wrap;
    }

    .nav-label {
        display: none;
    }

    .privacy-note {
        margin-top: 12px;
        overflow-wrap: anywhere;
    }

    .nav-link {
        padding: 9px 11px;
    }

    .topbar {
        position: relative;
        min-height: 88px;
        padding: 18px 100px 18px 18px;
    }

    .signed-in-user {
        position: absolute;
        top: 18px;
        right: 12px;
        padding: 6px;
        border: 0;
        background: transparent;
    }

    .signed-in-user > span {
        display: none;
    }

    .page-content {
        padding: 22px 16px 48px;
    }

    .flash {
        margin-right: 16px;
        margin-left: 16px;
    }

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

    .section-heading,
    .company-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .training-review-heading {
        align-items: stretch;
    }

    .training-review-summary {
        min-width: 0;
    }

    .training-review-editor-heading {
        gap: 12px;
    }

    .training-review-actions {
        flex-direction: column-reverse;
    }

    .training-review-actions .button {
        width: 100%;
    }

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

    .approval-actions,
    .approval-reject-form {
        align-items: stretch;
        flex-direction: column;
    }

    .mini-stats {
        flex-direction: column;
        gap: 6px;
    }

    .standalone-page {
        padding: 18px;
    }

    .login-panel {
        padding: 26px 22px;
    }

    .social-login-button {
        min-height: 54px;
        padding: 12px 42px;
        font-size: 14px;
    }

    .social-login-icon {
        left: 15px;
    }
}
