:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #f3f6f4; color: #15211c; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(circle at top left, #dceee6, transparent 42%), #f5f7f6; }
.auth-card { width: min(100%, 28rem); padding: 2rem; border: 1px solid #cbd8d2; border-radius: 1rem; background: #fff; box-shadow: 0 1.2rem 3rem rgba(17, 58, 43, .12); }
.eyebrow { margin: 0 0 .5rem; color: #126344; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: .25rem 0 .75rem; }
.muted { color: #56645e; }
label { display: grid; gap: .45rem; margin: 1rem 0; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 3rem; border: 1px solid #9aa9a2; border-radius: .55rem; padding: .7rem .8rem; background: #fff; font: inherit; }
textarea { min-height: 5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(18, 99, 68, .18); border-color: #126344; }
button { min-height: 3rem; width: 100%; border: 0; border-radius: .55rem; padding: .7rem 1rem; background: #0f5a3f; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.error { padding: .75rem; border-left: .3rem solid #b42318; background: #fff0ee; color: #8a1c13; font-weight: 700; }
.success { padding: .75rem; border-left: .3rem solid #16845b; background: #eaf8f1; color: #0d5d3f; font-weight: 700; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; background: #0d4d37; color: #fff; }
.topbar div { display: flex; gap: 1rem; align-items: center; }
.topbar button { min-height: 2.5rem; width: auto; background: #fff; color: #0d4d37; }
.dashboard { width: min(100%, 92rem); margin: auto; padding: 2rem; }
.tabs { display: flex; gap: .7rem; margin: 1rem 0 1.5rem; flex-wrap: wrap; }
.tabs a, .button-link { display: inline-grid; place-items: center; min-height: 2.7rem; padding: .6rem 1rem; border-radius: .55rem; background: #e3efe9; color: #0d4d37; font-weight: 800; text-decoration: none; }
.panel { margin: 1rem 0; padding: 1.25rem; border: 1px solid #cbd8d2; border-radius: .9rem; background: #fff; box-shadow: 0 .3rem 1rem rgba(17,58,43,.05); }
.panel h2 { margin-top: 0; }
.leave-panel { border-left: .4rem solid #b42318; }
.leave-panel h2 { color: #b42318; font-weight: 900; }
.form-grid { display: grid; grid-template-columns: repeat(4,minmax(10rem,1fr)); gap: 0 1rem; align-items: end; }
.form-grid .wide { grid-column: span 2; }
.columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.inline { display: flex; align-items: end; gap: .7rem; flex-wrap: wrap; }
.inline label { min-width: 12rem; }
.inline button, .inline .button-link { width: auto; margin-bottom: 1rem; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .7rem; border-bottom: 1px solid #d8e0dc; text-align: left; vertical-align: top; }
th { color: #355047; font-size: .82rem; text-transform: uppercase; }
.decision { display: grid; grid-template-columns: minmax(12rem,1fr) auto auto; gap: .4rem; min-width: 26rem; }
.decision button { min-height: 2.7rem; width: auto; }
.danger { background: #a12a20; }
.admin-actions { display: flex; gap: .4rem; margin: .25rem 0; align-items: center; min-width: 23rem; }
.admin-actions input { min-height: 2.7rem; }
.admin-actions button, .inline-row button { min-height: 2.7rem; width: auto; }
.inline-row { display: grid; grid-template-columns: minmax(12rem,1fr) auto; gap: .5rem; min-width: 20rem; }
.reminder-panel { border-left: .4rem solid #d18a00; background: #fffdf5; }
.reminder-grid { display: grid; grid-template-columns: repeat(2,minmax(12rem,1fr)); gap: .8rem; margin: 1rem 0; }
.reminder-grid a { display: flex; align-items: center; gap: .8rem; padding: 1rem; border: 1px solid #e3c46d; border-radius: .7rem; background: #fff7d7; color: #5f4300; text-decoration: none; }
.reminder-grid strong { font-size: 1.7rem; }
.reminder-grid span { font-weight: 800; }
.secondary-action { margin-top: .35rem; min-height: 2.5rem; background: #66756f; }
.auto-clear-note { display: block; margin-top: .35rem; color: #56645e; font-size: .8rem; white-space: nowrap; }
.master-panel { padding: 0; }
.master-panel summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; cursor: pointer; list-style: none; color: #0d4d37; }
.master-panel summary::-webkit-details-marker { display: none; }
.master-panel summary::after { content: 'Open'; font-weight: 800; }
.master-panel[open] summary::after { content: 'Close'; }
.master-panel summary span { color: #56645e; font-size: .9rem; font-weight: 500; }
.master-panel-body { padding: 0 1.25rem 1.25rem; border-top: 1px solid #d8e0dc; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 1rem; }
@media (max-width: 60rem) { .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .columns { grid-template-columns: 1fr; } }
@media (max-width: 36rem) { .auth-card { padding: 1.35rem; } .topbar div { align-items: flex-start; flex-direction: column; gap: .15rem; } .dashboard { padding: 1rem; } .form-grid { grid-template-columns: 1fr; } .form-grid .wide { grid-column: auto; } .reminder-grid { grid-template-columns: 1fr; } .master-panel summary { flex-direction: column; } }
