* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #f4f1ee; color: #2b2b2b; }

.topbar {
    background: #5c1a1a; /* maroon, matching the original workbook theme */
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    flex-wrap: wrap;
}
.brand-title { font-size: 20px; font-weight: 700; margin-right: 12px; }
.brand-owner { font-size: 12px; opacity: 0.85; }
.topnav a { color: #fff; text-decoration: none; margin-left: 16px; font-size: 14px; }
.topnav a:hover { text-decoration: underline; }
.topnav .who { margin-left: 20px; font-size: 13px; opacity: 0.9; }
.topnav .logout { background: #eee; color: #5c1a1a; padding: 5px 12px; border-radius: 4px; }

.content { max-width: 1100px; margin: 24px auto; padding: 0 16px 60px; }
.page-heading h1 { color: #5c1a1a; margin-bottom: 4px; }
.ownership-note { font-size: 12px; color: #777; margin-bottom: 16px; }

.card { background: #fff; border: 1px solid #e3ddd8; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.card h2 { color: #5c1a1a; margin-bottom: 12px; font-size: 18px; }

label { display: block; margin: 10px 0 4px; font-size: 13px; font-weight: 600; color: #444; }
input, select { width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 14px; }
button { margin-top: 16px; background: #5c1a1a; color: #fff; border: none; padding: 10px 18px; border-radius: 5px; cursor: pointer; font-size: 14px; }
button:hover { background: #7a2424; }
.btn { display: inline-block; background: #5c1a1a; color: #fff; padding: 10px 16px; border-radius: 5px; text-decoration: none; margin-right: 10px; margin-bottom: 8px; font-size: 14px; }
.btn-small { padding: 4px 10px; font-size: 12px; margin: 0; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: 8px; padding: 18px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.06); border-top: 4px solid #5c1a1a; }
.stat-label { display: block; font-size: 12px; color: #777; margin-bottom: 6px; }
.stat-value { display: block; font-size: 22px; font-weight: 700; color: #5c1a1a; }

.mini-stats { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; color: #444; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 10px; }

.data-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.data-table th, .data-table td { border-bottom: 1px solid #eee; padding: 8px 10px; text-align: left; font-size: 13px; }
.data-table th { background: #f7f0ee; color: #5c1a1a; }

.alert-error { background: #fdecea; color: #a12a2a; padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.alert-success { background: #eaf7ec; color: #1e6b2f; padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.credentials-box { background: #fff; border: 1px dashed #1e6b2f; padding: 10px 14px; border-radius: 6px; margin-top: 8px; font-family: monospace; }

.footer { text-align: center; font-size: 12px; color: #888; padding: 20px; }

.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; flex-direction: column; }
.login-box { background: #fff; padding: 32px; border-radius: 10px; width: 320px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); text-align: center; }
.login-box h1 { color: #5c1a1a; font-size: 22px; margin-bottom: 4px; }
.login-box form { text-align: left; margin-top: 16px; }
