body.content-page,
body.activity-page{
  background:linear-gradient(180deg,#fffdf9 0%,#f7f5f0 56%,#f4efe7 100%);
}

body.exam-page{
  background:#e2e5e8;
}

.content-page .site-head,
.content-page footer{
  display:none;
}

.content-shell{
  max-width:1024px;
  margin:0 auto;
  padding:14px 16px 96px;
}

.content-shell,
.activity-shell,
.session-shell{
  direction:rtl;
}

.content-modebar,
.activity-tools,
.exam-top,
.exam-subbar,
.content-navigation{
  max-width:1024px;
  margin:0 auto;
}

.content-modebar,
.activity-tools{
  display:none;
}

.content-progress,
.global-timer{
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}

.content-progress{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:24px;
  color:#3a4a45;
  font-weight:600;
}

.theme-dock,
.theme-switch{
  display:none !important;
}

.exam-top,
.exam-subbar{
  display:none;
}

.activity-shell.exam,
.session-shell.exam{
  background:#fff;
}

.exam .content-navigation{
  display:none;
}

.activity-shell.exam .exam-top,
.activity-shell.exam .exam-subbar,
.session-shell.exam .exam-top,
.session-shell.exam .exam-subbar{
  display:flex;
}

.activity-shell.exam .exam-top,
.session-shell.exam .exam-top{
  align-items:center;
  justify-content:space-between;
  gap:14px;
  direction:ltr;
  padding:10px 14px;
  background:#0a7e87;
  color:#fff !important;
  border:1px solid #0a7e87;
  border-bottom:0;
  border-radius:12px 12px 0 0;
  box-shadow:none;
}

.activity-shell.exam .exam-subbar,
.session-shell.exam .exam-subbar{
  align-items:center;
  justify-content:space-between;
  gap:12px;
  direction:ltr;
  padding:8px 14px;
  background:#f5f7f8;
  color:#39454e;
  border:1px solid #d7dde1;
  border-top:0;
  font-size:13px;
}

.exam-top .exam-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.exam-top > b{
  font-size:13px;
  color:#fff;
  letter-spacing:0;
}

.activity-shell.exam .exam-top a,
.activity-shell.exam .exam-top button,
.session-shell.exam .exam-top a,
.session-shell.exam .exam-top button,
.activity-shell.exam .exam-top span,
.session-shell.exam .exam-top span{
  color:#1f3840 !important;
}

.exam-next{
  background:#fff;
  color:#0a7e87 !important;
  padding:7px 14px;
  border-radius:999px;
  font-weight:700;
}

.exam-top .exam-actions > a,
.exam-top .exam-actions > button,
.exam-top .exam-actions > span{
  padding:7px 14px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:999px;
  background:#fff;
  font-weight:700;
  min-width:66px;
  text-align:center;
  font:inherit;
  line-height:1.2;
  cursor:pointer;
}

.exam-nav-link.disabled{
  opacity:.42;
  pointer-events:none;
}

.activity-card,
.session-content{
  background:#fff;
  border:1px solid #d7dde1;
  box-shadow:none;
  padding:26px 28px 28px;
  min-height:360px;
}

.activity-card{
  margin:0 auto;
  border-radius:0 0 30px 30px;
}

.session-content{
  margin:0 auto;
  border-radius:0 0 30px 30px;
}

.session-content > :first-child,
.activity-card > :first-child{
  margin-top:0;
}

.activity-shell.exam .activity-card,
.session-shell.exam .session-content{
  border:1px solid #d7dde1;
  box-shadow:none;
}

.activity-shell.exam .activity-card{
  border-top:0;
  border-radius:0 0 12px 12px;
}

.session-shell.exam .session-content{
  border-top:0;
  border-radius:0 0 12px 12px;
}

.activity-heading{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:16px;
}

.activity-heading h1,
.session-content h1{
  font-size:26px;
  line-height:1.2;
  letter-spacing:0;
  margin:0;
}

.activity-kicker{
  font-size:12px;
  font-weight:800;
  color:var(--green);
  text-transform:uppercase;
  letter-spacing:0;
}

.task-instruction{
  margin:0 0 18px;
  color:#51605b;
  line-height:1.9;
}

.activity-card .button,
.session-content .button{
  align-self:flex-start;
}

.editor-actions .button,
.admin-main > .button{
  border:0;
  border-radius:18px;
  background:linear-gradient(135deg,#171717,#2f5d50 72%,#b58b57);
  color:#fff;
  box-shadow:0 18px 42px rgba(47,93,80,.18);
}

.editor-actions .button.ghost{
  background:#fff;
  color:#23332e;
  border:1px solid rgba(235,230,220,.95);
  box-shadow:0 10px 26px rgba(16,24,40,.06);
}

.video{
  margin:24px 0;
  border-radius:26px;
  overflow:hidden;
  background:#111;
  box-shadow:0 18px 44px rgba(14,22,26,.16);
}

.video iframe{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  border:0;
}

.session-content .reading{
  line-height:2.05;
  color:#2a3632;
  direction:rtl;
  text-align:right;
}

.session-content .reading p:first-child{
  margin-top:0;
}

.choice-layout,
.writing-layout{
  display:grid;
  gap:24px;
}

.choice-layout{
  grid-template-columns:minmax(0,1fr) 320px;
  align-items:start;
  gap:18px;
}

.question-media,
.writing-prompt,
.writing-editor,
.record-result,
.sentence-builder,
.word-bank,
.activity-result{
  border:1px solid var(--line);
  background:#f9fbfa;
  border-radius:16px;
}

.question-media{
  padding:16px 18px;
}

.question-media h2{
  margin:0 0 10px;
  font-size:20px;
  line-height:1.35;
}

.question-media img,
.writing-prompt img,
.speaking-task > img{
  width:100%;
  display:block;
  border-radius:14px;
  margin-bottom:14px;
}

.question-copy,
.writing-prompt,
.writing-over{
  line-height:1.75;
}

.question-media h2,
.question-copy,
.writing-prompt,
.writing-over,
.speaking-task h2,
.record-result details,
.record-result .question-copy{
  direction:auto;
  text-align:start;
}

.question-copy{
  color:#2f3e39;
  margin:0;
  direction:ltr;
  text-align:left;
  unicode-bidi:plaintext;
}

.activity-result b,
.activity-result span{
  display:block;
}

.activity-result b{
  margin-bottom:6px;
}

.result-detail{
  color:#51605b;
}

.prompt-audio{
  display:block;
  width:100%;
  margin:14px 0;
  border-radius:14px;
}

.exam .prompt-audio{
  display:none !important;
}

.option-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.option-list button{
  display:flex;
  align-items:flex-start;
  gap:12px;
  text-align:left;
  padding:14px 16px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  cursor:pointer;
}

.option-list button span,
.word-chip,
.sentence-slot{
  font-weight:800;
}

.option-list button.selected{
  border-color:var(--gold);
  background:#f8f2e5;
}

.option-list button.correct{
  border-color:#3b8068;
  background:#e7f3ee;
}

.option-list button.wrong{
  border-color:#b84b4b;
  background:#fff0f0;
}

.letter-text{
  direction:ltr;
  unicode-bidi:plaintext;
  font-size:var(--rf-font-size,24px);
  line-height:1.95;
  color:#273530;
  word-break:break-word;
  text-wrap:pretty;
}

.letter-group{
  display:inline-flex;
  align-items:baseline;
  gap:1px;
  margin:0 1px;
  position:relative;
  white-space:nowrap;
  vertical-align:baseline;
}

.letter-group input{
  width:max(.95ch, calc(var(--rf-box-size,22px) * .58));
  min-width:max(.95ch, calc(var(--rf-box-size,22px) * .58));
  height:1em;
  padding:0;
  border:0;
  border-bottom:1.5px solid currentColor;
  background:transparent;
  border-radius:0;
  text-align:center;
  font:inherit;
  font-size:1em;
  line-height:inherit;
  font-weight:inherit;
  color:#17221f;
  vertical-align:baseline;
  display:inline-block;
  margin:0;
  font-family:inherit;
  appearance:none;
  box-shadow:none;
}

.letter-group input.good{
  color:#2f855a;
  border-color:#2f855a;
}

.letter-group input.bad{
  color:#b94b4b;
  border-color:#b94b4b;
}

.letter-group small{
  position:absolute;
  top:calc(100% + 2px);
  inset-inline:0;
  font-size:11px;
  color:var(--green);
  text-align:center;
}

.sentence-builder,
.word-bank{
  padding:16px;
  min-height:72px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.sentence-builder{
  line-height:2.1;
  color:#2e3a36;
}

.sentence-slot,
.word-chip{
  border:1px dashed var(--gold);
  background:#fff;
  padding:8px 12px;
  border-radius:999px;
  cursor:pointer;
}

.sentence-slot{
  min-width:100px;
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.sentence-slot.filled{
  border-style:solid;
  background:#f6f1e6;
}

.sentence-slot.good{
  border-color:#3b8068;
  background:#e7f3ee;
}

.sentence-slot.bad{
  border-color:#b84b4b;
  background:#fff0f0;
}

.word-chip[disabled]{
  opacity:.38;
  cursor:default;
}

.writing-layout{
  grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);
}

.writing-prompt,
.writing-over{
  padding:18px;
}

.writing-editor textarea{
  width:100%;
  min-height:240px;
  resize:vertical;
  border:1px solid var(--line);
  background:#fff;
  border-radius:14px;
  padding:14px;
  margin:14px 0;
}

.writing-meta{
  display:flex;
  justify-content:space-between;
  gap:14px;
  color:#54615d;
  margin-bottom:10px;
}

.speaking-task{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.record-orb{
  width:100%;
  min-height:54px;
  border:1px solid var(--green);
  border-radius:16px;
  background:var(--green);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

.stop-record{
  display:none;
  border:1px solid var(--danger);
  background:#fff;
  color:var(--danger);
  border-radius:12px;
  padding:10px 14px;
  font-weight:700;
  align-self:center;
}

.stop-record.show{
  display:inline-flex;
  width:max-content;
}

.record-status{
  min-height:24px;
  color:#54615d;
  text-align:center;
  font-weight:700;
  padding:12px 14px;
  border:1px solid #d7dde1;
  border-radius:14px;
  background:#f7fafb;
}

.record-result{
  display:none;
  padding:18px;
}

.record-result.show{
  display:block;
}

.audio-compare{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin-top:14px;
}

.audio-compare label{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.activity-result{
  display:none;
  margin-top:18px;
  padding:16px;
  line-height:1.9;
}

.activity-result.show{
  display:block;
}

.activity-result.success{
  background:#eaf5ef;
  border-color:#bdd7c7;
}

.activity-result.error{
  background:#fff0f0;
  border-color:#e4bcbc;
}

.choice-feedback{
  position:relative;
}

.result-close{
  position:absolute;
  top:10px;
  inset-inline-end:10px;
  border:0;
  background:transparent;
  font-size:22px;
  cursor:pointer;
}

.content-navigation{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:12px;
  margin:16px auto 0;
}

.content-nav-link{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:14px 16px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
}

.content-progress b.global-timer{
  display:inline-block;
  margin:0;
  font-weight:800;
  color:var(--green);
  min-width:96px;
  text-align:end;
}

.content-nav-link span{
  color:#6f7b77;
  font-size:12px;
}

.content-nav-link b{
  color:#22312d;
  line-height:1.5;
}

.content-nav-link.disabled{
  opacity:.45;
}

.content-nav-count{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:96px;
  padding:0 8px;
  color:#5f6b67;
  font-variant-numeric:tabular-nums;
}

.button.mini{
  padding:8px 12px;
  font-size:12px;
}

.linklike{
  border:0;
  background:transparent;
  color:var(--danger);
  padding:0;
  font:inherit;
  cursor:pointer;
  text-decoration:underline;
}

.admin-page .site-head,
.admin-page footer{
  display:none;
}

.admin-layout{
  max-width:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:220px 1fr;
  min-height:100vh;
}

.admin-layout aside{
  background:#17221f;
  color:#fff;
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.admin-layout aside small{
  color:#aec3bb;
  margin-bottom:18px;
}

.admin-layout aside a{
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.admin-main{
  padding:32px;
  overflow:auto;
}

.activity-editor,
.session-editor{
  display:grid;
  gap:18px;
}

.editor-top,
.type-panel{
  background:#fff;
  border:1px solid rgba(235,230,220,.95);
  border-radius:24px;
  box-shadow:0 18px 55px rgba(38,34,28,.06);
}

.editor-top{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  padding:18px;
}

.type-panel{
  padding:22px;
}

.type-panel h2{
  margin:0 0 8px;
}

.type-panel > p{
  margin:0 0 16px;
  color:#667085;
  line-height:1.9;
}

.two{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.option-editor{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.option-editor label{
  display:grid;
  grid-template-columns:42px 1fr;
  align-items:center;
  gap:10px;
}

.option-editor label span{
  display:grid;
  place-items:center;
  min-height:44px;
  border-radius:14px;
  background:#f4efe7;
  color:#2f5d50;
  font-weight:800;
}

.editor-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.example-code{
  direction:ltr;
  text-align:left;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  background:#171717;
  color:#e5e7eb;
  border-radius:18px;
  padding:14px 16px;
  margin-bottom:14px;
}

.upload-hint{
  display:block;
  margin-top:6px;
  color:#667085;
  font-size:12px;
}

.rich-editor{
  display:grid;
  gap:8px;
}

.rich-editor-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:10px;
  border:1px solid #e7dfd1;
  border-radius:16px;
  background:#fcfaf6;
}

.rich-editor-toolbar button,
.rich-editor-toolbar select,
.rich-editor-toolbar input[type="color"]{
  min-height:36px;
  border:1px solid #d8d2c8;
  background:#fff;
  border-radius:12px;
  padding:0 10px;
}

.rich-editor-toolbar button{
  cursor:pointer;
  font-weight:700;
}

.rich-editor-surface{
  min-height:170px;
  padding:14px 16px;
  border:1px solid #cbd5d1;
  border-radius:18px;
  background:#fff;
  line-height:1.9;
}

.rich-editor-surface:focus{
  outline:2px solid rgba(47,93,80,.16);
  border-color:#2f5d50;
}

.rich-editor-source{
  display:none;
}

.check{
  flex-direction:row !important;
  align-items:center;
  gap:8px !important;
}

.activity-card > .button.action-check{
  margin-top:24px;
}

.session-shell .eyebrow,
.session-content .eyebrow{
  margin-bottom:10px;
}

.session-shell .session-content,
.activity-shell .activity-card,
.exam-top,
.exam-subbar{
  direction:ltr;
}

.session-shell .reading,
.session-shell .prose-body{
  direction:rtl;
  text-align:right;
}

.prose-body *{
  max-width:100%;
}

.editor-form{
  display:flex;
  flex-direction:column;
  gap:16px;
  background:#fff;
  border:1px solid var(--line);
  padding:20px;
  margin-bottom:22px;
}

.activity-editor label,
.editor-form label,
.form-card label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:13px;
  font-weight:700;
}

.activity-editor input,
.activity-editor textarea,
.activity-editor select,
.editor-form input,
.editor-form textarea,
.editor-form select,
.form-card input,
.form-card textarea,
.form-card select,
.course-list textarea{
  border:1px solid #cbd5d1;
  padding:11px;
  background:#fff;
  border-radius:4px;
}

.activity-editor textarea,
.editor-form textarea{
  min-height:100px;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.table{
  margin-top:20px;
  background:#fff;
  border:1px solid var(--line);
  min-width:650px;
}

.tr{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:12px;
  padding:13px;
  border-top:1px solid var(--line);
}

.tr.head{
  font-weight:700;
  background:#eef3f1;
}

.tr span{
  display:flex;
  flex-direction:column;
}

.tr small{
  color:#73817c;
}

.overview-modal{
  width:min(780px,calc(100vw - 28px));
  border:1px solid #d7dde1;
  border-radius:18px;
  padding:0;
}

.overview-modal::backdrop{
  background:rgba(23,34,31,.42);
}

.overview-head,
.overview-path{
  padding:14px 18px;
}

.overview-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid #e4e8eb;
}

.overview-head button{
  border:1px solid #ccd4d8;
  background:#fff;
  border-radius:999px;
  padding:8px 12px;
}

.overview-path{
  color:#54615d;
  border-bottom:1px solid #eef1f3;
}

.overview-list{
  max-height:55vh;
  overflow:auto;
  padding:10px 14px;
  display:grid;
  gap:8px;
}

.overview-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border:1px solid #d7dde1;
  border-radius:14px;
  background:#fff;
}

.overview-row.active{
  border-color:#0a7e87;
  background:#edf7f8;
}

.overview-row.locked{
  opacity:.56;
}

.review-history{
  margin-top:24px;
  padding-top:16px;
  border-top:1px solid #e5ebee;
}

.review-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.review-list{
  display:grid;
  gap:12px;
}

.review-item{
  border:1px solid #d7dde1;
  border-radius:14px;
  padding:14px;
  background:#fafcfd;
}

.review-item-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.glass-shell .welcome{
  border-radius:24px;
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(16px);
}

.session-content > .eyebrow,
.session-content > h1,
.session-content .band{
  direction:rtl;
  text-align:right;
}

.session-content .band{
  border-radius:20px;
  margin-top:18px;
}

.outline-row{
  cursor:grab;
}

.outline-row.dragging{
  opacity:.5;
}

.notif-dot{
  display:inline-block;
  margin-inline-start:5px;
  padding:2px 7px;
  border-radius:999px;
  background:#e83f54;
  color:#fff;
  font-size:11px;
}

.dashboard-shell .welcome{
  background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(230,248,241,.92));
  border:1px solid rgba(20,128,112,.14);
  box-shadow:0 18px 50px rgba(17,68,61,.10);
}

.review-quota{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin:18px 0;
}

.review-quota article{
  background:#fff;
  border:1px solid rgba(12,124,111,.16);
  border-radius:18px;
  padding:18px;
  box-shadow:0 12px 32px rgba(15,72,66,.08);
}

.review-quota b{
  display:block;
  font-size:34px;
  color:#08766d;
}

.notif-card{
  border-color:rgba(232,63,84,.2);
}

.notif-icon{
  width:34px;
  min-width:34px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:6px;
  background:#f5f8f8;
  color:#073d3c;
  border:1px solid rgba(0,0,0,.18);
  text-decoration:none;
  line-height:1;
}

.exam-top .exam-actions > .notif-icon{
  width:34px;
  min-width:34px;
  height:30px;
  padding:0;
  border-radius:6px;
  background:#f5f8f8;
}

.notif-icon.has-new{
  position:relative;
  animation:notifPulse 1.1s ease-in-out infinite;
}

.notif-icon.has-new::after{
  content:"";
  position:absolute;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#e83f54;
  top:4px;
  right:5px;
  box-shadow:0 0 0 3px rgba(232,63,84,.18);
}

@keyframes notifPulse{
  0%,100%{box-shadow:0 0 0 0 rgba(232,63,84,.28)}
  50%{box-shadow:0 0 0 7px rgba(232,63,84,0)}
}

.review-buy-link{
  grid-column:1/-1;
  justify-self:start;
}

.package-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
  margin-top:18px;
}

.package-card{
  background:#fff;
  border:1px solid rgba(12,124,111,.16);
  border-radius:18px;
  padding:18px;
  box-shadow:0 12px 34px rgba(15,72,66,.08);
}

.package-card h2{
  margin:8px 0;
}

.package-card b{
  display:block;
  color:#08766d;
  margin-bottom:8px;
}

.sales-settings{
  display:grid;
  gap:18px;
}

.sales-settings h2{
  margin:0 0 12px;
}

.package-row{
  grid-template-columns:44px minmax(180px,1.4fr) 110px 90px 90px 120px 100px 90px 80px;
  gap:8px;
  align-items:center;
}

.package-row input,
.package-row select{
  width:100%;
  min-width:0;
  padding:9px 10px;
  border:1px solid rgba(12,124,111,.18);
  border-radius:10px;
  font-family:inherit;
}

.delete-inline{
  display:flex;
  justify-content:flex-end;
  margin:6px 0 12px;
}

.overview-modal{
  border:0;
  border-radius:24px;
  padding:0;
  max-width:min(760px,calc(100vw - 28px));
  width:760px;
  overflow:hidden;
  box-shadow:0 30px 90px rgba(6,36,33,.28);
}

.overview-head{
  background:linear-gradient(135deg,#08766d,#12a077);
  color:#fff;
  padding:18px 22px;
}

.overview-head button{
  background:rgba(255,255,255,.16);
  color:#fff;
  border:1px solid rgba(255,255,255,.42);
}

.overview-path{
  padding:14px 22px;
  background:#f3fbf7;
  color:#315a54;
}

.overview-list{
  padding:14px;
  max-height:62vh;
  overflow:auto;
}

.overview-row{
  border-radius:14px;
  margin-bottom:8px;
  border:1px solid rgba(15,91,83,.12);
}

.overview-row.active{
  background:#e3f7ef;
  border-color:#12a077;
}

.review-history{
  text-align:center;
}

.review-item{
  text-align:center;
}

.speaking-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.unread-notice{
  border-color:#12a077 !important;
  background:#f2fbf7;
}

.admin-submissions article{
  border:1px solid rgba(15,91,83,.12);
}

@media (max-width: 960px){
  .content-shell{
    padding-inline:10px;
    padding-bottom:92px;
  }

  .content-modebar,
  .activity-tools,
  .exam-top,
  .exam-subbar,
  .content-navigation{
    max-width:100%;
  }

  .choice-layout,
  .writing-layout,
  .audio-compare{
    grid-template-columns:1fr;
  }

  .content-modebar,
  .activity-tools,
  .exam-top,
  .exam-subbar,
  .content-navigation{
    flex-direction:column;
    align-items:stretch;
  }

  .theme-dock{
    inset-inline-end:10px;
    bottom:10px;
  }

  .theme-switch{
    width:100%;
    min-width:0;
  }

  .activity-card,
  .session-content{
    padding:22px;
  }

  .editor-top,
  .two,
  .option-editor{
    grid-template-columns:1fr;
  }

  .admin-layout{
    grid-template-columns:1fr;
  }

  .admin-layout aside{
    position:static;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px 12px;
    padding:14px;
  }

  .admin-main{
    padding:18px;
  }

  .form-grid{
    grid-template-columns:1fr;
  }

  .table{
    min-width:0;
    overflow:auto;
  }

  .tr{
    grid-template-columns:1fr 1fr;
  }
}

/* Public footer polish */
.site-footer{
  border-top:1px solid var(--line);
  padding:28px 22px;
  text-align:initial !important;
  background:#fff;
  color:#4b5a55;
}
.site-footer .footer-inner{
  max-width:1160px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(190px,.8fr) minmax(280px,1fr) auto;
  align-items:center;
  gap:22px;
}
.footer-brand{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.footer-brand b{
  font-size:19px;
  color:#17221f;
}
.footer-brand span{
  color:#71807b;
}
.footer-contact{
  display:grid !important;
  gap:8px;
  line-height:1.85;
  color:#3f4d49;
}
.footer-contact a{
  direction:ltr;
  unicode-bidi:embed;
  display:inline-block;
  color:var(--green);
  font-weight:800;
}
.enamad-link{
  justify-self:end;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 10px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 10px 26px rgba(16,24,40,.06);
}
.enamad-link img{
  display:block;
  width:112px !important;
  max-width:112px !important;
  height:auto !important;
  object-fit:contain;
}
.enamad-seal img{
  max-width:220px;
  height:auto;
}
@media(max-width:800px){
  .site-footer .footer-inner{
    grid-template-columns:1fr;
    align-items:start;
  }
  .enamad-link{
    justify-self:start;
  }
  .enamad-link img{
    width:104px !important;
    max-width:104px !important;
  }
}

/* Trust badges page */
.trust-page{
  max-width:1040px;
  min-height:calc(100vh - 220px);
  margin:54px auto 76px;
  padding:0 22px;
  display:grid;
  place-items:center;
}
.trust-card{
  width:100%;
  background:#fff;
  border:1px solid var(--line);
  border-radius:28px;
  padding:34px;
  box-shadow:0 22px 60px rgba(23,34,31,.09);
  display:grid;
  gap:28px;
  justify-items:center;
  text-align:center;
}
.trust-copy{
  display:grid;
  gap:10px;
  justify-items:center;
}
.trust-copy h1{
  margin:0;
  font-size:clamp(28px,4vw,44px);
  line-height:1.25;
}
.trust-copy p:not(.eyebrow){
  margin:0;
  color:#5f6b67;
}
.trust-seals{
  width:100%;
  display:grid;
  grid-template-columns:repeat(2,minmax(220px,1fr));
  gap:18px;
  align-items:stretch;
}
.trust-seal{
  min-height:230px;
  border:1px solid rgba(12,124,111,.14);
  border-radius:22px;
  background:linear-gradient(180deg,#fff,#f8fbfa);
  padding:20px;
  display:grid;
  grid-template-rows:auto 1fr;
  gap:16px;
  place-items:center;
}
.trust-seal > span{
  color:#294c42;
  font-weight:900;
}
.trust-seal a,
.zarinpal-trust{
  min-height:150px;
  display:grid;
  place-items:center;
}
.trust-seal img,
.zarinpal-trust img{
  max-width:155px !important;
  max-height:155px !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain;
}
.trust-back{
  margin-top:2px;
}
@media(max-width:760px){
  .trust-page{
    margin:28px auto 48px;
    padding:0 14px;
  }
  .trust-card{
    padding:24px 18px;
    border-radius:22px;
  }
  .trust-seals{
    grid-template-columns:1fr;
  }
}
.zarinpal-trust iframe,
.zarinpal-trust object,
.zarinpal-trust embed{
  max-width:170px !important;
  max-height:170px !important;
  margin:auto !important;
}
.zarinpal-trust > *{
  margin-inline:auto !important;
}
