:root { --mint: #18a999; --mint-d: #0f7f73; --bg: #f3f6f7; --line: #dfe5e8; --text: #1f2d33; --mute: #6b7c85; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif; color: var(--text); background: var(--bg); font-size: 14px; }
a { color: var(--mint-d); text-decoration: none; } a:hover { text-decoration: underline; }
h2 { margin: 0 0 14px; } h2 small, h3 small { color: var(--mute); font-weight: normal; font-size: 13px; margin-left: 6px; }

.topbar { height: 56px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; position: sticky; top: 0; z-index: 5; }
.brand { font-weight: 700; font-size: 17px; } .brand span { background: var(--mint); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; margin-left: 6px; }
.topinfo { display: flex; align-items: center; gap: 16px; }
.topinfo form { margin: 0; }
.clock { font-variant-numeric: tabular-nums; color: var(--mute); }
.who { display: flex; flex-direction: column; line-height: 1.2; } .who small { color: var(--mute); font-size: 11px; }
.badge { font-size: 12px; padding: 3px 8px; border-radius: 10px; } .badge.warn { background: #fff3d6; color: #8a6100; } .badge.ok { background: #dff5ee; color: var(--mint-d); }

.layout { display: flex; min-height: calc(100vh - 56px); }
.sidebar { width: 210px; background: #fff; border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.sidebar a { padding: 11px 14px; border-radius: 8px; color: var(--text); }
.sidebar a:hover { background: var(--bg); text-decoration: none; }
.sidebar a.active { background: var(--mint); color: #fff; font-weight: 600; }
.content { flex: 1; padding: 22px; min-width: 0; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.btn { display: inline-block; border: 1px solid var(--line); background: #fff; padding: 7px 14px; border-radius: 7px; cursor: pointer; font: inherit; color: var(--text); }
.btn.primary { background: var(--mint); border-color: var(--mint); color: #fff; } .btn.primary:hover { background: var(--mint-d); text-decoration: none; }
.btn.ghost:hover { background: var(--bg); text-decoration: none; }
input, select { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.searchbar, .filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.searchbar input { flex: 1; min-width: 160px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--mute); font-weight: 600; font-size: 12px; white-space: nowrap; }
.num { text-align: right; white-space: nowrap; }
tbody tr:hover { background: #fafcfc; } tr.sel { background: #e6f6f3 !important; }
.empty { color: var(--mute); text-align: center; padding: 22px 8px; }
.tag { font-size: 12px; background: #e8f1ff; color: #2a5db0; padding: 2px 7px; border-radius: 9px; white-space: nowrap; } .tag.sc { background: #fff0e0; color: #b25e00; }
.chip { display: inline-block; background: #e6f6f3; padding: 6px 12px; border-radius: 16px; margin-bottom: 12px; } .chip a { margin-left: 8px; }
.pager { display: flex; gap: 14px; justify-content: center; align-items: center; margin-top: 14px; }

.detail h3 { margin: 0 0 10px; } .detail h4 { margin: 18px 0 6px; }
.detail dl { display: grid; grid-template-columns: 80px 1fr; gap: 6px 10px; margin: 0; }
.detail dt { color: var(--mute); } .detail dd { margin: 0; word-break: break-all; }
.recent { list-style: none; padding: 0; margin: 0 0 14px; } .recent li { padding: 7px 0; border-bottom: 1px solid var(--line); } .recent small { color: var(--mute); }

.login-page { display: grid; place-items: center; min-height: 100vh; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px; width: 360px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.login-card h1 { margin: 0; font-size: 22px; text-align: center; } .login-card .sub { margin: 0; color: var(--mute); text-align: center; }
.login-card label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--mute); }
.alert { background: #fdecec; color: #b3261e; padding: 9px 12px; border-radius: 7px; font-size: 13px; }

td { white-space: nowrap; } td:nth-child(n+8), .recent { white-space: normal; }
.card { overflow-x: auto; }
@media (max-width: 1300px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .layout { flex-direction: column; } .sidebar { width: auto; flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); } .who small, .clock { display: none; } .content { overflow-x: auto; } }
