/* PhoneBook (XML) — mobile-first styles */
:root { --card:#fff; --text:#101418; --muted:#6b7280; --brand:#2563eb; --danger:#b91c1c; --bg:#f6f8fb; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin:0; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif; color:var(--text); background:var(--bg); }
.topbar { position:sticky; top:0; background:#fff; border-bottom:1px solid #e5e7eb; padding:10px 12px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.topbar .brand { font-weight:800; margin-right:auto; }
.topbar .search { display:flex; gap:8px; align-items:center; }
.topbar .search input { padding:10px 12px; border:1px solid #d1d5db; border-radius:10px; font-size:16px; }
.topbar .search button, .btn-secondary { padding:10px 12px; border-radius:10px; border:1px solid transparent; background:var(--brand); color:#fff; font-weight:700; cursor:pointer; text-decoration:none; }
.btn-secondary { background:#111827; }
.container { max-width:960px; margin:16px auto; padding:0 12px; }
.card { background:var(--card); border:1px solid #e5e7eb; border-radius:12px; padding:16px; margin-bottom:16px; box-shadow:0 1px 2px rgba(0,0,0,.04); }
h2 { margin:0 0 12px; }
.grid { display:grid; grid-template-columns:1fr; gap:12px; }
label { display:flex; flex-direction:column; gap:6px; font-size:14px; color:#374151; }
input { padding:12px; border:1px solid #d1d5db; border-radius:10px; font-size:16px; background:#fff; }
.actions { display:flex; gap:8px; }
button { font:inherit; }
button, .btn-link { cursor:pointer; }
.table { display:grid; gap:6px; }
.row { display:grid; grid-template-columns: 2fr 2fr 2fr auto; gap:10px; align-items:center; padding:8px; border:1px solid #e5e7eb; border-radius:10px; background:#fff; }
.row.head { background:#eef2ff; font-weight:800; }
.row-actions { display:flex; gap:8px; align-items:center; }
.btn-link { color:var(--brand); text-decoration:none; font-weight:700; }
.link-danger { background:transparent; color:var(--danger); border:none; font-weight:700; }
.notice { background:#ecfeff; border:1px solid #a5f3fc; color:#065f46; padding:8px 10px; border-radius:8px; margin-bottom:12px; }
.alert { background:#fee2e2; border:1px solid #fecaca; color:#7f1d1d; padding:8px 10px; border-radius:8px; margin-bottom:10px; }
.phone { white-space:nowrap; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); } }
