* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, sans-serif; color: #222; background: #f5f6f8; }
a { color: #1a5fb4; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
h1 { margin: .4em 0; font-size: 1.5rem; }
h2 { margin-top: 1.6em; font-size: 1.15rem; }
h3 { margin: 0 0 .5em; font-size: 1.05rem; }
.muted { color: #666; }
small { font-size: .82em; }

.top { display: flex; justify-content: space-between; align-items: center; background: #1f2937; color: #fff; padding: 10px 16px; }
.top nav a { color: #cbd5e1; margin-left: 16px; text-decoration: none; }
.top nav a.on, .top nav a:hover { color: #fff; }

.card { background: #fff; border: 1px solid #dde1e6; border-radius: 8px; padding: 14px 16px; margin: 12px 0; }
.msg { padding: 8px 12px; border-radius: 6px; margin: 10px 0; }
.msg.ok { background: #e6f4ea; color: #1e5b2f; }
.msg.err { background: #fdecea; color: #8a1c13; }

.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: #fff; }
.compare th, .compare td { border: 1px solid #dde1e6; padding: 8px 10px; text-align: left; vertical-align: top; }
.compare th { background: #eef0f3; }
.compare td.best { background: #d9f2e0; box-shadow: inset 0 0 0 2px #2f9e57; }
.compare .tick { width: 50px; text-align: center; }
.plain td { border-bottom: 1px solid #e5e7eb; padding: 8px 6px; }

.tag { display: inline-block; font-size: .7em; font-weight: 700; background: #e0e7ff; color: #3730a3; border-radius: 4px; padding: 0 5px; vertical-align: middle; }
.tag.old { background: #fef3c7; color: #92400e; }

input[type=text], input[type=url], input[type=number], input[type=password], select {
  padding: 7px 9px; border: 1px solid #c4c9d0; border-radius: 6px; font: inherit; max-width: 100%;
}
label { display: block; margin: 8px 0; font-weight: 600; }
label input { display: block; width: 100%; margin-top: 3px; font-weight: 400; }
.row { display: flex; gap: 12px; }
.row label { flex: 1; }
form.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
form.inline input[type=text] { flex: 1; min-width: 200px; }

button { padding: 7px 14px; border: 0; border-radius: 6px; background: #1a5fb4; color: #fff; font: inherit; cursor: pointer; }
button:hover { background: #154c91; }
button.link { background: none; color: #1a5fb4; padding: 2px 6px; }
button.link:hover { text-decoration: underline; background: none; }
button.danger { color: #b3261e; }

.lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.lists ul { list-style: none; margin: 0; padding: 0; }
.lists li { padding: 5px 0; border-bottom: 1px solid #eee; }
.lists .right { float: right; font-variant-numeric: tabular-nums; }
.total { font-weight: 700; margin: 8px 0 0; }

body.login { display: grid; place-items: center; min-height: 100vh; }
body.login .card { width: 320px; }
