* { box-sizing: border-box; }
body {
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f2f4f7;
    margin: 0;
    color: #1a2332;
}
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
}
.topbar {
    background: #1F4E78;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar a { color: #fff; text-decoration: none; font-size: 14px; }
.topbar .title { font-weight: 600; font-size: 16px; }
.card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
h1, h2, h3 { color: #1F4E78; margin-top: 0; }
label { display: block; font-weight: 600; margin: 12px 0 6px; font-size: 14px; }
input, select, textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    font-size: 15px;
}
button, .btn {
    background: #1F4E78;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 14px;
    width: 100%;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}
.btn.secondary { background: #6b7a90; }
.btn.danger { background: #c0392b; }
.btn-small { width: auto; padding: 6px 12px; font-size: 13px; margin-top: 0; }
.flash { padding: 12px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.flash.error { background: #fde2e1; color: #9b1c1c; }
.flash.success { background: #dff6dd; color: #1e6b2f; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 6px; border-bottom: 1px solid #e5e9ef; text-align: left; }
th { color: #55606e; font-weight: 600; }
.badge { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.ok { background: #dff6dd; color: #1e6b2f; }
.badge.expired { background: #fde2e1; color: #9b1c1c; }
.nav-links { display: flex; flex-direction: column; gap: 10px; }
.muted { color: #7c8a9b; font-size: 13px; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tabs a { flex: 1; text-align: center; padding: 8px; border-radius: 8px; background: #e6ebf1; color: #1F4E78; text-decoration: none; font-size: 13px; font-weight: 600; }
.tabs a.active { background: #1F4E78; color: #fff; }
.scroll-x { overflow-x: auto; }
.action-group { display: flex; gap: 6px; flex-wrap: wrap; }
