/* Login + Admin panel. Reuses app.css tokens (colours, radius); adds the
   auth-screen and admin-table pieces the dashboard didn't need. */

.auth-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 16px); box-shadow: var(--shadow-md); padding: 32px; }
.auth-card .logo { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 4px; }
.auth-card h1 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 14px 0 4px; }
.auth-card p.sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field textarea { min-height: 90px; resize: vertical; }
.form-msg { font-size: 13px; font-weight: 600; min-height: 18px; margin: 4px 0 0; }
.form-msg.err { color: var(--danger, #c93c2b); }
.form-msg.ok { color: var(--online, #1a9d5c); }
.btn-block { width: 100%; justify-content: center; }

/* admin shell */
.admin-top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.admin-top-in { max-width: 1000px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 14px; }
.admin-top .logo { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-right: auto; }
.admin-main { max-width: 1000px; margin: 0 auto; padding: 36px 24px 72px; }
.admin-main h1 { font-family: var(--serif); font-weight: 400; font-size: 40px; margin: 0 0 6px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
@media (max-width: 820px) { .admin-grid { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 16px); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line-2, var(--line)); display: flex; align-items: center; justify-content: space-between; }
.panel-head h2 { font-size: 15px; font-weight: 600; margin: 0; }
.panel-body { padding: 20px; }
.list-item { border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; margin-bottom: 10px; }
.list-item:last-child { margin-bottom: 0; }
.list-item strong { display: block; font-size: 14.5px; }
.list-item .meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pilltag { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.link-danger { background: none; border: 0; color: var(--danger, #c93c2b); font-size: 12px; font-weight: 600; cursor: pointer; }
.empty-sm { color: var(--muted); font-size: 13px; padding: 8px 0; }
details.addform { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 16px; }
details.addform summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--accent); list-style: none; }
details.addform summary::-webkit-details-marker { display: none; }
details.addform[open] summary { margin-bottom: 14px; }
