:root{--green-950:#08271d;--green-900:#0d3024;--green-800:#123c2d;--green-700:#1b513d;--green-600:#2d6a50;--green-500:#4b8267;--green-200:#dbe9df;--green-100:#edf4ef;--gold:#d0ad4f;--cream:#f4f1e9;--paper:#fffdf9;--ink:#17211c;--muted:#6d756f;--line:#e5e2da;--danger:#b34343;--warn:#b77d1d;--blue:#406aa2;--shadow:0 10px 30px rgba(20,45,34,.08);--r:18px;--r2:12px}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--cream);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.mobile-only{display:none}.mt12{margin-top:12px}.mt16{margin-top:16px}.small-muted{font-size:13px;color:var(--muted)}
.app-shell{min-height:100vh;display:grid;grid-template-columns:240px 1fr}.sidebar{position:sticky;top:0;height:100vh;padding:24px 14px 18px;background:linear-gradient(180deg,var(--green-950),#103728 68%,#0b2a20);color:#fff;display:flex;flex-direction:column;z-index:20;box-shadow:4px 0 30px rgba(6,31,23,.12)}
.brand{display:flex;align-items:center;gap:12px;padding:0 11px 24px}.brand-logo{width:52px;height:60px;object-fit:contain;filter:drop-shadow(0 5px 8px rgba(0,0,0,.18))}.brand strong{font-family:Georgia,serif;font-size:23px;letter-spacing:.08em;display:block}.brand span{font-size:12px;color:#d7e2da;display:block;margin-top:2px}.nav{display:flex;flex-direction:column;gap:6px}.nav-btn{border:0;background:transparent;color:#c9d6ce;text-align:left;padding:12px 13px;border-radius:12px;display:flex;align-items:center;gap:12px;font-size:14px;width:100%}.nav-btn:hover{background:rgba(255,255,255,.06);color:#fff}.nav-btn.active{background:linear-gradient(90deg,#285943,#214b39);color:white}.nav-icon{width:22px;text-align:center;font-size:17px}.sidebar-foot{margin-top:auto;border-top:1px solid rgba(255,255,255,.08);padding:18px 12px 4px;color:#a8b9ae;letter-spacing:.15em}.sidebar-foot small{font-size:9px}
.main{min-width:0}.topbar{height:72px;padding:12px 28px;display:flex;align-items:center;justify-content:space-between;gap:18px;position:sticky;top:0;background:rgba(244,241,233,.92);backdrop-filter:blur(12px);z-index:15;border-bottom:1px solid rgba(226,222,211,.75)}.search-wrap{height:44px;max-width:540px;min-width:280px;flex:1;border:1px solid var(--line);background:rgba(255,255,255,.72);border-radius:14px;display:flex;align-items:center;gap:9px;padding:0 14px;color:#8d938f}.search-wrap input{width:100%;border:0;outline:0;background:transparent;color:var(--ink)}.top-actions{display:flex;align-items:center;gap:10px}.user-chip{display:flex;align-items:center;gap:9px}.user-chip>div{display:flex;flex-direction:column}.user-chip small{font-size:11px;color:var(--muted)}.avatar{width:37px;height:37px;border-radius:50%;background:linear-gradient(145deg,#163e30,#5f806e);color:white;display:grid;place-items:center;font-weight:800;font-size:12px}
.content{padding:22px 28px 52px;max-width:1600px;margin:0 auto}.hero{background:radial-gradient(circle at 82% 10%,rgba(221,196,127,.25),transparent 27%),linear-gradient(120deg,#0c3023,#174633 60%,#345f46);color:white;border-radius:22px;padding:30px 34px;min-height:190px;position:relative;overflow:hidden;box-shadow:var(--shadow);display:flex;justify-content:space-between;align-items:flex-end}.hero:after{content:"";position:absolute;right:-20px;top:-70px;width:300px;height:300px;background:url('./assets/plast-logo.png') center/contain no-repeat;opacity:.09}.hero h1{font-family:Georgia,serif;font-weight:500;font-size:48px;line-height:.96;margin:0 0 14px;letter-spacing:-.02em}.hero p{margin:0;color:#e3ebe6;max-width:700px}.hero .quote{font-family:Georgia,serif;font-style:italic;max-width:260px;text-align:right;color:#e8e5d9;z-index:1}.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.page-head h1{font-family:Georgia,serif;font-size:34px;margin:0}.page-head p{margin:6px 0 0;color:var(--muted)}
.grid{display:grid;gap:16px}.stats{grid-template-columns:repeat(4,minmax(0,1fr));margin:16px 0}.stat-card,.card{background:rgba(255,253,249,.96);border:1px solid var(--line);border-radius:var(--r);box-shadow:0 5px 22px rgba(24,48,36,.035)}.stat-card{padding:18px;display:flex;align-items:center;gap:14px}.stat-icon{width:44px;height:44px;border-radius:12px;background:var(--green-100);color:var(--green-800);display:grid;place-items:center;font-size:21px}.stat-card strong{font-size:27px;display:block;line-height:1}.stat-card span{font-size:12px;color:var(--muted);display:block;margin-top:5px}.dashboard-grid{grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr)}.card{padding:18px}.card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.card-title h2,.card-title h3{font-size:18px;margin:0}.card-title small{color:var(--muted)}
.btn{border:0;border-radius:11px;padding:11px 15px;font-weight:700;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn.primary{background:var(--green-800);color:#fff}.btn.primary:hover{background:var(--green-700)}.btn.secondary{background:#eeeae1;color:var(--ink)}.btn.ghost{background:transparent;border:1px solid var(--line);color:var(--ink)}.btn.danger{background:#f8e7e7;color:var(--danger)}.btn.sm{padding:8px 10px;border-radius:9px;font-size:12px}.icon-btn{width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:inherit}.icon-btn:hover{background:rgba(17,58,44,.07)}
.event-list{display:flex;flex-direction:column}.event-row{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:15px;padding:13px 0;border-bottom:1px solid #ece9e1;align-items:center}.event-row:last-child{border-bottom:0}.date-box{border-radius:12px;background:#f2f0e9;text-align:center;padding:8px 4px}.date-box b{font-size:20px;display:block}.date-box span{font-size:10px;font-weight:800}.event-row h4{margin:0 0 5px;font-size:14px}.meta{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:12px}.tag{display:inline-flex;padding:5px 9px;border-radius:999px;background:var(--green-100);color:var(--green-800);font-size:11px;font-weight:700}.tag.warn{background:#fff2d5;color:#956414}.tag.blue{background:#e6eef9;color:#3d6596}.tag.red{background:#f8e6e5;color:#a24949}.tag.gray{background:#efefec;color:#626963}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-grid .btn{justify-content:flex-start}.activity{display:flex;flex-direction:column;gap:11px}.activity-item{display:flex;gap:10px;font-size:13px}.activity-dot{width:9px;height:9px;border-radius:50%;background:var(--green-600);margin-top:5px;flex:none}.activity-item small{display:block;color:var(--muted);margin-top:3px}
.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.toolbar .spacer{flex:1}.field,.select{border:1px solid var(--line);background:#fff;border-radius:11px;min-height:42px;padding:10px 12px;outline:none}.field:focus,.select:focus,textarea:focus{border-color:#8fb09d;box-shadow:0 0 0 3px rgba(66,114,88,.10)}.toolbar .field{min-width:230px}.calendar-layout{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:16px}.calendar{padding:0;overflow:hidden}.calendar-head{display:flex;align-items:center;justify-content:space-between;padding:18px;border-bottom:1px solid var(--line)}.calendar-head h2{margin:0;font-size:20px}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr)}.dow{padding:10px;text-align:center;font-size:11px;color:var(--muted);font-weight:800;background:#faf9f5}.day{min-height:118px;border-top:1px solid #ece9e1;border-right:1px solid #ece9e1;padding:8px;background:#fffdf9}.day:nth-child(7n){border-right:0}.day.out{background:#faf9f6;color:#aaa}.day.today .day-num{background:var(--green-800);color:white}.day-num{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800;margin-bottom:6px}.cal-event{padding:6px 7px;border-radius:7px;background:var(--green-100);font-size:10px;font-weight:700;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-left:3px solid var(--green-600)}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.entity-card{background:#fffdf9;border:1px solid var(--line);border-radius:15px;padding:16px;display:flex;flex-direction:column;gap:10px}.entity-card h3{font-size:15px;margin:0}.entity-card p{font-size:12px;color:var(--muted);margin:0;line-height:1.5}.entity-card .card-actions{display:flex;gap:8px;margin-top:auto}.person-head{display:flex;align-items:center;gap:11px}.person-head .avatar{width:44px;height:44px}.person-head small{display:block;color:var(--muted);margin-top:2px}.members{display:flex;align-items:center}.mini-avatar{width:29px;height:29px;border-radius:50%;background:#dce9df;border:2px solid #fff;display:grid;place-items:center;font-size:9px;font-weight:800;margin-left:-6px}.mini-avatar:first-child{margin-left:0}.empty{padding:40px 20px;text-align:center;color:var(--muted)}
.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;font-size:13px}.table th{text-align:left;color:var(--muted);font-size:11px;padding:11px 10px;border-bottom:1px solid var(--line);white-space:nowrap}.table td{padding:12px 10px;border-bottom:1px solid #eeeae2;vertical-align:middle}.table tr:last-child td{border-bottom:0}.table a{color:var(--green-700);font-weight:700;text-decoration:none}.table-actions{display:flex;gap:5px}.status-pill{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800;background:#eee}.status-pill.approved,.status-pill.published,.status-pill.completed{background:#e5f3e9;color:#24553f}.status-pill.pending,.status-pill.draft{background:#fff0cc;color:#8e6515}.status-pill.suspended,.status-pill.cancelled{background:#f7e3e3;color:#914545}
.modal-backdrop{position:fixed;inset:0;background:rgba(5,24,17,.58);backdrop-filter:blur(4px);z-index:100;display:flex;align-items:center;justify-content:center;padding:22px}.modal{width:min(760px,100%);max-height:90vh;overflow:auto;background:#fffdf9;border-radius:20px;box-shadow:0 28px 80px rgba(0,0,0,.28)}.modal.sm{width:min(480px,100%)}.modal-head{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.modal-head h2{font-size:19px;margin:0}.modal-body{padding:20px}.modal-foot{padding:15px 20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:9px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-group{display:flex;flex-direction:column;gap:6px}.form-group.full{grid-column:1/-1}.form-group label{font-size:11px;color:var(--muted);font-weight:800}.form-group input,.form-group select,.form-group textarea{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 11px;outline:none}.form-group textarea{min-height:96px;resize:vertical}.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:190px;overflow:auto;border:1px solid var(--line);padding:10px;border-radius:10px}.check-item{display:flex;gap:7px;align-items:center;font-size:12px}.toast-root{position:fixed;right:20px;bottom:20px;z-index:150;display:flex;flex-direction:column;gap:10px}.toast{background:#153c2e;color:white;border-radius:12px;padding:12px 15px;box-shadow:var(--shadow);font-size:13px}.toast.err{background:#8f3f3f}
.auth-shell{min-height:calc(100vh - 130px);display:grid;place-items:center;padding:36px 10px}.auth-card{width:min(540px,100%);background:#fffdf9;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);overflow:hidden}.auth-hero{padding:30px;background:linear-gradient(135deg,#0d3024,#204e3b);color:white;position:relative}.auth-hero:after{content:"";position:absolute;right:20px;top:14px;width:90px;height:90px;background:url('./assets/plast-logo.png') center/contain no-repeat;opacity:.25}.auth-hero h1{font-family:Georgia,serif;font-size:34px;margin:0 0 8px}.auth-hero p{margin:0;color:#dce7e0}.auth-body{padding:24px}.auth-tabs{display:flex;gap:8px;margin-bottom:18px}.auth-tab{flex:1;border:0;border-radius:10px;padding:10px;background:#efede7}.auth-tab.active{background:var(--green-800);color:white}.auth-help{font-size:12px;color:var(--muted);line-height:1.55;margin-top:12px}.status-card{max-width:720px;margin:40px auto;background:#fffdf9;border:1px solid var(--line);border-radius:18px;padding:26px}.security-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:#e8f3eb;color:#24553f;font-size:11px;font-weight:800}.security-badge.warn{background:#fff1d5;color:#8e6515}.security-badge.red{background:#f8e4e4;color:#914545}.settings-grid{grid-template-columns:1fr 1fr}.user-row{display:grid;grid-template-columns:minmax(180px,1fr) 125px 125px auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.user-row:last-child{border-bottom:0}.user-row small{display:block;color:var(--muted)}.qr-wrap{text-align:center}.qr-wrap img{width:220px;max-width:100%;padding:10px;background:#fff;border-radius:12px;border:1px solid var(--line)}.config-error{max-width:760px;margin:50px auto;padding:24px;background:#fffdf9;border:1px solid #efcaca;border-radius:18px}.config-error code{background:#f3f1eb;padding:2px 5px;border-radius:5px}
.mobile-navigation-open{overflow:hidden}.mobile-nav-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mobile-nav-link{display:flex;align-items:center;gap:9px;min-height:54px;border:1px solid var(--line);border-radius:12px;padding:12px 10px;background:var(--green-100);color:var(--green-800);text-align:left;font-size:13px;font-weight:700;overflow-wrap:anywhere}.mobile-nav-link .nav-icon{flex:none}.mobile-nav-link:hover{background:var(--green-200)}.mobile-nav-link.active{background:var(--green-800);border-color:var(--green-800);color:white}.mobile-nav-link:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
@media(max-width:1100px){.app-shell{grid-template-columns:82px 1fr}.sidebar{padding-inline:10px}.brand{justify-content:center;padding-inline:0}.brand-logo{width:54px}.brand>div:last-child,.nav-btn span:not(.nav-icon),.sidebar-foot{display:none}.nav-btn{justify-content:center;padding:12px}.stats{grid-template-columns:1fr 1fr}.calendar-layout{grid-template-columns:1fr}.cards{grid-template-columns:1fr 1fr}.dashboard-grid{grid-template-columns:1fr}}
@media(max-width:720px){.app-shell{display:block}.sidebar{position:fixed;bottom:0;top:auto;width:100%;height:calc(72px + env(safe-area-inset-bottom));padding:8px 7px calc(8px + env(safe-area-inset-bottom));flex-direction:row;z-index:50}.brand,.sidebar-foot{display:none}.nav{width:100%;display:grid;grid-template-columns:repeat(5,1fr);gap:2px}.nav-btn{padding:7px 4px;display:flex;flex-direction:column;gap:3px;font-size:9px;border-radius:10px}.nav-btn:nth-child(n+6){display:none}.nav-btn span:not(.nav-icon){display:block}.nav-icon{font-size:17px;height:20px}.topbar{height:62px;padding:9px 14px}.search-wrap{min-width:0;height:42px}.user-chip>div{display:none}.content{padding:14px 12px calc(90px + env(safe-area-inset-bottom))}.page-head{flex-wrap:wrap;align-items:flex-start}#mobileMenu{width:44px;height:44px;flex-shrink:0}.modal-backdrop{padding:12px}.hero{padding:24px;min-height:180px}.hero h1{font-size:39px}.hero .quote{display:none}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat-card{padding:13px;gap:9px}.stat-card strong{font-size:22px}.calendar-grid{min-width:720px}.calendar{overflow:auto}.day{min-height:95px}.form-grid{grid-template-columns:1fr}.form-group.full{grid-column:auto}.check-grid{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.table{min-width:720px}.user-row{grid-template-columns:1fr}.mobile-only{display:inline-grid}}

/* User administration and MFA feedback. */
.user-row small{overflow-wrap:anywhere}.user-row .table-actions{flex-wrap:wrap}.btn:disabled{opacity:.55;cursor:not-allowed}.form-error{color:#914545;font-size:13px;line-height:1.5}.form-error:empty{display:none}
@media(min-width:721px) and (max-width:1000px){.user-row{grid-template-columns:minmax(140px,1fr) 125px 125px}.user-row .table-actions{grid-column:1/-1;justify-content:flex-end}}

/* Personal profiles: shared browser controls for desktop and mobile. */
.profile-layout{display:grid;grid-template-columns:minmax(230px,.72fr) minmax(0,1.6fr);gap:22px;align-items:start}
.profile-layout>*{min-width:0}.profile-card{overflow:hidden}.profile-card-heading{font-size:11px;text-transform:uppercase;letter-spacing:.13em;color:var(--muted);margin-bottom:22px}
.profile-summary{text-align:center;padding-bottom:22px;border-bottom:1px solid var(--line)}.profile-summary h2{font-family:Georgia,serif;font-size:27px;line-height:1.2;overflow-wrap:anywhere;margin:14px 0 7px}.profile-position{color:var(--green-800);font-size:14px;line-height:1.5;overflow-wrap:anywhere;margin:0}
.profile-avatar{position:relative;display:inline-grid;place-items:center;vertical-align:middle;flex:none;width:44px;height:44px;border-radius:50%;overflow:hidden;background:linear-gradient(145deg,#173e30,#668774);color:white;font-weight:800;font-size:15px}
.profile-avatar.small{width:38px;height:38px;font-size:12px}.profile-avatar.large{width:112px;height:112px;font-size:34px;box-shadow:0 0 0 6px #eef0e8}.profile-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.profile-avatar img[hidden]{display:none}
.profile-reading{font-size:14px;line-height:1.65;overflow-wrap:anywhere}.profile-reading h3{font-size:15px;margin:22px 0 8px}.profile-biography{white-space:pre-wrap;margin:0}.profile-qualifications{padding-left:20px;margin:0}.profile-qualifications li{margin:6px 0}
.profile-editor h2{font-family:Georgia,serif;font-size:25px;margin:0 0 20px}.profile-editor fieldset{border:0;margin:0;padding:0;min-width:0}.profile-editor .form-grid{margin-top:24px}.profile-editor .form-group textarea{resize:vertical;min-height:125px}.profile-editor .form-group .auth-help{margin:0}
.profile-photo-controls{display:grid;grid-template-columns:120px minmax(0,1fr);gap:20px;align-items:center}.profile-photo-controls input[type=file]{max-width:100%;width:100%;font-size:13px}.profile-photo-controls input[type=file]::file-selector-button{font:inherit;padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:#f4f1e9;color:var(--green-800);margin-right:8px;cursor:pointer}.field-label{display:block;font-size:12px;font-weight:800;color:var(--muted);margin-bottom:9px}
.profile-form-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}.profile-form-actions .btn,.profile-photo-controls .btn{min-height:44px}.profile-feedback{font-size:13px;line-height:1.6;white-space:pre-wrap;color:var(--green-800)}.profile-feedback.form-error{color:#914545}.profile-feedback:empty{display:none}
.profile-header-button,.member-photo-button{display:inline-grid;place-items:center;flex:none;border:0;background:none;padding:3px;min-width:44px;min-height:44px;border-radius:50%;color:var(--green-800)}.profile-header-button:focus-visible,.member-photo-button:focus-visible,.profile-text-link:focus-visible,.profile-user-link:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.profile-text-link{font:inherit;color:var(--green-800);border:0;border-bottom:1px dotted currentColor;background:none;padding:2px 0;text-align:left}.profile-user-link{display:flex;align-items:center;gap:10px;background:none;border:0;color:inherit;padding:2px 0;max-width:100%;text-align:left}.profile-user-link b{overflow-wrap:anywhere}.members .member-photo-button{margin-right:3px}.modal-foot{flex-wrap:wrap}.modal-foot .btn{min-height:44px}
@media(min-width:721px){.nav{overflow-y:auto;min-height:0}}
@media(max-width:900px){.profile-layout{grid-template-columns:minmax(0,1fr)}.profile-card{display:none}.profile-editor{width:100%}}
@media(max-width:480px){.profile-photo-controls{grid-template-columns:minmax(0,1fr);gap:18px}.profile-photo-controls #profilePhotoPreview{text-align:center}.profile-editor .form-group input,.profile-editor .form-group textarea{font-size:16px}.profile-form-actions .btn{flex:1}.profile-avatar.large{width:100px;height:100px}.profile-editor{padding:18px}.user-chip{gap:4px}.top-actions{gap:4px}.topbar{gap:8px}}

.mfa-manual{margin:16px 0;padding:12px;border:1px solid var(--line);border-radius:10px}.mfa-manual summary{cursor:pointer;font-size:13px;font-weight:700;color:var(--green-800)}.mfa-manual input{min-width:0;width:100%;font-family:monospace;font-size:16px}
