/* Existing emerald/gold identity extended for teacher tools. */
.tools-page,.tool-panel{direction:rtl}.tool-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:24px}.tool-head h2{color:#07503e;font-size:25px;margin:4px 0 10px}.tool-head p{color:#697c73;font-size:14px;margin:0}.tool-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.tool-stats article{background:linear-gradient(145deg,#fff,#f1f7f3);border:1px solid #dce8df;border-radius:18px;padding:20px;border-top:3px solid #cda444}.tool-stats span{display:block;color:#60796a;font-size:13px}.tool-stats strong{display:block;font-size:30px;color:#07533f;margin-top:9px}.tool-controls{justify-content:space-between;align-items:center}.tool-controls label{display:flex;align-items:center;gap:12px}.tool-followups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tool-followup{padding:22px;background:#fff;border:1px solid #dfebe2;border-radius:20px;box-shadow:0 5px 20px #064e3b05}.tool-followup>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:12px}.tool-followup h3{font-size:16px;margin:22px 0 8px}.tool-followup p{font-size:14px;color:#69796f}.tool-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.tool-empty{text-align:center;padding:40px 16px;background:#f5f8f3;border-radius:16px;color:#6b7d72;grid-column:1/-1}.tool-empty svg{width:36px;height:36px;margin:auto;color:#b99a47}.tool-note{padding:13px 16px;background:#fbf6e9;border-right:3px solid #c5a04c;border-radius:9px;color:#6a654f;font-size:13px;margin:18px 0}.tool-timeline{display:grid;gap:15px;margin-top:20px;border-right:2px solid #dbc998;padding-right:16px}.tool-timeline .card{box-shadow:none;border:1px solid #deeadf;padding:20px;border-radius:15px}.tool-timeline h3{font-size:17px;color:#07503e}.tool-timeline small{color:#748176}.tool-prewrap{white-space:pre-wrap;overflow-wrap:anywhere}.tool-next{background:#edf5ef;padding:10px;border-radius:8px;font-size:13px}.tool-compare-controls{display:grid;grid-template-columns:1fr 1fr auto;gap:14px;align-items:end}.tool-compare-controls label{display:grid;gap:9px}.tool-compare-controls>div{display:grid;gap:10px;padding:12px;background:#f4f8f4;border-radius:12px}.tool-compare-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tool-compare-grid .card{padding:17px;min-width:0;border-top:3px solid #178661}.tool-compare-grid .training{border-top-color:#c5a04c}.tool-compare-grid h3{font-size:16px}.tool-compare-skill{padding:13px 0;border-bottom:1px solid #edf1e9}.tool-compare-skill strong,.tool-compare-skill small{display:block}.tool-compare-skill small{color:#748176;margin-top:5px;font-size:12px}.student-section-tabs{flex-wrap:wrap;overflow:visible!important;gap:7px!important}.student-section-tabs button{font-size:12px!important;padding:10px 12px!important;flex:0 1 auto!important;white-space:normal}.tool-panel{max-width:760px;margin:auto}.tool-panel textarea{min-height:96px}.tool-photo-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:25px}.tool-photo-preview{position:static!important;display:block!important;width:auto!important;background:#f4f7f1!important;border-radius:18px;padding:18px!important;box-shadow:none!important;z-index:auto!important;height:auto!important;min-width:0}.tool-crop-wrap{width:100%;max-width:300px;position:relative;margin:18px auto;border:3px solid #d2b35e;border-radius:24px;overflow:hidden;background:#eef4ef}.tool-crop-wrap canvas{display:block;width:100%;height:auto;touch-action:none;cursor:move}.tool-crop-wrap>span{position:absolute;bottom:10px;left:10px;right:10px;background:#064e3bd9;color:#fff;text-align:center;padding:7px;border-radius:8px;font-size:11px;pointer-events:none}.tool-portrait-card{padding:14px;border-radius:30px;background:#fff;border:2px solid #c9aa52;text-align:center;max-width:260px;margin:22px auto}.tool-portrait-card img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:21px}.tool-portrait-card strong,.tool-portrait-card small{display:block;margin-top:12px;color:#07503e}.tool-file-label{display:inline-block;cursor:pointer}.tool-photo-layout input[type=range]{width:100%}.tool-wide-modal{width:95vw!important;max-width:1120px!important}.tool-archive-output{overflow:auto}.tool-archived-pages .period-page{margin:20px auto}.archive-card-stage{width:1492px;zoom:.62;transform-origin:top right}.tool-upcoming{margin-top:22px}.tool-upcoming .row-between{padding:12px 0;border-bottom:1px solid #edf1e9}#nav a[href="#today"] .ico{font-size:20px}
@media(max-width:760px){.tool-head{align-items:flex-start;flex-direction:column}.tool-head h2{font-size:22px}.tool-stats{gap:7px}.tool-stats article{padding:13px 10px;border-radius:12px}.tool-stats span{font-size:11px}.tool-stats strong{font-size:25px}.tool-followups{grid-template-columns:1fr}.tool-compare-controls{grid-template-columns:1fr}.tool-compare-grid{grid-template-columns:1fr}.tool-photo-layout{grid-template-columns:1fr}.tool-controls label{width:100%}.tool-controls .tabs{flex-wrap:wrap}.tool-followup{padding:17px}.tool-followup>div:first-child{align-items:flex-start;flex-direction:column}.archive-card-stage{zoom:.23}.tool-wide-modal{width:100vw!important}.tool-archived-pages .period-page{zoom:.39}.student-section-tabs button{flex:1 1 28%!important}.tool-actions button{font-size:12px}.tool-upcoming .row-between{flex-wrap:wrap}}
@media print{.tool-archive-output .tool-archived-pages{overflow:visible}.tool-archive-output .period-page{zoom:1!important}.tool-archive-output .archive-card-stage{zoom:1!important}}

.tool-archive-output{box-sizing:border-box;padding:20px;min-width:0;width:100%}.tool-archive-output .period-page{width:190mm!important;max-width:none!important}.student-identity .avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.student-workspace[data-tool-section]:not([data-tool-section=""]) .student-tab-content .eyebrow{display:none}
@media(max-width:760px){.student-workspace[data-tool-section]:not([data-tool-section=""]) .student-subject-cards,.student-workspace[data-tool-section]:not([data-tool-section=""]) .student-summary-note{display:none}.tool-archive-output{padding:14px}.tool-archive-output .period-page{zoom:.45!important}.tool-archive-output .tool-head h2{font-size:20px}.tool-archive-output .archive-card-stage{zoom:.22}.tool-archive-output .tool-head{padding-inline:4px}}
@media(max-width:760px){#nav a[href="#today"]{display:none}}

.student-section-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;align-items:stretch}.student-section-tabs>button{white-space:nowrap!important;min-height:44px}.student-section-tabs>select{grid-column:1/-1;min-height:46px;background:#fff;border:1px solid #cbdccf;color:#07503e;border-radius:10px;padding:8px 12px;font:inherit;font-size:13px}.tools-back-skills{margin-bottom:15px}.student-tools-open .student-summary-note{display:none}.student-tools-open .student-overall{margin-bottom:12px}.tool-photo-layout,.tool-photo-preview,.tool-photo-layout>div{min-width:0;max-width:100%;box-sizing:border-box}.tool-photo-layout label.outline{margin-left:8px}.tool-error{padding:25px;border:1px solid #ebcfb5;background:#fff9f0;border-radius:14px}.contact-agenda{margin-top:24px}.contact-agenda h2{font-size:21px}.contact-due{border-top:1px solid #e1e9df;padding:19px 0}.contact-due>div:first-child{display:flex;justify-content:space-between;gap:12px;align-items:center}.contact-summary-notice{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-top:22px;border-right:4px solid #c9a348}.frozen-pages{display:grid;gap:20px;padding-top:20px}.frozen-pages img{display:block;max-width:100%;height:auto;margin:auto;border:1px solid #dce6da;box-shadow:0 5px 15px #064e3b0b}.frozen-archive.archive-fullsize .frozen-pages{display:block;overflow:auto}.frozen-archive.archive-fullsize .frozen-pages img{max-width:none;width:auto;margin:0 0 20px}.frozen-archive .tool-actions{position:sticky;top:0;background:#f4f6f0;padding:12px;z-index:2;border-radius:12px}
@media(max-width:760px){.student-section-tabs{padding:10px!important}.student-section-tabs>button{padding:8px!important;font-size:11px!important}.student-tools-open .student-overall{display:none}.tool-photo-preview{padding:13px!important}.tool-portrait-card{box-sizing:border-box;max-width:100%}.contact-summary-notice{align-items:flex-start;flex-direction:column}.contact-due>div:first-child{flex-direction:column;align-items:flex-start}.tool-head{margin-bottom:17px}.frozen-archive .tool-actions button{flex:1;min-width:110px}.frozen-pages{padding-top:12px}}

/* Keep long URLs and Arabic notes within the contact reminder on every screen. */
.contact-agenda,.contact-due,.contact-due>div,.contact-summary-notice{min-width:0;max-width:100%;box-sizing:border-box}.contact-due p,.contact-due strong,.contact-due>div:first-child,.contact-summary-notice{overflow-wrap:anywhere;word-break:normal}.contact-due p{white-space:pre-wrap}
