:root {
  --p: #1f9c9b; --c: #30f1ef; --d: #0e4747;
  --p-hover: #178483; --p-text: #147a79; --p-soft: #e8f6f6; --p-line: #c9e8e8; --p-ring: rgba(48, 241, 239, 0.45);
  --bg: #ffffff; --bg-alt: #f4f8f8; --bg-muted: #ebf3f3; --line: #e1ecec; --line-strong: #cbdcdc;
  --text: #17302f; --text-muted: #4b6564; --text-subtle: #5f7776; --text-faint: #a9bcbb;
  --ok: #059669; --ok-soft: #ecfdf5; --warn: #b45309; --warn-soft: #fffbeb; --bad: #e11d48; --bad-soft: #fff1f2;
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
  --shadow-xs: 0 1px 2px rgba(14, 71, 71, 0.05);
  --shadow-sm: 0 1px 3px rgba(14, 71, 71, 0.05), 0 3px 10px rgba(14, 71, 71, 0.05);
  --shadow-lg: 0 24px 60px rgba(14, 71, 71, 0.2), 0 6px 18px rgba(14, 71, 71, 0.1);
  --sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 14px/1.5 var(--sans); background: var(--bg-alt); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--p-text); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 21px; margin: 4px 0; color: var(--d); letter-spacing: -0.2px; } h2 { font-size: 14.5px; margin: 0 0 10px; color: var(--d); }

.frame { display: flex; height: 100vh; }
.side { width: 248px; flex-shrink: 0; background: var(--bg); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--line); font-weight: 800; color: var(--d); letter-spacing: -0.3px; font-size: 15.5px; }
.brand .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--d); display: grid; place-items: center; }
.brand .mark i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px rgba(48, 241, 239, 0.25); }
.nav { flex: 1; overflow-y: auto; padding: 14px 12px; }
.nav-label { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--p-text); padding: 0 10px 6px; margin-top: 18px; }
.nav-label:first-child { margin-top: 0; }
.nav-item { position: relative; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; margin-top: 2px; border-radius: var(--r-md); font-size: 13px; font-weight: 550; color: var(--text-muted); }
.nav-item:hover { background: var(--bg-alt); text-decoration: none; }
.nav-item.on { background: var(--p-soft); color: var(--d); font-weight: 700; }
.nav-item.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--p); }
.nav-item .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex-shrink: 0; margin-left: 6px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-strong); margin-bottom: 16px; }
.tabs a { display: flex; align-items: center; gap: 8px; padding: 10px 16px; margin-bottom: -1px; font-weight: 600; color: var(--text-subtle); border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--d); text-decoration: none; }
.tabs a.on { color: var(--d); border-bottom-color: var(--p); }
.nav-item .count { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--text-subtle); }
.me { border-top: 1px solid var(--line); padding: 12px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--d); color: var(--c); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.me .who { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 650; color: var(--d); overflow: hidden; text-overflow: ellipsis; }
.me .who small { display: block; font-weight: 500; color: var(--text-subtle); font-size: 11px; }
.ghost { background: none; border: 0; color: var(--text-subtle); padding: 6px; border-radius: var(--r-sm); cursor: pointer; font: inherit; font-size: 12px; box-shadow: none; }
.ghost:hover { background: var(--bg-muted); color: var(--d); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bar { height: 60px; flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 0 28px; background: rgba(255, 255, 255, 0.9); border-bottom: 1px solid var(--line); }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-subtle); min-width: 0; }
.crumb .sep { color: var(--text-faint); } .crumb b { color: var(--d); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page { flex: 1; overflow: auto; padding: 24px 28px 60px; }
.wrap { max-width: 1160px; margin: 0 auto; }

.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow-xs); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row.sp { justify-content: space-between; align-items: flex-start; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
a.card.project { display: block; color: inherit; margin: 0; transition: box-shadow 0.15s, border-color 0.15s; }
a.card.project:hover { text-decoration: none; border-color: var(--p-line); box-shadow: var(--shadow-sm); }
label { display: block; font-weight: 650; margin: 12px 0 5px; font-size: 12.5px; color: var(--d); } label small { font-weight: 450; color: var(--text-subtle); }
input, select, textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); font: inherit; background: #fff; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 3px var(--p-ring); }
textarea { min-height: 74px; font-family: var(--mono); font-size: 12.5px; }
input[type=checkbox] { width: auto; margin-right: 7px; accent-color: var(--p); }

button { padding: 8px 16px; border: 1px solid var(--p-hover); background: var(--p-hover); color: #fff; border-radius: var(--r-md); font: inherit; font-weight: 650; font-size: 13.5px; cursor: pointer; box-shadow: 0 2px 8px rgba(31, 156, 155, 0.25); transition: background 0.15s; }
button:hover { background: var(--d); border-color: var(--d); }
button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--p-ring); }
button.sec { background: #fff; color: var(--d); border-color: var(--line-strong); box-shadow: var(--shadow-xs); } button.sec:hover { background: var(--bg-alt); }
button.bad { background: #fff; color: #be123c; border-color: #fecdd3; box-shadow: none; } button.bad:hover { background: var(--bad-soft); }
button { white-space: nowrap; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.04em; background: var(--bg-alt); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--p-soft); }

.chip { display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--bg-muted); color: var(--text-muted); border: 1px solid var(--line); margin: 0 4px 2px 0; }
.chip.ok { background: var(--ok-soft); color: #047857; border-color: #bbf0d9; } .chip.warn { background: var(--warn-soft); color: var(--warn); border-color: #fde68a; } .chip.bad { background: var(--bad-soft); color: #be123c; border-color: #fecdd3; }
.chip.list { background: var(--p-soft); color: var(--d); border-color: var(--p-line); }
.muted { color: var(--text-subtle); } .small { font-size: 12.5px; } .url { word-break: break-all; font-size: 12.5px; color: var(--text-subtle); }
.banner { padding: 11px 16px; border-radius: var(--r-md); background: var(--warn-soft); border: 1px solid #fde68a; margin-bottom: 16px; font-size: 13px; }
.banner.ok { background: var(--p-soft); border-color: var(--p-line); color: var(--d); }
.stats { display: flex; gap: 22px; flex-wrap: wrap; } .stat { font-size: 12px; color: var(--text-subtle); } .stat b { font-size: 22px; display: block; color: var(--d); letter-spacing: -0.3px; line-height: 1.2; }
pre { background: var(--d); color: #cdeeee; padding: 14px; border-radius: var(--r-md); overflow: auto; font: 12.5px/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; max-height: 420px; margin: 0 0 12px; }
pre.md, pre.diff { background: var(--bg-alt); color: var(--text); border: 1px solid var(--line); }
.diff .add { color: #047857; background: var(--ok-soft); display: block; } .diff .del { color: #be123c; background: var(--bad-soft); display: block; } .diff span { display: block; }
.modal { position: fixed; inset: 0; background: rgba(14, 71, 71, 0.5); display: flex; align-items: flex-start; justify-content: center; padding: 36px 16px; overflow: auto; z-index: 5; }
.modal .box { background: #fff; border-radius: var(--r-lg); width: min(960px, 100%); padding: 22px; position: relative; box-shadow: var(--shadow-lg); }
.modal .x { position: absolute; right: 14px; top: 10px; background: none; border: 0; color: var(--text-subtle); font-size: 22px; padding: 0 6px; box-shadow: none; } .modal .x:hover { background: none; color: var(--d); }
.imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; } .imgs figure { margin: 0; } .imgs img { width: 100%; height: 100px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-muted); } .imgs figcaption { font-size: 11.5px; color: var(--text-subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--d); color: #fff; padding: 10px 18px; border-radius: var(--r-md); display: none; z-index: 9; box-shadow: var(--shadow-lg); border-left: 3px solid var(--c); } #toast.bad { background: #be123c; border-left-color: #fff; }
.key { font-family: var(--mono); background: var(--bg-alt); border: 1px solid var(--line); padding: 9px 12px; border-radius: var(--r-md); word-break: break-all; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(780px, 100%); display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.login-hero { background: var(--d); color: #cdeeee; padding: 34px 30px; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.login-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--p), var(--c)); }
.login-hero .brand { border: 0; padding: 0; height: auto; color: #fff; } .login-hero .brand .mark { background: rgba(255, 255, 255, 0.1); }
.login-hero p { margin: 0; font-size: 13.5px; line-height: 1.6; } .login-hero b { color: var(--c); }
.login-form { padding: 34px 30px; }
@media (max-width: 860px) {
  .frame { flex-direction: column; height: auto; min-height: 100vh; }
  .side { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; } .nav-label, .me { display: none; } .nav-item { white-space: nowrap; margin-top: 0; } .nav-item.on::before { display: none; }
  .page { padding: 18px 14px 40px; } .bar { padding: 0 14px; }
  .login-card { grid-template-columns: 1fr; } .login-hero { display: none; }
}

.badge { margin-left: 6px; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--p-hover); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.badge + .badge { margin-left: 4px; }
.nav-item .badge:first-of-type { margin-left: auto; }
.badge.run { background: var(--warn-soft); color: var(--warn); border: 1px solid #fde68a; line-height: 16px; }

.nav-group { margin-left: 10px; }
.nav-group .nav-item.on::before { left: -22px; }

.tablecard { padding: 0; overflow: visible; }
.tablecard table { margin: 0; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; background: var(--bg); }
.pager:first-child { border-bottom: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.pager.bottom { position: sticky; bottom: -60px; z-index: 2; border-top: 1px solid var(--line-strong); border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: 0 -6px 14px rgba(14, 71, 71, 0.06); }
.pgs { display: flex; gap: 4px; }
.pg { min-width: 32px; height: 32px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: var(--r-md); border: 1px solid var(--line); color: var(--d); font-weight: 600; font-size: 13px; background: #fff; }
a.pg:hover { background: var(--p-soft); text-decoration: none; border-color: var(--p-line); }
.pg.on { background: var(--p-hover); border-color: var(--p-hover); color: #fff; }
.pg.dis { color: var(--text-faint); background: transparent; border-color: transparent; }
.size { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; }
.size select { width: auto; padding: 5px 8px; }

.spin { width: 10px; height: 10px; margin-right: 6px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; vertical-align: -1px; animation: rot 0.8s linear infinite; }
.spin.slow { animation-duration: 2.4s; opacity: 0.6; }
@keyframes rot { to { transform: rotate(360deg); } }

.chip { white-space: nowrap; }

.gh { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; background: none; border: 0; box-shadow: none; color: var(--d); font-size: 14.5px; font-weight: 700; text-align: left; }
.gh:hover { background: none; }
.chev { display: inline-block; transition: transform 0.15s; color: var(--text-subtle); }
.chev.open { transform: rotate(90deg); }
.group .pager { padding: 12px 0 8px; }
.group table { margin-top: 4px; }

.info { position: relative; display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 6px; border-radius: 50%; border: 1px solid var(--p); color: var(--p-text); font: italic 700 10px/1 Georgia, serif; cursor: help; vertical-align: 1px; }
.info:hover, .info:focus { background: var(--p-soft); outline: none; }
.info::after { content: attr(data-tip); position: absolute; left: -8px; top: 22px; z-index: 6; width: 300px; padding: 10px 12px; border-radius: var(--r-md); background: var(--d); color: #fff; font: 400 12px/1.5 var(--sans); font-style: normal; text-transform: none; letter-spacing: 0; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.12s; white-space: normal; }
.info:hover::after, .info:focus::after { opacity: 1; visibility: visible; }

.pbar { display: flex; height: 8px; margin: 10px 0 4px; border-radius: 999px; background: var(--bg-muted); overflow: hidden; }
.pbar i { display: block; height: 100%; transition: width 0.4s ease; }
.pbar i.ok { background: linear-gradient(90deg, var(--p), var(--c)); }
.pbar i.err { background: var(--bad); }
.bad-text { color: #be123c; font-weight: 600; }
