* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.4 -apple-system, system-ui, sans-serif; color: #111; background: #f4f4f5; }
h1 { font-size: 22px; margin: 0; }
h2 { margin: 0 0 8px; font-size: 18px; }
button, .btn { font: inherit; padding: 8px 14px; border-radius: 8px; border: 0; background: #111; color: #fff; cursor: pointer; }
button.ghost { background: transparent; color: #111; border: 1px solid #ccc; }
button.small { padding: 4px 10px; font-size: 13px; }
button.danger { background: #b42318; }
button:disabled { opacity: .5; cursor: default; }
input, select { font: inherit; width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 8px; margin-top: 4px; background: #fff; }
label { display: block; margin: 10px 0; }
label.check { display: flex; gap: 8px; align-items: center; }
label.check input { width: auto; margin: 0; }
fieldset { border: 1px solid #ddd; border-radius: 10px; padding: 4px 14px; margin: 14px 0; }
small, .muted { color: #666; }
.error { color: #b42318; min-height: 1.2em; }
.warn { background: #fff4e5; border: 1px solid #f5c26b; padding: 10px 14px; border-radius: 8px; }
.center:not([hidden]) { min-height: 100vh; display: grid; place-items: center; }
.box { background: #fff; padding: 28px; border-radius: 14px; width: 320px; box-shadow: 0 4px 24px #0001; }
#app { max-width: 1200px; margin: 0 auto; padding: 24px; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; vertical-align: top; }
th { font-size: 13px; color: #666; font-weight: 600; }
td .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; background: #eee; }
.tag.ok { background: #dcfce7; color: #166534; }
.tag.off { background: #fee2e2; color: #991b1b; }
.tag.pending { background: #fef9c3; color: #854d0e; }
.link { font-family: ui-monospace, monospace; font-size: 13px; word-break: break-all; }
dialog { border: 0; border-radius: 16px; padding: 24px; width: min(980px, 96vw); }
dialog::backdrop { background: #0006; }
.cols { display: grid; grid-template-columns: 1fr 320px; gap: 28px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.actions { display: flex; justify-content: flex-end; gap: 8px; }
.count { float: right; font-size: 12px; color: #666; }
.count.over { color: #b42318; font-weight: 600; }
.phone { background: linear-gradient(#5b6b7a, #2b3440); border-radius: 28px; padding: 120px 10px 10px; }
.card { background: #f2f2f7; border-radius: 18px; overflow: hidden; }
.card-img { aspect-ratio: 3 / 2; background: #c7c7cc center / cover no-repeat; }
.card-body { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; }
.card-body strong { display: block; font-size: 15px; }
.card-body span { display: block; font-size: 13px; color: #6b6b70; }
.card-btn { background: #007aff; color: #fff !important; border-radius: 99px; padding: 6px 18px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.card-foot { font-size: 11px; color: #8e8e93; padding: 8px 14px; border-top: 1px solid #e5e5ea; }
#qr-box { text-align: center; margin-top: 16px; }
#qr { width: 180px; height: 180px; }
