:root{direction:rtl;--ink:#202925;--muted:#828a82;--line:#e9ece6;--paper:#f7f8f4;--white:#fff;--green:#285a44;--green-dark:#204a38;--mint:#e6f1e9;--font:'Noto Sans Arabic','DM Sans',sans-serif;--display:'Noto Sans Arabic','Manrope',sans-serif;--uy:'Noto Sans Arabic','DM Sans',sans-serif}*{box-sizing:border-box}body{direction:rtl;margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:14px;letter-spacing:0}.sidebar{inset:0 0 0 auto;border-right:0;border-left:1px solid #eceee9}.main-shell{margin-right:248px;margin-left:0}.nav-item{text-align:right}.term-name,.term-definition{unicode-bidi:plaintext}.sync-status i{margin-right:0;margin-left:6px}.stat-spark{margin-right:0;margin-left:3px}.stat-watermark{right:auto;left:20px}.letter-tiles{right:auto;left:20px}.stat-shortcut{margin-left:0;margin-right:auto}.text-button span{margin-left:0;margin-right:3px}.result-count{margin-right:0;margin-left:9px}.term-col span{margin-left:0;margin-right:3px}.check-wrap input:checked+span:after{left:auto;right:2px}.page-foot i{margin-left:0;margin-right:5px}.bulk-bar .bulk-clear{margin-left:0;margin-right:auto}.file-preview>button{margin-left:0;margin-right:auto}.format-pill{margin-left:0;margin-right:auto}.outline-button span{margin-left:0;margin-right:5px}.safe-note{direction:rtl}.toast{direction:rtl}
/* Keep the admin navigation on the right while mirroring content and controls. */
@media(max-width:1100px){.main-shell{margin-right:205px;margin-left:0}}
@media(max-width:800px){.main-shell{margin-right:0;margin-left:0}}
.public-body{min-height:100vh;background:#f8f9f6}.public-header{height:76px;padding:0 max(calc((100vw - 1120px)/2),36px);display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #eceee9}.public-header .brand{padding:0}.admin-link{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:#6d796d;font-size:11px;font-weight:600;padding:9px 13px;border:1px solid #e7ebe5;border-radius:6px;transition:.18s}.admin-link:hover{background:#eff5f0;color:#315f43}.admin-link span{color:#6d8e71;font-size:12px}.public-main{max-width:1120px;margin:0 auto;padding:0 36px}.public-hero{position:relative;text-align:center;padding:69px 20px 33px;overflow:hidden}.public-hero .eyebrow{justify-content:center;font-size:9px}.public-hero h1{position:relative;z-index:1;margin:14px 0 9px;font:700 39px/1.35 var(--display);letter-spacing:-1.3px}.public-hero h1 em{font-style:normal;color:#5b8064}.public-hero>p{margin:0;color:#838b82;font-size:12px}.hero-ornament{position:absolute;top:6px;right:calc(50% - 420px);color:#eef2ec;font:400 170px/1 var(--uy);pointer-events:none}.public-search{position:relative;z-index:1;display:flex;align-items:center;gap:12px;width:min(100%,520px);height:49px;margin:26px auto 15px;padding:0 15px;background:#fff;border:1px solid #e3e9e1;border-radius:7px;box-shadow:0 7px 22px #263b2910;color:#94a093}.public-search>span{font-size:22px}.public-search input{flex:1;min-width:0;border:0;outline:0;background:none;color:#455047;font:11px var(--font)}.public-search input::placeholder{color:#aeb6ac}.public-search kbd{border:1px solid #eceee9;border-radius:4px;padding:4px 6px;color:#9aa398;font:9px var(--font)}.public-stats{display:flex;align-items:center;justify-content:center;gap:13px;color:#929b91;font-size:10px}.public-stats strong{color:#506d55;font-size:12px}.public-stats i{width:3px;height:3px;background:#c4cec2;border-radius:50%}.public-list-section{padding-top:25px}.public-list-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:16px}.public-list-heading h2{font:700 18px var(--display);margin:0 0 4px;letter-spacing:-.4px}.public-list-heading p{margin:0;color:#939a92;font-size:10px}.public-results{color:#789079;font-size:9px}.public-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.public-term-card{display:flex;flex-direction:column;min-height:200px;padding:16px 17px 13px;background:#fff;border:1px solid #e8ece5;border-radius:7px;transition:transform .18s,box-shadow .18s}.public-term-card:hover{transform:translateY(-2px);box-shadow:0 9px 24px #243b2810}.public-term-top{display:flex;align-items:center;justify-content:space-between}.public-term-mark{display:grid;place-items:center;width:24px;height:24px;border-radius:6px;background:#eef4ed;color:#67826a;font:12px var(--uy)}.public-entry-number{color:#b1b8ae;font:9px var(--font);letter-spacing:.6px}.public-term-card h3{margin:12px 0 7px;color:#354a39;font:600 17px/1.7 var(--uy)}.public-definition{margin:0;color:#7d867c;font:400 11px/1.85 var(--uy);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;unicode-bidi:plaintext}.public-term-card.expanded .public-definition{-webkit-line-clamp:unset;display:block}.read-more{align-self:flex-start;margin-top:auto;padding:12px 0 0;border:0;background:transparent;color:#648168;font:500 9px var(--font)}.read-more span{margin-right:5px;font-size:12px}.public-empty{text-align:center;padding:55px 15px}.public-empty>span{display:grid;place-items:center;margin:0 auto 11px;width:40px;height:40px;border-radius:50%;background:#eef4ed;color:#6f8b72;font-size:24px}.public-empty h3{margin:0;font:600 15px var(--display)}.public-empty p{color:#949b93;font-size:10px}.public-pagination{display:flex;justify-content:center;align-items:center;gap:16px;padding:25px 0;color:#788477;font-size:10px}.public-pagination button{border:1px solid #e3e9e1;border-radius:5px;background:#fff;color:#586b59;padding:7px 10px;font-size:9px}.public-pagination button:disabled{opacity:.4;cursor:default}.public-footer{display:flex;justify-content:space-between;padding:15px 0 26px;border-top:1px solid #eaede7;color:#a2aaa0;font-size:9px}.public-footer>span:last-child{letter-spacing:.4px}.public-footer i{display:inline-block;width:5px;height:5px;margin-right:5px;border-radius:50%;background:#91b695;vertical-align:1px}.public-footer{margin-top:6px}.public-empty.hidden{display:none!important}
@media(max-width:850px){.public-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.public-header{padding:0 25px}.public-main{padding:0 25px}.public-hero{padding-top:57px}}
@media(max-width:560px){.public-header{height:62px;padding:0 15px}.public-header .brand{font-size:18px}.public-header .brand-mark{width:30px;height:30px}.admin-link{font-size:9px;padding:8px 10px}.public-main{padding:0 14px}.public-hero{padding:48px 3px 24px}.public-hero h1{font-size:29px;letter-spacing:-.6px}.public-hero>p{font-size:10px;line-height:1.8;max-width:310px;margin:0 auto}.hero-ornament{right:auto;left:-8px;font-size:115px}.public-search{height:44px;margin:21px auto 13px;padding:0 10px}.public-search input{font-size:10px}.public-search kbd{font-size:8px}.public-list-section{padding-top:18px}.public-list-heading h2{font-size:16px}.public-grid{grid-template-columns:1fr;gap:9px}.public-term-card{min-height:180px;padding:14px}.public-term-card h3{font-size:15px}.public-definition{-webkit-line-clamp:3}.public-pagination{gap:10px}.public-pagination button{padding:7px 8px;font-size:8px}.public-footer{font-size:8px}}

.random-section{position:relative;max-width:780px;margin:4px auto 43px}.random-label{display:flex;align-items:center;gap:8px;color:#728474;font-size:10px;font-weight:600}.random-star{font-size:14px;color:#81a184}.random-rule{height:1px;flex:1;background:#e6ebe3}.random-card{position:relative;display:flex;align-items:flex-start;gap:18px;min-height:160px;margin-top:12px;padding:24px 25px 20px;background:#fff;border:1px solid #e4eae1;border-radius:8px;box-shadow:0 8px 25px #233b2910;overflow:hidden}.random-card:after{content:'ع';position:absolute;left:24px;bottom:-62px;color:#f5f8f3;font:140px/1 var(--uy);pointer-events:none}.random-mark{display:grid;place-items:center;flex:none;width:39px;height:39px;border-radius:9px;background:#edf4eb;color:#5c7e61;font:18px var(--uy)}.random-copy{position:relative;z-index:1;max-width:100%}.random-entry{color:#a1aa9e;font-size:8px;letter-spacing:.3px}.random-copy h2{margin:7px 0 5px;color:#324b37;font:600 21px/1.7 var(--uy)}.random-copy p{margin:0;color:#778176;font:400 11px/1.9 var(--uy);unicode-bidi:plaintext}.another-term{display:flex;align-items:center;gap:6px;margin:10px auto 0;border:0;background:transparent;color:#668069;font:500 9px var(--font)}.another-term span{font-size:15px}.random-empty,.random-loading{color:#858f83;font-size:10px}.random-empty{margin:auto}.letter-section{max-width:930px;margin:0 auto 35px}.letter-section .public-list-heading{margin-bottom:13px}.letter-section .public-list-heading h2{font-size:15px}.letter-section .public-list-heading p{font-size:9px}.letter-list{display:flex;flex-wrap:wrap;gap:7px}.letter-chip{min-width:65px;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:6px 9px;border:1px solid #e6ebe3;border-radius:5px;background:#fff;color:#435b46;transition:.16s}.letter-chip:hover,.letter-chip.active{border-color:#9db69e;background:#edf5ed}.letter-chip span{font:500 14px var(--uy)}.letter-chip small{color:#a1aa9f;font-size:8px}.public-list-section{max-width:1020px;margin:0 auto;padding-top:23px;border-top:1px solid #e9ede7}
@media(max-width:560px){.random-section{margin:0 auto 32px}.random-card{min-height:145px;padding:17px 15px;gap:11px}.random-mark{width:32px;height:32px;font-size:15px}.random-copy h2{font-size:17px}.random-copy p{font-size:10px}.random-card:after{left:7px}.letter-section{margin-bottom:26px}.letter-chip{min-width:55px;padding:6px 7px}.letter-list{gap:5px}.public-list-section{padding-top:18px}}
.random-copy p{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}.random-card.expanded .random-copy p{display:block;overflow:visible}.random-read-more{display:inline-flex;align-items:center;gap:5px;margin-top:9px;padding:0;border:0;background:transparent;color:#668069;font:500 9px var(--font)}.random-read-more span{font-size:12px}
@media(max-width:800px){.sidebar{border-left:0}}
@media(max-width:800px){.sidebar{height:auto;min-height:58px;display:grid;grid-template-columns:1fr;padding:9px 18px}.side-nav{display:flex;gap:5px;margin-top:8px}.nav-item{flex:1;justify-content:center;padding:8px 5px;font-size:10px}.nav-count{margin-right:0}.sidebar .brand{justify-self:start}.main-shell{margin-right:0}}
@media(max-width:560px){.sidebar{padding:8px 14px}.nav-item{font-size:9px}}
.breadcrumbs{gap:11px}.breadcrumbs strong{position:relative;display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid #e0e9df;border-radius:7px;background:linear-gradient(135deg,#f0f6ef,#f8faf6);color:#315b40;font-size:10px;font-weight:700;box-shadow:0 2px 5px #2849320b,inset 0 1px 0 #fff}.breadcrumbs strong::before{content:'ع';display:grid;place-items:center;width:19px;height:19px;border-radius:6px;background:#315f43;color:#fff;font:12px var(--uy);box-shadow:0 2px 4px #285a4426}.breadcrumbs b{color:#c5cec4;font-size:12px}.breadcrumbs>span{color:#9ba49a}
/* Keep the glossary table closer to the top of the page. */
.topbar{height:57px}.page-content{padding-top:35px}.welcome-row{margin-bottom:25px}.stats-grid{margin-bottom:31px}.stat-card{height:105px}
@media(max-width:800px){.topbar{height:46px}.page-content{padding-top:27px}}
@media(max-width:560px){.topbar{height:44px}.page-content{padding-top:22px}.welcome-row{margin-bottom:22px}.stats-grid{margin-bottom:25px}}
/* Keep public search, featured term, and letter browsing within easier reach. */
.public-header{height:68px}.public-hero{padding-top:49px;padding-bottom:25px}.public-hero h1{margin-top:11px;margin-bottom:6px}.public-search{margin-top:21px;margin-bottom:12px}.random-section{margin-top:0;margin-bottom:30px}.random-card{min-height:140px;padding-top:20px;padding-bottom:16px}.another-term{margin-top:6px}.letter-section{margin-bottom:27px}
@media(max-width:850px){.public-hero{padding-top:47px;padding-bottom:22px}}
@media(max-width:560px){.public-header{height:58px}.public-hero{padding-top:39px;padding-bottom:17px}.public-search{margin-top:18px;margin-bottom:10px}.random-section{margin-bottom:23px}.random-card{min-height:126px;padding-top:14px;padding-bottom:13px}.letter-section{margin-bottom:21px}}


/* Shared foundations and admin workspace */
.brand{display:inline-flex;align-items:center;gap:10px;padding:0 9px;color:#202925;text-decoration:none;font:800 21px/1.4 var(--display);letter-spacing:-.5px}
.brand-mark{display:grid;place-items:center;width:35px;height:35px;border-radius:11px;background:var(--green);color:#fff;font:600 21px var(--uy);box-shadow:0 3px 8px #285a4424}
.brand-dot{color:#91b391}
.sidebar{position:fixed;inset:0 0 0 auto;z-index:3;display:flex;flex-direction:column;width:248px;padding:25px 16px 15px;background:#fff;border-left:1px solid #eceee9}
.workspace-label{margin:43px 10px 12px;color:#a0a89f;font-size:9px;font-weight:700;letter-spacing:.7px}
.side-nav{display:grid;gap:5px}
.nav-item{display:flex;align-items:center;gap:11px;width:100%;border:0;border-radius:8px;background:transparent;padding:10px 12px;color:#727b73;text-align:right;font-size:11px;font-weight:500;transition:background .15s,color .15s}
.nav-item:hover{background:#f7f9f6;color:#456b4c}
.nav-item.active{background:#eff5f0;color:#2a6245;font-weight:700}
.nav-icon{width:18px;text-align:center;font-size:16px;line-height:1}
.import-icon{font-size:18px}
.nav-count{margin-right:auto;color:#849186;font-size:9px}
.sidebar-bottom{margin-top:auto}
.storage-card{margin:0 4px 15px;padding:12px;background:#f8faf7;border:1px solid #edf0eb;border-radius:9px}
.storage-top{display:flex;align-items:center;gap:6px;color:#8d9a8d;font-size:8px;font-weight:700}
.storage-pip,.sync-status i{width:6px;height:6px;border-radius:50%;background:#83b289}
.storage-card strong{display:block;margin-top:9px;font-size:10px}
.storage-card p{margin:4px 0 0;color:#969c94;font-size:9px}
.profile{display:flex;align-items:center;gap:9px;padding:14px 5px 2px;border-top:1px solid #eef0ec}
.profile-avatar,.avatar-small{display:grid;place-items:center;border:0;border-radius:50%;background:#e3eee4;color:#386149;font-weight:700}
.profile-avatar{width:31px;height:31px;font-size:11px}
.profile strong,.profile span{display:block}
.profile strong{font-size:10px;font-weight:600}
.profile span{margin-top:3px;color:#9a9f98;font-size:9px}
.profile .profile-more{margin-right:auto;font-size:16px}
.main-shell{min-height:100vh;margin-right:248px;margin-left:0}
.topbar{height:57px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;background:rgba(255,255,255,.88);border-bottom:1px solid var(--line)}
.breadcrumbs{display:flex;align-items:center;gap:10px;color:#a0a59e;font-size:10px}
.breadcrumbs b{color:#c5cec4;font-weight:400}
.breadcrumbs strong{display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid #e0e9df;border-radius:7px;background:linear-gradient(135deg,#f0f6ef,#f8faf6);color:#315b40;font-size:10px;font-weight:700;box-shadow:0 2px 5px #2849320b,inset 0 1px 0 #fff}
.breadcrumbs strong::before{content:'ع';display:grid;place-items:center;width:19px;height:19px;border-radius:6px;background:#315f43;color:#fff;font:12px var(--uy)}
.top-actions{display:flex;align-items:center;gap:12px}
.sync-status{color:#8a9389;font-size:9px}
.sync-status i{display:inline-block;margin-left:6px;vertical-align:1px}
.avatar-small{width:28px;height:28px;font-size:10px}
.logout-button{padding:6px 9px;border:1px solid #e8ece6;border-radius:5px;background:#fff;color:#758174;font-size:9px}
.logout-button:hover{border-color:#cfdbce;background:#f6faf5;color:#42654a}
.page-content{max-width:1160px;margin:0 auto;padding:35px 42px 25px}
.welcome-row{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:25px}
.eyebrow{display:flex;align-items:center;gap:8px;color:#8c988c;font-size:8px;font-weight:700;letter-spacing:.4px}
.eyebrow-line{display:inline-block;width:17px;height:1px;background:#91a78e}
.welcome-row h1{margin:12px 0 6px;font:600 30px/1.5 var(--display);letter-spacing:-.5px}
.welcome-row h1 em{color:#5b8064;font-style:normal}
.page-subtitle{margin:0;color:#878e86;font-size:10px}
.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border:1px solid var(--green);border-radius:6px;background:var(--green);color:#fff;font-size:10px;font-weight:600;box-shadow:0 2px 4px #173d2917;transition:background .18s,transform .18s}
.primary-button:hover{transform:translateY(-1px);background:var(--green-dark)}
.primary-button:disabled{opacity:.48;cursor:not-allowed}
.primary-button span{font-size:14px;line-height:1}
.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:31px}
.stat-card{position:relative;display:flex;align-items:flex-start;gap:12px;height:105px;overflow:hidden;padding:15px;background:#fff;border:1px solid #e9ece6;border-radius:8px}
.stat-icon{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:7px;font-size:14px}
.green-icon{background:#eaf3eb;color:#47744e}.sand-icon{background:#f8f1e5;color:#ab8855}.blue-icon{background:#eaf1f6;color:#608198}
.stat-label{display:block;color:#929a91;font-size:8px;font-weight:700}
.stat-card strong{display:block;margin-top:5px;font:700 22px var(--display)}
.stat-card small{display:block;margin-top:2px;color:#9aa098;font-size:8px}
.stat-total small{color:#6b9b71}.stat-spark{margin-left:3px;color:#76a47b}
.stat-watermark{position:absolute;left:20px;bottom:-21px;color:#f4f7f2;font:700 98px var(--uy)}
.letter-tiles{position:absolute;left:18px;top:34px;display:flex;gap:4px}
.letter-tiles i{display:grid;place-items:center;width:20px;height:23px;border:1px solid #ebeee8;border-radius:4px;background:#fcfdfa;color:#809380;font:500 12px var(--uy)}
.stat-word{margin-top:8px!important;font:600 14px var(--display)!important}
.stat-shortcut{margin-right:auto;padding:3px 6px;border:1px solid #e9ece7;border-radius:4px;background:#fafbf9;color:#9ba198;font-size:8px}
.section-heading,.public-list-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:14px}
.section-heading h2{margin:0 0 4px;font:700 15px var(--display)}
.section-heading p{margin:0;color:#959b94;font-size:9px}
.text-button{padding:7px 4px;border:0;background:transparent;color:#5d7861;font-size:10px;font-weight:600}
.search-box{display:flex;align-items:center;gap:9px;width:min(100%,360px);min-width:230px;height:35px;padding:0 10px;border:1px solid #e7eae4;border-radius:6px;background:#fff;color:#9ca39a}
.search-box>span{font-size:19px;line-height:1}
.search-box input{width:100%;min-width:0;border:0;outline:0;background:none;color:#455047;font-size:10px}
.search-box input::placeholder{color:#b0b5ae}
.search-box kbd{white-space:nowrap;padding:2px 4px;border:1px solid #eceee9;border-radius:3px;color:#a7ada5;font-size:8px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}
.toolbar-right{display:flex;align-items:center;gap:6px}.result-count{margin-left:7px;color:#929890;font-size:9px}
.view-toggle{width:27px;height:26px;border:1px solid transparent;border-radius:4px;background:transparent;color:#a2a9a1;font-size:12px}.view-toggle.selected{border-color:#e4e9e2;background:#fff;color:#537059}
.table-card{overflow:hidden;border:1px solid #e8ebe5;border-radius:8px;background:#fff}
.table-head,.term-row{display:grid;grid-template-columns:32px minmax(150px,.85fr) minmax(180px,1.65fr) 105px 48px;align-items:center;column-gap:9px;padding:0 14px}
.table-head{height:37px;border-bottom:1px solid #eceee9;background:#fbfcfa;color:#9ba198;font-size:8px;font-weight:700}
.term-col span{margin-right:3px;color:#b1b9b0;font-size:10px}
.term-row{min-height:60px;border-bottom:1px solid #f0f1ee;transition:background .15s}.term-row:last-child{border-bottom:0}.term-row:hover{background:#fcfdfb}
.check-wrap{display:inline-flex;align-items:center;justify-content:center}.check-wrap input{position:absolute;opacity:0}.check-wrap span{display:block;width:13px;height:13px;border:1px solid #dce1d9;border-radius:3px;background:#fff}.check-wrap input:checked+span{position:relative;border-color:#39734d;background:#39734d}.check-wrap input:checked+span:after{position:absolute;top:-1px;right:2px;color:#fff;content:'✓';font-size:9px}
.term-name{color:#34483a;font:600 13px/1.8 var(--uy);unicode-bidi:plaintext}.term-definition{display:-webkit-box;overflow:hidden;color:#7e867e;font:400 10px/1.75 var(--uy);-webkit-box-orient:vertical;-webkit-line-clamp:2;unicode-bidi:plaintext}.updated-cell{color:#a0a69f;font-size:8px}.row-actions{display:flex;gap:3px}.action-btn{padding:5px;border:0;border-radius:4px;background:transparent;color:#9aa29a;font-size:12px}.action-btn:hover{background:#eff4ef;color:#47744e}.action-btn.delete:hover{background:#f9eeee;color:#b76464}
.table-footer{height:43px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-top:1px solid #eceee9;color:#9ba198;font-size:8px}.pagination{display:flex;align-items:center;gap:6px}.pagination button{width:24px;height:24px;border:1px solid #e8ebe5;border-radius:4px;background:#fff;color:#7a8579;font-size:15px}.pagination button:disabled{opacity:.4;cursor:default}.pagination span{min-width:30px;text-align:center;color:#5d685f}
.empty-state{text-align:center;padding:38px 18px}.empty-icon{display:grid;place-items:center;width:38px;height:38px;margin:0 auto 10px;border-radius:50%;background:#f1f5ef;color:#69856d;font-size:22px}.empty-state h3{margin:0;font:600 14px var(--display)}.empty-state p{margin:6px auto 8px;color:#919991;font-size:9px}.hidden{display:none!important}.page-foot{display:flex;justify-content:space-between;margin:15px 2px;color:#a4aaa2;font-size:8px}.page-foot>span:last-child{font-size:8px}.page-foot i{display:inline-block;width:5px;height:5px;margin-right:5px;border-radius:50%;background:#91b695;vertical-align:1px}
.bulk-bar{display:flex;align-items:center;gap:14px;margin:0 0 8px;padding:8px 11px;border:1px solid #e0ecdf;border-radius:6px;background:#edf5ed;color:#57735b;font-size:9px}.bulk-bar button{border:0;background:transparent;color:#a55656;font-size:9px;font-weight:600}.bulk-bar .bulk-clear{margin-right:auto;color:#718276}
.import-view{padding-top:35px}.quiet-button,.outline-button{padding:9px 12px;border:1px solid #e4e9e1;border-radius:6px;background:#fff;color:#68746a;font-size:9px;font-weight:600}.import-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;align-items:start;gap:14px}.import-main,.import-aside{display:grid;gap:12px}.panel-card{padding:18px;border:1px solid #e8ebe5;border-radius:8px;background:#fff}.panel-title{display:flex;align-items:center;gap:10px}.panel-symbol{display:grid;place-items:center;width:29px;height:29px;border-radius:7px;background:#eaf3eb;color:#507658;font-size:16px}.panel-title h2{margin:0;font:700 12px var(--display)}.panel-title p{margin:4px 0 0;color:#979e96;font-size:8px}.dropzone{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;height:140px;margin-top:16px;border:1px dashed #d5ded4;border-radius:7px;background:#fbfcfa;transition:.2s}.dropzone.dragging{border-color:#7fa387;background:#eff7ef}.upload-symbol{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#eaf2e9;color:#608364;font-size:19px}.dropzone strong{color:#59645a;font-size:9px;font-weight:500}.dropzone strong button{padding:0;border:0;background:none;color:#4f8058;font-size:9px;font-weight:700;text-decoration:underline}.dropzone>span{color:#a0a69f;font-size:8px}.file-preview{display:flex;align-items:center;gap:9px;margin-top:11px;padding:8px;border:1px solid #e7ebe5;border-radius:6px}.file-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:5px;background:#eef4ee;color:#66816b}.file-preview strong,.file-preview span{display:block}.file-preview strong{font-size:9px}.file-preview div span{margin-top:3px;color:#939b91;font-size:8px}.file-preview>button{margin-right:auto;border:0;background:transparent;color:#99a198;font-size:18px}.import-options{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:14px}.import-options label{display:grid;gap:6px;color:#939b91;font-size:8px;font-weight:700}.import-options select{min-width:245px;height:34px;padding:0 9px;border:1px solid #e7ebe5;border-radius:5px;background:#fff;color:#59645b;font-size:9px}.paste-card{padding-bottom:14px}.paste-symbol{background:#f1f2f7;color:#787c9a}.format-pill{margin-right:auto;padding:5px 7px;border:1px solid #eceee9;border-radius:4px;color:#9aa198;font-size:8px}.paste-card textarea{width:100%;height:100px;margin-top:15px;padding:10px;border:1px solid #e8ebe5;border-radius:6px;outline:0;color:#576057;font:10px/1.7 var(--uy);resize:vertical}.paste-card textarea:focus,.term-modal input:focus,.term-modal textarea:focus{border-color:#92ad94;box-shadow:0 0 0 3px #e9f2e9}.paste-card textarea::placeholder{color:#b1b7b0}.paste-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}.paste-footer>span{color:#9aa198;font-size:8px}.outline-button{padding:7px 9px;font-size:8px}.outline-button span{margin-right:4px;color:#628268}.help-card{padding:16px;border:1px solid #e2ebe0;border-radius:8px;background:#eef4ed}.help-spark{color:#719275;font-size:16px}.help-card h3{margin:7px 0 5px;font:700 12px var(--display)}.help-card>p{margin:0 0 13px;color:#7f897e;font-size:8px;line-height:1.8}.format-example{display:grid;grid-template-columns:70px 1fr;overflow:hidden;border:1px solid #e2e9df;border-radius:5px;background:#fff}.format-example div{overflow:hidden;padding:7px;font:8px var(--uy);color:#727e71;text-overflow:ellipsis;white-space:nowrap}.format-example div:nth-child(-n+2){background:#f9fbf8;color:#9ba49a;font-size:7px;font-weight:700}.format-example div:nth-child(odd){border-right:1px solid #edf0eb}.format-note{display:flex;align-items:center;gap:7px;margin-top:9px;color:#7c887b;font-size:8px}.format-note span{color:#75a079;font-size:11px}.safe-note{display:flex;gap:8px;padding:12px;border:1px solid #e8ebe5;border-radius:7px;background:#fff;color:#77a07c}.safe-note>span{font-size:15px}.safe-note strong{color:#566257;font-size:8px}.safe-note p{margin:4px 0 0;color:#989f97;font-size:8px;line-height:1.7}
.modal-backdrop{position:fixed;inset:0;z-index:5;display:grid;place-items:center;padding:20px;background:#17271f52}.term-modal{width:min(100%,480px);padding:23px;border-radius:10px;background:#fff;box-shadow:0 18px 65px #17271f30}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:19px}.modal-head h2{margin:8px 0 0;font:700 19px var(--display)}.modal-close{width:28px;height:28px;border:0;border-radius:50%;background:#f4f6f2;color:#798379;font-size:18px}.field-label{display:flex;justify-content:space-between;margin:13px 0 6px;color:#7c887d;font-size:8px;font-weight:700}.field-label span{color:#b0b7ae;font-size:8px;font-weight:400}.term-modal input,.term-modal textarea{width:100%;padding:9px;border:1px solid #e5e9e2;border-radius:5px;outline:0;color:#475448;font:12px var(--uy)}.term-modal input{height:39px}.term-modal textarea{height:130px;font-size:11px;line-height:1.8;resize:vertical}.term-modal input::placeholder,.term-modal textarea::placeholder{color:#adb4ac}.modal-footer{display:flex;justify-content:flex-start;gap:8px;margin-top:15px}.toast{position:fixed;bottom:22px;left:50%;z-index:7;transform:translate(-50%,18px);padding:10px 15px;border-radius:6px;background:#233b2d;color:#fff;font-size:9px;opacity:0;pointer-events:none;box-shadow:0 6px 22px #182c1e33;transition:.22s}.toast.show{transform:translate(-50%,0);opacity:1}.toast.error{background:#8f4d49}
.public-header .brand{gap:11px}.public-header .brand>span:last-child{padding:6px 11px;border:1px solid #e6ede4;border-radius:7px;background:linear-gradient(135deg,#f0f6ef,#fff);color:#315b40;font-size:19px;box-shadow:inset 0 1px #fff}.public-header .brand-mark{width:34px;height:34px}
.logout-button{white-space:nowrap}
.login-body{min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(ellipse at 50% 0%,#eaf2e8 0%,#f7f8f4 48%)}.login-brand{position:absolute;top:24px;right:28px}.login-card{width:min(100%,390px);padding:30px;background:#fff;border:1px solid #e8ece5;border-radius:11px;box-shadow:0 15px 45px #253b2a12}.login-emblem{display:grid;place-items:center;width:42px;height:42px;margin-bottom:17px;border-radius:11px;background:#eaf3eb;color:#416d4b;font:600 20px var(--uy)}.login-card .eyebrow{margin-bottom:8px}.login-card h1{margin:0;font:700 20px/1.6 var(--display);color:#27392c}.login-intro{margin:5px 0 20px;color:#899188;font-size:10px}.login-card form label{display:block;margin-bottom:7px;color:#69776a;font-size:9px;font-weight:700}.login-card form input{width:100%;height:41px;padding:0 11px;border:1px solid #e1e8df;border-radius:6px;outline:0;direction:ltr;text-align:left;font:15px var(--font)}.login-card form input:focus{border-color:#92ad94;box-shadow:0 0 0 3px #e9f2e9}.login-card form .primary-button{width:100%;margin-top:15px}.login-error{margin:8px 0 0;color:#a74d49;font-size:9px}.login-back{display:block;margin-top:17px;color:#768476;text-align:center;text-decoration:none;font-size:9px}.login-back:hover{color:#3e6949}
@media(max-width:1100px){.sidebar{width:205px}.main-shell{margin-right:205px}.topbar{padding:0 28px}.page-content{padding-right:28px;padding-left:28px}.table-head,.term-row{grid-template-columns:28px minmax(130px,.85fr) minmax(150px,1.5fr) 85px 42px;column-gap:7px}.import-layout{grid-template-columns:minmax(0,1fr) 220px}}
@media(max-width:800px){.sidebar{position:static;inset:auto;width:auto;height:auto;min-height:58px;display:grid;grid-template-columns:1fr;padding:9px 18px;border:0;border-bottom:1px solid var(--line)}.brand{justify-self:start}.workspace-label,.sidebar-bottom{display:none}.side-nav{display:flex;gap:5px;margin-top:7px}.nav-item{flex:1;justify-content:center;padding:8px 5px;font-size:10px}.nav-count{margin-right:0}.main-shell{margin:0}.topbar{height:46px;padding:0 20px}.page-content{padding:27px 20px 22px}.stats-grid{gap:8px}.stat-card{gap:8px;padding:12px}.table-head,.term-row{grid-template-columns:25px minmax(115px,.8fr) minmax(130px,1.4fr) 38px;column-gap:7px}.updated-col,.updated-cell{display:none}.row-actions{justify-content:flex-end}.import-layout{grid-template-columns:1fr}.import-aside{grid-template-columns:1fr 1fr}.help-card{grid-row:span 2}}
@media(max-width:560px){.sidebar{padding:8px 14px}.nav-item{font-size:9px}.topbar{height:44px;padding:0 14px}.sync-status{font-size:8px}.page-content{padding:22px 14px}.welcome-row{align-items:flex-start;gap:10px;margin-bottom:22px}.welcome-row h1{font-size:23px;line-height:1.65}.page-subtitle{max-width:225px;font-size:9px;line-height:1.7}.welcome-row>.primary-button{margin-top:20px;padding:8px 9px;white-space:nowrap;font-size:8px}.stats-grid{grid-template-columns:1fr 1fr;margin-bottom:25px}.stat-card{height:96px}.stat-card:last-child{display:none}.stat-card strong{font-size:19px}.stat-card small{font-size:7px}.stat-label{font-size:7px}.section-heading h2{font-size:14px}.section-heading p{font-size:8px}.search-box{flex:1;min-width:0}.search-box kbd{display:none}.toolbar{gap:6px}.result-count{margin:0;font-size:8px}.view-toggle{display:none}.table-head,.term-row{grid-template-columns:21px minmax(100px,.85fr) minmax(88px,1fr) 28px;padding:0 8px;column-gap:5px}.table-head{font-size:7px}.definition-col{font-size:7px}.term-name{font-size:11px}.term-definition{font-size:8px;-webkit-line-clamp:2}.term-row{min-height:63px}.action-btn{padding:4px 2px}.table-footer{padding:0 9px}.page-foot{font-size:7px}.import-view .welcome-row{display:block}.import-view .welcome-row>.quiet-button{margin-top:12px}.panel-card{padding:13px}.import-options{align-items:stretch;flex-direction:column}.import-options select{min-width:0;width:100%}.import-options .primary-button{align-self:flex-start}.paste-footer{align-items:flex-start;flex-direction:column}.format-pill{font-size:7px}.import-aside{grid-template-columns:1fr}.help-card{grid-row:auto}.term-modal{padding:18px}.logout-button{padding:5px 6px;font-size:8px}.login-brand{top:15px;right:14px}.login-card{padding:23px}}
.public-header .brand-mark svg{width:19px;height:19px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.6}
.import-preview{border-color:#dfe9de;background:linear-gradient(140deg,#fff,#fbfdfb)}.preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.preview-heading h2{margin:0;font:700 13px var(--display)}.preview-heading p{margin:4px 0 0;color:#899489;font-size:9px}.preview-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:15px 0 12px}.preview-stats>div{display:flex;align-items:baseline;gap:6px;padding:9px;border:1px solid #e9eee7;border-radius:6px;background:#fff}.preview-stats strong{color:#365d40;font:700 16px var(--display)}.preview-stats span{color:#8c968b;font-size:8px}.preview-rows{overflow:hidden;border:1px solid #edf0eb;border-radius:6px;background:#fff}.preview-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px;padding:6px 10px;border-bottom:1px solid #f0f2ee;color:#526052;font:10px var(--uy)}.preview-row:last-child{border-bottom:0}.preview-status{flex:none;padding:3px 6px;border-radius:10px;font:8px var(--font)}.preview-status.new{background:#eaf4eb;color:#4d7d54}.preview-status.updated{background:#edf2f8;color:#607c9a}.preview-status.duplicate{background:#fbf2e5;color:#9a7945}.preview-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px}.preview-actions>span{color:#9ba398;font-size:8px}.preview-actions .primary-button{font-size:9px}
@media(max-width:560px){.preview-stats{grid-template-columns:1fr 1fr}.preview-stats>div{padding:7px}.preview-heading h2{font-size:11px}.preview-actions{align-items:flex-start;flex-direction:column}.preview-actions .primary-button{align-self:flex-start}}
.toast.show{pointer-events:auto}.toast-undo{margin-inline-start:8px;padding:3px 7px;border:1px solid #ffffff55;border-radius:4px;background:#ffffff16;color:#fff;font:600 9px var(--uy);cursor:pointer}.toast-undo:disabled{opacity:.55;cursor:wait}
.search-highlight { background: #e8d6a8; color: inherit; border-radius: 3px; padding: 0 .08em; }
.read-more,.random-read-more{text-decoration:none;cursor:pointer}.detail-main{max-width:850px;min-height:calc(100vh - 76px);padding-top:38px}.detail-back{display:inline-block;margin-bottom:17px;color:#728374;font-size:10px;text-decoration:none}.detail-back:hover{color:#315f43}.term-detail-card{min-height:290px;padding:27px 30px;border:1px solid #e8ece5;border-radius:9px;background:#fff;box-shadow:0 12px 35px #263b2908}.detail-top{display:flex;align-items:center;justify-content:space-between}.term-detail-card h1{margin:22px 0 14px;color:#354a39;font:700 32px/1.6 var(--uy);unicode-bidi:plaintext}.detail-rule{width:42px;height:2px;background:#91b695}.term-detail-card>p{margin:20px 0 27px;color:#68746a;font:400 17px/2.1 var(--uy);white-space:pre-wrap;unicode-bidi:plaintext}.detail-share{padding:9px 12px;border:1px solid #e1e9df;border-radius:6px;background:#f9fbf8;color:#55755a;font:500 10px var(--uy);cursor:pointer}.detail-share span{margin-right:7px}.detail-main .public-footer{margin-top:35px}.detail-error{text-align:center;padding:55px 15px}.detail-error>span{color:#79947b;font-size:25px}.detail-error h1{margin:7px 0 12px;font:600 17px var(--uy)}.detail-error a{color:#55755a;font-size:10px}.detail-toast{position:fixed;bottom:22px;right:50%;transform:translate(50%,12px);opacity:0;pointer-events:none;transition:.2s}.detail-toast.show{transform:translate(50%,0);opacity:1}
@media(max-width:560px){.detail-main{min-height:calc(100vh - 62px);padding-top:23px}.term-detail-card{min-height:250px;padding:20px 17px}.term-detail-card h1{font-size:25px}.term-detail-card>p{font-size:15px}}
:focus-visible{outline:2px solid #6c9972;outline-offset:3px}input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #6c9972;outline-offset:1px}.check-wrap input:focus-visible+span{outline:2px solid #6c9972;outline-offset:3px}.public-grid.is-loading{opacity:.48;pointer-events:none;transition:opacity .15s}.public-loading{display:flex;align-items:center;gap:8px;padding:17px 0;color:#718373;font-size:10px}.public-loading:before{width:12px;height:12px;border:2px solid #e2eae0;border-top-color:#6f9273;border-radius:50%;content:"";animation:terms-spin .7s linear infinite}.public-loading.hidden{display:none}#term-rows.is-loading{opacity:.48;pointer-events:none}#term-rows{transition:opacity .15s}@keyframes terms-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media(min-width:1200px){
  .workspace-label{font-size:10px}.nav-item{font-size:12px}.nav-count,.profile span,.storage-card p,.breadcrumbs,.sync-status,.logout-button{font-size:10px}.storage-top{font-size:9px}.storage-card strong,.profile strong{font-size:11px}
  .breadcrumbs strong{font-size:11px}.welcome-row h1{font-size:32px}.eyebrow{font-size:9px}.page-subtitle{font-size:11px}.primary-button,.text-button{font-size:11px}.stat-label,.stat-card small{font-size:9px}.section-heading h2{font-size:16px}.section-heading p{font-size:10px}.search-box input{font-size:11px}.result-count{font-size:10px}.table-head{font-size:9px}.term-name{font-size:14px}.term-definition{font-size:11px}.updated-cell{font-size:9px}.action-btn{font-size:13px}.table-footer{font-size:9px}.bulk-bar,.bulk-bar button{font-size:10px}.term-modal input{font-size:13px}.term-modal textarea{font-size:12px}.field-label{font-size:9px}.logout-button{font-size:10px}
  .admin-link{font-size:12px}.public-hero .eyebrow{font-size:10px}.public-hero h1{font-size:42px}.public-hero>p{font-size:13px}.public-search input{font-size:12px}.public-search kbd{font-size:10px}.public-stats{font-size:11px}.public-stats strong{font-size:13px}.public-list-heading h2{font-size:19px}.public-list-heading p{font-size:11px}.public-results{font-size:10px}.public-term-card h3{font-size:18px}.public-definition{font-size:12px}.read-more,.random-read-more,.another-term{font-size:10px}.random-label{font-size:11px}.random-entry,.letter-chip small{font-size:9px}.random-copy h2{font-size:22px}.random-copy p{font-size:12px}.letter-section .public-list-heading h2{font-size:16px}.letter-section .public-list-heading p{font-size:10px}.letter-chip span{font-size:15px}.public-pagination,.public-footer{font-size:10px}.public-pagination button{font-size:10px}
}
.mission-note{display:flex;align-items:flex-start;gap:12px;max-width:930px;margin:-8px auto 31px;padding:15px 17px;border:1px solid #e5ece3;border-right:3px solid #88a58a;border-radius:6px;background:linear-gradient(120deg,#fff,#fbfdfb)}.mission-note>span{display:grid;place-items:center;flex:none;width:25px;height:25px;border-radius:7px;background:#edf4eb;color:#648168;font:14px var(--uy)}.mission-note p{margin:0;color:#778176;font:400 11px/2 var(--uy);unicode-bidi:plaintext}.mission-note{direction:rtl}@media(min-width:1200px){.mission-note p{font-size:12px}}@media(max-width:560px){.mission-note{gap:9px;margin:0 auto 25px;padding:12px}.mission-note p{font-size:10px;line-height:1.9}.mission-note>span{width:22px;height:22px;font-size:12px}}
.public-header-actions{display:flex;align-items:center;gap:8px}.font-size-controls{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid #e4e9e2;border-radius:6px;background:#fff}.font-size-controls button{display:grid;place-items:center;width:27px;height:25px;padding:0;border:0;border-radius:4px;background:transparent;color:#55745b;font:600 16px/1 var(--font);cursor:pointer}.font-size-controls button:hover:not(:disabled){background:#edf4ed}.font-size-controls button:disabled{opacity:.38;cursor:default}.top-actions .font-size-controls{margin-inline-start:2px}.login-font-size{position:absolute;top:22px;left:max(calc((100vw - 1100px)/2),18px);z-index:2}
@media(max-width:560px){.public-header-actions{gap:5px}.public-header-actions .font-size-controls{gap:1px;padding:2px}.public-header-actions .font-size-controls button{width:22px;height:23px;font-size:14px}.public-header-actions .admin-link{padding:8px 7px}.top-actions .font-size-controls button{width:23px;height:23px}.topbar .sync-status,.topbar .breadcrumbs>span,.topbar .breadcrumbs>b{display:none}}

/* Public pages: a restrained editorial rhythm with clear Uyghur reading measures. */
:root{
  --type-display:42px;
  --type-section:21px;
  --type-article:21px;
  --type-body:16px;
  --type-metadata:11px;
  --type-ui-label:13px;
}
.public-body{font-size:var(--type-body);line-height:1.85}
.public-header{gap:18px}
.public-header .brand-mark,.public-header-actions .font-size-controls button,.public-header-actions .admin-link{height:34px}
.public-header .brand-mark{width:34px;align-self:center}
.public-header-actions{align-items:center;gap:7px}
.public-header-actions .font-size-controls{height:36px;align-items:center;gap:1px;padding:2px;border-radius:5px}
.public-header-actions .font-size-controls button{width:30px;border-radius:3px;line-height:1}
.public-header-actions .admin-link{justify-content:center;padding:0 11px;border-radius:5px;font-size:var(--type-ui-label);font-weight:500}
.public-hero{padding-bottom:22px}
.public-hero h1{max-width:780px;margin-inline:auto;font-size:var(--type-display);line-height:1.48;text-wrap:balance;letter-spacing:-.7px}
.public-hero>p{font-size:var(--type-ui-label);line-height:1.8}
.hero-ornament{font-size:142px;opacity:.47;color:#e9efe8}
.public-search{height:50px;margin:18px auto 10px;border:1px solid #dfe8dc;border-right:3px solid #9bb69b;border-radius:5px;box-shadow:0 3px 12px #263b2908;transition:border-color .18s,box-shadow .18s,background-color .18s}
.public-search:hover{border-color:#c9d9c8;background:#fff}
.public-search:focus-within{border-color:#789a7b;box-shadow:0 0 0 3px #e9f1e8,0 4px 12px #263b2908}
.public-search>span{color:#779277}
.public-search>button{display:grid;place-items:center;flex:none;width:31px;height:34px;padding:0;border:0;border-radius:3px;background:transparent;color:#718d71;font:24px/1 var(--uy);cursor:pointer;transition:background-color .16s,color .16s}
.public-search>button:hover{background:#eff5ee;color:#315f43}
.public-search input{font-size:var(--type-ui-label)}
.public-search kbd{border-color:#f0f2ed;color:#b2b8af;background:#fafbf9;font-size:9px;font-weight:400;box-shadow:none}
.public-stats{font-size:var(--type-metadata)}
.public-stats strong{font-size:13px;font-weight:600}
.mission-note{display:block;max-width:930px;margin:0 auto 27px;padding:0 15px 0 0;border:0;border-right:1px solid #bacbb9;border-radius:0;background:transparent}
.mission-copy{max-width:810px}
.mission-label{display:block;margin:0 0 5px;color:#728874;font-size:var(--type-metadata);font-weight:500;letter-spacing:.02em}
.mission-note p{color:#758074;font-size:var(--type-ui-label);line-height:2.05}
.random-section,.letter-section,.public-list-section{direction:rtl;text-align:right}
.random-section{max-width:820px;margin-bottom:31px}
.random-label{font-size:var(--type-metadata);font-weight:500}
.random-card{min-height:148px;padding:22px 24px 19px;border:1px solid #e7ebe4;border-radius:5px;box-shadow:none;transition:border-color .18s,background-color .18s}
.random-card:after{font-size:116px;opacity:.5}
.random-mark{width:33px;height:33px;border-radius:5px;font-size:15px}
.random-entry{font-size:var(--type-metadata);letter-spacing:0}
.random-copy{max-width:68ch}
.random-copy h2{font-size:var(--type-article);line-height:1.8}
.random-copy p{font-size:var(--type-body);line-height:2.05}
.another-term{font-size:var(--type-metadata)}
.letter-section{max-width:930px;margin-inline:auto}
.letter-section .public-list-heading h2,.public-list-heading h2{font-size:var(--type-section);line-height:1.65}
.letter-section .public-list-heading p,.public-list-heading p{font-size:var(--type-ui-label);line-height:1.8}
.letter-chip{border-color:#e9ede7;border-radius:4px;background:transparent;transition:background-color .15s,border-color .15s}
.letter-chip:hover,.letter-chip.active{border-color:#a9bda8;background:#f0f5ef}
.letter-chip span{font-size:16px}
.letter-chip small{font-size:var(--type-metadata)}
.public-list-section{max-width:960px;margin-inline:auto;padding-top:25px}
.public-list-section{scroll-margin-top:20px}
.public-grid{gap:0 24px}
.public-term-card{position:relative;min-height:220px;padding:18px 0 16px;border:0;border-bottom:1px solid #e5eae3;border-radius:2px;background:transparent;color:inherit;text-decoration:none;transition:background-color .16s,border-color .16s,transform .16s}
.public-term-card:hover{transform:translateY(-1px);border-color:#cbd8c9;background:#ffffff80;box-shadow:none}
.public-term-card:focus-visible{outline:2px solid #6c9972;outline-offset:3px}
.public-term-top{justify-content:flex-start}
.public-entry-number{color:#97a195;font-size:var(--type-metadata);letter-spacing:0}
.public-term-card h3{margin:10px 0 7px;color:#2e4734;font-size:var(--type-article);font-weight:600;line-height:1.75}
.public-definition{max-width:52ch;color:#707b70;font-size:var(--type-body);line-height:2.05}
.public-term-card .read-more{align-self:flex-start;margin-top:auto;padding-top:13px;color:#668069;font-size:var(--type-metadata);font-weight:500}
.public-term-card .read-more span{margin-right:4px}
.public-pagination{font-size:var(--type-metadata)}
.public-pagination button{border-radius:4px;font-size:var(--type-metadata)}
.public-footer{font-size:var(--type-metadata)}
.detail-main{max-width:760px;padding-top:34px}
.detail-back{font-size:var(--type-metadata)}
.term-detail-card{padding:30px 34px;border:0;border-right:2px solid #cfddce;border-radius:2px;background:#fff;box-shadow:none}
.term-detail-card h1{font-size:30px;line-height:1.7}
.term-detail-card>p{max-width:68ch;margin-right:0;color:#626f64;font-size:var(--type-body);line-height:2.15}
.random-card{min-height:0;padding:23px 3px 21px;border:0;border-top:1px solid #e4eae2;border-bottom:1px solid #e4eae2;border-radius:0;background:transparent}
.random-card:after{display:none}
.random-copy{max-width:68ch}
.random-copy h2{margin:9px 0 8px;font-size:24px;line-height:1.8}
.random-copy p{font-size:var(--type-body);line-height:2.1}
.term-dialog{width:min(720px,calc(100vw - 28px));max-height:min(84vh,760px);margin:auto;padding:clamp(19px,4vw,34px);overflow:auto;border:0;border-right:2px solid #9ab39a;border-radius:5px;background:#fff;color:var(--ink);box-shadow:0 22px 70px #17271f33;direction:rtl;text-align:right}
.term-dialog::backdrop{background:#17271f70;backdrop-filter:blur(2px)}
.term-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:14px}
.term-dialog-number{color:#8d998c;font-size:var(--type-metadata)}
.term-dialog-close{display:grid;place-items:center;flex:none;width:34px;height:34px;border:1px solid #e5ebe3;border-radius:4px;background:#fff;color:#667567;font:24px/1 var(--font);cursor:pointer;transition:background-color .15s,border-color .15s}
.term-dialog-close:hover{border-color:#c6d6c4;background:#f3f7f2}
.term-dialog h2{margin:19px 0 12px;color:#304a36;font:600 var(--type-article)/1.8 var(--uy);unicode-bidi:plaintext}
.term-dialog .detail-rule{margin-bottom:20px}
.term-dialog>p{margin:0;color:#626f64;font:400 var(--type-body)/2.1 var(--uy);white-space:pre-wrap;unicode-bidi:plaintext;overflow-wrap:anywhere}
.term-dialog:focus-visible{outline:0}

@media(max-width:1024px){
  :root{--type-display:39px;--type-section:20px;--type-article:20px;--type-body:15px}
  .public-header{padding-inline:30px}
  .public-main{padding-inline:30px}
  .hero-ornament{right:7%;font-size:118px;opacity:.35}
  .public-list-section{max-width:900px}
}
@media(max-width:767px){
  :root{--type-display:34px;--type-section:19px;--type-article:19px;--type-body:15px;--type-ui-label:12px}
  .public-header{height:62px;padding-inline:22px}
  .public-main{padding-inline:24px}
  .public-hero{padding:43px 8px 19px}
  .public-hero h1{max-width:620px;line-height:1.52;letter-spacing:-.3px}
  .hero-ornament{display:none}
  .public-hero>p{max-width:500px;margin-inline:auto}
  .public-search{height:48px;margin-top:16px;margin-bottom:9px}
  .public-search kbd{display:none}
  .mission-note{max-width:680px;margin-bottom:25px}
  .random-section{max-width:680px}
  .random-card{padding:19px 2px 17px}
  .letter-section{max-width:680px}
  .public-list-section{max-width:680px}
  .public-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px}
  .public-term-card{min-height:210px}
  .detail-main{max-width:680px}
}
@media(max-width:560px){
  :root{--type-display:30px;--type-section:18px;--type-article:19px;--type-body:15px;--type-metadata:11px;--type-ui-label:12px}
  .public-header{height:58px;padding-inline:14px}
  .public-header .brand{gap:8px;font-size:17px}
  .public-header .brand-mark{width:30px;height:30px}
  .public-header-actions{gap:5px}
  .public-header-actions .font-size-controls{height:31px}
  .public-header-actions .font-size-controls button{width:24px;height:27px;font-size:14px}
  .public-header-actions .admin-link{height:31px;padding-inline:8px;font-size:11px}
  .public-main{padding-inline:16px}
  .public-hero{padding:35px 4px 17px}
  .public-hero .eyebrow{font-size:9px}
  .public-hero h1{max-width:350px;font-size:var(--type-display);line-height:1.55;letter-spacing:0}
  .public-hero>p{max-width:330px;font-size:11px;line-height:1.9}
  .public-search{height:46px;margin-top:15px;margin-bottom:8px;padding-inline:11px;gap:9px}
  .public-search>span{font-size:20px}
  .public-search>button{width:27px;height:31px;font-size:21px}
  .public-search input{font-size:12px}
  .public-stats{gap:10px}
  .mission-note{margin:0 1px 23px;padding-right:11px}
  .mission-note p{font-size:12px;line-height:2}
  .random-section{margin-bottom:26px}
  .random-label{gap:6px}
  .random-card{min-height:0;margin-top:9px;padding:16px 2px 15px;gap:10px}
  .random-entry{font-size:10px}
  .random-copy h2{font-size:18px;line-height:1.8}
  .random-copy p{font-size:13px;line-height:2}
  .another-term{font-size:11px}
  .letter-section{margin-bottom:22px}
  .letter-section .public-list-heading{margin-bottom:10px}
  .letter-section .public-list-heading h2,.public-list-heading h2{font-size:17px}
  .letter-section .public-list-heading p,.public-list-heading p{font-size:11px}
  .letter-list{gap:5px}
  .letter-chip{min-width:52px;padding:6px 7px}
  .letter-chip span{font-size:15px}
  .letter-chip small{font-size:10px}
  .public-list-section{padding-top:17px}
  .public-grid{grid-template-columns:1fr;gap:0}
  .public-term-card{min-height:0;padding:15px 2px 16px}
  .public-term-card h3{margin:7px 0 5px;font-size:19px;line-height:1.8}
  .public-definition{max-width:58ch;font-size:14px;line-height:2.05;-webkit-line-clamp:3}
  .public-term-card .read-more{padding-top:9px;font-size:11px}
  .public-footer{gap:12px;font-size:10px}
  .detail-main{min-height:calc(100vh - 58px);padding-top:20px}
  .term-detail-card{min-height:0;padding:21px 17px;border-right-width:1px}
  .term-detail-card h1{margin:13px 0 9px;font-size:24px}
  .term-detail-card>p{margin-top:15px;font-size:14px;line-height:2.1}
  .term-dialog{max-height:88vh;padding:19px 17px;border-right-width:1px}
  .term-dialog h2{margin:13px 0 9px;font-size:21px}
  .term-dialog .detail-rule{margin-bottom:15px}
  .term-dialog>p{font-size:14px;line-height:2.05}
}
@media(max-width:420px){
  :root{--type-display:28px;--type-section:17px}
  .public-main{padding-inline:14px}
  .public-hero{padding-top:32px;padding-inline:2px}
  .public-hero h1{max-width:330px;font-size:28px;line-height:1.58;text-wrap:balance}
  .public-hero>p{max-width:310px;font-size:10px}
  .public-search{margin-top:13px}
  .mission-note{margin-bottom:20px}
  .mission-label{font-size:10px}
  .mission-note p{font-size:11px;line-height:2}
  .random-card{padding-inline:2px}
  .random-copy p{font-size:12px}
}
#search-sentinel{display:block;height:1px;pointer-events:none}
body.has-floating-search .public-search{position:fixed;z-index:8;top:12px;left:50%;width:min(520px,calc(100vw - 32px));height:46px;margin:0;transform:translateX(-50%);border-radius:5px;background:#fffffffa;box-shadow:0 5px 18px #263b291c}
.public-list-section{scroll-margin-top:130px}
@media(max-width:560px){body.has-floating-search .public-search{top:8px;height:42px}}

/* Scholarly manuscript artwork gives the public glossary a warm, Islamic studies context. */
.public-hero{min-height:350px;margin-block:22px 24px;padding:50px 20px 30px;border:1px solid #e8e9df;border-radius:8px;background:linear-gradient(180deg,#f8f8f1c9,#f8f9f6eb),url('/islamic-glossary-hero.jpg') center 52%/cover no-repeat;box-shadow:0 8px 26px #263b2908}
.public-hero .hero-ornament{color:#dce5d8;opacity:.55}
@media(max-width:850px){.public-hero{margin-block:18px 22px;padding-top:43px}}
@media(max-width:560px){.public-hero{min-height:325px;margin-block:12px 19px;padding:35px 8px 20px;background-position:center;background-image:linear-gradient(180deg,#f8f8f1d9,#f8f9f6f0),url('/islamic-glossary-hero.jpg')}}

/* Keep long Latin URLs from overflowing mixed RTL manuscript descriptions. */
.term-detail-card>p,.term-dialog>p,.random-copy p,.public-definition{overflow-wrap:anywhere;word-break:normal}

.contribution-section{max-width:760px;margin:48px auto 30px;padding:27px 30px;border:1px solid #e5eae2;border-radius:5px;background:#fff}
.contribution-heading h2{margin:8px 0;color:#304a36;font-size:var(--type-section);line-height:1.7}
.contribution-heading p{max-width:62ch;margin:0 0 20px;color:#768176;font-size:var(--type-ui-label);line-height:1.9}
.suggestion-form{display:grid;gap:14px}
.suggestion-form label,.suggestion-fields label{display:grid;gap:6px;color:#536353;font-size:var(--type-ui-label)}
.suggestion-form input,.suggestion-form textarea,.suggestion-form select,.suggestion-fields input,.suggestion-fields textarea,.suggestion-toolbar select{width:100%;min-height:42px;padding:10px 12px;border:1px solid #e1e7df;border-radius:4px;background:#fbfcfa;color:#27362b;font:inherit;line-height:1.8}
.suggestion-form textarea,.suggestion-fields textarea{min-height:110px;resize:vertical;white-space:pre-wrap}
.suggestion-form input:focus,.suggestion-form textarea:focus,.suggestion-form select:focus,.suggestion-fields input:focus,.suggestion-fields textarea:focus{outline:2px solid #bdd0ba;outline-offset:1px}
.optional-label{color:#929b91;font-size:.9em}
.suggestion-submit-row{display:flex;align-items:center;justify-content:space-between;gap:15px}
.suggestion-submit-row p{margin:0;color:#47744e;font-size:var(--type-ui-label);line-height:1.7}
.suggestion-submit-row p.error{color:#ae5555}
.suggestion-submit-row button:disabled{opacity:.6;cursor:wait}
.suggestion-honeypot{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
.suggestions-view .welcome-row{margin-bottom:25px}
.suggestion-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:13px;color:#7d877e;font-size:10px}
.suggestion-toolbar label{display:flex;align-items:center;gap:8px}
.suggestion-toolbar select{width:auto;min-width:150px;min-height:36px;padding:5px 9px}
.suggestion-list{display:grid;gap:12px}
.suggestion-card{padding:18px 20px;border:1px solid #e4e9e2;border-radius:5px;background:#fff}
.suggestion-card-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px;color:#8b9589;font-size:9px}
.suggestion-kind{color:#47744e;font-weight:600}
.suggestion-fields{display:grid;grid-template-columns:minmax(160px,.7fr) minmax(0,1.5fr);gap:12px}
.suggestion-fields label{font-size:9px}
.suggestion-fields textarea{min-height:150px}
.suggestion-note,.suggestion-current{margin-top:12px;padding:12px;border-radius:4px;background:#f6f8f4;color:#586458;font-size:9px;line-height:1.8;overflow-wrap:anywhere}
.suggestion-note p,.suggestion-current p{margin:5px 0 0;white-space:pre-wrap}
.suggestion-current{border-right:2px solid #d6e1d4}
.suggestion-actions{display:flex;gap:9px;margin-top:15px}
.suggestion-actions .primary-button,.suggestion-actions .quiet-button{font-size:9px}
.suggestion-state{display:inline-block;margin-top:14px;padding:5px 9px;border-radius:20px;background:#f1f4ef;color:#747e73;font-size:9px}
.suggestion-state.approved{background:#edf5ed;color:#44744b}
.suggestion-list.is-loading{opacity:.55;pointer-events:none}
.import-head-actions{display:flex;align-items:center;justify-content:flex-start;gap:7px;flex-wrap:wrap}
.import-head-actions button{white-space:nowrap}
@media(max-width:700px){.contribution-section{margin:34px auto 24px;padding:21px 17px}.suggestion-fields{grid-template-columns:1fr}.suggestion-fields textarea{min-height:120px}}
@media(max-width:560px){.suggestion-submit-row{align-items:flex-start;flex-direction:column}.suggestion-submit-row button{align-self:flex-start}.suggestion-card{padding:14px}.suggestion-actions{flex-wrap:wrap}.suggestion-toolbar{align-items:flex-start;flex-direction:column}.import-head-actions{margin-top:11px;justify-content:flex-start}.import-head-actions button{padding:7px 8px;font-size:8px}}
.back-to-top{position:fixed;z-index:9;left:clamp(14px,3vw,30px);bottom:24px;display:grid;place-items:center;width:46px;height:46px;padding:0;border:1px solid #dce5da;border-radius:50%;background:#fff;color:#41694a;box-shadow:0 5px 18px #263b291c;font:600 22px/1 var(--font);cursor:pointer;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .18s,transform .18s,visibility .18s,background-color .18s}
.back-to-top.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
.back-to-top:hover{background:#f0f5ef}
.back-to-top:focus-visible{outline:2px solid #6c9972;outline-offset:3px}
@media(max-width:560px){.back-to-top{left:14px;bottom:calc(14px + env(safe-area-inset-bottom));width:42px;height:42px;font-size:20px}}
@media(prefers-reduced-motion:reduce){.back-to-top{transition:none}}

/* Private dashboard traffic summary: aggregate page views only. */
.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.visitor-history{margin:-8px 0 30px;padding:15px 18px;background:#fff;border:1px solid #e9ece6;border-radius:8px}
.visitor-history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.visitor-history-heading h2{margin:0;color:#344b38;font:700 13px var(--display)}
.visitor-history-heading p{margin:4px 0 0;color:#929a91;font-size:9px}
.visitor-history-note{color:#829281;font-size:8px}
.visitor-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin-top:13px}
.visitor-day{display:grid;grid-template-rows:16px 54px 15px;justify-items:center;align-items:end;min-width:0}
.visitor-day-count,.visitor-day-label{color:#8d998c;font-size:8px;white-space:nowrap}
.visitor-bar-track{display:flex;align-items:flex-end;justify-content:center;width:100%;height:54px;border-bottom:1px solid #e9eee7}
.visitor-bar-track i{display:block;width:min(20px,45%);min-height:0;border-radius:4px 4px 0 0;background:linear-gradient(180deg,#91b995,#5c8864)}
@media(max-width:900px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-grid .stat-card:last-child{display:flex}.stat-card{height:96px}.visitor-history{margin:-4px 0 24px;padding:12px}.visitor-chart{gap:5px}.visitor-day-count,.visitor-day-label{font-size:7px}.visitor-history-note{font-size:7px}}
