:root{--primary:#1a4d2e;--dark:#123d26;--accent:#c9a227;--bg:#f4f2ec;--ink:#1d2a22;--line:#d9d4c3}
*{box-sizing:border-box}
body{margin:0;font-family:'Cairo',system-ui,sans-serif;background:var(--bg);color:var(--ink);line-height:1.7}
.hero{background:linear-gradient(135deg,var(--dark),var(--primary));color:#fff;text-align:center;padding:22px 14px;border-bottom:4px solid var(--accent)}
.hero img{width:84px;height:84px;border-radius:50%;border:3px solid var(--accent);background:#fff}
.hero h1{margin:8px 0 2px;font-size:1.6rem}
.hero p{margin:0;color:#f0e2a8}
.tabs{display:flex;gap:4px;background:#fff;border-bottom:1px solid var(--line);padding:0 12px;flex-wrap:wrap}
.tabs button{border:0;background:none;font:inherit;font-weight:700;padding:12px 16px;cursor:pointer;color:var(--primary);border-bottom:3px solid transparent}
.tabs button.on{border-bottom-color:var(--accent)}
.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;max-width:440px;margin:28px auto;box-shadow:0 2px 10px #0001}
.wide{max-width:1000px}
label{display:block;font-weight:700;margin:12px 0 4px}
input,select,textarea{width:100%;font:inherit;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff}
button.primary{margin-top:16px;width:100%;font:inherit;font-weight:700;background:var(--primary);color:#fff;border:0;border-radius:10px;padding:12px;cursor:pointer}
button.primary:hover{background:var(--dark)}
.err{color:#9b1c1c;margin-top:10px;min-height:1.5em;overflow-wrap:anywhere}
.verse{color:#6b5a14;text-align:center;font-size:.95rem;margin-top:14px}
.bottom{display:none}
@media(max-width:700px){
 .tabs{display:none}
 .bottom{display:flex;position:fixed;bottom:0;inset-inline:0;background:#fff;border-top:1px solid var(--line)}
 .bottom button{flex:1;border:0;background:none;font:inherit;font-size:.8rem;font-weight:700;padding:10px 2px;color:var(--primary)}
 .bottom button.on{color:var(--accent)}
 body{padding-bottom:64px}
}
h2,h3{color:var(--primary)}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:4px 14px}
.fg label{display:block;font-weight:700;margin:10px 0 4px}
.wide2{grid-column:1/-1}
.req{color:#b42318;margin-inline-end:3px}
.fe{color:#b42318;font-size:.85rem;min-height:1em}
.row{display:flex;gap:10px;flex-wrap:wrap}
.row .primary{flex:1;min-width:140px}
button.alt{background:#fff;color:var(--primary);border:2px solid var(--primary)}
button.danger{background:#9b1c1c}
.multi{display:flex;flex-wrap:wrap;gap:6px 16px}
.chk{display:flex;gap:6px;align-items:center;font-weight:400!important;margin:2px 0!important}
.chk input{width:auto}
.pp{max-width:200px;max-height:240px;border-radius:10px;border:2px solid var(--accent);display:block;margin:8px 0}
.tw{overflow-x:auto}
table{border-collapse:collapse;width:100%}
th,td{border:1px solid var(--line);padding:8px 10px;text-align:right;overflow-wrap:anywhere;white-space:normal;vertical-align:top}
th{background:#ece7d2}
tr.clk{cursor:pointer}tr.clk:hover{background:#f7f3e0}
.kv th{width:36%}
.cnt{margin:10px 0;font-weight:700}
dialog.pop{border:0;border-radius:16px;padding:0;max-width:min(680px,94vw);width:100%;max-height:90vh;margin:auto;box-shadow:0 10px 40px #0006}
dialog.pop::backdrop{background:#0008}
.popin{padding:18px;max-height:90vh;overflow:auto}
.welcome{font-family:inherit}
.dup{background:#fff7d6;padding:6px 10px;border-radius:8px}

