:root {
  --ink: #16252c;
  --muted: #5b6b72;
  --line: #dde6ea;
  --soft: #f4f8f9;
  --brand: #03445b;
  --brand-2: #24a4c6;
  --danger: #b42318;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: #fff; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
[hidden] { display: none !important; }

.bar { background: var(--brand); color: #fff; }
.bar-in { max-width: 1040px; margin: 0 auto; padding: 0 16px; height: 56px; display: flex; align-items: center; gap: 16px; }
.mark { font-weight: 700; letter-spacing: .01em; color: #fff; text-decoration: none; display: flex; align-items: baseline; gap: 8px; }
.mark small { font-weight: 400; opacity: .75; font-size: 14px; }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.who button { font: inherit; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.45); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.who button:hover { background: rgba(255,255,255,.12); }

main { max-width: 1040px; margin: 0 auto; padding: 32px 16px 64px; }
h1 { font-size: 26px; line-height: 1.25; margin: 0 0 4px; font-weight: 700; }
.sub { color: var(--muted); margin: 0 0 24px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.tools { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.search { flex: 1 1 260px; max-width: 360px; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; }
.search:focus, .field input:focus { outline: 2px solid var(--brand-2); outline-offset: 0; border-color: transparent; }

.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.card { display: block; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; background: #fff; transition: border-color .15s, box-shadow .15s; }
.card:hover, .card:focus-visible { border-color: var(--brand-2); box-shadow: 0 2px 10px rgba(3, 68, 91, .08); outline: none; }
.card b { display: block; font-size: 16px; color: var(--brand); }
.card span { color: var(--muted); font-size: 14px; }

.rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.row:first-child { border-top: 0; }
.row-main { flex: 1 1 280px; min-width: 0; }
.row-main b { display: block; font-size: 16px; }
.row-main code { font-size: 13px; color: var(--muted); word-break: break-all; }
.row-actions { display: flex; gap: 8px; }
.btn { font: inherit; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 7px; border: 1px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { background: #02364a; }
.btn.ghost { background: #fff; color: var(--brand); }
.btn.ghost:hover { background: var(--soft); }
.btn:disabled { opacity: .6; cursor: default; }

.empty, .note { padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: var(--soft); }
.error { color: var(--danger); }
.loading { color: var(--muted); }

.signin { max-width: 380px; margin: 56px auto 0; padding: 28px; border: 1px solid var(--line); border-radius: 14px; }
.signin h1 { font-size: 22px; }
.field { display: block; margin: 16px 0 0; }
.field span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; }
.signin .btn { width: 100%; margin-top: 20px; padding: 10px; }
.signin .error { margin: 12px 0 0; font-size: 14px; }
