* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: linear-gradient(135deg, #1e3c72, #2a5298); min-height: 100vh; color: #1d2433; }
header { color: #fff; padding: 20px 24px; font-size: 22px; font-weight: 700; }
header a { color: #fff; text-decoration: none; }
.container { max-width: 760px; margin: 20px auto 40px; padding: 0 16px; }
.container.wide { max-width: 1000px; }
.card { background: #fff; border-radius: 14px; padding: 28px; box-shadow: 0 10px 40px rgba(0,0,0,.2); margin-bottom: 20px; }
h1 { margin-top: 0; font-size: 24px; }
.drop { border: 2px dashed #9aa7c7; border-radius: 12px; padding: 56px 16px; text-align: center; cursor: pointer; transition: .2s; color: #55607a; }
.drop strong { display: block; font-size: 18px; color: #1d2433; margin-bottom: 6px; }
.drop.over { background: #eaf0ff; border-color: #3b6cf6; }
button, .btn { background: #3b6cf6; color: #fff; border: 0; padding: 10px 18px; border-radius: 8px; cursor: pointer; font-size: 14px; text-decoration: none; display: inline-block; }
button:disabled { opacity: .5; cursor: default; }
.btn-big { padding: 14px 28px; font-size: 16px; }
.btn-danger { background: #e5484d; }
.btn-light { background: #e8ecf5; color: #1d2433; }
input[type=text], input[type=password] { width: 100%; padding: 10px; border: 1px solid #cdd4e4; border-radius: 8px; margin: 6px 0 14px; }
.msg { margin-top: 14px; }
.ok { color: #1a7f37; } .err { color: #e5484d; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #eef1f7; font-size: 14px; }
td.actions { white-space: nowrap; }
td.actions > * { margin-right: 6px; }
.top { display: flex; justify-content: space-between; align-items: center; }
.list { list-style: none; padding: 0; margin: 16px 0; } .list li { padding: 4px 0; font-size: 14px; }
.progress { height: 14px; background: #e8ecf5; border-radius: 7px; overflow: hidden; margin: 16px 0 8px; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, #3b6cf6, #5b8cff); transition: width .2s; }
.stats { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #55607a; }
.stats b { color: #1d2433; }
.result { border: 1px solid #e3e8f2; border-radius: 10px; padding: 16px; margin-top: 14px; }
.result h3 { margin: 0 0 10px; font-size: 16px; word-break: break-all; }
.link-row { margin: 8px 0; }
.link-row label { display: block; font-size: 12px; color: #55607a; margin-bottom: 4px; }
.link-row div { display: flex; gap: 6px; }
.link-row input { flex: 1; min-width: 0; padding: 8px; border: 1px solid #cdd4e4; border-radius: 6px; font-size: 13px; background: #f8f9fc; }
.link-row.danger input { border-color: #f3b4b6; }
.center { text-align: center; }
.fname { font-size: 20px; font-weight: 600; word-break: break-all; margin: 10px 0; }
.muted { color: #55607a; font-size: 14px; }
.hidden { display: none; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.grid2 > .card { margin-bottom: 0; }
.grid2 { margin-bottom: 20px; }
.meter { border: 1px solid #e3e8f2; border-radius: 10px; padding: 16px; }
.meter-title { font-size: 13px; color: #55607a; text-transform: uppercase; letter-spacing: .05em; }
.meter-value { font-size: 28px; font-weight: 700; margin: 4px 0; }
.meter .progress { margin: 8px 0; height: 10px; }
.progress > div.good { background: #2f9e44; } .progress > div.warn { background: #f08c00; } .progress > div.bad { background: #e5484d; }
h3 { margin: 0 0 10px; font-size: 16px; }
td.muted { width: 45%; }
