/* CS50xURMIA school system. Vazir and the supplied duck mark are the brand. */
.workspace .hero-code strong{color:var(--text)}
@media(max-width:600px){.workspace .table-wrap:has(table th:nth-child(4)):after{content:'برای دیدن همهٔ ستون‌ها، جدول را افقی جابه‌جا کنید.';display:block;padding:12px 16px;font-size:13px;color:var(--muted);position:sticky;right:0;width:calc(100vw - 34px);white-space:normal}}
@font-face{font-family:Vazir;src:url(fonts/Vazir.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Vazir;src:url(fonts/Vazir-Bold.woff2) format('woff2');font-weight:700;font-display:swap}
:root{--bg:#f4f4f2;--surface:#fff;--surface2:#eeeeec;--text:#202020;--muted:#595959;--line:#dededb;--red:#a51c30;--red-bright:#a51c30;--red-soft:#f7e9ec;--green:#24734d;--radius:8px;--shadow:none;--sidebar:240px;--school-space:24px;--school-ease:cubic-bezier(.22,.61,.36,1);--font:Vazir,system-ui,sans-serif;--accent:var(--red);--border:var(--line);--surface-2:var(--surface2);font-family:var(--font)}
[data-theme=dark]{--bg:#121212;--surface:#1b1b1b;--surface2:#252525;--text:#f2f2f0;--muted:#bcbcbc;--line:#383838;--red:#a51c30;--red-soft:#342328;--red-bright:#e6a2ad;--green:#80caa1;--shadow:none}
body,button,input,select,textarea{font-family:var(--font);letter-spacing:normal}
body{line-height:1.8}p{color:var(--muted)}h1,h2,h3{letter-spacing:normal;line-height:1.65}
.brand-logo{width:52px;height:52px;display:block;object-fit:contain;flex:none;border-radius:0}
.brand-name{font-family:var(--font);font-size:15px;letter-spacing:normal}.brand-name>span{color:var(--text)}.brand-name small{font-family:var(--font);font-size:11px;letter-spacing:0;color:var(--muted)}
.button{border-radius:4px;box-shadow:none;background:var(--red);font-size:14px;min-height:44px;font-weight:700;transition:background .18s,color .18s,transform .14s}
.button:hover{filter:none;background:#871728;color:#fff}.button:active{transform:translateY(1px)}.button.secondary{background:var(--surface);color:var(--text);border-color:var(--line)}.button.secondary:hover{background:var(--surface2);color:var(--text)}
.button.ghost{background:transparent;color:var(--muted)}.icon-button{border-radius:6px;box-shadow:none}.icon-button:hover{background:var(--surface2)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--red-bright);outline-offset:3px}
.skip-link:focus-visible,.keyboard-navigation .skip-link:focus{top:12px}
.workspace{background:var(--bg);font-size:14px}.workspace h1{font-size:26px;font-weight:700}.workspace h2{font-size:18px}.workspace h3{font-size:16px}
/* 12 columns share the canvas, with one 16px gutter and 24px inner padding. */
.workspace .sidebar{background:var(--bg);border:0}.sidebar-brand{min-height:88px;padding:16px 18px;border:0;gap:8px}.sidebar-brand .brand{gap:8px}.sidebar-brand .brand-logo{width:44px;height:44px}.sidebar-scroll{padding:10px 12px}.nav-label{padding:24px 12px 8px;font-size:12px;color:var(--muted)}
.navigation{gap:3px}.navigation a{min-height:40px;padding:8px 12px;border-radius:5px;font-size:14px;color:var(--muted);font-weight:400}.navigation a.active,.navigation a[aria-current=page]{color:var(--text);background:var(--surface2);font-weight:700}.navigation svg{width:18px;height:18px;stroke-width:1.6}.sidebar-footer{border:0;background:var(--bg);padding:16px}.collapsed{--sidebar:84px}.collapsed .sidebar-brand{padding:16px 20px}
.workspace .topbar{background:var(--bg);border:0;backdrop-filter:none;min-height:64px;padding:12px 24px;position:relative}.workspace #main{margin:0 0 8px;max-width:none;width:calc(100% - 8px);padding:28px 24px 40px;background:var(--surface);border-radius:12px;min-width:0}.workspace-footer{border:0;padding:16px 24px;font-size:12px}.breadcrumb{font-size:14px}.search-button{background:var(--surface);border-radius:6px}
.page-heading{align-items:center;margin-bottom:24px}.page-heading>div>p{font-size:14px;margin-top:8px;line-height:1.8}.workspace .eyebrow{font-family:var(--font);font-size:13px;letter-spacing:0;text-transform:none}.workspace .page-heading .eyebrow{display:none}
.panel,.stat,.assignment-card,.badge-card,.gift-card,.course-card,.podium-card,.media-studio-card{border-radius:8px;box-shadow:none;border-color:var(--line)}.workspace .panel{background:var(--bg);border:0;padding:20px}.workspace .panel .panel{background:var(--surface);border:0}.panel.dark{background:var(--surface2);color:var(--text)}.panel.dark p{color:var(--muted)}.stack{gap:16px}.dashboard-layout{gap:16px;grid-template-columns:minmax(0,1fr) 280px;align-items:start}
.stats-grid{gap:0;background:var(--bg);border-radius:8px;margin:20px 0 24px;grid-template-columns:repeat(4,minmax(0,1fr))}.stat{background:transparent;border:0;border-radius:0;padding:18px 20px}.stat strong{font-size:26px;font-weight:400;line-height:1.5;color:var(--text);font-variant-numeric:tabular-nums}.stat .label{font-size:13px}.stat .label .icon{display:none}.stats-grid:has(>.stat:nth-child(5)){grid-template-columns:repeat(5,minmax(0,1fr))}
.hero-card{min-height:190px;background:var(--bg);color:var(--text);border-radius:8px;padding:24px}.hero-card:after{content:none}.hero-card h2{font-size:24px}.hero-card p{color:var(--muted);max-width:58ch;line-height:1.9}.hero-card .eyebrow{color:var(--muted)}.hero-code{transform:none;background:var(--surface);border:0;border-radius:4px;color:var(--text)}.hero-code strong{color:var(--red)}
.course-cover{background:var(--surface2);color:var(--text);border-radius:0}.course-cover:after{content:none}.course-cover.tone-1,.course-cover.tone-2{background:var(--surface2)}.course-tile{border-radius:4px;background:var(--surface2);color:var(--text)}.course-card:hover{transform:none;box-shadow:none}.course-body p{color:var(--muted)}.course-body{padding:20px}.course-grid{gap:16px}.list-row{padding:14px 0;border-color:var(--line)}
.xp-value{font-size:30px;font-weight:400;font-variant-numeric:tabular-nums}.xp-mini,.xp-value small{font-family:var(--font)}.tip-box{border:0;background:var(--surface);padding:12px;border-radius:4px}.activity-dots span{border-radius:4px}.level-chip{background:var(--surface2);color:var(--text)}.badge-symbol{border-radius:8px!important;box-shadow:none}.podium-card:first-child{background:var(--surface2);color:var(--text)}
.field{gap:8px;font-size:14px}.field>span{font-weight:400}.field input,.field textarea,.field select,select.filter,input.filter{min-height:44px;border-radius:6px;background:var(--surface);border-color:var(--line);font-size:14px;padding:10px 12px}.field textarea{line-height:1.9}.field input::placeholder,.field textarea::placeholder{color:var(--muted);opacity:1}.field input[type=checkbox]{min-height:20px}.form-grid{gap:18px 16px}.form-actions{gap:12px}.filters{gap:12px}.tabs button{border-radius:4px}.tabs button.active{background:var(--surface2);color:var(--text)}
.table-wrap{border-radius:8px;box-shadow:none}.table-wrap th{background:transparent;text-transform:none;letter-spacing:0;font-weight:400;color:var(--muted);font-size:12px}.table-wrap td{font-size:14px}.table-wrap tr:nth-child(even){background:transparent}td:has(>.num),.num,.stat strong,.bars{font-variant-numeric:tabular-nums}.bars{height:160px}.bars>div{border-radius:0;opacity:1}
.empty{padding:24px 16px}.empty>.icon{width:24px;height:24px;margin-bottom:12px}.empty p{font-size:14px}.loading{min-height:180px}.error-panel{background:var(--surface2);border:0;border-inline-start:3px solid var(--red);border-radius:4px}.toast{border-radius:6px}dialog{border-radius:12px;box-shadow:0 16px 60px #0003}dialog::backdrop{backdrop-filter:none}.sidebar-backdrop{backdrop-filter:none}
.player-tools{background:var(--surface);backdrop-filter:none;border-radius:6px}.video-stage{box-shadow:none;border-radius:8px}.lesson-layout{gap:20px}.lesson-side{border-radius:8px}.lesson-row{min-height:54px}.lesson-row.completed{background:var(--surface2)}.lesson-side .chapter[open] summary{color:var(--text)}
.editor-layout{align-items:start;gap:20px}.editor-layout:has(#article-form){grid-template-columns:1fr}.editor-sidebar{position:static!important;max-height:none!important}.editor-writing-panel{min-width:0}.editor-toolbar{background:var(--surface2);border-radius:4px;padding:10px;gap:6px}.editor-toolbar button{min-height:34px;background:var(--surface);border-radius:4px;font-size:13px}.editor-layout textarea[name=body]{min-height:440px;font-size:16px;line-height:2}.seo-audit-toggle{border-radius:4px;font-size:13px;min-height:36px}.seo-audit-summary strong{font-size:24px;font-weight:400}.seo-audit li,.seo-audit-body>p,.serp-preview p{font-size:13px}.serp-preview{border:0;border-radius:4px;background:var(--surface)}.editor-status,.field-hints{font-size:12px}.publication-actions .button{font-size:13px}
.studio-disclosure{padding:0!important;overflow:clip}.studio-disclosure>summary{padding:20px;cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px}.studio-disclosure>summary:after{content:'+';font-size:22px;font-weight:400}.studio-disclosure[open]>summary:after{content:'−'}.studio-disclosure>summary strong{font-size:16px}.studio-disclosure>div{padding:0 20px 20px}.studio-disclosure .panel{padding:0;background:transparent}.studio-disclosure>summary .section-heading{margin:0}.studio-disclosure>summary p{font-size:13px;font-weight:400;margin-top:4px}
.growth-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.38fr);gap:20px;margin-top:24px;align-items:start}.growth-workspace>.stack{min-width:0}.growth-workspace .table-wrap{margin:16px 0}.marketing-funnel{grid-template-columns:repeat(5,minmax(0,1fr))}.marketing-funnel div{border:0;border-radius:4px;background:var(--surface);padding:12px 6px}.marketing-funnel div:after{display:none}.marketing-funnel strong{font-weight:400}.media-preview{background:var(--surface2)}.media-kind-chip{border-radius:4px}.media-studio-grid{gap:16px}.media-studio-card{border:0;background:var(--bg)}.media-card-body{padding:16px}.media-url input{font-family:var(--font);font-size:12px}.media-filters{display:flex}.media-filters .field:first-child{flex:1;max-width:none}.seo-endpoints a{border:0;border-radius:4px;background:var(--surface);padding:12px;font-size:13px}.seo-endpoints code{font-size:12px;overflow-wrap:anywhere;font-family:var(--font)}.workspace code:not(pre code){font-family:var(--font)}
/* Authentication uses the same local brand and font; form names and legal text stay intact. */
.auth-shell .brand-logo{width:56px;height:56px}.auth-shell .brand strong{font-size:16px}.auth-shell .brand strong span{color:var(--text)}.auth-panel{padding:32px clamp(24px,4vw,64px)}.auth-shell .visual{background:var(--red)}.auth-shell .visual .grid,.auth-shell .orb{display:none}.auth-shell .visual-card{background:transparent;border:0;box-shadow:none;backdrop-filter:none;transform:none}.auth-shell .visual-card h2{font-size:40px;line-height:1.7}.auth-shell .visual-card h2 span{color:#fff}.auth-shell .visual-card p{font-size:17px;color:#fff}.auth-shell .visual-tag{font-size:13px;letter-spacing:0;color:#fff}.auth-shell .visual-tag i{box-shadow:none;background:#fff}.auth-shell .code-card{border:0;border-radius:4px;background:#861728;box-shadow:none}.auth-shell .code{font-family:monospace}.auth-shell h1{font-size:30px}.auth-shell .lead{font-size:15px;line-height:1.9}.auth-shell .field label{font-size:14px}.auth-shell .hint,.auth-shell .footer-note,.auth-shell .auth-switch{font-size:12px;line-height:1.9}.auth-shell .input-wrap,.auth-shell .otp-row input{border-radius:6px;box-shadow:none}.auth-shell .btn{border-radius:4px;box-shadow:none;background:var(--red);font-size:15px}.auth-shell .btn:hover{transform:none;background:#871728}.auth-shell .error{font-size:13px}.auth-shell .progress-steps span{border-radius:0}.auth-shell .footer-note{max-width:60ch}
@media(max-width:1100px){.workspace .dashboard-layout{grid-template-columns:minmax(0,1fr) 240px}.growth-workspace{grid-template-columns:1fr}.workspace .hero-code{display:none}}
@media(max-width:900px){.workspace .topbar{padding:12px 20px;min-height:60px;position:sticky;background:var(--surface)}.workspace #main{padding:24px 20px;width:100%;border-radius:0;margin:0}.workspace .sidebar{background:var(--surface)}.sidebar-footer{background:var(--surface)}.dashboard-layout{grid-template-columns:1fr!important}.workspace-footer{padding:16px 20px}.stats-grid,.stats-grid:has(>.stat:nth-child(5)){grid-template-columns:repeat(2,minmax(0,1fr))}.stats-grid>.stat:last-child:nth-child(odd){grid-column:1/-1}.stat{padding:16px}.page-heading{gap:16px}.workspace h1{font-size:24px}.hero-card h2{font-size:22px}.editor-layout{grid-template-columns:1fr}.editor-layout textarea[name=body]{min-height:360px}.marketing-funnel{grid-template-columns:repeat(5,minmax(0,1fr))}.marketing-funnel div{font-size:12px}.marketing-funnel strong{font-size:20px}.brand-name small{font-size:11px}}
@media(max-width:520px){.workspace #main{padding:22px 16px 32px}.workspace .topbar{padding:10px 16px}.workspace .panel{padding:16px}.workspace .page-heading{align-items:flex-start;flex-direction:column}.workspace .page-heading h1{font-size:24px}.workspace .hero-card{padding:20px}.workspace .stat strong{font-size:24px}.studio-disclosure>summary{padding:16px}.studio-disclosure>div{padding:0 16px 16px}.publication-actions{grid-template-columns:1fr 1fr}.publication-actions>[data-article-save]{grid-column:1/-1}.seo-audit-summary{align-items:center}.hero-card{min-height:0}.auth-shell h1{font-size:26px}.auth-shell .lead{font-size:14px}.form-grid{grid-template-columns:1fr}.growth-workspace{gap:16px}.marketing-funnel{grid-template-columns:repeat(2,minmax(0,1fr))}.marketing-funnel>div:last-child{grid-column:1/-1}}
/* Existing operations screens share the same controls without changing their APIs. */
.prod-card,.prod-row,.prod-modal-box,.prod-kpi,.prod-empty{border-radius:8px;box-shadow:none;background:var(--surface);border-color:var(--line)}.prod-btn{border-radius:4px;min-height:40px;font-size:14px;box-shadow:none}.prod-btn.primary{background:var(--red);border-color:var(--red)}.prod-input,.prod-form input,.prod-form select,.prod-form textarea{border-radius:6px;background:var(--surface);color:var(--text);font-size:14px;min-height:44px}.prod-content{padding:24px}.prod-table th{font-weight:400;background:transparent;font-size:13px}.prod-table td{font-size:14px}.prod-alert{border:0;border-radius:4px}.access-filter{border:0;border-radius:8px}.access-stats button{border-radius:4px;background:var(--bg);border:0}.access-stats button.active{background:var(--surface2);color:var(--text)}.access-stats span,.access-filter label>span,.access-result-meta,.access-pagination,.access-detail-grid dt,.access-detail-grid dd,.access-quick span,.access-history span,.access-history small{font-size:13px}.access-stats strong{font-size:24px;font-weight:400}.access-detail-grid section,.access-reason,.access-history{border:0;border-radius:4px}.access-history i{box-shadow:none}.admin-shell .side{background:var(--bg);border-color:var(--line);color:var(--text)}.admin-shell .brand-copy strong{color:var(--text)}.admin-shell .brand-copy small{font-size:11px;letter-spacing:0}.admin-shell .topbar{background:var(--surface);backdrop-filter:none;box-shadow:none}.admin-shell .role-card{background:var(--surface);border:0;border-radius:6px}.admin-shell .nav button{border-radius:4px;color:var(--text)}.admin-shell .nav button.active{background:var(--surface2);color:var(--text)}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
