* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f6f8;
    color: #1f2937;
}

a {
    color: inherit;
}

.topbar {
    background: #111827;
    color: #ffffff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.brand span {
    opacity: 0.65;
    font-size: 0.85rem;
}

.topbar nav {
    display: flex;
    gap: 1rem;
}

.topbar nav a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.85;
}

.topbar nav a:hover {
    opacity: 1;
}

.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.container.narrow {
    max-width: 720px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.card,
table {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.card {
    padding: 1.25rem;
}

.stat {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

th,
td {
    text-align: left;
    padding: 0.85rem;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: #f9fafb;
}

.button,
button {
    display: inline-block;
    background: #111827;
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
}

button {
    margin-top: 1rem;
}

.form-card {
    display: grid;
    gap: 0.5rem;
}

label {
    font-weight: 700;
    margin-top: 0.75rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font: inherit;
}

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.alert {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.footer {
    text-align: center;
    color: #6b7280;
    padding: 2rem;
}

.detail-card dl {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0.75rem 1rem;
    margin: 0;
}

.detail-card dt {
    font-weight: 700;
    color: #374151;
}

.detail-card dd {
    margin: 0;
    color: #111827;
}

.eyebrow {
    margin: 0 0 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 800;
    color: #6b7280;
}

.page-header h1 {
    margin-top: 0;
}

.asset-hero {
    background: #111827;
    color: #ffffff;
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.asset-hero h2 {
    margin: 0.5rem 0 0.25rem;
    font-size: 1.75rem;
}

.asset-hero p {
    margin: 0;
    opacity: 0.75;
}

.asset-tag {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-weight: 800;
    font-size: 0.85rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-weight: 800;
    font-size: 0.85rem;
    white-space: nowrap;
    background: #e5e7eb;
    color: #111827;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-needs-maintenance {
    background: #fef3c7;
    color: #92400e;
}

.status-out-of-service {
    background: #fee2e2;
    color: #991b1b;
}

.status-retired {
    background: #e5e7eb;
    color: #374151;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-box h3,
.notes-card h3 {
    margin-top: 0;
}

.info-list {
    display: grid;
    gap: 0.85rem;
}

.info-list div {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.85rem;
}

.info-list span {
    display: block;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.info-list strong {
    display: block;
    color: #111827;
    font-size: 1rem;
}

.notes-card {
    margin-bottom: 1rem;
}

.notes-card p {
    margin-bottom: 0;
    line-height: 1.6;
}

@media (max-width: 760px) {
    .asset-hero,
    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}
