:root {
    --ink: #173f2c;
    --muted: #5a7767;
    --line: #d4e9da;
    --paper: #ffffff;
    --cloud: #f2faf4;
    --navy: #18543b;
    --blue: #2f8a58;
    --cyan: #8bd6a2;
    --mint: #ddf4e4;
    --orange: #b8dc77;
    --shadow: 0 14px 36px rgba(24, 84, 59, .12);
    font-family: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--cloud); }
body, input, button { font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
.eyebrow { display: block; color: var(--blue); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 252px; padding: 24px 16px; color: #e1f5e6; background: var(--navy); }
.brand { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 0 10px; padding: 8px 10px 24px; color: white; }
.brand span, .logo-mark { display: grid; place-items: center; width: 42px; height: 42px; color: var(--navy); background: var(--orange); font-family: Georgia, serif; font-size: 1rem; font-weight: 900; }
.brand strong { font-size: 1.35rem; letter-spacing: .08em; }.brand small { grid-column: 2; color: #a7d8b5; font-size: .63rem; letter-spacing: .12em; text-transform: uppercase; }
.sidebar nav { flex: 1; overflow-y: auto; }.sidebar nav p { margin: 22px 10px 8px; color: #98c9a6; font-size: .64rem; font-weight: 800; letter-spacing: .13em; }.sidebar nav a, .logout { display: block; margin: 2px 0; padding: 10px; border-radius: 5px; font-size: .89rem; font-weight: 700; }.sidebar nav a:hover, .logout:hover { background: #327a55; color: white; }.logout { border-top: 1px solid #438462; color: #bde2c7; }
.content { width: calc(100% - 252px); margin-left: 252px; padding: 34px 42px 56px; }.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }.topbar h1 { margin: 5px 0 0; font-family: Georgia, serif; font-size: 1.8rem; }.user-name { min-width: 155px; padding: 10px 0 10px 16px; border-left: 2px solid var(--orange); font-weight: 700; }.user-name small { display: block; margin-top: 3px; color: var(--muted); font-size: .75rem; font-weight: 400; text-transform: capitalize; }
.dashboard-hero { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 34px; color: white; background: linear-gradient(118deg, #18543b, #388d5d 72%, #87cd9a); box-shadow: var(--shadow); }.dashboard-hero .eyebrow { color: #e2f5bc; }.dashboard-hero h2 { margin: 7px 0; font-family: Georgia, serif; font-size: clamp(1.7rem, 4vw, 2.55rem); }.dashboard-hero p { max-width: 620px; margin: 0; color: #ebfaee; line-height: 1.6; }.button, button { display: inline-block; padding: 12px 18px; border: 0; color: white; background: var(--blue); border-radius: 4px; cursor: pointer; font-size: .9rem; font-weight: 800; }.button.secondary { color: var(--navy); background: #fbfffb; white-space: nowrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0 42px; }.metric { padding: 20px; border: 1px solid var(--line); border-top: 3px solid var(--orange); background: var(--paper); }.metric span, .metric small { display: block; color: var(--muted); font-size: .77rem; }.metric strong { display: block; margin: 8px 0 4px; font-family: Georgia, serif; font-size: 2rem; }.section-heading { margin-bottom: 16px; }.section-heading h2 { margin: 5px 0 0; font-family: Georgia, serif; }.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.module-card { min-height: 226px; padding: 23px; border: 1px solid var(--line); background: var(--paper); transition: transform .18s ease, box-shadow .18s ease; }.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }.module-card-top { display: flex; align-items: flex-start; justify-content: space-between; }.module-card-top img { width: 72px; height: 72px; object-fit: contain; }.module-index { color: #4f9c68; font-weight: 800; }.module-card h3 { margin: 14px 0 8px; font-family: Georgia, serif; font-size: 1.25rem; }.module-card p { min-height: 42px; margin: 0 0 18px; color: var(--muted); font-size: .88rem; line-height: 1.45; }.module-link { color: var(--blue); font-size: .8rem; font-weight: 800; }
.module-overview { max-width: 760px; padding: 38px; background: white; border: 1px solid var(--line); }.module-overview h2 { margin: 8px 0; font-family: Georgia, serif; font-size: 2.2rem; }.module-overview > p { color: var(--muted); line-height: 1.6; }.build-note { display: grid; gap: 6px; margin-top: 30px; padding: 18px; border-left: 4px solid var(--orange); background: #f4fbe8; font-size: .9rem; }.notice { margin: 0 0 18px; padding: 12px; font-size: .88rem; }.notice.error { color: #8f2020; background: #fff0f0; }.notice.success { color: #155f48; background: var(--mint); }
.data-actions { display: grid; gap: 9px; margin-top: 30px; padding: 20px; border-left: 4px solid var(--orange); background: #f4fbe8; }.data-actions span { color: var(--muted); font-size: .88rem; }.data-actions > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; }.data-actions .button { padding: 9px 12px; font-size: .78rem; }.data-page { max-width: 1060px; }.data-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }.data-intro h2 { margin: 5px 0; font-family: Georgia, serif; font-size: 2rem; }.data-intro p { margin: 0; color: var(--muted); }.data-form-card, .records-card { margin-top: 18px; padding: 26px; border: 1px solid var(--line); background: white; }.data-form-card h3, .records-card h3 { margin: 0 0 20px; font-family: Georgia, serif; }.data-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.data-form label { display: grid; gap: 7px; color: var(--ink); font-size: .82rem; font-weight: 700; }.data-form label b { color: #b83d3d; }.data-form input, .data-form select { width: 100%; padding: 11px; border: 1px solid #b9dcc2; border-radius: 3px; background: #fff; }.data-form-submit { display: flex; align-items: end; }.table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; font-size: .86rem; }th { padding: 11px; color: #407456; background: #eef8ef; text-align: left; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }td { padding: 11px; border-bottom: 1px solid var(--line); }.empty-state { color: var(--muted); }
.alert-list { display: grid; gap: 10px; }.alert-item { display: grid; gap: 5px; padding: 14px; border-left: 4px solid var(--orange); background: #f4fbe8; }.alert-item span, .alert-item small { color: var(--muted); font-size: .85rem; }
.camera-form { display: grid; gap: 16px; }.camera-form > label { display: grid; gap: 7px; max-width: 450px; color: var(--ink); font-size: .82rem; font-weight: 700; }.camera-form select { padding: 11px; border: 1px solid #b9dcc2; border-radius: 3px; background: white; }.camera-frame { display: grid; place-items: center; width: min(100%, 520px); min-height: 260px; overflow: hidden; background: #eaf6ed; border: 1px solid var(--line); }.camera-frame video, .camera-frame img { display: block; width: 100%; max-height: 390px; object-fit: cover; }.camera-actions { display: flex; flex-wrap: wrap; gap: 10px; }.camera-note { margin: 0; color: var(--muted); font-size: .82rem; }
.login-page { min-height: 100vh; background: linear-gradient(135deg, #e5f6e8, #fffdf4); }.login-layout { display: grid; grid-template-columns: 1.2fr .8fr; min-height: 100vh; max-width: 1250px; margin: auto; }.login-hero { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 8vw, 110px); color: white; background: var(--navy); }.login-hero .logo-mark { width: 56px; height: 56px; margin-bottom: 28px; }.login-hero .eyebrow { color: #d1efad; }.login-hero h1 { margin: 10px 0 15px; font-family: Georgia, serif; font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1.05; }.login-hero p { max-width: 450px; color: #d4edda; font-size: 1.05rem; line-height: 1.6; }.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }.hero-tags span { padding: 7px 10px; border: 1px solid #5ba879; font-size: .77rem; font-weight: 700; }.login-panel { display: grid; place-items: center; padding: 30px; }.login-panel > div { width: min(380px, 100%); }.login-panel h2 { margin: 8px 0; font-family: Georgia, serif; font-size: 2rem; }.login-panel p { margin: 0 0 28px; color: var(--muted); }.login-panel label { display: grid; gap: 7px; margin: 17px 0; color: var(--ink); font-size: .85rem; font-weight: 700; }.login-panel input { width: 100%; padding: 13px; border: 1px solid #b9dcc2; border-radius: 3px; background: #fff; }.login-panel button { width: 100%; margin-top: 8px; background: var(--navy); }
.setup-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: var(--cloud); }.setup-card { width: min(560px, 100%); padding: 42px; border-top: 5px solid var(--orange); background: white; box-shadow: var(--shadow); }.setup-card h1 { font-family: Georgia, serif; }.setup-card p { line-height: 1.6; }.setup-card .button { margin-top: 12px; }
@media (max-width: 1000px) { .metric-grid { grid-template-columns: repeat(2, 1fr); }.module-grid { grid-template-columns: repeat(2, 1fr); }.content { padding: 28px 24px 48px; } }
@media (max-width: 760px) { .sidebar { position: static; width: 100%; min-height: auto; }.shell { display: block; }.sidebar nav { display: flex; flex-wrap: wrap; gap: 3px; }.sidebar nav p { display: none; }.sidebar nav a { font-size: .76rem; }.logout { display: inline-block; border: 0; }.content { width: 100%; margin: 0; }.topbar, .dashboard-hero { align-items: flex-start; flex-direction: column; }.metric-grid, .module-grid { grid-template-columns: 1fr; }.login-layout { grid-template-columns: 1fr; }.login-hero { min-height: 48vh; }.login-panel { min-height: 52vh; } }
