@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

* { box-sizing: border-box; }
body {
    font-family: 'Noto Sans KR', '맑은 고딕', 'Malgun Gothic', -apple-system, sans-serif;
    background: #f5f5f3;
    margin: 0;
    color: #2c2c2a;
}
.topbar {
    background: #0c447c;
    color: white;
}
.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-logo {
    color: white;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
}
.topbar-nav a {
    color: white;
    text-decoration: none;
    margin-left: 18px;
    font-size: 14px;
    opacity: 0.9;
}
.topbar-nav a:hover { opacity: 1; text-decoration: underline; }
.topbar-nav a.active {
    font-weight: 700;
    opacity: 1;
    background: rgba(255,255,255,0.18);
    padding: 6px 10px;
    border-radius: 5px;
    text-decoration: none;
}
.topbar-nav a.active:hover { text-decoration: none; }
.topbar-user {
    margin-left: 18px;
    font-size: 14px;
    font-weight: 500;
}
.dropdown {
    position: relative;
    display: inline-block;
    margin-left: 18px;
}
.dropdown-toggle {
    margin-left: 0 !important;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 28px;
    right: 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 160px;
    z-index: 100;
    flex-direction: column;
    padding: 6px 0;
}
.dropdown-menu.open {
    display: flex;
}
.dropdown-menu a {
    color: #2c2c2a !important;
    padding: 10px 16px;
    margin-left: 0 !important;
    font-size: 14px;
    white-space: nowrap;
}
.dropdown-menu a:hover {
    background: #f1efe8;
    text-decoration: none !important;
}
.dropdown-menu a.danger {
    color: #a32d2d !important;
}
.dropdown-menu a.active {
    background: #eef4fa;
    font-weight: 700;
}
.btn-danger {
    background: #a32d2d;
}
.footer-bar {
    background: #2c2c2a;
    color: #d3d1c7;
    margin-top: 40px;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
    font-size: 13px;
    line-height: 1.8;
}
.footer-inner p { margin: 2px 0; }
.footer-inner a { color: #d3d1c7; }

.view-toggle { margin-top: 12px; }
.view-toggle button {
    background: #e8e6dd;
    color: #444441;
    margin-right: 8px;
}
.view-toggle button.active {
    background: #0c447c;
    color: white;
}
.section-title {
    font-size: 16px;
    font-weight: 500;
    margin: 24px 0 10px;
}
.diff-card {
    background: white;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 12px;
}
.diff-card-header {
    font-weight: 500;
    margin-bottom: 8px;
    color: #a32d2d;
}
.diff-card-body div {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 6px;
}
.diff-label {
    display: inline-block;
    min-width: 20px;
    font-weight: 700;
    color: #0c447c;
}
.ts-note {
    font-size: 12px;
    color: #888780;
}
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
    margin-bottom: 12px;
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.checkbox-item input {
    width: auto;
    margin: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}
.container.narrow {
    max-width: 420px;
    padding-top: 48px;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
h1 { font-size: 22px; font-weight: 500; }
.search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.search-bar input[type="text"] {
    flex: 1;
    padding: 8px 12px;
}
select, input, button {
    padding: 8px 12px;
    font-size: 14px;
}
button {
    background: #185fa5;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
form label {
    display: block;
    margin-bottom: 12px;
}
form input {
    width: 100%;
    margin-top: 4px;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}
th, td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #e0dfd9;
    font-size: 14px;
}
.error { color: #a32d2d; }
.notice { color: #3b6d11; }
#compare-action { margin-top: 16px; }
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.compare-col {
    background: white;
    padding: 16px;
    border-radius: 8px;
}
.fulltext {
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.7;
    max-height: 600px;
    overflow-y: auto;
}
.guide-section {
    background: white;
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.guide-section h2 {
    font-size: 18px;
    font-weight: 500;
    margin-top: 0;
}
.guide-section p, .guide-section li {
    line-height: 1.7;
    font-size: 14px;
}
.steps { padding-left: 20px; }
.steps li { margin-bottom: 10px; }
.pagination {
    display: flex;
    gap: 6px;
    margin-top: 16px;
    align-items: center;
    flex-wrap: wrap;
}
.pagination button {
    background: #e8e6dd;
    color: #444441;
    padding: 6px 12px;
    border-radius: 4px;
}
.pagination button.active {
    background: #0c447c;
    color: white;
}
.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.pagination-ellipsis {
    padding: 0 4px;
    color: #888780;
}