:root{--black:#101010;--black2:#191919;--gold:#d5a32e;--gold2:#f0c85c;--silver:#d9dce0;--paper:#f5f5f3;--muted:#737780;--line:#e5e5e2;--white:#fff;--green:#1d7955}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:#202124;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}a{color:inherit;text-decoration:none}.topbar{min-height:78px;background:var(--black);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:12px clamp(18px,5vw,72px);gap:20px;border-bottom:2px solid var(--gold)}.brand{display:flex;align-items:center;gap:12px}.brand img{width:52px;height:52px;object-fit:contain;border-radius:6px}.brand strong{display:block;letter-spacing:.08em;font-size:15px;color:var(--gold2)}.brand small{display:block;font-size:10px;letter-spacing:.14em;color:#ddd}.topbar nav{display:flex;align-items:center;gap:22px;font-size:13px}.topbar nav a:hover,footer a:hover{color:var(--gold2)}.nav-cta{padding:9px 14px;border:1px solid var(--gold);border-radius:5px}.inline{display:inline}.navbutton{background:none;border:0;color:white;font:inherit;cursor:pointer}.hero{background:radial-gradient(ellipse at 80% 30%,#383126 0,#1b1b1b 36%,#101010 75%);color:white;display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:30px;padding:clamp(44px,8vw,100px) clamp(20px,8vw,120px);min-height:470px}.hero-copy{max-width:680px}.eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:.17em;font-weight:800;color:#a77a16;margin-bottom:12px}.hero .eyebrow{color:var(--gold2)}h1,h2,h3,p{margin-top:0}.hero h1{font-size:clamp(38px,5.4vw,68px);line-height:1.06;letter-spacing:-.045em;margin-bottom:22px}.hero h1 span{color:var(--gold2)}.hero-copy>p{color:#d3d3d3;font-size:17px;max-width:590px}.hero-logo{display:flex;justify-content:center;align-items:center}.hero-logo img{width:min(100%,340px);height:auto;filter:drop-shadow(0 18px 35px #0009)}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}.button{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:5px;padding:11px 17px;font-weight:750;font-size:13px;cursor:pointer;min-height:42px}.gold{background:linear-gradient(120deg,var(--gold2),var(--gold));color:#161616}.gold:hover{filter:brightness(1.06)}.outline{border-color:#777;color:white}.dark-outline{color:#222;border-color:#bbb}.dark{background:var(--black);color:white}.full{width:100%}.section{padding:64px clamp(20px,7vw,100px)}.section-heading{margin-bottom:24px}.section-heading h2,.contact h2,.portal-band h2{font-size:clamp(27px,3vw,38px);letter-spacing:-.03em;margin-bottom:8px}.section-heading p,.contact>div>p,.portal-band p{color:var(--muted);max-width:650px}.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.service{background:#fff;border:1px solid var(--line);padding:24px;border-radius:9px;min-height:160px}.service>span{color:#b58b2e;font-weight:800;font-size:12px}.service h3{margin:17px 0 7px;font-size:18px}.service p{font-size:14px;color:var(--muted);margin-bottom:0}.portal-band{background:#e9e5db;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:44px clamp(20px,7vw,100px)}.portal-band p{margin-bottom:0}.contact{display:grid;grid-template-columns:1fr 1fr;gap:40px}.contact-card{background:white;border:1px solid var(--line);border-radius:10px;padding:25px}.contact-card p{border-bottom:1px solid var(--line);padding-bottom:13px}.contact-card p span{display:block;color:var(--muted);font-size:12px;margin-bottom:3px}.contact-card a:not(.button){font-weight:700}.login-wrap{min-height:65vh;display:grid;place-items:center;padding:40px 18px;background:linear-gradient(130deg,#eeeae0,#f8f8f6)}.login-card,.form-card,.records-card{background:white;border:1px solid var(--line);border-radius:10px;padding:26px;box-shadow:0 8px 25px #16161608}.login-card{width:min(100%,430px)}.login-card h1{font-size:32px;margin-bottom:5px}.login-card>p{color:var(--muted)}label{display:block;font-size:13px;font-weight:700;margin:14px 0}input,select,textarea{display:block;width:100%;margin-top:6px;border:1px solid #d6d7d7;border-radius:5px;padding:11px 12px;font:inherit;font-size:14px;background:#fff;color:#222;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #d5a32e66;border-color:#bd8d1f}.small{font-size:12px}.muted{color:var(--muted)}.login-card .small{margin-top:20px}.messages{padding:10px 20px 0}.flash{padding:10px 14px;border-radius:6px;max-width:1200px;margin:auto;font-size:14px}.flash.success{background:#e4f4ea;color:#176443}.flash.error{background:#ffeded;color:#922b2b}.page-head{padding:36px clamp(18px,5vw,64px);display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border-bottom:1px solid var(--line)}.page-head h1{font-size:clamp(27px,4vw,38px);margin-bottom:4px}.page-head p{color:var(--muted);margin-bottom:0}.status-pill{font-size:12px;color:var(--green);background:#e6f4ed;padding:7px 10px;border-radius:20px;white-space:nowrap}.stats{padding:26px clamp(18px,5vw,64px);display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.stat{background:white;border:1px solid var(--line);padding:19px;border-radius:8px;display:flex;flex-direction:column;gap:5px}.stat span{color:var(--muted);font-size:13px}.stat strong{font-size:32px}.stat small{color:#9a741d;font-weight:700}.compact{padding-top:20px;padding-bottom:30px}.module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.module{display:flex;align-items:center;gap:12px;padding:17px;background:white;border:1px solid var(--line);border-radius:8px}.module-icon{width:40px;height:40px;border-radius:7px;background:#f7edcf;color:#9b7218;display:grid;place-items:center;font-size:21px}.module span:nth-child(2){flex:1}.module strong,.module small{display:block}.module small{font-size:12px;color:var(--muted)}.module>b{color:#a77a16}.empty{background:white;border:1px dashed #ccc;padding:22px;border-radius:8px;color:var(--muted)}.table-wrap{overflow:auto;background:white;border:1px solid var(--line);border-radius:8px}table{border-collapse:collapse;width:100%;font-size:13px;white-space:nowrap}th,td{padding:12px 14px;text-align:left;border-bottom:1px solid #eee}th{background:#f7f6f2;color:#555;font-size:11px;text-transform:uppercase;letter-spacing:.05em}td{max-width:320px;overflow:hidden;text-overflow:ellipsis}tr:last-child td{border-bottom:0}.manage-layout{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:18px;padding:26px clamp(14px,4vw,50px)}.form-card h2,.records-card h2{font-size:19px;margin-bottom:14px}.record-form label{margin:10px 0;font-size:12px}.record-form input,.record-form select,.record-form textarea{font-size:13px;padding:9px}.records-head{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.search{display:flex;gap:7px}.search input{margin:0;min-width:150px}.search .button{min-height:38px;padding:8px 12px}.delete{background:#fff0f0;color:#a52b2b;border:1px solid #f2c7c7;border-radius:4px;padding:6px 9px;cursor:pointer}.records-card>.small{margin:12px 0 0}footer{background:var(--black);color:#ddd;padding:30px clamp(20px,5vw,72px);display:flex;justify-content:space-between;gap:25px;flex-wrap:wrap;font-size:13px;border-top:3px solid var(--gold)}footer strong{color:var(--gold2)}footer p{color:#aaa;margin:5px 0 0}footer a{line-height:2}
@media(max-width:800px){.topbar{align-items:flex-start;flex-direction:column}.topbar nav{width:100%;gap:15px;flex-wrap:wrap}.hero{grid-template-columns:1fr;padding-top:50px}.hero-logo{grid-row:1;justify-content:flex-start}.hero-logo img{width:150px}.hero h1{font-size:43px}.service-grid{grid-template-columns:repeat(2,1fr)}.portal-band{align-items:flex-start;flex-direction:column}.contact{grid-template-columns:1fr}.module-grid{grid-template-columns:repeat(2,1fr)}.manage-layout{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.page-head{align-items:flex-start;flex-direction:column}}
@media(max-width:480px){.brand img{width:44px;height:44px}.brand strong{font-size:13px}.topbar nav{font-size:12px;gap:12px}.hero h1{font-size:37px}.service-grid,.module-grid{grid-template-columns:1fr}.service{min-height:0}.section{padding-top:42px;padding-bottom:42px}.stats{gap:8px;padding:15px}.stat{padding:13px}.stat strong{font-size:27px}.stat span{font-size:12px}.records-card,.form-card{padding:14px}.search{width:100%}.search input{flex:1;min-width:0}.page-head{padding-top:26px;padding-bottom:26px}}

/* Release 3.0 theme coverage for the entire interface */
html[data-theme="dark"]{color-scheme:dark}html[data-theme="light"]{color-scheme:light}
html[data-theme="dark"] body{background:#111;color:#f4f1e8}
html[data-theme="dark"] .section,html[data-theme="dark"] .form-card,html[data-theme="dark"] .records-card,html[data-theme="dark"] .login-card,html[data-theme="dark"] .app-card,html[data-theme="dark"] .stat,html[data-theme="dark"] .service,html[data-theme="dark"] .contact-card,html[data-theme="dark"] .page-head,html[data-theme="dark"] .event-note,html[data-theme="dark"] .gallery-tile{background:#1b1b1b;color:#f4f1e8;border-color:#393939}
html[data-theme="dark"] p,html[data-theme="dark"] .muted,html[data-theme="dark"] .section p,html[data-theme="dark"] .page-head p,html[data-theme="dark"] .stat span,html[data-theme="dark"] .module small{color:#c4c0b5}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#121212;color:#f4f1e8;border-color:#484848}
html[data-theme="dark"] table th{background:#282828;color:#f4f1e8}html[data-theme="dark"] table td{border-color:#393939;color:#f4f1e8}
html[data-theme="dark"] .module,html[data-theme="dark"] .admin-links a,html[data-theme="dark"] .quick-link{background:#1b1b1b;color:#f4f1e8;border-color:#393939}
html[data-theme="dark"] .portal-band{background:#24221d;color:#f4f1e8}html[data-theme="dark"] .login-wrap{background:#141414}

/* Theme palette overrides: cover both the public pages and portal/admin screens. */
html[data-theme="light"]{color-scheme:light;--page-bg:#f7f5ef;--card-bg:#fff;--body-text:#202124;--soft-text:#666b73;--border-color:#e2dfd6;--field-bg:#fff;--table-head:#f1eee5}
html[data-theme="dark"]{color-scheme:dark;--page-bg:#111;--card-bg:#1b1b1b;--body-text:#f4f1e8;--soft-text:#c4c0b5;--border-color:#3b3b3b;--field-bg:#121212;--table-head:#282828}
html[data-theme="light"] body{background:var(--page-bg);color:var(--body-text)}
html[data-theme="dark"] body{background:var(--page-bg);color:var(--body-text)}
html[data-theme="dark"] .section,html[data-theme="dark"] .form-card,html[data-theme="dark"] .records-card,html[data-theme="dark"] .login-card,html[data-theme="dark"] .app-card,html[data-theme="dark"] .stat,html[data-theme="dark"] .service,html[data-theme="dark"] .contact-card,html[data-theme="dark"] .page-head,html[data-theme="dark"] .event-note,html[data-theme="dark"] .gallery-tile,html[data-theme="dark"] .table-wrap,html[data-theme="dark"] .empty{background:var(--card-bg);color:var(--body-text);border-color:var(--border-color)}
html[data-theme="light"] .section,html[data-theme="light"] .form-card,html[data-theme="light"] .records-card,html[data-theme="light"] .login-card,html[data-theme="light"] .stat,html[data-theme="light"] .service,html[data-theme="light"] .contact-card,html[data-theme="light"] .page-head,html[data-theme="light"] .event-note,html[data-theme="light"] .gallery-tile,html[data-theme="light"] .table-wrap{background:var(--card-bg);color:var(--body-text);border-color:var(--border-color)}
html[data-theme="dark"] p,html[data-theme="dark"] .muted,html[data-theme="dark"] .section p,html[data-theme="dark"] .page-head p,html[data-theme="dark"] .stat span,html[data-theme="dark"] .module small,html[data-theme="dark"] label{color:var(--soft-text)}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:var(--field-bg);color:var(--body-text);border-color:var(--border-color)}
html[data-theme="dark"] table th{background:var(--table-head);color:var(--body-text)}html[data-theme="dark"] table td{border-color:var(--border-color);color:var(--body-text)}
html[data-theme="dark"] .module,html[data-theme="dark"] .admin-links a,html[data-theme="dark"] .quick-link{background:var(--card-bg);color:var(--body-text);border-color:var(--border-color)}
html[data-theme="dark"] .portal-band{background:#24221d;color:var(--body-text)}html[data-theme="dark"] .login-wrap{background:#141414}
.stat-multi ul{list-style:none;margin:.5rem 0 .25rem;padding:0;display:grid;gap:.35rem}.stat-multi li{display:flex;justify-content:space-between;align-items:baseline;gap:1rem}.stat-multi li strong{font-size:1.35rem}.stat-multi a{text-decoration:underline;text-underline-offset:3px}
.print-only{display:none}
@media print{.topbar,.breadcrumb,footer,.whatsapp-float,.skip-link,.messages,.no-print,.admin-links,.pagination,nav,form,button{display:none!important}.print-only{display:block!important;margin:0 0 .6rem}html,body,.section,.records-card,.print-sheet,.table-wrap{background:#fff!important;color:#000!important;box-shadow:none!important;border:0!important;overflow:visible!important}body{font-size:11px}table{width:100%;border-collapse:collapse}th,td{border:1px solid #888;padding:3px 5px;text-align:left;vertical-align:top;color:#000!important}thead{display:table-header-group}tr{break-inside:avoid}a{color:#000;text-decoration:none}@page{margin:12mm}}
.cv-status{margin:.1rem 0 .4rem;padding:.5rem .7rem;border-left:4px solid var(--gold);background:rgba(213,163,46,.12);border-radius:6px;font-size:.92rem}
input[type=file]{width:100%;padding:.6rem;border:1px dashed var(--gold);border-radius:8px;background:transparent;color:inherit}input[type=file]:disabled{opacity:.55;cursor:not-allowed}
.receipt{display:grid;gap:1rem}.receipt-number{margin:0;font-size:1.6rem;font-weight:800;letter-spacing:.04em;word-break:break-all}
.cv-result.ok{border-left:4px solid #1b7f3b}.cv-result.bad{border-left:4px solid #b3261e}
.developer-credit{margin-top:.35rem;font-size:.9rem}.developer-credit a{text-decoration:underline;text-underline-offset:3px}
/* keep the last footer line clear of the floating WhatsApp button */
footer{padding-bottom:calc(30px + 70px)}
.receipt p{color:inherit}.receipt .muted{color:var(--muted)}.receipt-number{color:var(--black)}[data-theme="dark"] .receipt-number{color:var(--gold2)}


.pw-wrap{position:relative;display:block}.pw-wrap input{width:100%;padding-right:2.9rem}
.pw-toggle{position:absolute;top:50%;right:.35rem;transform:translateY(-50%);width:2.3rem;height:2.3rem;display:grid;place-items:center;padding:0;border:0;border-radius:8px;background:transparent;color:inherit;opacity:.75;cursor:pointer}
.pw-toggle:hover,.pw-toggle:focus-visible{opacity:1;outline:2px solid var(--gold)}
.pw-toggle svg{width:1.3rem;height:1.3rem}
.check-row{display:flex;gap:.6rem;align-items:flex-start;font-weight:500}.check-row input{width:auto;margin-top:.25rem}
