/* Shell pages (home, admin, login). Plain CSS: no CDN, nothing to build. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #f4f5f7; color: #1c2430;
       font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
       -webkit-font-smoothing: antialiased; }
a { color: #1d5fd1; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 34px 32px 60px; }
@media (max-width: 860px) { .wrap { padding: 22px 16px 90px; } }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 4px; letter-spacing: -.01em; }
.sub { color: #5d6878; margin: 0 0 28px; }
.eco-ico { width: 20px; height: 20px; display: block; }

/* home tiles */
.section-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
                 color: #6b7586; margin: 26px 0 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tile { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: #fff; border-radius: 12px;
        border: 1px solid #e2e5ea; text-decoration: none; color: inherit; transition: border-color .12s, box-shadow .12s; }
.tile:hover { border-color: #c4cad3; box-shadow: 0 2px 10px rgba(20,30,45,.07); }
.tile-ico { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
            background: #fff5e2; color: #b16f00; }
.tile b { display: block; font-size: 15.5px; margin-bottom: 2px; }
.tile span { color: #5d6878; font-size: 13.5px; }
.tile .ext { font-size: 12px; color: #8a93a1; }
.empty { background: #fff; border: 1px dashed #cdd2da; border-radius: 12px; padding: 24px; color: #5d6878; }

/* admin */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid #dde1e7; margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { padding: 10px 14px; text-decoration: none; color: #4b5565; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: #111; border-color: #f5a524; }
.note { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; }
.note.ok { background: #e8f6ec; color: #17602d; }
.note.bad { background: #fdecec; color: #9b1c1c; }
.card { background: #fff; border: 1px solid #e2e5ea; border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.card h2 { font-size: 16px; margin: 0; padding: 14px 16px; border-bottom: 1px solid #eceef2; }
.card .help { color: #5d6878; font-size: 13.5px; padding: 12px 16px 0; margin: 0; }
.tbl-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #eef0f3; vertical-align: middle; white-space: nowrap; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #6b7586; background: #fafbfc; }
tr:last-child td { border-bottom: 0; }
td.center, th.center { text-align: center; }
input[type=text], input[type=password], input[type=number], select {
  font: inherit; font-size: 14px; padding: 7px 9px; border: 1px solid #ccd2da; border-radius: 7px; background: #fff; color: inherit; }
input[type=number] { width: 74px; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: #1c2430; }
.btn { font: inherit; font-weight: 600; font-size: 14px; padding: 7px 14px; border-radius: 7px; border: 1px solid #1c2430;
       background: #1c2430; color: #fff; cursor: pointer; }
.btn.light { background: #fff; color: #1c2430; border-color: #ccd2da; }
.btn.small { padding: 4px 10px; font-size: 13px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #eef0f3; color: #4b5565; }
.pill.on { background: #e8f6ec; color: #17602d; }
.pill.warn { background: #fff3dc; color: #8a5300; }
.muted { color: #8a93a1; }
.row-form { display: contents; }
.ico-cell { width: 34px; color: #6b7586; }

/* login */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: #12161c; }
.login-box { width: 100%; max-width: 360px; background: #fff; border-radius: 14px; padding: 30px 28px 26px; }
.login-box .logo { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: #f5a524;
                   color: #1b1300; font-weight: 800; font-size: 14px; margin-bottom: 16px; }
.login-box h1 { font-size: 21px; }
.login-box p { color: #5d6878; margin: 0 0 20px; font-size: 14px; }
.login-box label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 5px; }
.login-box input { width: 100%; font-size: 16px; padding: 11px 12px; }
.login-box .btn { width: 100%; margin-top: 20px; padding: 11px; font-size: 15px; }
.login-box .note { margin: 0 0 6px; font-size: 14px; }
