*{box-sizing:border-box}
body{margin:0;font-family:Tajawal,system-ui,sans-serif;font-size:17px;line-height:1.8;background:#FBF8F1;color:#111}
.pg-top{display:flex;align-items:center;justify-content:space-between;background:#111;padding:6px 16px}
.pg-brand img{display:block;height:44px;width:auto}
.pg-home{color:rgb(228,187,126);text-decoration:none;font-weight:700}
.pg{max-width:760px;margin:0 auto;padding:18px 14px 120px}
.pg h1{font-size:26px;margin:8px 0}.pg h2{font-size:21px;margin:0 0 4px}
.pg-card{background:#fff;border:1px solid #eadfc8;border-radius:18px;padding:18px;margin:14px 0;box-shadow:0 6px 18px -14px #0006}
.pg-hint{color:#6b5a3a;font-size:15px;margin:2px 0 10px}
.pg-btn{display:inline-block;min-height:46px;padding:0 22px;border-radius:23px;border:1.5px solid rgb(228,187,126);background:rgb(228,187,126);color:#111;font:inherit;font-weight:800;text-decoration:none;cursor:pointer}
.pg-btn.alt{background:#fff}.pg-btn[disabled]{opacity:.5;cursor:default}
.pg-steps{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.pg-step{flex:1;min-width:120px;text-align:start;padding:10px 12px;border-radius:14px;border:1.5px solid #eadfc8;background:#fff;font:inherit;cursor:pointer}
.pg-step.on{border-color:rgb(228,187,126);background:#fff7e6}
.pg-step b{display:block}.pg-step small{color:#6b5a3a}
.pg-bar{height:8px;border-radius:4px;background:#eee;overflow:hidden;margin:8px 0}.pg-bar i{display:block;height:100%;background:rgb(228,187,126)}
.pg label{display:block;font-weight:700;margin:16px 0 6px}
.pg textarea,.pg input[type=text]{width:100%;font:inherit;font-size:17px;padding:12px;border:1.5px solid #d8c9a8;border-radius:12px;background:#fffdf8;min-height:52px}
.pg textarea{min-height:120px;resize:vertical}
.pg textarea:focus,.pg input:focus{outline:0;border-color:rgb(228,187,126);box-shadow:0 0 0 3px rgba(228,187,126,.3)}
.pg-note{background:#fff7e6;border:1px solid rgb(228,187,126);border-radius:12px;padding:10px 12px;margin:10px 0}
.pg-ok{color:#2c6a3a;font-weight:700}.pg-err{color:#8a1f17;font-weight:700}
.pg-save{position:fixed;bottom:12px;left:50%;transform:translateX(-50%);background:#111;color:#f1dcaa;border-radius:14px;padding:8px 18px;font-weight:700;font-size:14px;z-index:20}
.pg-save[hidden]{display:none}
.pg-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}

.pg-help{background:#fffaf0;border-inline-start:4px solid rgb(228,187,126);border-radius:10px;padding:8px 12px;margin:0 0 8px;font-size:15px;line-height:1.7;color:#4a3d22}
.pg-help p{margin:3px 0}.pg-help ul{margin:2px 0;padding-inline-start:20px}.pg-meth{color:#6b5a3a;font-size:14px}
.pg-ai{margin-top:8px}.pg-mini{min-height:38px;padding:0 14px;margin-inline-end:8px;border-radius:19px;border:1.5px solid #6d3fc4;background:#fff;color:#4b2a94;font:inherit;font-size:15px;font-weight:700;cursor:pointer}
.pg-mini[disabled]{opacity:.5}
.pg-ex{margin-top:8px;padding:10px 12px;border-radius:12px;background:#f4eefc;color:#2f1a63;white-space:pre-wrap;font-size:15px}
.pg-follow{margin-top:10px;padding:10px 12px;border-radius:12px;background:#f4eefc;color:#2f1a63}
.pg-follow textarea{margin-top:6px;background:#fff}

.pg-tabs{display:flex;gap:8px;margin:10px 0}.pg-tabs button{flex:1;min-height:44px;border-radius:22px;border:1.5px solid #d8c9a8;background:#fff;font:inherit;font-weight:800;cursor:pointer}
.pg-tabs button.on{background:rgb(228,187,126);border-color:rgb(228,187,126)}
.pg-it{padding:12px 0;border-bottom:1px solid #f0e6d0}.pg-it p{margin:0 0 8px;font-weight:700}
.pg-lk{display:flex;gap:8px}.pg-lk button{flex:1;min-height:48px;border-radius:12px;border:1.5px solid #d8c9a8;background:#fffdf8;font:inherit;font-size:18px;font-weight:800;cursor:pointer}
.pg-lk button.on{background:#111;border-color:#111;color:rgb(228,187,126)}
.pg-res{background:#fff7e6;border:1px solid rgb(228,187,126);border-radius:14px;padding:10px 14px;margin:10px 0}.pg-res h3{margin:0 0 6px}
.pg-rr{margin:10px 0}.pg-rr span{float:inline-end;font-weight:800}.pg-rr small{display:block;color:#6b5a3a}

.pg-inv{padding:10px 12px;border:1px solid #eadfc8;border-radius:12px;margin:8px 0}.pg-inv .pg-row{margin-top:8px}
#invLabel{min-height:46px}
.pg h3{font-size:18px;margin:16px 0 4px}

.pg-goal{border:1.5px solid #eadfc8;border-radius:14px;padding:10px;margin:10px 0;display:grid;gap:8px}.pg-goal.warn{border-color:#c9822b}
.pg-gr{display:flex;gap:8px;flex-wrap:wrap}.pg-gr>*{flex:1;min-width:110px}
.pg select,.pg input[type=date]{font:inherit;font-size:16px;min-height:46px;padding:0 10px;border:1.5px solid #d8c9a8;border-radius:12px;background:#fffdf8}
.pg-task{display:grid;grid-template-columns:auto 1fr;gap:8px;padding:10px 0;border-bottom:1px solid #f0e6d0}.pg-task input[type=checkbox]{width:24px;height:24px;align-self:center}
.pg-task select,.pg-task button{grid-column:2}

.pg-report{background:#fff;border:1px solid #eadfc8;border-radius:18px;padding:18px;margin:14px 0}.pg-report h1{font-size:24px;margin:0}.pg-report h2{font-size:20px;border-bottom:2px solid rgb(228,187,126);padding-bottom:4px;margin:22px 0 8px}.pg-report h3{font-size:17px;margin:12px 0 2px}.pg-report p{margin:4px 0}
@media print{.pg-top,.pg-noprint,.pg-save{display:none!important}body{background:#fff;font-size:13px}.pg{padding:0;max-width:none}.pg-report{border:0;padding:0}.pg-report section{break-inside:avoid-page}.pg-report h2{break-after:avoid}}

.pg-tabs{flex-wrap:wrap}.pg-tabs button{min-width:30%;padding:0 8px}

.pg-badge{display:inline-block;font-size:.75rem;padding:2px 8px;border-radius:99px;background:#f3ead7;color:#000;vertical-align:middle}.pg-badge.warn{background:rgb(228,187,126)}
.pg-tasks{list-style:none;padding:0}.pg-card details{border-top:1px solid #e5dcc8;padding:8px 0}.pg-card details summary{cursor:pointer}
.pg-journey{border-color:rgb(228,187,126);border-width:2px}.pg-tasks input[type=text]{width:70%;display:inline-block}
