:root{--green:#103e2b;--green2:#17563d;--gold:#dcb561;--cream:#f7f8f4;--border:#e4ebe3;--muted:#62766b;--ink:#1b3226}*{box-sizing:border-box}body{margin:0;font:14px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--cream)}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit}img{max-width:100%}.app{min-height:100vh;display:flex}.sidebar{background:var(--green);color:#d5e3d8;width:252px;flex-shrink:0;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;padding:25px 15px}.side-logo{padding:5px 15px 16px;display:block}.side-logo img{width:122px;background:white;border-radius:7px;padding:9px}.side-divider{border-top:1px solid #ffffff22;margin:7px 13px 20px}.side-label{font-size:10px;letter-spacing:.17em;color:#86b49b;margin:0 14px 15px}.sidebar nav{display:grid;gap:5px}.navitem{border:0;text-align:left;background:transparent;color:#cfe0d2;border-radius:8px;padding:13px 15px;font-size:14px;display:flex;align-items:center;gap:11px}.navitem span{margin-left:3px}.navitem:hover,.navitem.active{background:#ffffff18;color:#fff}.navitem.active{border-left:3px solid var(--gold)}.side-bottom{margin-top:auto;display:grid;gap:8px}.side-bottom a,.side-bottom button{display:block;text-align:left;padding:11px 14px;border:0;border-radius:7px;color:#d5e3d8;background:#ffffff0b;text-decoration:none}.workspace{min-width:0;flex:1}.topbar{background:white;padding:18px 34px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border);gap:15px}.top-title{font-size:18px;font-weight:750}.top-title span{font-size:11px;border-radius:99px;background:#e4ede5;color:#306342;padding:5px 10px;vertical-align:middle;margin-left:9px}.overline{font-size:10px;font-weight:800;letter-spacing:.15em;color:#81978b;margin:0 0 7px}.top-actions{display:flex;gap:9px}.primary{border:1px solid var(--green);background:var(--green);color:white;border-radius:8px;padding:11px 16px;font-weight:700}.primary:hover{background:var(--green2)}.soft,.secondary{background:white;border:1px solid #d3dfd5;color:var(--green);border-radius:8px;padding:10px 15px;font-weight:700}.soft:hover,.secondary:hover{background:#f0f7ef}.danger{background:white;border:1px solid #e8c8c6;color:#a33e31;border-radius:8px;padding:8px 12px;font-weight:700}.main{padding:30px 34px 70px;max-width:1300px;margin:auto}.banner{background:#fff9e9;color:#6c5525;border:1px solid #f1de9b;padding:15px 19px;border-radius:10px;margin-bottom:25px}.banner.online{background:#eaf5ed;border-color:#b9ddc3;color:#255f39}.section-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:25px}.section-heading h1{font-size:clamp(23px,3vw,31px);margin:0 0 7px;letter-spacing:-.03em}.muted{color:var(--muted);margin:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:22px}.stat,.panel,.edit-card{background:white;border:1px solid var(--border);border-radius:12px;box-shadow:0 4px 14px #12382505}.stat{padding:23px}.stat .number{font-size:32px;font-weight:800;color:var(--green)}.stat span{display:block;color:var(--muted);font-size:12px}.panel{padding:25px;margin-bottom:17px}.panel h2{margin:0 0 12px;font-size:18px}.panel p{color:var(--muted)}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:grid;gap:7px;margin:0 0 17px;min-width:0}.field label{font-size:12px;font-weight:800;color:#3b5947}.field input,.field textarea,.field select{width:100%;border:1px solid #d5dfd6;background:#fbfcfa;padding:11px 12px;border-radius:7px;outline-color:#458866}.field textarea{resize:vertical;min-height:90px}.edit-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.edit-card{padding:18px;min-width:0}.edit-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.edit-head h2{font-size:17px;margin:0}.preview{width:100%;aspect-ratio:16/8;object-fit:cover;border-radius:9px;background:#e5ece5;margin-bottom:14px}.image-field{background:#f4f8f2;border:1px dashed #b6c9b9;border-radius:9px;padding:13px;margin-bottom:16px}.image-field img{width:100%;max-height:220px;object-fit:cover;border-radius:7px;margin:9px 0 10px}.image-field label{display:block;font-size:12px;font-weight:800;margin-bottom:9px}.image-field input[type=file]{max-width:100%;font-size:12px}.image-field small{display:block;color:var(--muted);margin-top:9px}.actions-row{display:flex;gap:10px;flex-wrap:wrap}.status{padding:14px 17px;border-radius:8px;background:#eef9f0;border:1px solid #baddc0;color:#21623b;margin-bottom:20px}.status.error{background:#fff0ef;border-color:#ecc1b9;color:#ab3728}.status[hidden],.app[hidden],.login-screen[hidden]{display:none}.dashboard-hero{background:linear-gradient(100deg,#123e2c,#236348);color:white;border-radius:13px;padding:27px 30px;margin-bottom:23px;display:flex;justify-content:space-between;gap:20px}.dashboard-hero h2{margin:0 0 12px;font-size:27px}.dashboard-hero p{max-width:620px;color:#cbe1d1}.dashboard-hero img{width:120px;object-fit:contain;background:white;border-radius:9px;padding:10px}.dashboard-hero .motto{color:#e8c26e;font-weight:800}.steps{counter-reset:step}.steps li{margin-bottom:10px}.editor-footer{margin-top:15px}.admin-footer{text-align:center;color:#8c9b90;font-size:12px;padding:30px}.login-screen{min-height:100vh;background:linear-gradient(150deg,#0d2e20,#1c6746);display:grid;place-items:center;padding:25px}.login-card{width:100%;max-width:420px;background:white;padding:34px;border-radius:16px;box-shadow:0 18px 60px #0004}.login-card img{width:132px;margin-bottom:24px}.login-card h1{font-size:26px;margin:0 0 12px}.login-card p{color:var(--muted)}.login-card label{display:block;margin:15px 0;font-weight:700}.login-card input{display:block;width:100%;border:1px solid #cdd9cd;border-radius:8px;padding:12px;margin-top:6px}.login-card .primary{width:100%;margin:15px 0}.login-card a{font-size:13px;color:var(--green)}.auth-error{color:#b02e22!important}.mobile-menu{display:none}.small{font-size:12px}.code{background:#f1f5f1;color:var(--green);padding:2px 5px;border-radius:4px;font-family:monospace}.pill{display:inline-block;border-radius:99px;padding:3px 8px;font-size:10px;letter-spacing:.04em;background:#eef2ec;color:var(--green)}.help{color:var(--muted);font-size:12px;margin-top:8px}.checkline{display:flex;align-items:center;gap:8px;margin:12px 0}.checkline input{width:17px;height:17px}.file-control{margin-top:12px}
@media(max-width:950px){.sidebar{width:215px}.topbar,.main{padding-left:20px;padding-right:20px}.stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.sidebar{position:fixed;z-index:30;transform:translateX(-100%);transition:transform .2s;width:255px}.sidebar.open{transform:none}.mobile-menu{display:inline-block;background:#fff;border:1px solid #ddd;border-radius:8px;padding:7px}.topbar{flex-wrap:wrap}.top-actions{width:100%}.top-actions button{flex:1}.main{padding:22px 16px}.edit-list,.two-col{grid-template-columns:1fr}.section-heading{align-items:flex-start}.dashboard-hero img{display:none}.stats{gap:9px}.stat{padding:14px}}
[hidden]{display:none!important}

/* Authentication and role-management additions */
.setup-card{max-width:490px}.setup-card a{display:inline-block;margin-top:12px}.setup-card #offline-option{border-top:1px solid #e1e9e0;margin-top:20px;padding-top:6px}.role-badge{display:inline-block!important;background:#e6f4e9;color:#175a33;border-radius:99px;font-size:11px;font-weight:800;padding:5px 10px;vertical-align:middle}.role-badge[hidden]{display:none!important}.team-row{display:flex;justify-content:space-between;gap:14px;align-items:center;border-bottom:1px solid var(--border);padding:16px 0;flex-wrap:wrap}.team-row:last-child{border-bottom:0}.team-row .email{font-weight:750;word-break:break-all}.team-row .secondary-text{font-size:11px;color:var(--muted)}.team-row select{min-width:160px;padding:9px;border:1px solid var(--border);border-radius:8px}.team-ops{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.team-add{display:grid;grid-template-columns:minmax(150px,1fr) 180px auto;gap:10px;align-items:end}.team-add .field{margin-bottom:0}@media(max-width:800px){.team-add{grid-template-columns:1fr}}
