* { box-sizing: border-box; }
:root { color-scheme: light; --ink: #172735; --muted: #6b7784; --line: #e3e8ec; --accent: #167466; --danger: #bd3445; }
body { margin: 0; background: #f5f7f9; color: var(--ink); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; border-radius: 7px; padding: 10px 17px; font-weight: 600; transition: background .12s; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, input:focus-visible { outline: 3px solid #79c6b9; outline-offset: 2px; }
button.primary { color: white; background: var(--accent); }
button.primary:hover { background: #105c51; }
button.quiet { background: #edf1f4; color: #455464; }
button.quiet:hover { background: #e0e7ed; }
button.danger { background: var(--danger); color: white; }
button.small { padding: 7px 12px; font-size: 12px; }
input { display: block; width: 100%; border: 1px solid #d5dee5; border-radius: 7px; background: white; padding: 10px 12px; margin-top: 6px; color: var(--ink); }
input::placeholder { color: #9aa5ae; }
label { display: block; font-size: 12px; font-weight: 600; color: #4e5d6b; }
h1 { font-size: 29px; line-height: 1.15; letter-spacing: -.8px; margin: 8px 0 0; font-weight: 650; }
h2 { font-size: 16px; font-weight: 650; margin: 0 0 20px; }
p { margin: 0; }
.muted { color: var(--muted); }
.eyebrow { font-size: 10px; letter-spacing: 1.6px; font-weight: 700; color: #6b7d88; }
.card { padding: 25px; background: white; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 3px 10px #17273503; }
.topbar { height: 73px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(28px, calc((100vw - 1180px) / 2)); background: white; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; }
.brand-mark { display: grid; place-items: center; height: 31px; width: 31px; border-radius: 8px; background: #e5f3ef; color: var(--accent); font-size: 15px; }
.dashboard { max-width: 1236px; padding: 35px 28px 60px; margin: auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.count { border: 1px solid #dce5e5; border-radius: 30px; padding: 5px 12px; color: #58706f; background: #edf5f2; font-size: 12px; }
.add-form { display: grid; grid-template-columns: minmax(220px, 1.45fr) 1fr 1.15fr auto; gap: 15px; align-items: end; }
.add-form button { height: 43px; white-space: nowrap; }
.message { color: var(--danger); font-size: 12px; min-height: 0; }
.message:not(:empty) { margin-top: 13px; }
.message.success { color: var(--accent); }
.table-card { padding: 0; margin-top: 23px; overflow: hidden; }
.section-heading { display: flex; align-items: center; justify-content: space-between; padding: 20px 25px; }
.section-heading h2 { margin: 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: #fafbfc; color: #73808c; font-size: 11px; text-transform: uppercase; letter-spacing: .45px; }
th { font-weight: 600; padding: 12px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { border-bottom: 1px solid #edf0f3; padding: 16px 20px; font-size: 12px; vertical-align: middle; overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; }
td.device { font-weight: 600; min-width: 125px; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; max-width: 270px; min-width: 130px; user-select: all; }
.action-column { text-align: right; width: 80px; white-space: nowrap; }
.delete-button { color: var(--danger); background: #fff0f1; padding: 6px 11px; font-size: 11px; }
.delete-button:hover { background: #fce1e5; }
.empty { color: #85909a; padding: 40px 20px; text-align: center; }
.table-message:not(:empty) { padding: 0 25px 18px; margin-top: 0; }
.login-shell { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 390px; padding: 36px; }
.login-card .muted { margin: 14px 0 25px; font-size: 13px; }
.stack { display: grid; gap: 18px; }
.stack .message:not(:empty) { margin: 0; }
.stack .message:empty { display: none; }
dialog { color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 0; width: min(440px, calc(100vw - 36px)); box-shadow: 0 20px 80px #17273535; }
dialog::backdrop { background: #17273565; backdrop-filter: blur(2px); }
.modal-content { padding: 27px; }
.modal-content h2 { margin-bottom: 12px; font-size: 20px; }
.delete-device { margin-top: 17px; font-weight: 600; overflow-wrap: anywhere; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 25px; }
@media (max-width: 850px) { .add-form { grid-template-columns: 1fr 1fr; } .add-form label:first-child { grid-column: 1 / -1; } }
@media (max-width: 540px) { .dashboard { padding: 25px 16px 40px; } .topbar { padding: 0 18px; } .card { padding: 21px; } .add-form { grid-template-columns: 1fr; gap: 16px; } .table-card { padding: 0; } .section-heading { padding: 19px 21px; } .add-form button { margin-top: 3px; } h1 { font-size: 26px; } }
