﻿:root {
  --ink: #111827;
  --muted: #6b7280;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e5e7eb;
  --accent: #111827;
  --accent-2: #2563eb;
  --success: #166534;
  --success-bg: #dcfce7;
  --danger: #991b1b;
  --danger-bg: #fee2e2;
  --warn: #92400e;
  --warn-bg: #fef3c7;
  --r: 12px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent-2); }

.shell { min-height: 100vh; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--border); background: var(--surface); }
.topbar-left { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { font-size: 18px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand small { color: var(--muted); font-weight: 600; }
.topnav { display: flex; align-items: center; gap: 10px; }
.topnav-link { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: 6px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.topnav-link:hover { background: #f3f4f6; color: var(--ink); }
.topnav-link.is-active { background: #eef2ff; color: #1d4ed8; }
.page { width: 100%; max-width: none; margin: 0; padding: 28px 24px 40px; }
.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 20px; }
.page-title { margin: 0; font-size: 28px; line-height: 1.1; }
.page-copy { margin: 6px 0 0; color: var(--muted); }
.detail-title { margin: 0 0 12px; font-size: 20px; line-height: 1.2; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04); }
.card-body { padding: 10px; }
.card-body-data {padding: 0px;}

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(440px, 100%); }

.field { margin-bottom: 16px; }
.label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.input { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; }
.input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }

.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 9px 14px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-secondary { background: #fff; border-color: var(--border); color: var(--ink); }
.btn-danger { background: var(--danger-bg); border-color: #fecaca; color: var(--danger); }
.btn-sm { padding: 6px 10px; font-size: 13px; }

.alert { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid transparent; }
.alert-success { background: var(--success-bg); border-color: #86efac; color: var(--success); }
.alert-error { background: var(--danger-bg); border-color: #fca5a5; color: var(--danger); }
.alert-warn { background: var(--warn-bg); border-color: #fcd34d; color: var(--warn); }

.table-wrap { overflow: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: #f9fafb; }
.table tr:last-child td { border-bottom: none; }
.muted { color: var(--muted); font-size: 13px; }
.mono { font-family: Consolas, 'Courier New', monospace; font-size: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.field-inline { display: flex; flex-direction: column; gap: 6px; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-value { margin-top: 8px; font-size: 28px; line-height: 1; font-family: Consolas, 'Courier New', monospace; }
.code-block { margin: 0; padding: 14px; border-radius: 12px; background: #0f172a; color: #e5e7eb; overflow: auto; white-space: pre-wrap; word-break: break-word; font-family: Consolas, 'Courier New', monospace; font-size: 12px; line-height: 1.5; }
.status { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status.pending { background: #e5e7eb; color: #374151; }
.status.running { background: #dbeafe; color: #1d4ed8; }
.status.succeeded { background: var(--success-bg); color: var(--success); }
.status.failed { background: var(--danger-bg); color: var(--danger); }
.notes-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.notes-sidebar { position: sticky; top: 24px; }
.notes-sidebar-title { margin-bottom: 12px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.notes-country-nav { display: grid; gap: 8px; }
.notes-country-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 42px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; background: #fff; }
.notes-country-link:hover { border-color: #cbd5e1; background: #f8fafc; }
.notes-country-link.is-active { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.notes-country-link span { color: var(--muted); font-size: 12px; font-weight: 800; }
.notes-content { min-width: 0; }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.note-card { height: 100%; }
.note-kicker { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; }
.note-head { margin: 14px 0 18px; }
.note-title { margin: 0; font-size: 22px; line-height: 1.1; }
.note-scope { margin: 6px 0 0; color: var(--muted); font-weight: 600; }
.note-meta { display: grid; gap: 14px; margin: 0; }
.note-meta dt { margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.note-meta dd { margin: 0; line-height: 1.55; }
.note-meta code { display: inline-block; padding: 8px 10px; border-radius: 10px; background: #f8fafc; border: 1px solid var(--border); color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.note-list-wrap { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.note-list-title { margin-bottom: 10px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.note-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; line-height: 1.5; }
.note-source { margin-top: 16px; color: var(--muted); font-size: 12px; font-family: Consolas, 'Courier New', monospace; }
.empty-state { padding: 36px 24px; }
.empty-title { margin: 0 0 8px; font-size: 22px; }
.empty-copy { margin: 0; color: var(--muted); line-height: 1.6; }
.empty-copy code { padding: 2px 6px; border-radius: 8px; background: #f8fafc; border: 1px solid var(--border); }

@media (max-width: 768px) {
  .page-head { flex-direction: column; align-items: flex-start; }
  .topbar { padding: 14px 16px; }
  .topbar-left { gap: 14px; }
  .topnav { width: 100%; flex-wrap: wrap; }
  .page { padding: 22px 16px 32px; }
  .detail-grid { grid-template-columns: 1fr; }
  .notes-layout { grid-template-columns: 1fr; }
  .notes-sidebar { position: static; }
}
.nav-logo img {
    width: 50px
}
@media(max-width:640px){.nav-logo img{width:130px}.c-web{display:none}.tb-r1{flex-wrap:wrap}}