@font-face{font-family:"DM Sans";src:url('/fonts/dm-sans-latin-wght-normal.woff2') format('woff2');font-weight:100 1000;font-display:swap}
@font-face{font-family:"DM Sans";src:url('/fonts/dm-sans-latin-ext-wght-normal.woff2') format('woff2');font-weight:100 1000;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1EFF,U+2020,U+20A0-20AB}
@font-face{font-family:Roboto;src:url('/fonts/roboto-latin-wght-normal.woff2') format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Roboto;src:url('/fonts/roboto-latin-ext-wght-normal.woff2') format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Vazirmatn;src:url('/fonts/vazirmatn-variable.woff2') format('woff2');font-weight:100 900;font-display:swap}

:root{
  color-scheme:light;
  --bg:#f3f4f8;--paper:#fff;--ink:#181d31;--muted:#596277;--line:#dce0ea;
  --accent:#5142c6;--accent-dark:#4635ad;--violet-wash:#eeeaff;--green:#12684e;
  --turkish-font:"DM Sans",Roboto,"Segoe UI",sans-serif;
  --system-font:var(--turkish-font);--display:var(--system-font);
  font:14px/1.65 var(--system-font);color:var(--ink);background:var(--bg);font-synthesis:none;
}
:root[lang="fa"]{--system-font:Vazirmatn,"Segoe UI",sans-serif;word-spacing:.05em;line-height:1.78}
*{box-sizing:border-box}
body{margin:0;min-width:280px}
[hidden]{display:none!important}
button,input,select,textarea{font:inherit;letter-spacing:inherit;word-spacing:inherit;color:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.65}
:focus-visible{outline:3px solid #7568f2;outline-offset:3px}
a{color:var(--accent-dark)}
h1,h2,h3,p{margin:0}
h1,h2,.brand strong,.card h3,.stat strong{font-family:var(--display);font-weight:800}
svg,[data-icon]{display:inline-flex;flex-shrink:0;vertical-align:middle}
.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap}
.workspace{min-height:100dvh;background:radial-gradient(ellipse 62% 420px at 80% 5%,#e9e5f5a3,transparent),linear-gradient(#f8f9fc,#f1f3f8 600px)}
.masthead{background:linear-gradient(115deg,#151a2c,#242841 70%,#1a1b30);color:#f6f5ff;box-shadow:0 3px 15px #1e20431f;border-bottom:1px solid #3c405c}
.mast-inner,.main{width:min(100%,1520px);margin:auto;padding-inline:clamp(20px,4.4vw,74px)}
.mast-inner,.desk-nav,.nav-account,.brand,.nav-item,.privacy-mark,.sync-tools,.source-status,.language-picker,.button,.quiet-button,.category,.card-bottom,.card-bottom span,.fit,.toolbar label,.fact small,.list-heading,.list-heading h2,.login-top{display:flex;align-items:center}
.mast-inner{min-height:66px;gap:clamp(14px,3vw,52px)}
.brand{gap:11px;color:inherit;text-decoration:none;white-space:nowrap}
.brand img,.login-top img{filter:drop-shadow(0 3px 6px #19163250)}
.brand strong{font-size:19px}
.desk-nav{align-self:stretch;gap:5px}
.nav-item,.nav-exit{border:0;background:transparent;color:#ccd0e0}
.nav-item{position:relative;gap:8px;text-decoration:none;padding-inline:13px;font-weight:600;font-size:13px;border-radius:5px}
.nav-item.active,.nav-item:hover,.nav-exit:hover{color:white}
.nav-item.active::after{content:"";position:absolute;inset:auto 12px -12px;height:3px;border-radius:3px;background:#baafff}
.nav-account{margin-inline-start:auto;gap:15px}
.privacy-mark{gap:6px;font-size:12px;color:#d0d5e6}
.privacy-mark svg{color:#a9d8ca;width:16px}
.nav-exit{padding:7px}
.language-picker{direction:ltr;background:#f1f1f8;border:1px solid var(--line);border-radius:9px;padding:3px;gap:2px}
.language-picker button{border:0;background:transparent;font-weight:700;color:#555b6a;min-width:30px;min-height:28px;border-radius:6px}
.language-picker [lang="fa"]{font-family:Vazirmatn,sans-serif}
.language-picker [lang="tr"]{font-family:var(--turkish-font)}
.language-picker [aria-pressed="true"]{background:#fff;color:var(--accent-dark);box-shadow:0 1px 5px #28204628}
.masthead .language-picker{background:#303249;border-color:#494a61}
.masthead .language-picker button{color:#cecee2}
.masthead .language-picker [aria-pressed="true"]{background:#e7e3ff;color:#332a55}
.main{padding-block:22px 56px}
.page-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.page-header h1{font-size:clamp(34px,3.4vw,54px);line-height:1.25}
.page-header p{color:var(--muted);margin-top:6px;font-size:14px}
.sync-tools{gap:13px}
.button,.quiet-button,.source-status,.icon-button{justify-content:center;gap:8px}
.button{min-height:42px;padding:8px 16px;border:1px solid transparent;border-radius:11px;font-weight:700;text-decoration:none}
.primary{background:linear-gradient(155deg,#735ce2,#5341bd);color:#fff;border-color:#6552ce;box-shadow:inset 0 1px 1px #ffffff55,0 4px 8px #4c399c29}
.primary:hover{background:linear-gradient(155deg,#7159e4,#4836a9)}
.secondary,.icon-button{background:white;border:1px solid var(--line);color:var(--ink)}
.secondary:hover,.quiet-button:hover{border-color:#b4a7e6;background:#f6f3ff}
.source-status,.quiet-button{background:white;border:1px solid var(--line);border-radius:9px;padding:7px 10px;font-weight:600;color:#495268;font-size:12px}
.source-status{border:0;background:transparent;padding-inline:3px}
.status-dot{width:7px;height:7px;background:#27886c;border-radius:50%;box-shadow:0 0 0 3px #d8eee6}
.off .status-dot{background:#777e90;box-shadow:0 0 0 3px #e2e4e9}
.page-error{margin-bottom:12px}
.summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:23px}
.stat{isolation:isolate;position:relative;overflow:hidden;display:flex;align-items:center;gap:12px;min-height:78px;padding:11px 16px;border-radius:14px;border:1px solid #d9dce8;background:linear-gradient(135deg,#fff,#f8f9fd);box-shadow:inset 0 1px white,0 3px 7px #25305609}
.stat small{display:block;font-size:12px;color:var(--muted)}
.stat strong{font-variant-numeric:tabular-nums;display:block;line-height:1.2;font-size:30px}
.stat strong.date-stat{font-weight:700;font-size:clamp(15px,1.35vw,20px);line-height:1.4}
.stat-icon,.section-icon{display:inline-grid;place-items:center;width:38px;height:38px;flex-shrink:0;border-radius:12px;background:linear-gradient(145deg,#f0ebff,#dad2ff);color:#5844a8;box-shadow:inset 0 1px 1px #fffc,0 2px 3px #28214112}
.stat-icon.teal{background:linear-gradient(145deg,#e1f9ed,#bae4d5);color:#1e7058}
.stat-icon.amber{background:linear-gradient(145deg,#fff1d4,#f7d4a7);color:#855526}
.stat:first-child{color:white;background:linear-gradient(115deg,#39377d,#5643a2);border-color:#534c99;box-shadow:0 5px 12px #38327122}
.stat:first-child small{color:#f0ebff}
.stat:first-child .stat-icon{color:white;background:#ffffff24;box-shadow:inset 0 1px 1px #ffffff55}
.stat:first-child::after{content:"";position:absolute;z-index:-1;inset-inline-end:-15px;bottom:-39px;width:92px;height:92px;border:9px solid #ffffff20;border-radius:22px;transform:rotate(-28deg) skewY(8deg);box-shadow:0 0 0 7px #d5cdff17,0 0 0 16px #d5cdff10}
.list-heading{justify-content:space-between;gap:12px;margin-bottom:12px}
.list-heading h2{gap:9px;font-size:24px;line-height:1.4}
.count{font:700 12px/1.5 var(--system-font);background:#e8e6f4;color:#544681;border-radius:6px;padding:2px 8px}
.toolbar{display:grid;grid-template-columns:minmax(140px,1fr) minmax(140px,.25fr) minmax(145px,.28fr);gap:8px}
.toolbar label{position:relative;gap:8px;min-width:0;min-height:40px;padding-inline:11px;background:#ffffffed;border:1px solid var(--line);border-radius:10px;color:#626b80}
.toolbar label:focus-within{outline:2px solid #978ada}
.search input,.select select{min-width:0;flex:1;height:38px;border:0;background:transparent;outline:none;color:var(--ink)}
.select select{appearance:none;cursor:pointer;padding-inline-end:17px}
.select>span:last-child{position:absolute;inset-inline-end:9px;pointer-events:none}
.topics{display:flex;gap:7px;flex-wrap:wrap;margin:11px 0 16px}
.filter{border-radius:999px;border:1px solid #d8daea;background:transparent;min-height:32px;padding:4px 12px;color:#535b71;font-size:12px;white-space:nowrap}
.filter:hover{border-color:#9c91c8}
.filter[aria-pressed="true"]{background:#29273f;color:white;border-color:#29273f;font-weight:700}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.card{--category:#3b518d;position:relative;min-width:0;display:flex;flex-direction:column;overflow:hidden;isolation:isolate;border-radius:17px;background:#fff;border:1px solid #d8dce7;box-shadow:0 2px 3px #22274109,0 8px 17px -8px #292e4e30;transition:transform .18s ease,box-shadow .18s ease}
.card-hit{position:absolute;z-index:2;inset:0;width:100%;border:0;background:transparent;border-radius:inherit}
.card-hit:focus-visible{outline-offset:-4px}
.card:focus-within{box-shadow:0 0 0 3px #7966cc}
@media(hover:hover){.card:hover{transform:translateY(-3px);box-shadow:0 3px 8px #22274115,0 15px 23px -8px #25294430}}
.cover{height:clamp(106px,9vw,139px);position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:11px 12px;background:linear-gradient(#07112629,transparent 65%),var(--cover,linear-gradient(130deg,#33426b,#282642)) center 49%/cover}
.category-web{--cover:url('/art/web.webp');--category:#37559e}
.category-wordpress{--cover:url('/art/wordpress.webp');--category:#23705c}
.category-performance{--cover:url('/art/performance.webp');--category:#8a5b23}
.category-apps{--cover:url('/art/apps.webp');--category:#72509e}
.category-logistics{--cover:url('/art/logistics.webp');--category:#835621}
.category-video{--cover:url('/art/video.webp');--category:#9a4158}
.platform,.cover .fit{display:inline-flex;align-items:center;gap:6px;color:#fff;background:#171928c9;border:1px solid #ffffff42;border-radius:999px;font-size:11px;font-weight:650;backdrop-filter:blur(8px)}
.platform{direction:ltr;padding:4px 9px;font-family:var(--system-font)}
.platform::before{content:"";width:6px;height:6px;border-radius:50%;background:#94eab4}
.cover .fit{padding:3px 8px 3px 4px;min-height:26px}
[dir="rtl"] .cover .fit{padding:3px 4px 3px 8px}
.cover .score-circle{color:#fff;background:transparent;width:24px;height:24px}
.cover .score-circle svg{width:24px;height:24px}
.cover .score-circle .track{stroke:#ffffff55}
.cover .score-circle .fill{stroke:#b7f0d2;stroke-width:2.8}
.cover .score-circle b{font-size:8.5px}
.card-body{display:flex;flex-direction:column;flex:1;padding:15px 18px 12px}
.category{gap:6px;color:var(--category);font-size:12px;font-weight:700;margin-bottom:6px}
.card h3,.card-desc{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.card h3{font-size:clamp(18px,1.45vw,23px);line-height:1.42;-webkit-line-clamp:2;min-height:2.84em;font-weight:700}
.card-desc{font-size:13px;line-height:1.68;-webkit-line-clamp:2;margin:7px 0 13px;color:var(--muted)}
.financials,.facts{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(0,1fr);gap:8px}
.financials{margin-top:auto;background:linear-gradient(105deg,#f1f1f9,#f6f7fb);border:1px solid #e7e7f1;border-radius:10px;padding:9px 11px}
.financials .fact+.fact{border-inline-start:1px solid #dadcea;padding-inline-start:12px}
.fact{min-width:0}
.fact small{gap:5px;color:#596174;font-size:11px}
.fact strong{display:block;margin-top:2px;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.financials strong{font-size:17px}
.financials .fact:first-child strong{font-weight:800;color:#302b52}
.fact .missing,.financials .fact:first-child .missing{font-size:12px;font-weight:400;color:#62697a}
.facts{margin-top:10px;padding-inline:2px}
.positive{color:var(--green)}
.caution{color:#8a5019}
.card-bottom{justify-content:space-between;gap:8px;background:#fafbfe;border-top:1px solid #e9ebf2;padding:9px 17px;color:#646b7c;font-size:11px}
.card-bottom span{gap:5px}
.read-more{font-weight:700;color:var(--accent-dark)}
[dir="ltr"] .glyph-chevron,[dir="ltr"] .glyph-exit{transform:scaleX(-1)}
.empty{grid-column:1/-1;display:grid;place-items:center;text-align:center;gap:8px;padding:32px 18px;border:1px dashed #c7c6db;border-radius:14px;color:var(--muted);background:white}
.score-circle{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;color:#494080;background:#f5f2ff}
.score-circle svg,.score-circle b{grid-area:1/1}
.score-circle b{font-size:11px}
.score-circle .track,.score-circle .fill{fill:none;stroke:#ddd9ef;stroke-width:2.5}
.score-circle .fill{stroke:#7760bd;stroke-linecap:round;transform:rotate(-90deg);transform-origin:center}
.fit,.meta-duo{display:inline-flex;align-items:center;gap:6px}
.fit{color:var(--muted);font-size:12px}
.source-label,.type-label{font-size:12px;font-weight:700;padding:3px 8px;background:#eef0f8;color:#505673;border-radius:7px}
.source-label{color:#12634d;background:#e5f3ea}
:root[lang="fa"] .card h3{line-height:1.58;min-height:3.16em}
:root[lang="fa"] .card-desc{line-height:1.8}
:root[lang="fa"] .page-header h1{line-height:1.4}

dialog { color: var(--ink); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 48px #21183331; padding: 0; }
dialog::backdrop { background: #17132974; }
.modal { border-radius: 15px; width: min(620px, calc(100% - 24px)); max-height: calc(100dvh - 28px); }
.drawer { margin: 0; margin-inline-start: auto; height: 100dvh; max-height: 100dvh; width: min(620px, 100%); max-width: 100%; border: 0; border-inline-start: 1px solid var(--line); }
.dialog-header { display: flex; align-items: flex-start; gap: 11px; padding: 18px 20px 13px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 20px; line-height: 1.4; }
.dialog-header p { color: var(--muted); margin-top: 5px; font-size: 12px; }
.dialog-header .icon-button { margin-inline-start: auto; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 37px; height: 37px; border-radius: 8px; border: 1px solid var(--line); color: #51466d; background: var(--paper); flex-shrink: 0; }
.icon-button:hover { border-color: #d5c9f6; background: #eff4eb; }
.dialog-content { padding: 14px 20px 22px; }
.detail-title { overflow-wrap: anywhere; }
.detail-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.detail-topline { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.detail-facts { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.detail-facts div { min-width: 0; border-radius: 8px; border: 1px solid var(--line); padding: 7px 9px; }
.detail-facts dt { font-size: 11px; color: var(--muted); }
.detail-facts dd { margin: 3px 0 0; font-size: 12px; line-height: 1.5; font-weight: 700; overflow-wrap: anywhere; }
.detail-section { margin-top: 17px; }
.detail-section h3, .dialog-content h3 { font-size: 14px; margin-bottom: 5px; }
.detail-section > p, .soft, .dialog-content > p { font-size: 12px; color: var(--muted); }
.job-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; background: #f5f6f1; border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-top: 6px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.detail-grid > div { border: 1px solid var(--line); border-radius: 8px; padding: 9px; }
.detail-section ul { margin: 6px 0 0; padding-inline-start: 18px; font-size: 12px; }
.detail-section li + li { margin-top: 4px; }
.breakdown { margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 0 9px; }
.breakdown-row { display: grid; grid-template-columns: 1fr auto; row-gap: 3px; padding: 7px 0; font-size: 12px; }
.breakdown-row + .breakdown-row { border-top: 1px solid var(--line); }
.breakdown-row p { grid-column: 1 / -1; color: var(--muted); overflow-wrap: anywhere; }
.breakdown-row span { color: var(--accent-dark); font-size: 11px; }

.weights { display: grid; gap: 4px; margin-top: 9px; }
.weight { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(70px, .45fr) 38px; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.weight label { font-size: 12px; font-weight: 700; }
.weight small { display: block; color: var(--muted); font-size: 11px; }
.weight input { width: 100%; accent-color: var(--accent); cursor: pointer; }
.weight output { padding: 2px 4px; border-radius: 6px; text-align: center; font-size: 11px; background: var(--violet-wash); color: var(--accent-dark); }
.targets { padding: 0; border: 0; margin: 14px 0 8px; }
.targets legend { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.target-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.target-grid label, .auth-card label { display: grid; gap: 3px; font-size: 11px; font-weight: 700; }
.target-grid input, .auth-card input { border: 1px solid var(--line); border-radius: 7px; width: 100%; padding: 6px 8px; min-height: 36px; background: var(--paper); color: var(--ink); }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; }
.error { color: #a71e45 !important; font-size: 12px; }
.history { margin-top: 15px; }
.run-card { margin-top: 7px; background: #f5f6f1; border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; }
.run-card summary { cursor: pointer; font-size: 12px; font-weight: 700; }
.run-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; font-size: 11px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.run-line code { grid-column: 1 / -1; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.delete-area { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 8px; }
.danger { color: #a71e45; }
.toast { position: fixed; inset: auto 16px 18px; width: fit-content; margin-inline: auto; padding: 8px 15px; background: #252038; color: white; border-radius: 9px; box-shadow: 0 5px 18px #210b4633; z-index: 3; font-size: 12px; }

.auth-shell { display: grid; place-items: center; min-height: 100dvh; padding: 20px; background: radial-gradient(ellipse at 50% 5%, #ece5ff 0%, var(--bg) 48%); }
.auth-card { display: grid; gap: 11px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 12px 35px #27154412; width: min(100%, 390px); }
.auth-card h1 { font-size: 25px; }
.auth-card p, .boot-card p { color: var(--muted); font-size: 12px; }
.auth-card form { display: grid; gap: 6px; }
.auth-card button { margin-top: 5px; }
.auth-card .language-picker button { margin-top: 0; }
.boot-card { display: grid; justify-items: center; gap: 10px; }


.login-top{justify-content:space-between}
.nav-account bdi{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.auth-shell{background:radial-gradient(ellipse at 55% 11%,#e3dff7,transparent 58%),#f2f4f9}
.auth-card{border-radius:19px;box-shadow:0 20px 55px #29233d18}
.dialog-header{background:linear-gradient(120deg,#f3f1fa,#fff);padding:20px}
.dialog-header h2{font-size:22px}
.dialog-content {padding:18px 20px 24px}
.job-text{background:#f7f7fb;line-height:1.8}
:root[lang="fa"] :is(.job-text,.material-description p){line-height:1.92}
.detail-facts>div{background:linear-gradient(135deg,#fff,#f5f5fa)}
.detail-section h3{font-family:var(--display);font-size:16px}
@media(max-width:1060px){
 .mast-inner,.main{padding-inline:22px}.mast-inner{gap:20px}.nav-account{gap:8px}.privacy-mark span:last-child{display:none}
 .cards{grid-template-columns:repeat(2,minmax(0,1fr))}.cover{height:120px}
}
@media(max-width:760px){
 .mast-inner,.main{padding-inline:16px}.mast-inner{min-height:55px;gap:12px}
 .nav-item{padding:6px}.nav-item span[data-text],.desk-nav .active,.privacy-mark{display:none}
 .mast-inner .brand{gap:7px}.brand img{width:32px;height:32px}.brand strong{font-size:16px}
 .desk-nav{align-self:center;gap:2px}.nav-account{gap:6px}
 .main{padding-top:17px}.page-header{gap:6px}.page-header h1{font-size:34px}
 .page-header p{font-size:12px}.source-status{display:none}
 .summary{gap:7px;margin-bottom:17px}.stat{padding:10px;gap:7px;min-height:64px}.stat-icon{width:29px;height:29px}.stat strong{font-size:24px}.stat strong.date-stat{font-size:13px}.stat small{font-size:11px}
 .topics{flex-wrap:nowrap;overflow-x:auto;padding:2px 1px 6px;margin:7px 0 9px;scrollbar-width:thin}
 .toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.search{grid-column:1/-1}.toolbar input,.toolbar select{font-size:12px}
 .card-body{padding:12px 13px 10px}.cards{gap:12px}
}
@media(max-width:580px){
 .mast-inner,.main{padding-inline:12px}.mast-inner{gap:7px}.nav-account{gap:3px}
 .page-header{align-items:center;margin-bottom:12px}.page-header h1{font-size:30px}.page-header p{display:none}.sync-tools .primary{font-size:12px;padding:7px 9px;min-height:37px}
 .summary{grid-template-columns:1fr 1fr}.stat:nth-child(2),.stat:nth-child(3){display:none}.stat{min-height:56px;border-radius:11px}.stat strong{font-size:24px}
 .list-heading{margin-bottom:8px}.list-heading h2{font-size:21px}.quiet-button{font-size:11px;padding:6px}
 .cards{grid-template-columns:minmax(0,1fr)}.cover{height:110px}
 .card h3,:root[lang="fa"] .card h3{min-height:0;font-size:20px}
 .detail-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.dialog-content,.dialog-header{padding-inline:14px}
}
@media(max-width:360px){.brand strong{display:none}.detail-grid{grid-template-columns:1fr}.weight{grid-template-columns:minmax(0,1fr) 62px 33px}.toolbar label{padding-inline:7px}.toolbar label>span:first-child{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}.card:hover{transform:none}}
.library-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.library-toolbar{display:grid;grid-template-columns:auto minmax(160px,1fr) minmax(130px,205px);gap:12px;align-items:center;margin:24px 0 16px}
.library-tabs{display:inline-flex;align-items:center;min-height:46px;padding:4px;gap:4px;border:1px solid #dedbea;border-radius:12px;background:#eae8f4}
.library-tabs button{border:0;border-radius:8px;background:transparent;color:var(--muted);font-weight:700;padding:7px 12px}
.library-tabs button[aria-pressed=true]{background:var(--paper);color:var(--accent-dark);box-shadow:0 2px 7px #27204218}
.library-toolbar label{display:flex;align-items:center;min-height:46px;gap:7px}
.library-type select{width:100%}
.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.library-empty{grid-column:1/-1;display:grid;justify-items:center;gap:8px;text-align:center;border:1px dashed #c8c3d9;border-radius:16px;padding:42px 15px;background:#ffffffad}
.library-empty h2{font-size:20px}
.library-empty p{color:var(--muted)}
.library-card{min-width:0;border:1px solid #e2dfec;border-radius:16px;padding:16px;background:linear-gradient(150deg,#f1edff 0%,#fff 120px);box-shadow:0 7px 22px #29204110;overflow-wrap:anywhere}
.library-card.library-resume{background:linear-gradient(150deg,#e6f4f0 0%,#fff 120px)}
.material-top,.material-author,.material-actions,.material-visibility{display:flex;align-items:center;gap:7px}
.material-top{justify-content:space-between;margin-bottom:12px}
.material-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#dfd6ff;color:#4c3ca8;box-shadow:inset 0 1px 1px #ffffffa0}
.library-resume .material-icon{background:#cde8dd;color:#166d54}
.material-visibility{font-size:11px;font-weight:700;border-radius:100px;padding:4px 8px;background:#fff;color:#4c4666}
.material-visibility.is-shared{background:#eaf5f2;color:#12684e}
.material-kind{font-size:11px;color:var(--muted);font-weight:700}
.library-card h2{font-size:21px;line-height:1.45;margin-block:3px 8px;text-align:start}
.material-author{font-size:12px;color:var(--muted)}
.material-description{margin-top:10px;font-size:13px;color:var(--muted)}
.material-description summary{cursor:pointer;font-weight:700;width:fit-content}
.material-description p{margin-top:7px;white-space:pre-wrap}
.material-tags{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0;padding:0;list-style:none}
.material-tags li{border:1px solid #e8e3f1;border-radius:6px;background:#f7f5fb;padding:2px 6px;font-size:11px;color:#51466d}
.material-actions{flex-wrap:wrap;border-top:1px solid #eae7f0;margin-top:14px;padding-top:10px}
.material-actions .quiet-button{text-decoration:none;min-height:32px}
.material-edit{margin-inline-start:auto}
.library-form,.library-form label{display:grid;gap:6px}
.library-form{gap:13px}
.library-form label{min-width:0;color:var(--ink);font-weight:700}
.library-form :is(input:not([type=checkbox]),textarea,select){width:100%;min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:inherit;font:inherit;font-weight:400}
.library-form textarea{resize:vertical}
.library-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.library-form .library-check{display:flex;flex-wrap:wrap;align-items:center;font-size:12px}
.library-form .library-check bdi{overflow-wrap:anywhere;color:var(--muted)}
.access-actions{display:flex;flex-wrap:wrap;gap:7px}
.auth-card .auth-success{padding:9px 11px;border-radius:8px;background:#e9f5ef;color:var(--green)}
.team-members{display:grid;gap:8px;margin-block-start:12px}
.team-member{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#faf9fd}
.team-member-info{display:grid;min-width:0;overflow-wrap:anywhere}
.team-member-info bdi{text-align:start}
.member-status{margin-inline-start:auto;border-radius:100px;background:#e9f5ef;color:var(--green);padding:3px 8px;font-size:11px;font-weight:700}
.member-status.pending{background:#faf0da;color:#6c4a0a}
.member-status.rejected{background:#fbecf0;color:#8a2442}
.team-member-actions{display:flex;flex-wrap:wrap;gap:5px}
#members-status{margin-block-start:10px}
@media(max-width:960px){.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.desk-nav a[data-view].active{display:flex}}
@media(max-width:650px){
  .library-grid{grid-template-columns:minmax(0,1fr)}
  .library-toolbar{grid-template-columns:minmax(0,1fr) minmax(105px,.55fr)}
  .library-tabs{grid-column:1/-1;width:fit-content}
  .library .page-header{align-items:flex-start;flex-direction:column}
}
