:root { --acc: #d6336c; --ink: #212529; --muted: #868e96; --line: #e9ecef; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #fafafa; }

.ad-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px;
  background: #fff; border-bottom: 1px solid var(--line); }
.ad-brand { font-weight: 700; } .ad-brand em { color: var(--acc); font-style: normal; }
.ad-nav a { margin-left: 14px; color: var(--muted); text-decoration: none; font-size: 14px; }
.ad-nav a:hover { color: var(--ink); }
.ad-user { margin-left: 14px; font-size: 12px; color: #adb5bd; }

.ad-main { max-width: 1080px; margin: 0 auto; padding: 20px; }
.ad-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ad-head h1 { font-size: 22px; margin: 8px 0; white-space: nowrap; }
.ad-id { font-size: 12px; color: #adb5bd; font-weight: 400; }
.ad-tools { display: flex; gap: 10px; align-items: center; }
.ad-tools input[type=search] { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; min-width: 240px; }
.ad-summary { color: var(--muted); font-size: 13px; }
.ad-hint { color: var(--muted); font-size: 13px; }

.ad-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; font-size: 14px; }
.ad-table th, .ad-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.ad-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); white-space: nowrap; }
.ad-table a { color: var(--acc); text-decoration: none; }
.ad-row-hidden td { color: #adb5bd; }
.ad-flags { font-size: 12px; color: #e8590c; }
.ad-when { white-space: nowrap; font-size: 12px; color: var(--muted); }
.ad-changes { font-size: 12px; color: #495057; }

button { padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  cursor: pointer; font-size: 13px; }
button:hover { border-color: #adb5bd; }
button:disabled { opacity: .5; cursor: default; }
.ad-btn-accent { background: var(--acc); border-color: var(--acc); color: #fff; }
.ad-btn-danger { background: #fff5f5; border-color: #ffc9c9; color: #c92a2a; }

.ad-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 800px) { .ad-cols { grid-template-columns: 1fr; } }
.ad-col h2 { font-size: 15px; margin: 20px 0 8px; }
.ad-form { display: flex; flex-direction: column; gap: 10px; }
.ad-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.ad-form input, .ad-form textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; }
.ad-form button { align-self: flex-start; }
.ad-form-row { flex-direction: row; align-items: flex-end; gap: 10px; }
.ad-form-row label { flex: 1; }
.ad-state { max-width: 90px; }
#ad-map { height: 320px; border-radius: 10px; border: 1px solid var(--line); }
.ad-photo { max-width: 100%; border-radius: 10px; }
.ad-meta-line { display: flex; gap: 6px; flex-wrap: wrap; }
.ad-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #f1f3f5; color: #495057; }
.ad-tag-warn { background: #fff4e6; color: #e8590c; }
.ad-actions { margin: 10px 0; display: flex; gap: 8px; }

.ad-login { max-width: 380px; margin: 80px auto; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 28px; }
.ad-login h1 { font-size: 20px; margin-top: 0; }
.ad-login form { display: flex; flex-direction: column; gap: 10px; }
.ad-login input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.ad-login button { background: var(--acc); border-color: var(--acc); color: #fff; }
.ad-ok { color: #2b8a3e; } .ad-err { color: #c92a2a; }

.ad-progress { height: 8px; background: #f1f3f5; border-radius: 999px; overflow: hidden; }
#ad-progress-bar { height: 100%; width: 0; background: var(--acc); transition: width .2s; }

#ad-toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  padding: 10px 18px; border-radius: 999px; font-size: 14px; color: #fff; z-index: 2000; }
#ad-toast.ok { background: #2b8a3e; } #ad-toast.err { background: #c92a2a; }
