:root {
    color-scheme: light;
    --bg: #f5f8f6;
    --surface: #ffffff;
    --ink: #132b21;
    --muted: #5c7065;
    --line: #dfe9e3;
    --green: #15794e;
    --green-dark: #10613e;
    --mint: #e6f5eb;
    --canvas: #eff7f2;
    --radius: 21px;
    font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
svg { flex: none; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.045em; }
h1 { font-size: clamp(30px, 4vw, 41px); line-height: 1.22; font-weight: 800; }
h2 { font-size: 21px; line-height: 1.3; font-weight: 760; }
h3 { font-size: 18px; }
p, span, dd { overflow-wrap: anywhere; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
:focus-visible { outline: 3px solid #48a973; outline-offset: 3px; }
.muted { color: var(--muted); }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 43px; padding: 9px 15px; border-radius: 11px; border: 1px solid #d9e5dd;
    color: #29463a; background: var(--surface); font-weight: 680; white-space: nowrap;
}
.btn:hover { background: #edf6ef; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-dark); }
.btn.small { min-height: 36px; padding: 6px 11px; font-size: 14px; }
.btn.wide { width: 100%; justify-content: space-between; min-height: 49px; }
.btn.danger { color: #a13938; border-color: #ecd0ce; }
.btn.danger:hover { background: #fff0ee; }
.icon-btn {
    display: inline-grid; place-items: center; width: 37px; height: 37px;
    border-radius: 10px; border: 1px solid var(--line); color: #456156; background: #fff;
}
.icon-btn:hover { background: var(--mint); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; font-size: 26px; font-weight: 850; letter-spacing: -.075em; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; color: #e2ffef; background: var(--green); border-radius: 13px; }
.section-icon, .metric-icon {
    display: inline-grid; place-items: center; background: var(--mint); color: var(--green-dark);
    width: 48px; height: 48px; border-radius: 15px; flex: none;
}
.metric-icon { width: 40px; height: 40px; border-radius: 12px; }
.notice {
    display: flex; align-items: center; gap: 9px; padding: 12px 14px; margin: 0 0 18px;
    border: 1px solid #cde8d7; background: #eff9f1; color: #175936; border-radius: 12px;
}
.notice-error { background: #fff1ef; border-color: #f1d3cf; color: #9b3937; }
.field { display: block; margin: 0 0 15px; font-weight: 680; font-size: 14px; }
.field > input, .field > textarea, .joined-input { margin-top: 6px; }
.field input, .field textarea, .search-box, select {
    width: 100%; min-height: 45px; border: 1px solid #d6e4db; border-radius: 11px;
    background: #fff; padding: 9px 12px; font-weight: 500;
}
input::placeholder, textarea::placeholder { color: #687a70; }
textarea { resize: vertical; }
.field-help { color: var(--muted); font-size: 14px; margin: -3px 0 16px; }
.login-page, .problem-page { min-height: 100vh; display: grid; align-items: center; }
.login-page { background: #eef5f0; }
.login-shell {
    width: min(calc(100% - 64px), 1160px); margin: 32px auto;
    display: grid; grid-template-columns: .96fr 1.04fr; min-height: min(720px, calc(100vh - 64px));
    padding: 12px; border-radius: 30px; background: var(--surface); border: 1px solid #dfeae3;
    box-shadow: 0 22px 75px #1c4a2b14;
}
.login-main { padding: 30px 36px 22px; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; }
.login-form { width: min(100%, 350px); align-self: center; margin: 0 auto; }
.login-form .section-icon { margin-bottom: 16px; }
.login-form h1 { margin-bottom: 9px; font-size: clamp(30px, 3vw, 39px); }
.login-form > p { margin-bottom: 22px; }
.login-form .btn { margin-top: 5px; }
.login-foot { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.login-visual {
    position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column;
    justify-content: space-between; padding: 34px; border-radius: 22px; color: #eaffef;
    background: radial-gradient(ellipse at 76% 48%, #329966 0%, #1b7650 36%, transparent 72%), linear-gradient(140deg, #0a3628, #125738);
}
.login-visual::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22;
    background: radial-gradient(#b8ebc8 1px, transparent 1px) 0 0 / 20px 20px;
    mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 65%, transparent);
}
.login-host {
    display: flex; align-items: center; width: fit-content; min-height: 37px; gap: 9px;
    color: #e5f9ea; border: 1px solid #b4e5c14d; background: #e0ffe414; padding: 5px 12px; border-radius: 20px;
    font-size: 14px; font-weight: 620;
}
.login-visual-copy { position: relative; z-index: 1; }
.login-visual-copy p { font-size: clamp(29px, 3vw, 43px); line-height: 1.32; letter-spacing: -.07em; font-weight: 760; }
.network-art { position: absolute; z-index: 0; width: min(69%, 345px); aspect-ratio: 1; top: 45%; left: 52%; transform: translate(-50%, -50%); }
.orbit { position: absolute; border: 1px solid #bcfbd152; border-radius: 50%; }
.orbit-outer { inset: 0; border-style: dashed; }
.orbit-middle { inset: 13%; }
.orbit-inner { inset: 28%; background: #a8ffca13; box-shadow: 0 0 70px #91ffbf39; }
.orbit-core {
    position: absolute; display: grid; place-items: center; inset: 35%; border-radius: 25%;
    color: #edfff0; background: #93e5aa59; border: 1px solid #c0edca98; box-shadow: 0 8px 25px #083f2b66;
}
.orbit-core svg { width: 67%; height: auto; }
.orbit-node {
    display: grid; place-items: center; position: absolute; width: 46px; height: 46px; border-radius: 15px;
    color: #d8fae2; background: #3d9069; border: 1px solid #c0edca80; box-shadow: 0 7px 22px #0f40255e;
    transform: translate(-50%, -50%);
}
.node-top { left: 50%; top: 13%; } .node-right { left: 86%; top: 52%; }
.node-bottom { left: 50%; top: 86%; } .node-left { left: 13%; top: 50%; }
.orbit-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #d0f4bc; box-shadow: 0 0 11px #cafaac; }
.dot-one { top: 14%; left: 85%; } .dot-two { top: 85%; left: 13%; } .dot-three { top: 82%; left: 67%; }

.app-shell { display: grid; grid-template-columns: 215px minmax(0, 1fr); min-height: 100dvh; }
.sidebar {
    position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 27px 18px 19px;
    background: #fff; border-right: 1px solid var(--line);
}
.sidebar .brand { margin: 0 0 46px 9px; }
.nav { display: grid; gap: 6px; }
.nav a {
    display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 11px;
    min-height: 46px; color: #51685a; font-weight: 660;
}
.nav a:hover { background: var(--canvas); }
.nav a[aria-current="page"] { color: #156441; background: #e4f3e8; font-weight: 760; }
.sidebar-footer { margin-top: auto; border-top: 1px solid var(--line); padding: 15px 6px 0; }
.sidebar-server { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.topbar {
    min-height: 70px; padding: 10px clamp(20px, 3.1vw, 48px); display: flex; align-items: center; justify-content: space-between;
    gap: 14px; background: #fff; border-bottom: 1px solid var(--line);
}
.location, .identity { display: flex; align-items: center; gap: 9px; color: #405e50; font-weight: 650; }
.identity { gap: 12px; }
.avatar { display: grid; place-items: center; background: #eaf5ed; color: var(--green-dark); width: 34px; height: 34px; border-radius: 50%; }
.identity-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-content { width: min(100%, 1480px); margin: auto; padding: 34px clamp(20px, 3.1vw, 48px) 42px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 23px; }
.page-heading p { margin-top: 8px; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.heading-actions:empty { display: none; }
.status-band {
    display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 18px; padding: 19px 21px;
    border-radius: var(--radius); background: linear-gradient(108deg, #e4f3e9, #eff7f1 73%, #e7f6ea);
    border: 1px solid #d5e9db;
}
.status-lead { display: flex; align-items: center; gap: 14px; }
.status-lead p { color: #496756; font-size: 14px; margin-top: 4px; }
.status-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: #fff; color: var(--green); }
.status-side { display: flex; align-items: center; gap: 14px; }
.status-time { display: grid; gap: 1px; text-align: right; white-space: nowrap; }
.status-time span { color: var(--muted); font-size: 14px; }
.status-time strong { font-variant-numeric: tabular-nums; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 21px; box-shadow: 0 2px 6px #203b2c04; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.metric { padding: 15px 17px 16px; }
.metric-label { display: flex; justify-content: space-between; align-items: center; gap: 7px; color: #385748; font-weight: 680; }
.metric-value { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.055em; line-height: 1.05; margin: 13px 0 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-value small { color: #4d6d5b; font-size: 16px; margin-left: 4px; }
.metric-detail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 9px; }
.metric-detail p { color: var(--muted); font-size: 14px; }
.metric-detail > span { margin-left: auto; font-size: 14px; font-weight: 700; }
.metric.warn { --usage: #b77920; color: #87570b; }
.metric.bad { --usage: #c75a52; color: #a13d37; }
progress, .metric-divider { display: block; width: 100%; height: 5px; border: 0; border-radius: 9px; background: #edf3ee; }
progress::-webkit-progress-bar { background: #edf3ee; border-radius: 9px; }
progress::-webkit-progress-value { background: var(--usage, #39a36f); border-radius: 9px; }
progress::-moz-progress-bar { background: var(--usage, #39a36f); border-radius: 9px; }
.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 30px;
    background: #edf1ef; color: #4b6256; font-size: 14px; font-weight: 690; white-space: nowrap;
}
.badge > span { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.badge.good { background: #e4f6e9; color: #176841; }
.badge.warn { background: #fff3d9; color: #87570b; }
.badge.bad { background: #fae9e7; color: #a13d37; }
.overview-grid { display: grid; grid-template-columns: 1.28fr minmax(0, 1fr); gap: 16px; margin-bottom: 18px; }
.panel-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-title p { color: var(--muted); margin-top: 5px; font-size: 14px; }
.service-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 0; }
.service-row + .service-row { border-top: 1px solid #ebf1ec; }
.service-row div { display: grid; gap: 1px; }
.service-row div span { font-size: 14px; color: var(--muted); }
.service-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #317755; background: #edf6ef; }
.chart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin-top: 23px; }
.chart-labels { display: flex; flex-direction: column; justify-content: space-between; height: 170px; color: var(--muted); font-size: 14px; text-align: right; }
.chart-data svg { display: block; overflow: visible; height: 164px; width: 100%; margin-top: 3px; }
.chart-grid-lines { fill: none; stroke: #e7efe9; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-line { fill: none; stroke: #279462; stroke-width: 2.25; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart-times { display: flex; justify-content: space-between; color: var(--muted); margin-top: 6px; font-size: 14px; }
.chart-empty { color: var(--muted); min-height: 180px; display: grid; place-content: center; justify-items: center; gap: 10px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 16px; }
.facts > div { display: grid; justify-items: start; align-content: start; gap: 5px; }
.facts > div > span:first-child, .details dt { color: var(--muted); }
.details { margin: 0; }
.details div { display: flex; justify-content: space-between; padding: 9px 0; gap: 10px; }
.details div + div { border-top: 1px solid #ebf1ec; }
.details dd { margin: 0; text-align: right; font-weight: 650; }

.domain-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 18px; }
.domain-stat { display: flex; align-items: center; gap: 13px; }
.domain-stat div:nth-child(2) { display: grid; color: var(--muted); gap: 3px; }
.domain-stat strong { font-size: 30px; line-height: 1.05; color: var(--ink); letter-spacing: -.05em; }
.directory-panel { padding: 0; overflow: hidden; }
.directory-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px; }
.directory-toolbar p { margin-top: 4px; font-size: 14px; }
.search-form { display: flex; align-items: center; gap: 8px; }
.search-box { display: flex; align-items: center; gap: 8px; min-width: 190px; padding: 0 10px; color: var(--muted); }
.search-box input { width: 100%; min-width: 0; border: 0; min-height: 43px; background: transparent; color: var(--ink); }
.search-box:focus-within { outline: 2px solid #48a973; }
.search-box input:focus-visible { outline: none; }
select { width: auto; padding-right: 8px; white-space: nowrap; font-size: 14px; }
.empty { display: grid; justify-items: center; gap: 11px; text-align: center; min-height: 290px; align-content: center; padding: 24px; border-top: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
th, td { padding: 13px 15px; border-top: 1px solid var(--line); text-align: left; }
th:first-child, td:first-child { padding-left: 20px; }
th { background: #f0f6f2; color: #486457; }
td strong, .ssl-note, .domain-host, .domain-link { display: block; }
td strong { white-space: normal; }
.domain-host, .domain-link { margin-top: 3px; color: #537262; }
.domain-link { color: var(--green-dark); font-weight: 630; }
.domain-link:hover { text-decoration: underline; }
.ssl-note { margin-top: 4px; color: #526c5e; }
.folder { display: inline-flex; align-items: center; gap: 6px; color: #476759; border-radius: 8px; padding: 5px 7px; background: #f0f5f1; }
.folder code { color: var(--ink); font-size: 14px; }
.domain-dialog {
    width: min(calc(100% - 30px), 530px); max-height: calc(100dvh - 30px);
    padding: 23px; border: 1px solid var(--line); border-radius: 23px; background: #fff; color: var(--ink); box-shadow: 0 24px 85px #18352d50;
}
.domain-dialog::backdrop { background: #0d28216e; backdrop-filter: blur(2px); }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 19px; }
.dialog-header p { margin-top: 5px; }
.joined-input { display: flex; align-items: stretch; border: 1px solid #d6e4db; border-radius: 11px; overflow: hidden; }
.joined-input > input { border: 0; min-width: 0; border-radius: 0; }
.joined-input:focus-within { outline: 2px solid #48a973; outline-offset: 1px; }
.joined-input input:focus-visible { outline: none; }
.joined-input span { display: inline-grid; align-items: center; white-space: nowrap; background: #edf5ef; color: #486659; padding: 0 8px; }
.dialog-actions, .domain-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.domain-controls { justify-content: flex-start; padding-top: 14px; margin-top: 15px; border-top: 1px solid var(--line); }
.account-panel { max-width: 690px; }
.account-panel .panel-title { margin-bottom: 21px; }
.password-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.problem { width: min(560px, calc(100% - 32px)); margin: 16px auto; }
.problem h1 { margin: 18px 0 7px; }
.problem .btn { margin-top: 20px; }

@media (max-width: 1110px) {
    .app-shell { grid-template-columns: 175px minmax(0, 1fr); }
    .sidebar { padding-inline: 12px; }
    .sidebar .brand { margin-left: 5px; }
    .metric-grid { gap: 10px; }
    .metric { padding-inline: 12px; }
    .metric-label .metric-icon { width: 33px; height: 33px; }
    .directory-toolbar { flex-wrap: wrap; }
}
@media (max-width: 860px) {
    .login-shell { width: min(calc(100% - 30px), 740px); min-height: min(670px, calc(100vh - 30px)); margin: 15px auto; }
    .login-main, .login-visual { padding-inline: 21px; }
    .overview-grid { grid-template-columns: 1fr; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 670px) {
    .app-shell { grid-template-columns: minmax(0, 1fr); }
    .sidebar { height: auto; padding: 12px 14px 8px; border: 0; border-bottom: 1px solid var(--line); z-index: 2; }
    .sidebar .brand { margin: 0 0 9px 3px; font-size: 22px; }
    .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
    .nav { display: flex; flex-wrap: wrap; gap: 3px; }
    .nav a { padding: 7px 7px; min-height: 37px; gap: 5px; font-size: 14px; }
    .nav a svg { width: 17px; height: 17px; }
    .sidebar-footer { display: none; }
    .topbar { min-height: 54px; padding: 5px 14px; }
    .main-content { padding: 21px 14px 28px; }
    .status-band { padding: 12px; }
    .status-lead { gap: 8px; }
    .status-icon { width: 39px; height: 39px; border-radius: 11px; }
    .status-icon svg { width: 22px; }
    .status-lead h2 { font-size: 17px; }
    .status-side { flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
    .panel, .domain-dialog { padding: 15px; }
    .directory-panel { padding: 0; }
    .domain-stats { gap: 8px; }
    .domain-stat { display: grid; gap: 6px; padding: 10px; }
    .domain-stat .metric-icon { width: 31px; height: 31px; }
    .domain-stat div:nth-child(2) { font-size: 14px; }
    .domain-stat strong { font-size: 24px; }
    .directory-toolbar { padding: 14px; }
    .search-form { width: 100%; }
    .search-box { min-width: 0; flex: 1; }
    .search-form .btn { padding-inline: 10px; }
    .password-fields { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 590px) {
    .login-shell { display: block; min-height: auto; width: min(100% - 24px, 430px); border-radius: 22px; }
    .login-main { padding: 16px 13px; gap: 24px; }
    .login-form { padding-block: 3px; }
    .login-form > p { margin-bottom: 17px; }
    .login-visual { display: none; }
}
@media (max-width: 385px) {
    .status-side .badge { display: none; }
}


@media (max-width: 535px) {
    .table-scroll { overflow: visible; }
    .table-scroll thead {
        position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
        clip-path: inset(50%); white-space: nowrap;
    }
    .table-scroll tr {
        display: grid; grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "name controls" "path path" "status date";
        align-items: center; gap: 8px; padding: 14px; border-top: 1px solid var(--line);
    }
    .table-scroll td { min-width: 0; padding: 0; border: 0; white-space: normal; }
    .table-scroll td:nth-child(1) { grid-area: name; }
    .table-scroll td:nth-child(2) { grid-area: path; }
    .table-scroll td:nth-child(3) { grid-area: status; }
    .table-scroll td:nth-child(4) { grid-area: date; text-align: right; }
    .table-scroll td:nth-child(5) { grid-area: controls; }
    .domain-link, .folder code { overflow-wrap: anywhere; }
    .path-input { flex-direction: column; }
    .path-input span { min-height: 32px; }
}
