:root{color-scheme:light;--navy:#101e34;--navy2:#172a46;--accent:#ff943d;--ink:#172940;--muted:#54647a;--line:#dfe6f0;--paper:#fff;--bg:#f4f7fb;font-family:Tahoma,"Segoe UI",Arial,sans-serif;color:var(--ink);font-size:16px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);line-height:1.7}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,select{cursor:pointer}button:disabled{cursor:wait;opacity:.65}button,a,input,textarea,select{outline-offset:4px}button:focus-visible,a:focus-visible{outline:2px solid #dc6912}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.7rem,3vw,2.35rem);line-height:1.4}h2{font-size:1.28rem}h3{font-size:1rem}small,.muted{color:var(--muted)}svg{width:21px;height:21px;flex:none;vertical-align:middle}
.layout{min-height:100vh;display:grid;grid-template-columns:236px minmax(0,1fr)}aside{background:var(--navy);color:#b9c8dc;display:flex;flex-direction:column;padding:28px 17px 18px;position:sticky;top:0;height:100vh;overflow:auto}.brand{display:flex;align-items:center;gap:12px;color:white;padding:0 7px 29px;border-bottom:1px solid #ffffff19;margin-bottom:22px}.brand strong{display:block;font-family:"Segoe UI",Arial,sans-serif;font-size:29px;letter-spacing:-1px;line-height:1.08;text-align:right}.brand strong span{color:var(--accent)}.brand small{font-size:.78rem;color:#bdc9da}.brand-icon{width:43px;height:43px;display:grid;place-items:center;background:var(--accent);color:var(--navy);font:bold 27px "Segoe UI",sans-serif;border-radius:12px;overflow:hidden}.brand-icon img{width:100%;height:100%;object-fit:contain;background:white}nav{display:grid;gap:6px}nav a{display:flex;gap:12px;align-items:center;padding:11px 13px;border-radius:9px;font-size:.88rem}nav a:hover,nav a[aria-current]{background:#223651;color:white}nav a[aria-current]{box-shadow:inset -3px 0 var(--accent)}nav a[aria-current] svg{color:var(--accent)}.sidebar-foot{margin-top:auto;padding:20px 8px 4px;font-size:.78rem}.foot-mark{display:inline-block;width:7px;height:7px;background:var(--accent);border-radius:50%;margin-left:5px}
.workspace{min-width:0;display:flex;flex-direction:column}header{height:72px;background:white;border-bottom:1px solid var(--line);padding:0 clamp(16px,3vw,38px);display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.86rem}header #breadcrumb{display:flex;gap:9px;align-items:center}#account{display:flex;gap:8px;align-items:center;flex-wrap:wrap}main{width:100%;max-width:1370px;margin:0 auto;padding:30px clamp(16px,3vw,38px) 45px;flex:1}footer{border-top:1px solid var(--line);padding:15px clamp(16px,3vw,38px);color:var(--muted);display:flex;justify-content:space-between;font-size:.8rem}.intro{margin-bottom:23px}.intro p{margin-top:6px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 14px;border-radius:8px;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:.87rem;font-weight:700;min-height:40px}.button:hover{background:#eef3fa}.primary{background:var(--navy2);color:white;border-color:var(--navy2)}.primary:hover{background:#24436b}.orange{background:var(--accent);color:#182539;border-color:transparent}.orange:hover{background:#ffae65}
.hero{position:relative;overflow:hidden;border-radius:18px;background:linear-gradient(115deg,#203d62,#142746 68%);color:white;min-height:275px;display:grid;grid-template-columns:1fr .9fr;isolation:isolate}.hero-copy{padding:29px clamp(20px,4vw,45px) 48px;align-self:center;z-index:1}.kicker{color:#ffad6b;font-size:.83rem;font-weight:bold;display:flex;align-items:center;gap:8px}.kicker:before{content:"";width:18px;height:2px;background:#ffad6b}.hero h2{margin-top:7px;font-size:clamp(1.45rem,2.6vw,2.35rem);line-height:1.5}.hero p{color:#d9e4f1;margin:8px 0 17px}.hero-graphic{position:relative;overflow:hidden;display:grid;place-items:center;background:radial-gradient(ellipse at center,#4e78a045,transparent 70%),repeating-linear-gradient(0deg,transparent 0 29px,#a8c7ff17 30px 31px),repeating-linear-gradient(90deg,transparent 0 29px,#a8c7ff17 30px 31px);mask-image:linear-gradient(to right,#000 65%,transparent)}.hero-graphic span{display:grid;place-items:center;border:1px solid #b5d4ff70;border-radius:29px;background:#31577a70;width:124px;height:124px;font:bold 47px "Segoe UI",sans-serif;color:#ff9b50;transform:rotate(-10deg);box-shadow:0 0 0 18px #a9c6ed12,0 0 0 42px #a9c6ed09}.hero:has(.poster){background:#132744;display:block}.poster{display:block;min-height:245px}.poster img{display:block;width:100%;height:clamp(245px,34vw,430px);object-fit:contain}.poster-label{display:block;padding:8px 20px 43px;text-align:center}.dots{position:absolute;bottom:8px;inset-inline:0;display:flex;justify-content:center;gap:1px;z-index:2}.dots button{background:none;border:0;padding:0;width:26px;height:25px;display:grid;place-items:center}.dots button:before{content:"";width:8px;height:8px;border-radius:50%;background:#b9c4d7}.dots button[aria-pressed=true]:before{background:var(--accent);width:18px;border-radius:8px}
.section{margin-top:26px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.shortcut,.panel,.content-card{background:white;border:1px solid var(--line);border-radius:13px}.shortcut{padding:17px;display:grid;gap:6px}.shortcut:hover{border-color:#e69a60;box-shadow:0 4px 16px #1635570a}.tile-icon{display:inline-grid;place-items:center;width:41px;height:41px;border-radius:10px;background:#fff0e3;color:#9b460b;margin-bottom:3px}.shortcut:nth-child(even) .tile-icon{background:#eaf1fb;color:#294d78}.shortcut small{font-size:.79rem}.two-col{display:grid;grid-template-columns:1.25fr 1fr;gap:16px}.panel{padding:16px 20px}.row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line)}.row p{font-size:.86rem;color:var(--muted)}.list{display:grid;gap:13px}.content-card{padding:19px;overflow-wrap:anywhere}.content-card p{white-space:pre-wrap;margin:8px 0;color:var(--muted)}.content-card .button{margin-top:8px}.tag{display:inline-flex;background:#edf2f9;color:#38536f;border-radius:6px;padding:2px 8px;font-size:.78rem}.empty{padding:14px;color:var(--muted);background:white;border:1px dashed var(--line);border-radius:12px}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.tabs [aria-current]{background:var(--navy2);color:white}.manage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:16px;align-items:start}.manage h2{margin-bottom:10px}.manage .row{overflow-wrap:anywhere}.admin-thumb{width:56px;height:44px;object-fit:contain;background:var(--bg);border-radius:5px}label{display:grid;gap:4px;font-size:.87rem;font-weight:700}form{display:grid;gap:12px}input,textarea,select{width:100%;min-width:0;padding:8px 10px;border:1px solid #bfccdb;border-radius:7px;background:white;color:var(--ink)}input[type=checkbox]{width:auto;accent-color:var(--navy)}.check{display:flex;gap:8px;align-items:center}.fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}.actions{display:flex;gap:8px;flex-wrap:wrap}.error{color:#a32824;font-size:.87rem}.error:empty{display:none}.user-list{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.user-list bdi{overflow-wrap:anywhere}.user-list form{display:flex;flex-wrap:wrap}.user-list form select{width:auto}dialog{margin:auto;width:min(420px,calc(100% - 28px));border:1px solid var(--line);border-radius:16px;padding:22px;color:var(--ink);background:white}dialog::backdrop{background:#101e3490}dialog .section-title{margin-bottom:17px}#toast:not(:empty){position:fixed;bottom:18px;left:18px;z-index:3;background:var(--navy);color:white;border-radius:9px;padding:10px 16px;box-shadow:0 6px 16px #152d4040}.account-name{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1000px){.layout{grid-template-columns:185px minmax(0,1fr)}.shortcuts{grid-template-columns:repeat(2,1fr)}.manage{grid-template-columns:1fr}}
@media(max-width:700px){.layout{display:block}aside{height:auto;position:static;padding:11px 13px;overflow:visible}.brand{padding:0;margin:0 0 7px;border:0}.brand-icon{width:36px;height:36px;font-size:22px}.brand strong{font-size:23px}.brand small{font-size:.7rem}nav{display:flex;overflow:auto;gap:3px}nav a{white-space:nowrap;padding:7px 8px;font-size:.76rem}nav a svg{width:16px;height:16px}nav a[aria-current]{box-shadow:inset 0 -2px var(--accent)}.sidebar-foot{display:none}header{height:auto;min-height:54px;padding-block:6px}main{padding-top:19px}.hero{grid-template-columns:1fr minmax(50px,.28fr);min-height:235px}.hero-graphic span{width:64px;height:64px;font-size:26px;border-radius:13px}.two-col{grid-template-columns:1fr}.shortcut{padding:12px}.user-list{grid-template-columns:1fr}.account-name{max-width:100px}}

@media(max-width:420px){aside nav{flex-wrap:wrap;overflow:visible}aside nav a{padding-block:5px}main .hero{grid-template-columns:1fr}main .hero-graphic{position:absolute;inset:0;opacity:.28;pointer-events:none}main .hero-graphic span{display:none}main .hero-copy{padding-inline:20px}}

/* Dashboard and shared footer */
.workspace > header, .footer-inner {
  padding-inline: clamp(16px, 3vw, 38px);
}
main { padding-bottom: 38px; }
.intro { margin-bottom: 20px; }
.hero { border: 1px solid #ffffff1a; box-shadow: 0 8px 22px #101e3415; }
.hero-copy { padding-bottom: 42px; }
.poster img { height: auto; max-height: 390px; }
.poster-label { font-size: .88rem; font-weight: 700; }
.shortcut { align-content: start; min-width: 0; }
.shortcut strong { line-height: 1.45; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.two-col .panel { min-width: 0; }
.two-col .section-title .button { white-space: nowrap; }
.site-footer { display: block; padding: 0; background: var(--navy); border-top: 3px solid var(--accent); }
.footer-inner {
  max-width: 1370px;
  margin-inline: auto;
  padding-block: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: #e6edf6; }
.footer-brand strong { color: white; font: 700 23px "Segoe UI", sans-serif; }
.footer-brand strong span { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 5px; overflow: visible; }
.footer-links a { padding: 6px 10px; color: #dce7f5; font-size: .84rem; }
.footer-links a:hover { color: white; }
.footer-brand:focus-visible, .footer-links a:focus-visible { outline-color: var(--accent); }
@media (max-width: 760px) {
  aside nav { flex-wrap: wrap; overflow: visible; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  main .hero { min-height: 0; }
  main .hero-copy { padding: 19px 16px 39px; }
  .hero h2 { font-size: 1.3rem; }
  .hero p { font-size: .875rem; }
  .section-title .button { padding-inline: 8px; }
  .footer-inner { align-items: start; flex-direction: column; }
  .footer-links { margin-inline-start: -8px; }
}


@font-face {
  font-family: Vazirmatn;
  src: url("/vazirmatn.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root { font-family: Vazirmatn, Tahoma, sans-serif; }
body { line-height: 1.65; }
h1, h2, h3 { text-wrap: pretty; }
h1 { font-weight: 800; line-height: 1.32; }
h2, h3 { font-weight: 700; line-height: 1.5; }
.intro p { font-size: .95rem; }
.hero h2 { font-weight: 800; line-height: 1.45; max-width: 24ch; }
.hero p { line-height: 1.7; }
aside nav a { font-size: .92rem; font-weight: 500; }
aside nav a[aria-current] { font-weight: 700; }
.brand small, .shortcut small, .footer-brand > span { font-size: .84rem; }
.button { font-weight: 650; }
input, textarea, select { line-height: 1.6; }
input[dir=ltr] { text-align: left; }
h1, .row > div, .shortcut strong, .account-name { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  aside nav a { font-size: .81rem; }
  .brand small { font-size: .75rem; }
  h1 { font-size: 1.72rem; }
}


.tools-section {
  padding: clamp(14px, 2.6vw, 24px);
  border: 1px solid #dce5f0;
  border-radius: 16px;
  background: #eaf0f8;
}
.tools-section .section-title { align-items: baseline; flex-wrap: wrap; }
.tools-status { background: #fff; color: #455972; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dce5f0;
  border-radius: 11px;
  background: white;
}
.tool-card .tile-icon { flex: 0 0 41px; margin: 0; background: #eaf0f8; color: #36577b; }
.tool-card p { color: var(--muted); font-size: .88rem; margin-top: 3px; }
.dashboard-panel h2 { display: flex; align-items: center; gap: 8px; }
.dashboard-panel h2 svg { color: #9b460b; }
.dashboard-panel .row:last-child { padding-bottom: 4px; }
.dashboard-panel .row a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) {
  .tool-grid { grid-template-columns: 1fr; }
}
.hero-copy p { white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; }

#hero-zone .hero {
  height: 286px;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  padding-bottom: 27px;
}
#hero-zone .hero-copy {
  min-width: 0;
  padding: 12px clamp(16px, 3vw, 34px);
}
#hero-zone .hero h2, #hero-zone .hero-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#hero-zone .hero h2 {
  -webkit-line-clamp: 2;
  max-width: none;
  font-size: clamp(1.18rem, 2.3vw, 1.75rem);
}
#hero-zone .hero-description {
  -webkit-line-clamp: 3;
  margin: 6px 0 10px;
  font-size: .9rem;
}
#hero-zone .kicker {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#hero-zone .kicker::before { display: none; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.hero-more { background: none; border: 0; color: #ffbd87; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; font-size: .84rem; }
.poster-full-text { white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; }
#hero-zone .hero:has(.poster) {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  background: linear-gradient(115deg, #253e61, #142746 68%);
}
#hero-zone .poster {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  min-width: 0;
  min-height: 0;
  margin-block: 14px 4px;
  margin-inline: 0 14px;
  padding: 8px;
  border: 1px solid #ffffff30;
  border-radius: 12px;
  background: #101f37;
  overflow: hidden;
}
#hero-zone .poster img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center;
}
#hero-zone .poster:hover, #hero-zone .poster:focus-visible { border-color: var(--accent); }
#hero-zone .hero:has(.poster) h2 { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  #hero-zone .hero { height: 363px; }
  #hero-zone .hero:has(.poster) { grid-template: 151px minmax(0, 1fr) / minmax(0, 1fr); }
  #hero-zone .poster { grid-row: 1; margin: 10px 12px 0; padding: 6px; }
  #hero-zone .hero-copy { padding: 8px 14px; }
  #hero-zone .hero-description { -webkit-line-clamp: 2; font-size: .85rem; }
  #hero-zone .hero-actions .button { min-height: 34px; padding: 5px 10px; }
}

.dashboard-panel .course-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; }
.dashboard-panel .row > div { flex: 1; min-width: 0; }
.dashboard-panel .course-more { color: #34597f; font-size: .83rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.dashboard-panel { padding-block: 10px; }
.dashboard-panel .section-title { margin-bottom: 6px; }
.dashboard-panel .section-title .button { min-height: 32px; padding-block: 4px; }
.dashboard-panel .section-title h2 { min-width: 0; overflow: hidden; white-space: nowrap; font-size: clamp(.94rem, 1.6vw, 1.28rem); }
.dashboard-panel .section-title .button { font-size: .8rem; }
.dashboard-panel .row { padding-block: 7px; }
.dashboard-panel .row h3 a { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dashboard-panel .course-meta { display: flex; align-items: baseline; gap: 8px; }
.dashboard-panel .course-excerpt { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dashboard-panel .course-more { flex-shrink: 0; }
.dashboard-more {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 3px 7px;
  border: 1px solid #dfe6f0;
  border-radius: 7px;
  background: #f4f7fb;
  color: #294d78;
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
}
.dashboard-more.has-more { border-color: #f2c6a2; background: #fff2e6; color: #763706; }
.dashboard-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.button.danger { color: #a32824; border-color: #efcecc; }
.button.danger:hover { background: #fff0ef; }
.removed-items { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.removed-items summary { cursor: pointer; font-weight: 650; }
.qc-tool-link:hover { border-color: #d98a4c; }
.qc-form, .qc-request, .qc-result { padding: clamp(14px, 2.5vw, 24px); }
.qc-form > p, .qc-request > p { font-size: .9rem; }
.qc-request { margin-top: 18px; }
.qc-request > p { margin: 6px 0 12px; }
.qc-limits, .qc-mapping { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.qc-mapping { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; }
.qc-mapping[hidden] { display: none; }
.qc-group { min-width: 0; margin: 0 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.qc-group legend { font-weight: 700; padding-inline: 6px; }
.qc-group-top, .qc-file-top { display: flex; align-items: end; gap: 10px; margin-bottom: 8px; }
.qc-group-top > label, .qc-file-top > label { flex: 1; min-width: 0; }
.qc-file { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); margin-block: 8px; }
.qc-file-top { margin-bottom: 0; }
.qc-results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 16px; }
.qc-results:empty { display: none; }
.qc-results .intro { margin: 0; }
.qc-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 8px; }
.qc-metrics > div { padding: 8px; border-radius: 7px; background: var(--bg); min-width: 0; }
.qc-metrics dt { font-size: .82rem; color: var(--muted); }
.qc-metrics dd { margin: 0; font-size: 1.2rem; font-weight: 700; overflow-wrap: anywhere; }
.qc-source-summary { margin-bottom: 10px; }
.qc-source-summary summary { cursor: pointer; font-weight: 650; }
.qc-table { overflow-x: auto; margin-block: 8px; }
.qc-table table { width: 100%; min-width: 570px; border-collapse: collapse; text-align: start; font-size: .87rem; }
.qc-table th, .qc-table td { text-align: start; padding: 7px 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.qc-table th { background: var(--bg); }
.qc-result { min-width: 0; }
.qc-break, .qc-result h2 { overflow-wrap: anywhere; }
.qc-admin-list article { margin-block: 10px; }
@media(max-width: 550px) {
  .qc-limits, .qc-mapping { grid-template-columns: 1fr; }
  .qc-group-top, .qc-file-top { flex-wrap: wrap; }
  .qc-group-top > label, .qc-file-top > label { flex-basis: 100%; }
}
.qc-date { min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
.qc-date legend { padding-inline: 5px; font-weight: 700; }
.qc-date #qc-date-selected { margin-top: 8px; font-size: .85rem; }
.qc-activity-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qc-charts { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 10px; margin-block: 14px; }
.qc-chart { min-width: 0; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.qc-chart > h3 { margin-bottom: 8px; }
.qc-chart select { text-overflow: ellipsis; }
.qc-trend { display: block; width: 100%; height: 215px; margin-top: 8px; }
.qc-axis-label { font-size: .79rem; }
.qc-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; list-style: none; margin: 7px 0 0; padding: 0; font-size: .8rem; }
.qc-legend li::before { content: ""; display: inline-block; vertical-align: middle; width: 13px; border-top: 2px solid #235480; margin-inline-end: 5px; }
.qc-legend .qc-lower-key::before { border-top: 2px dashed #a05b13; }
.qc-legend .qc-upper-key::before { border-top: 2px dashed #a12644; }
.qc-bars { display: grid; gap: 10px; }
.qc-bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; }
.qc-bar-row progress { width: 100%; height: 12px; accent-color: #2a775e; }
.qc-bar-1 progress { accent-color: #a12644; }
.qc-bar-2 progress { accent-color: #9b620d; }
@media (max-width: 940px) { .qc-charts { grid-template-columns: 1fr; } }
@media (max-width: 550px) { .qc-date .qc-limits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; } }
main [hidden] { display: none !important; }
.qc-record-panel { padding: 12px 15px; margin-bottom: 12px; min-width: 0; }
.qc-record-panel > summary, .qc-report-actions summary, .qc-followup summary { cursor: pointer; color: #294d78; font-weight: 700; }
.qc-record-panel > p { margin-block: 5px; }
.qc-record-body { display: grid; gap: 10px; margin-top: 10px; }
.qc-record-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.qc-template-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.qc-history-items .row h3 { overflow-wrap: anywhere; }
.qc-history-items .button { flex-shrink: 0; }
.qc-comparison { display: grid; gap: 8px; }
.qc-report-actions { padding: 8px 0; }
.qc-report-actions details { margin-top: 10px; }
.qc-template-save { max-width: 380px; margin-top: 8px; }
.qc-template-save .button, .qc-followup-form .button { justify-self: start; }
.qc-followup { min-width: 150px; }
.qc-followup details[open] { min-width: 185px; }
.qc-followup-form { margin-top: 8px; }
.qc-issue-filter { max-width: 200px; margin-top: 6px; }
@media (max-width: 630px) {
  .qc-record-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  body { background: white; color: #101e34; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body:has(#qc-results:not(:empty)) .layout { display: block; }
  body:has(#qc-results:not(:empty)) :is(aside, header, footer, #toast, main > :not(#qc-results)) { display: none !important; }
  body:has(#qc-results:not(:empty)) main { max-width: none; padding: 0; }
  #qc-results :is(.qc-report-actions, .qc-table, .qc-issue-heading, .qc-issue-filter, .qc-more-issues, .qc-source-summary) { display: none !important; }
  #qc-results .qc-chart, #qc-results .qc-metrics { break-inside: avoid; }
  #qc-results .qc-charts { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  #qc-results .qc-result { border: 0; padding-inline: 0; }
}
#dialog:has(.registration-fields) { width: min(530px, calc(100% - 24px)); max-height: 90dvh; overflow-y: auto; }
.user-profile { margin-top: 4px; }
.user-profile summary { cursor: pointer; font-size: .85rem; color: #294d78; }
.user-profile dl { margin: 5px 0 0; display: grid; gap: 4px 14px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.user-profile dt { font-size: .8rem; color: var(--muted); }
.user-profile dd { margin: 0; font-size: .88rem; }
#dialog { max-height: 90dvh; overflow-y: auto; }
#dialog > p { margin-bottom: 10px; }
.user-admin-actions { display: grid; gap: 6px; justify-items: start; }
.help-panel h2 { margin-bottom: 10px; }
.help-panel h3 { margin-top: 9px; }
.help-panel ol { margin: 4px 0 12px; padding-inline-start: 25px; }
.help-panel li + li { margin-top: 4px; }
.help-panel li a, .account-help-link { color: #294d78; text-decoration: underline; text-underline-offset: 3px; }
.help-panel > .button, .account-help-link { display: inline-flex; margin-top: 9px; }
.quality-feed-shortcut { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px 15px; }
.quality-feed-shortcut p { font-size: .89rem; margin-top: 4px; }
.feed-controls {
  display: grid;
  grid-template-columns: minmax(0, 295px) minmax(0, 230px) minmax(0, 1fr);
  align-items: end;
  gap: 10px 12px;
  padding: 14px clamp(12px, 2vw, 20px);
  margin-bottom: 13px;
}
.feed-controls .feed-status { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid var(--line); font-size: .82rem; }
.feed-meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.feed-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  background: #eaf0f8;
  border: 1px solid #dce5f0;
  border-radius: 10px;
}
.feed-tabs .button {
  min-height: 36px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #3e5671;
  font-size: .88rem;
  white-space: nowrap;
}
.feed-tabs .button:hover { background: #f8fbff; }
.feed-tabs .button[aria-pressed="true"] { color: white; background: var(--navy2); }
.feed-entry h2 { font-size: 1.08rem; margin-top: 8px; }
.feed-entry [dir="auto"] { text-align: start; }
.feed-entry details { margin-top: 8px; font-size: .9rem; }
.feed-entry summary { cursor: pointer; width: fit-content; font-weight: 700; }
.feed-entry details a { text-decoration: underline; }
.feed-next { margin-top: 12px; }
@media (max-width: 560px) { .feed-controls { grid-template-columns: minmax(0, 1fr); } }
select, select option, select optgroup { font-family: Vazirmatn, Tahoma, sans-serif; font-weight: 400; }
.feed-topic-control > span { display: block; margin-bottom: 4px; font-size: .87rem; font-weight: 700; }
.feed-topic { position: relative; }
.feed-topic summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
  box-sizing: border-box;
  min-height: 44px;
  padding: 7px 11px;
  background: #fff;
  border: 1px solid #bfccdb;
  border-radius: 9px;
  font: 500 .9rem/1.55 Vazirmatn, Tahoma, sans-serif;
  cursor: pointer;
}
.feed-topic summary::-webkit-details-marker { display: none; }
.feed-topic summary::after {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-inline-end: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.feed-topic[open] summary::after { transform: rotate(225deg); }
.feed-topic-options {
  position: absolute;
  z-index: 5;
  inset: calc(100% + 4px) 0 auto;
  display: grid;
  gap: 2px;
  padding: 4px;
  background: white;
  border: 1px solid #bfccdb;
  border-radius: 8px;
  box-shadow: 0 5px 16px #101e3420;
}
.feed-topic-options button {
  padding: 7px 9px;
  border: 0;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  text-align: start;
  font: 500 .9rem/1.6 Vazirmatn, Tahoma, sans-serif;
}
.feed-topic-options button:hover, .feed-topic-options button[aria-pressed="true"] { background: #eaf0f8; }
.feed-regions, .feed-notices { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; }
.feed-regions {
  justify-self: start;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f4f7fb;
}
.feed-regions .button, .feed-notices .button { min-height: 32px; padding: 4px 10px; font-size: .83rem; white-space: nowrap; }
.feed-regions .button { background: transparent; border-color: transparent; border-radius: 6px; }
.feed-regions .button:hover { background: #e7eef7; }
.feed-regions .button[aria-pressed="true"] { color: #183855; background: white; border-color: #cdd9e8; }
.feed-notices .button { border-radius: 999px; color: #455971; }
.feed-notices .button[aria-pressed="true"] { color: #763706; background: #fff2e6; border-color: #efbf96; }
.feed-references { grid-column: 1 / -1; font-size: .83rem; }
.feed-references a { color: #294d78; text-decoration: underline; text-underline-offset: 3px; }
.feed-country { background: #e9f4ed; color: #265a40; }
.feed-notice { background: #fff1e1; color: #763706; }
.feed-entry-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; margin-top: 9px; }
.feed-entry-actions .button { margin: 0; min-height: 34px; padding: 4px 10px; font-size: .83rem; }
.feed-translate { background: #eaf0f8; border-color: #d5e0ef; color: #294d78; }
.feed-translate:hover { background: #dbe7f5; }
.feed-translation-status { color: var(--muted); font-size: .8rem; }
.feed-translation-status.error { color: #a32824; }
.tools-section .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.industrial-tabs { display: flex; gap: 7px; flex-wrap: wrap; overflow: visible; margin-bottom: 16px; }
.industrial-tabs a { border: 1px solid var(--line); }
.industrial-tabs a[aria-current] { color: white; background: var(--navy2); box-shadow: none; }
.industrial-guide, .industrial-panel { min-width: 0; padding: 13px clamp(12px, 2vw, 20px); margin-bottom: 12px; }
.industrial-guide ol { margin: 8px 0 6px; padding-inline-start: 24px; }
.industrial-guide li + li { margin-top: 5px; }
.industrial-guide p { font-size: .86rem; }
.industrial-guide summary, .industrial-editor summary, .industrial-entry summary { cursor: pointer; color: #294d78; font-weight: 700; }
.industrial-form-slot, .industrial-panel > p + .button { margin-top: 10px; }
.industrial-field-grid, .industrial-filters, .industrial-details, .industrial-checks > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}
.industrial-wide { grid-column: 1 / -1; }
.industrial-checks { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.industrial-checks legend { padding-inline: 5px; font-weight: 700; }
.industrial-count { font-size: .86rem; margin-block: 7px; }
.industrial-entries { display: grid; gap: 8px; }
.industrial-entry { padding: 12px 14px; }
.industrial-entry .section-title { margin-bottom: 2px; }
.industrial-entry > p { margin-block: 3px 6px; font-size: .87rem; }
.industrial-entry .actions { margin-top: 8px; }
.industrial-entry .actions .button { margin: 0; min-height: 35px; }
.industrial-entry details { margin-block: 5px; }
.industrial-details { margin: 6px 0; }
.industrial-details dt { color: var(--muted); font-size: .8rem; }
.industrial-details dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.industrial-link { color: #294d78; text-decoration: underline; text-underline-offset: 3px; }
.industrial-due { background: #fff0e3; color: #763706; }
.industrial-match { border-top: 1px solid var(--line); padding: 10px 0; }
.industrial-match h4 { margin: 0; overflow-wrap: anywhere; }
.industrial-match form { max-width: 530px; margin-top: 6px; }
.industrial-match .button { justify-self: start; }
.qc-create-case { margin-top: 5px; }
#industrial-print { display: none; }
@media (max-width: 900px) { .tools-section .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .tools-section .tool-grid, .industrial-field-grid, .industrial-checks > div { grid-template-columns: minmax(0, 1fr); }
  .industrial-history > .section-title { align-items: start; flex-direction: column; }
}
@media print {
  body.industrial-printing .layout { display: block; }
  body.industrial-printing :is(aside, header, footer, #toast, main > :not(#industrial-print)) { display: none !important; }
  body.industrial-printing main { max-width: none; padding: 0; }
  body.industrial-printing #industrial-print { display: block; }
  #industrial-print article { margin-block: 12px; padding-block: 10px; border-top: 1px solid #b5c1ce; }
  #industrial-print h2 { break-after: avoid; }
  #industrial-print dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
  #industrial-print dl > div { break-inside: avoid; }
  #industrial-print dt { font-weight: 700; }
  #industrial-print dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
}
.industrial-reminder { margin-top: 5px; background: #fff0e3; color: #763706; }

.stats-profiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr)); gap:16px; margin-block:20px; }
.stats-profiles section { border:1px solid var(--line); border-radius:12px; padding:14px; }
.stats-profiles ul { list-style:none; padding:0; margin:0; }
.stats-profiles li { display:flex; justify-content:space-between; gap:12px; padding:5px 0; }
.stats-table { overflow-x:auto; }
.stats-table table { width:100%; border-collapse:collapse; text-align:start; }
.stats-table th,.stats-table td { text-align:start; padding:10px; border-bottom:1px solid var(--line); }

.tools-section > .section-title, .tools-heading { flex-wrap:wrap; gap:10px 16px; }
.tools-heading h1 { margin:0; }
.tools-guide-button { min-height:36px; padding:4px 12px; font-size:.85rem; }
.tools-guide-list { list-style:none; margin:0; padding:0; }
.tools-guide-list li { padding:8px 0; border-bottom:1px solid var(--line); }
.tools-guide-list a { font-weight:700; text-decoration:underline; }
.tools-guide-list p { margin:3px 0 0; }

@media print {
  #industrial-print .stats-table { overflow: visible; }
  #industrial-print td { overflow-wrap: anywhere; }
  #industrial-print h3 { break-after: avoid; }
}

.mobile-menu-toggle { display:none; }
.account-entry .layout { display:block; }
.account-entry .layout > aside,.account-entry .workspace > header,.account-entry .site-footer { display:none; }
.account-entry main { max-width:1100px; margin:auto; padding:clamp(16px,5vw,56px); }
.entry-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.35fr); gap:24px; align-items:start; }
.entry-brand { padding:clamp(24px,5vw,52px); color:#fff; border-radius:18px; background-color:#101e34; background-image:linear-gradient(#ffffff0c 1px,transparent 1px),linear-gradient(90deg,#ffffff0c 1px,transparent 1px); background-size:24px 24px; }
.entry-brand h1 { text-align:right; margin:16px 0 0; }
.entry-brand h1 span { color:var(--accent); }
.entry-brand li { margin-block:8px; }
.entry-brand li::marker { color:var(--accent); }
.entry-form { display:grid; gap:16px; padding:clamp(20px,4vw,36px); }
.entry-form form { display:grid; gap:12px; }
.entry-form .error:empty { display:none; }
@media (max-width:700px) {
  .entry-layout { grid-template-columns:1fr; gap:14px; }
  .entry-brand ul { display:none; }
}
@media (max-width:700px) {
  .sidebar-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .sidebar-top .brand { margin:0; }
  .mobile-menu-toggle { display:inline-flex; min-height:44px; border-color:#425675; background:#223651; color:#fff; }
  .mobile-menu-toggle:hover,.mobile-menu-toggle[aria-expanded="true"] { background:var(--accent); color:var(--navy); }
  #navigation { display:none; }
  #navigation.mobile-menu-open { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:10px; padding-top:8px; border-top:1px solid #ffffff26; }
  #navigation a { min-height:44px; padding:7px; gap:6px; white-space:normal; }
  #navigation a svg { flex-shrink:0; }
}
