:root { --blue:#0064ad; --blue-dark:#004b85; --red:#c62828; --ink:#1d2a3a; --muted:#5f6b7a; --bg:#f4f6f9; --line:#dfe5ee; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:var(--bg); color:var(--ink); line-height:1.45; }
.wrap { max-width:1200px; margin:0 auto; padding:0 16px; }
a { color:var(--blue); }
h1 { font-size:1.5rem; margin:0; } h2 { font-size:1.05rem; margin:0 0 12px; color:var(--blue-dark); }
.muted { color:var(--muted); } .small { font-size:.85rem; } .warn { color:#b25e00; } .right { text-align:right; } .center { text-align:center; }
.inline { display:inline; } .linklike { background:none; border:0; padding:0; color:var(--blue); text-decoration:underline; cursor:pointer; font:inherit; }
.row { display:flex; gap:12px; flex-wrap:wrap; align-items:flex-start; } .row .field { flex:1; min-width:160px; }
code { background:#eef2f7; padding:1px 5px; border-radius:4px; }
.plain { margin:0; padding-left:18px; }

.topbar { background:#fff; border-bottom:1px solid var(--line); }
.topbar-inner { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:10px 16px; }
.brand { font-weight:800; color:var(--blue-dark); text-decoration:none; }
.nav { display:flex; gap:4px; flex-wrap:wrap; align-items:center; }
.nav a, .nav button { padding:6px 10px; border-radius:8px; text-decoration:none; color:var(--ink); font-weight:600; font-size:.92rem; }
.nav a.active { background:#e8f0fa; color:var(--blue-dark); }
.nav a:hover { background:#f0f3f7; }

.flash { padding:12px 16px; border-radius:10px; margin:16px 0; }
.flash-ok { background:#e6f6ec; color:#1d6b3f; } .flash-err { background:#fdecec; color:#8a1c1c; }
.page-head { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin:22px 0 14px; }

.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:10px; margin-bottom:14px; }
.stat { background:#fff; border:1px solid var(--line); border-radius:10px; padding:10px 14px; }
.stat strong { display:block; font-size:1.4rem; color:var(--blue-dark); } .stat span { color:var(--muted); font-size:.85rem; }

.filters { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:12px; }
.segmented { display:inline-flex; background:#e6ecf5; border-radius:999px; padding:3px; }
.seg { padding:6px 12px; border-radius:999px; text-decoration:none; color:var(--muted); font-weight:600; font-size:.9rem; }
.seg.active { background:#fff; color:var(--blue-dark); box-shadow:0 1px 3px rgba(0,0,0,.12); }
.filters input[type=search] { flex:1; min-width:200px; padding:8px 10px; border:1px solid #b9c3d0; border-radius:8px; font:inherit; }

.table-wrap { overflow-x:auto; background:#fff; border:1px solid var(--line); border-radius:12px; }
.table { width:100%; border-collapse:collapse; }
.table th, .table td { padding:10px 12px; border-bottom:1px solid var(--line); vertical-align:top; text-align:left; }
.table th { font-size:.8rem; text-transform:uppercase; letter-spacing:.03em; color:var(--muted); background:#f8fafc; }
.table tr:last-child td { border-bottom:0; }
.table.compact td, .table.compact th { padding:6px 8px; }
tr.is-claimed td { background:#fafbfc; } tr.is-inactive td { opacity:.6; }
.thumb img { width:56px; height:56px; object-fit:contain; border:1px solid var(--line); border-radius:8px; background:#fff; }
.nothumb { display:inline-flex; align-items:center; justify-content:center; width:56px; height:56px; border:1px dashed #b9c3d0; border-radius:8px; color:var(--muted); font-size:.7rem; text-align:center; background:#fff; }
.nothumb.big { width:100%; height:160px; font-size:.95rem; }
.tag { display:inline-block; background:#e8f0fa; color:var(--blue-dark); border-radius:999px; padding:1px 9px; font-size:.75rem; font-weight:600; margin-left:4px; }
.tag-grey { background:#eceff3; color:#5f6b7a; }
.status { display:inline-block; font-weight:700; font-size:.85rem; padding:2px 10px; border-radius:999px; }
.status-open { background:#e6f6ec; color:#1d6b3f; } .status-claimed { background:#eceff3; color:#4a5563; }
.actions { white-space:nowrap; } .actions form { display:inline; }

.btn { display:inline-flex; align-items:center; gap:6px; padding:9px 14px; border-radius:9px; border:1px solid #b9c3d0; background:#fff; color:var(--ink); font:inherit; font-weight:600; cursor:pointer; text-decoration:none; line-height:1.2; }
.btn:hover { border-color:var(--blue); }
.btn-primary { background:var(--blue); border-color:var(--blue); color:#fff; } .btn-primary:hover { background:var(--blue-dark); }
.btn-sm { padding:5px 10px; font-size:.82rem; margin:2px 0; }
.btn-danger { color:var(--red); } .btn-danger:hover { border-color:var(--red); }

.card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:20px; }
.card.narrow { max-width:460px; margin:60px auto; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:start; }
@media (max-width:820px) { .form-grid { grid-template-columns:1fr; } }
.form-actions { grid-column:1 / -1; display:flex; gap:10px; padding-bottom:40px; }
.field { margin-bottom:14px; }
.field label, .card label { display:block; font-weight:700; margin-bottom:4px; }
.field input[type=text], .field input[type=url], .field input[type=number], .field input[type=password], .card input[type=password], .field textarea, .field select {
    width:100%; padding:9px 11px; border:1px solid #b9c3d0; border-radius:8px; font:inherit; }
.field textarea { resize:vertical; }
label.check { font-weight:500; display:flex; gap:8px; align-items:center; }
.hint { color:var(--muted); font-size:.85rem; margin:5px 0 0; }
.error { color:var(--red); font-weight:600; }
.image-preview { margin-bottom:14px; } .image-preview img { max-width:100%; max-height:260px; border:1px solid var(--line); border-radius:10px; background:#fff; display:block; }
.logo-preview { background:#f8fafc; border:1px solid var(--line); border-radius:8px; padding:8px; margin-bottom:6px; } .logo-preview img { max-height:70px; max-width:100%; display:block; }
