:root{font-family:Inter,system-ui,sans-serif;color:#163041;background:#f2f6f7;font-size:16px}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
button,input,textarea{font:inherit}
.login{min-height:100vh;display:grid;grid-template-columns:1.15fr .85fr}
.brand{background:#103344;color:white;padding:4rem 8vw;display:flex;flex-direction:column;justify-content:space-between}
.brand b{color:#32c4ae}
.brand h1{font-size:clamp(2.4rem,5vw,4.8rem);line-height:1.02;margin:.8rem 0}
.brand p{font-size:1.2rem;line-height:1.7;color:#c9d8df}
.card{margin:auto;width:min(410px,84%);display:grid;gap:1rem;background:white;padding:2.3rem;border-radius:18px;box-shadow:0 16px 50px #1232}
.card h2{margin:0;font-size:1.8rem}
label{display:grid;gap:.45rem;font-weight:700}
input,textarea{border:1px solid #bed0d6;border-radius:9px;padding:.85rem;background:white;color:#163041}
textarea{min-height:110px}
button{border:0;border-radius:9px;padding:.8rem 1rem;background:#087e72;color:white;font-weight:700;cursor:pointer}
.plain,.secondary,nav button,.actions button:first-child{background:transparent;color:#315462;border:1px solid #c8d8dc}
header{height:68px;background:#103344;color:white;display:flex;justify-content:space-between;align-items:center;padding:0 5vw}
header span{font-weight:400;color:#bed0d6}
.workspace{width:min(1180px,92%);margin:2.6rem auto}
.title,.toolbar{display:flex;justify-content:space-between;gap:1rem;align-items:center}
.title h1{font-size:2.2rem;margin:.5rem 0}
.title em{font-style:normal;background:#dceeea;color:#087e72;border-radius:99px;padding:.2rem .65rem;font-size:1rem}
small{color:#087e72;font-weight:800;letter-spacing:.08em}
nav{display:flex;gap:.4rem;margin:2rem 0 1rem;overflow:auto}
nav button.active{background:#103344;color:white}
.panel{background:white;border:1px solid #dce6e8;border-radius:14px;overflow:hidden}
.toolbar{padding:1rem}
.toolbar input{flex:1}
.row{display:grid;grid-template-columns:1fr 1.5fr 1fr auto;gap:1rem;padding:1rem;border-top:1px solid #e4ebed;align-items:center}
.row strong,.row span{display:block}
.row small{font-weight:400;letter-spacing:0;color:#6b818a}
.row .actions{display:flex;gap:.5rem}
.row .actions button{padding:.5rem;background:#eef5f5;color:#315462}
.empty{padding:4rem;text-align:center;color:#6b818a}
.notice{padding:1rem;margin-bottom:1rem;background:#fff2d5;color:#6d4b00;border-radius:10px}
.error{color:#b42318;min-height:1.2em}
.foot{color:#6b818a;text-align:center;margin:2rem}
dialog{border:0;border-radius:16px;width:min(500px,92%);box-shadow:0 20px 80px #1236}
dialog::backdrop{background:#102f4077}
dialog form{display:grid;gap:1rem}
.actions{display:flex;justify-content:flex-end;gap:.7rem}
.audit{padding:1rem;border-top:1px solid #e4ebed}
.audit.user{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.audit .actions button{padding:.55rem;background:#eef5f5;color:#315462}
@media(max-width:760px){
  .login{grid-template-columns:1fr}
  .brand{min-height:38vh;padding:2rem}
  .brand h1{font-size:2.5rem}
  .card{margin:2rem auto}
  .row{grid-template-columns:1fr auto}
  .row .note,.row .meta{display:none}
  .title{align-items:flex-end}
  .title h1{font-size:1.7rem}
  .toolbar{flex-wrap:wrap}
  .toolbar input{flex-basis:100%}
  header{height:auto;min-height:68px;gap:.5rem;flex-wrap:wrap;padding-block:.7rem}
  header>div{display:flex;gap:.4rem;align-items:center}
  .audit.user{align-items:flex-start;flex-direction:column}
}
