@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap');
:root{
  --slate:#0f172a;
  --muted:#64748b;
  --soft:#f8fafc;
  --border:rgba(148,163,184,.18);
}
*{box-sizing:border-box}
body{font-family:system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif;background:#f8fafc;color:var(--slate)}
a{text-decoration:none;color:inherit}
.fw-black{font-weight:900}.core-bg{position:relative;min-height:100vh;overflow:hidden;background:radial-gradient(circle at 15% 10%,rgba(59,130,246,.08),transparent 26%),radial-gradient(circle at 85% 20%,rgba(168,85,247,.06),transparent 24%),radial-gradient(circle at 50% 100%,rgba(20,184,166,.06),transparent 28%),linear-gradient(180deg,#fbfdff,#eef2f7)}
.core-orb{position:absolute;pointer-events:none;border-radius:999px;filter:blur(52px)}.orb-1{left:3rem;top:5rem;width:18rem;height:18rem;background:rgba(59,130,246,.08)}.orb-2{right:30%;top:0;width:20rem;height:20rem;background:rgba(168,85,247,.05)}.orb-3{right:4rem;bottom:2rem;width:18rem;height:18rem;background:rgba(16,185,129,.05)}.core-shell{position:relative;z-index:2;padding:1.25rem;max-width:1560px}.sidebar-card{top:1.25rem;border:1px solid rgba(255,255,255,.75);background:rgba(255,255,255,.76);backdrop-filter:blur(22px);border-radius:2rem;padding:1rem;box-shadow:0 20px 60px rgba(15,23,42,.08)}
.brand-block{display:grid;grid-template-columns:4.25rem 1fr;align-items:center;gap:.9rem;padding:.65rem .55rem 1.05rem;margin-bottom:1.25rem;border-bottom:1px solid rgba(148,163,184,.12)}
.brand-logo-wrap{width:4.25rem;height:4.25rem;display:flex;align-items:center;justify-content:center;border-radius:1.35rem;background:rgba(255,255,255,.78);box-shadow:0 14px 32px rgba(15,23,42,.08);overflow:hidden}
.brand-logo{width:3.65rem;height:3.65rem;object-fit:contain;display:block}
.brand-copy{text-align:center;min-width:0}
.brand-title{font-size:1.55rem;font-weight:900;line-height:1;color:#0f172a;letter-spacing:-.02em}
.brand-subtitle{font-size:.86rem;font-weight:900;color:#94a3b8;line-height:1.5}.side-nav{display:grid;gap:.45rem}.side-nav a{display:flex;align-items:center;gap:.7rem;padding:.85rem 1rem;border-radius:1rem;font-weight:900;color:#64748b;transition:.2s}.side-nav a:hover{background:#fff;color:#0f172a}.side-nav a.active{background:#0f172a;color:#fff;box-shadow:0 10px 28px rgba(15,23,42,.18)}.ops-note{margin-top:1.5rem;background:linear-gradient(135deg,#0f172a,#1e293b);color:#fff;border-radius:1.5rem;padding:1.25rem}.ops-note p{color:rgba(255,255,255,.62);font-size:.78rem;line-height:1.8;margin:0}.ops-icon{display:inline-flex;padding:.65rem;background:rgba(255,255,255,.1);border-radius:1rem;margin-bottom:.7rem}.hero-header{position:relative;overflow:hidden;border-radius:2rem;border:1px solid rgba(255,255,255,.12);background:linear-gradient(135deg,#111827,#1e293b,#172554);box-shadow:0 25px 60px rgba(15,23,42,.18);padding:1.35rem}.hero-header h1{color:#fff;margin:0;font-weight:900;font-size:clamp(1.75rem,3vw,2.65rem)}.hero-header p{color:rgba(255,255,255,.58);margin:.35rem 0 0;font-weight:800}.hero-icon{width:3.8rem;height:3.8rem;display:flex;align-items:center;justify-content:center;border-radius:1.4rem;background:rgba(255,255,255,.1);color:#fff;font-size:1.7rem;border:1px solid rgba(255,255,255,.08)}.hero-glow{position:absolute;border-radius:999px;filter:blur(52px);pointer-events:none}.hero-glow-1{left:-3rem;top:-3rem;width:15rem;height:15rem;background:rgba(59,130,246,.12)}.hero-glow-2{right:40%;top:-2rem;width:14rem;height:14rem;background:rgba(168,85,247,.10)}.btn-core-light{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.12);font-weight:900}.btn-core-light:hover{background:#fff;color:#0f172a}.col-lg-2-4{flex:0 0 auto;width:100%}@media (min-width:992px){.col-lg-2-4{width:20%}}.stat-card{position:relative;overflow:hidden;display:block;height:100%;min-height:150px;border-radius:1.65rem;padding:1.1rem;border:1px solid rgba(255,255,255,.18);box-shadow:0 18px 40px rgba(15,23,42,.10);transition:transform .18s ease,box-shadow .18s ease;transform-style:preserve-3d}.stat-card:before,.project-card:before,.priority-card:before{content:"";position:absolute;inset:0;opacity:0;transition:.25s;background:radial-gradient(circle at var(--mx,50%) var(--my,50%),rgba(255,255,255,.22),transparent 35%)}.stat-card:hover:before,.project-card:hover:before,.priority-card:hover:before{opacity:1}.stat-card:after{content:"";position:absolute;left:-3rem;top:-3rem;width:8rem;height:8rem;border-radius:999px;background:rgba(255,255,255,.08);filter:blur(20px)}.stat-card strong{position:relative;display:block;color:#fff;font-size:2rem;font-weight:900;margin-top:.85rem}.stat-card span{position:relative;display:block;color:rgba(255,255,255,.84);font-weight:900}.stat-card small{position:relative;color:rgba(255,255,255,.52);font-weight:800}.stat-icon{position:relative;width:2.7rem;height:2.7rem;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.12);border-radius:1rem;color:#fff}.stat-blue{background:linear-gradient(135deg,#eff6ff,#dbeafe);color:#0f172a}.stat-green{background:linear-gradient(135deg,#ecfdf5,#d1fae5)}.stat-amber{background:linear-gradient(135deg,#fffbeb,#fde68a)}.stat-rose{background:linear-gradient(135deg,#fff1f2,#ffe4e6)}.stat-violet{background:linear-gradient(135deg,#f5f3ff,#ede9fe)}.stat-card.stat-blue strong,.stat-card.stat-green strong,.stat-card.stat-amber strong,.stat-card.stat-rose strong,.stat-card.stat-violet strong{color:#0f172a}.stat-card.stat-blue span,.stat-card.stat-green span,.stat-card.stat-amber span,.stat-card.stat-rose span,.stat-card.stat-violet span{color:#334155}.stat-card.stat-blue small,.stat-card.stat-green small,.stat-card.stat-amber small,.stat-card.stat-rose small,.stat-card.stat-violet small{color:#64748b}.stat-card.stat-blue .stat-icon{background:#dbeafe}.stat-card.stat-green .stat-icon{background:#d1fae5}.stat-card.stat-amber .stat-icon{background:#fef3c7}.stat-card.stat-rose .stat-icon{background:#ffe4e6}.stat-card.stat-violet .stat-icon{background:#ede9fe}.section-panel{position:relative;overflow:hidden;border-radius:2rem;background:rgba(255,255,255,.84);border:1px solid rgba(255,255,255,.86);box-shadow:0 18px 50px rgba(15,23,42,.08);padding:1.25rem;backdrop-filter:blur(18px)}.section-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.1rem}.section-head h2,.section-title-dark{font-size:1.35rem;font-weight:900;margin:0;color:#0f172a}.section-head p{font-size:.9rem;color:#64748b;font-weight:700;margin:.25rem 0 0}.priority-card{position:relative;overflow:hidden;display:flex;align-items:center;gap:.85rem;padding:1rem;border-radius:1.45rem;border:1px solid rgba(148,163,184,.18);box-shadow:0 12px 30px rgba(15,23,42,.06);transition:.2s;background:#fff}.priority-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(15,23,42,.10)}.priority-card strong{display:block;font-weight:900;color:#0f172a}.priority-card small{display:block;color:#64748b;font-weight:800;font-size:.75rem}.project-emoji{width:2.75rem;height:2.75rem;display:flex;align-items:center;justify-content:center;border-radius:1rem;background:rgba(255,255,255,.75);box-shadow:inset 0 0 0 1px rgba(255,255,255,.8);font-size:1.25rem}.project-emoji.big{width:3.8rem;height:3.8rem;font-size:1.75rem;border-radius:1.25rem}.project-emoji.huge{width:4.5rem;height:4.5rem;font-size:2rem;border-radius:1.5rem}.activity-list{display:grid;gap:.75rem}.activity-item{display:flex;gap:.8rem;padding:.9rem;border-radius:1.25rem;background:#f8fafc;border:1px solid rgba(148,163,184,.12)}.activity-item span{margin-top:.45rem;width:.65rem;height:.65rem;border-radius:999px;background:#3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.08)}.activity-item small{display:block;color:#94a3b8;font-weight:900;font-size:.7rem}.activity-item strong{display:block;color:#334155;font-size:.85rem;line-height:1.8}.search-box{display:flex;gap:.5rem;background:#fff;border:1px solid rgba(148,163,184,.18);padding:.35rem;border-radius:1.25rem;box-shadow:0 12px 30px rgba(15,23,42,.05)}.search-box input{border:0;outline:0;padding:.65rem .8rem;background:transparent;min-width:240px;font-weight:800}.search-box button{border:0;background:#0f172a;color:#fff;border-radius:1rem;padding:.65rem 1.1rem;font-weight:900}.project-card{position:relative;overflow:hidden;display:block;min-height:365px;border-radius:2rem;padding:1.25rem;border:1px solid rgba(148,163,184,.18);background:linear-gradient(135deg,#fff,#f8fafc);box-shadow:0 18px 48px rgba(15,23,42,.08);transition:transform .18s ease,box-shadow .18s ease}.project-card:hover{box-shadow:0 24px 60px rgba(15,23,42,.12)}.project-card .accent-line{position:absolute;right:1.25rem;top:1.25rem;width:4rem;height:.35rem;border-radius:999px;background:#cbd5e1}.project-card h3{font-size:1.35rem;font-weight:900;margin:1.1rem 0 .2rem;color:#0f172a}.project-card .type{font-size:.88rem;font-weight:900;color:#64748b;margin:0}.project-card .desc{font-size:.9rem;line-height:1.9;color:#64748b;min-height:84px;margin-top:.9rem}.project-card .shine{position:absolute;left:-4rem;top:-4rem;width:12rem;height:12rem;border-radius:999px;background:rgba(255,255,255,.55);filter:blur(28px);opacity:.7}.project-card.ta7silak{background:linear-gradient(135deg,#fff,#eff6ff,#eef2ff)}.project-card.atlas{background:linear-gradient(135deg,#fff,#f8fafc,#f1f5f9)}.project-card.xschool{background:linear-gradient(135deg,#fff,#ecfdf5,#ccfbf1)}.project-card.calendar{background:linear-gradient(135deg,#fff,#fffbeb,#ffedd5)}.project-card.school-schedule{background:linear-gradient(135deg,#fff,#f5f3ff,#fae8ff)}.project-card.school-calendar{background:linear-gradient(135deg,#fff,#ecfeff,#e0f2fe)}.project-card.private-lessons{background:linear-gradient(135deg,#fff,#fff1f2,#fce7f3)}.project-card.sakan{background:linear-gradient(135deg,#fff,#f7fee7,#dcfce7)}.project-card.netaraby{background:linear-gradient(135deg,#fff,#fafaf9,#f4f4f5)}.badge-core{display:inline-flex;align-items:center;border-radius:999px;padding:.35rem .65rem;font-size:.72rem;font-weight:900;border:1px solid transparent}.badge-soft-success{background:#dcfce7;color:#166534}.badge-soft-warning{background:#fef3c7;color:#92400e}.badge-soft-info{background:#e0f2fe;color:#075985}.badge-soft-purple{background:#ede9fe;color:#6d28d9}.badge-soft-danger{background:#ffe4e6;color:#be123c}.badge-soft-orange{background:#ffedd5;color:#c2410c}.badge-soft-primary{background:#dbeafe;color:#1d4ed8}.badge-soft-secondary{background:#f1f5f9;color:#475569}.score-wrap{padding:1rem;border-radius:1.25rem;background:rgba(255,255,255,.65);border:1px solid rgba(255,255,255,.75)}.score-bar{height:.5rem;border-radius:999px;background:#e2e8f0;overflow:hidden}.score-bar.big{height:.75rem}.score-bar i{display:block;height:100%;border-radius:999px}.score-good{background:#10b981;color:#059669}.score-mid{background:#f59e0b;color:#d97706}.score-low{background:#f43f5e;color:#e11d48}.card-foot{display:flex;align-items:center;justify-content:space-between;margin-top:1rem;padding-top:1rem;border-top:1px solid rgba(148,163,184,.15);font-weight:900;color:#64748b}.card-foot b{color:#0f172a}.project-profile-hero{border-radius:2rem;padding:1px;background:linear-gradient(135deg,#e2e8f0,#fff);box-shadow:0 18px 50px rgba(15,23,42,.08)}.profile-inner{border-radius:calc(2rem - 1px);background:rgba(255,255,255,.9);padding:1.5rem;backdrop-filter:blur(18px)}.profile-inner h2{font-weight:900;font-size:2rem}.profile-inner p{color:#64748b;line-height:1.9;margin:0}.content-card{border-radius:2rem;background:rgba(255,255,255,.86);border:1px solid rgba(255,255,255,.86);box-shadow:0 18px 50px rgba(15,23,42,.08);padding:1.35rem;backdrop-filter:blur(18px)}.content-card h3{font-weight:900;font-size:1.25rem;margin-bottom:1rem}.link-tile{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem;border-radius:1.35rem;background:#f8fafc;border:1px solid rgba(148,163,184,.14);transition:.2s}.link-tile:hover{background:#0f172a;color:#fff;transform:translateY(-3px)}.link-tile strong{display:block;font-weight:900}.link-tile small{display:block;color:#94a3b8;font-weight:800;font-size:.75rem;margin-top:.25rem}.link-tile.muted{opacity:.68}.notes-text{line-height:2;color:#64748b}.health-number{font-size:3rem;font-weight:900}.roadmap-list{display:grid;gap:.75rem}.roadmap-item{display:flex;gap:.8rem;padding:.9rem;border-radius:1.25rem;background:#f8fafc}.roadmap-item span{display:flex;align-items:center;justify-content:center;width:1.6rem;height:1.6rem;border-radius:999px;background:#dcfce7;color:#166534;font-weight:900}.roadmap-item small{display:block;color:#94a3b8;font-size:.72rem;font-weight:900}.roadmap-item strong{display:block;color:#334155;font-weight:900}.settings-tabs{border-radius:2rem;background:rgba(255,255,255,.84);padding:.9rem;box-shadow:0 18px 50px rgba(15,23,42,.08);border:1px solid rgba(255,255,255,.86);display:grid;gap:.5rem}.settings-tabs a{padding:.9rem 1rem;border-radius:1rem;font-weight:900;color:#64748b}.settings-tabs a.active,.settings-tabs a:hover{background:#0f172a;color:#fff}.priority-select-card{display:flex;align-items:center;gap:.8rem;padding:1rem;border-radius:1.35rem;background:#f8fafc;border:1px solid rgba(148,163,184,.16);cursor:pointer;transition:.2s}.priority-select-card input{display:none}.priority-select-card strong{display:block;font-weight:900}.priority-select-card small{display:block;color:#64748b;font-weight:800}.priority-select-card b{color:#cbd5e1}.priority-select-card.selected{background:#0f172a;color:#fff}.priority-select-card.selected small{color:#cbd5e1}.priority-select-card.selected b{color:#facc15}.project-form label{font-weight:900;color:#334155}.check-card{display:flex;gap:.5rem;align-items:center;border-radius:1rem;background:#f8fafc;border:1px solid rgba(148,163,184,.16);padding:.85rem 1rem;font-weight:900}.login-bg{background:radial-gradient(circle at 15% 10%,rgba(59,130,246,.12),transparent 30%),linear-gradient(180deg,#f8fafc,#eef2f7)}.login-card{width:min(430px,100%);background:rgba(255,255,255,.86);border:1px solid rgba(255,255,255,.9);border-radius:2rem;padding:2rem;box-shadow:0 20px 60px rgba(15,23,42,.12);backdrop-filter:blur(18px)}
@media(max-width:768px){.core-shell{padding:.75rem}.hero-header{padding:1rem;border-radius:1.5rem}.project-card{min-height:auto}.search-box{width:100%}.search-box input{min-width:0;width:100%}}

/* CORE v1.2 refinements: أخف، أوضح، أكثر عملية */
.brand-version{margin-top:.25rem;display:inline-flex;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:.65rem;font-weight:900;padding:.18rem .55rem}
.core-sidebar-col{width:300px;flex:0 0 auto}.core-main-col{width:calc(100% - 300px);flex:0 0 auto}@media(max-width:1199.98px){.core-main-col{width:100%}}
.hero-header{background:linear-gradient(135deg,#111827,#1e293b,#1d2b53);box-shadow:0 20px 48px rgba(15,23,42,.14)}
.hero-glow-1{background:rgba(59,130,246,.08)}.hero-glow-2{background:rgba(168,85,247,.06)}
.quick-row{margin-top:-.25rem}.quick-card{position:relative;overflow:hidden;height:100%;border-radius:1.65rem;background:rgba(255,255,255,.86);border:1px solid rgba(255,255,255,.9);box-shadow:0 14px 36px rgba(15,23,42,.06);padding:1.1rem 1.25rem;backdrop-filter:blur(18px)}.quick-card:before{content:"";position:absolute;right:0;top:0;width:.35rem;height:100%;background:#3b82f6}.quick-card span{display:block;color:#64748b;font-size:.8rem;font-weight:900}.quick-card strong{display:block;margin:.25rem 0;color:#0f172a;font-size:1.05rem;font-weight:900}.quick-card small{display:block;color:#94a3b8;font-size:.76rem;font-weight:800}.quick-card.quick-dark{background:linear-gradient(135deg,#0f172a,#1e293b);color:#fff}.quick-card.quick-dark:before{background:#facc15}.quick-card.quick-dark span,.quick-card.quick-dark small{color:rgba(255,255,255,.62)}.quick-card.quick-dark strong{color:#fff}
.stat-card{box-shadow:0 14px 34px rgba(15,23,42,.07);border-color:rgba(255,255,255,.7)}.stat-card:hover{box-shadow:0 18px 44px rgba(15,23,42,.10)}.stat-card:after{opacity:.5}.stat-icon{color:#0f172a;border-color:rgba(15,23,42,.04)}
.section-panel{box-shadow:0 14px 40px rgba(15,23,42,.06)}
.priority-card{background:linear-gradient(135deg,#fff,#f8fafc)}.priority-card:after{content:"";position:absolute;inset-inline-start:0;top:0;height:100%;width:.35rem;background:#cbd5e1}.priority-card.ta7silak:after{background:#3b82f6}.priority-card.atlas:after{background:#64748b}.priority-card.xschool:after{background:#10b981}.priority-card.calendar:after{background:#f59e0b}.priority-card.school-schedule:after{background:#8b5cf6}.priority-card.school-calendar:after{background:#06b6d4}.priority-card.private-lessons:after{background:#f43f5e}.priority-card.sakan:after{background:#84cc16}.priority-card.netaraby:after{background:#71717a}
.project-card{min-height:390px;padding:1.35rem;box-shadow:0 14px 36px rgba(15,23,42,.07);will-change:transform}.project-card:hover{box-shadow:0 22px 48px rgba(15,23,42,.12)}.project-card .accent-line{right:0;top:0;width:100%;height:.55rem;border-radius:2rem 2rem 0 0;background:#cbd5e1}.project-card.ta7silak .accent-line{background:linear-gradient(90deg,#60a5fa,#2563eb)}.project-card.atlas .accent-line{background:linear-gradient(90deg,#94a3b8,#334155)}.project-card.xschool .accent-line{background:linear-gradient(90deg,#34d399,#0f766e)}.project-card.calendar .accent-line{background:linear-gradient(90deg,#fbbf24,#f97316)}.project-card.school-schedule .accent-line{background:linear-gradient(90deg,#a78bfa,#9333ea)}.project-card.school-calendar .accent-line{background:linear-gradient(90deg,#22d3ee,#0284c7)}.project-card.private-lessons .accent-line{background:linear-gradient(90deg,#fb7185,#db2777)}.project-card.sakan .accent-line{background:linear-gradient(90deg,#a3e635,#16a34a)}.project-card.netaraby .accent-line{background:linear-gradient(90deg,#a1a1aa,#52525b)}
.project-card-hero{padding-top:.35rem}.project-card:hover .project-emoji.big{transform:translateY(-3px) scale(1.04);box-shadow:0 14px 28px rgba(15,23,42,.10)}.project-emoji.big{transition:.18s ease}.project-card .desc{min-height:76px}.health-mini{display:inline-flex;align-items:center;gap:.35rem}.health-mini i{width:.65rem;height:.65rem;border-radius:999px;display:inline-block}.project-actions{display:grid;grid-template-columns:1fr;gap:.6rem;margin-top:1rem;padding-top:1rem;border-top:1px solid rgba(148,163,184,.14)}.project-actions a,.project-actions span{display:flex;align-items:center;justify-content:center;border-radius:1rem;padding:.72rem .9rem;font-size:.85rem;font-weight:900;transition:.18s ease}.btn-details{background:#fff;color:#0f172a;border:1px solid rgba(148,163,184,.18)}.btn-details:hover{background:#0f172a;color:#fff}.btn-ops{background:#0f172a;color:#fff;border:1px solid #0f172a;box-shadow:0 10px 24px rgba(15,23,42,.14)}.btn-ops:hover{transform:translateY(-2px);color:#fff;filter:brightness(1.05)}.btn-ops.disabled{background:#f1f5f9;color:#94a3b8;border-color:#e2e8f0;box-shadow:none}.btn-ops-page{background:#0f172a;color:#fff;border:1px solid #0f172a;font-weight:900}.btn-ops-page:hover{background:#1e293b;color:#fff}
.project-card.ta7silak{background:linear-gradient(135deg,#fff,#f6faff,#eef5ff)}.project-card.atlas{background:linear-gradient(135deg,#fff,#fafafa,#f3f4f6)}.project-card.xschool{background:linear-gradient(135deg,#fff,#f3fdf8,#e8fbf5)}.project-card.calendar{background:linear-gradient(135deg,#fff,#fffdf5,#fff4dd)}.project-card.school-schedule{background:linear-gradient(135deg,#fff,#fbf8ff,#f8f0ff)}.project-card.school-calendar{background:linear-gradient(135deg,#fff,#f5fdff,#eef9ff)}.project-card.private-lessons{background:linear-gradient(135deg,#fff,#fff8fa,#fff0f6)}.project-card.sakan{background:linear-gradient(135deg,#fff,#fbfff5,#f2fde7)}.project-card.netaraby{background:linear-gradient(135deg,#fff,#fbfbfb,#f6f6f7)}
@media(min-width:992px){.project-actions{grid-template-columns:1fr 1.25fr}}


/* CORE v1.6 typography + edge top ribbons */
body{
  font-family:'Tajawal','Cairo',system-ui,-apple-system,'Segoe UI',Tahoma,Arial,sans-serif;
}
h1,h2,h3,h4,h5,h6,
.brand-title,
.hero-header h1,
.section-head h2,
.section-title-dark,
.project-card h3,
.profile-inner h2,
.content-card h3,
.priority-card strong,
.stat-card strong,
.stat-card span,
.side-nav a,
.btn,
.search-box button{
  font-family:'Cairo','Tajawal',system-ui,-apple-system,'Segoe UI',Tahoma,Arial,sans-serif;
  letter-spacing:-.015em;
}

/* الشريط الجانبي أجمل مع RTL لأنه يعطي هوية واضحة للكارت بدون إزعاج بصري */
.project-card{
  padding-right:1.85rem;
}
.project-card .accent-line{
  right:.85rem;
  top:1.15rem;
  bottom:1.15rem;
  width:.46rem;
  height:auto;
  border-radius:999px;
  box-shadow:0 8px 20px rgba(15,23,42,.10);
}
.project-card:hover .accent-line{
  width:.58rem;
  box-shadow:0 10px 26px rgba(15,23,42,.16);
}
.project-card.ta7silak .accent-line{background:linear-gradient(180deg,#60a5fa,#2563eb)!important}.project-card.atlas .accent-line{background:linear-gradient(180deg,#94a3b8,#334155)!important}.project-card.xschool .accent-line{background:linear-gradient(180deg,#34d399,#0f766e)!important}.project-card.calendar .accent-line{background:linear-gradient(180deg,#fbbf24,#f97316)!important}.project-card.school-schedule .accent-line{background:linear-gradient(180deg,#a78bfa,#9333ea)!important}.project-card.school-calendar .accent-line{background:linear-gradient(180deg,#22d3ee,#0284c7)!important}.project-card.private-lessons .accent-line{background:linear-gradient(180deg,#fb7185,#db2777)!important}.project-card.sakan .accent-line{background:linear-gradient(180deg,#a3e635,#16a34a)!important}.project-card.netaraby .accent-line{background:linear-gradient(180deg,#a1a1aa,#52525b)!important}

.priority-card{
  padding-right:1.25rem;
}
.priority-card:after{
  inset-inline-start:auto;
  right:.55rem;
  top:.75rem;
  bottom:.75rem;
  width:.32rem;
  height:auto;
  border-radius:999px;
}
.priority-card:hover:after{
  width:.42rem;
}

.project-profile-hero{
  position:relative;
  overflow:hidden;
}
.project-profile-hero:before{
  content:"";
  position:absolute;
  right:0;
  top:1rem;
  bottom:1rem;
  width:.55rem;
  border-radius:999px;
  background:linear-gradient(180deg,#cbd5e1,#94a3b8);
  z-index:2;
}
.project-profile-hero.ta7silak:before{background:linear-gradient(180deg,#60a5fa,#2563eb)}.project-profile-hero.atlas:before{background:linear-gradient(180deg,#94a3b8,#334155)}.project-profile-hero.xschool:before{background:linear-gradient(180deg,#34d399,#0f766e)}.project-profile-hero.calendar:before{background:linear-gradient(180deg,#fbbf24,#f97316)}.project-profile-hero.school-schedule:before{background:linear-gradient(180deg,#a78bfa,#9333ea)}.project-profile-hero.school-calendar:before{background:linear-gradient(180deg,#22d3ee,#0284c7)}.project-profile-hero.private-lessons:before{background:linear-gradient(180deg,#fb7185,#db2777)}.project-profile-hero.sakan:before{background:linear-gradient(180deg,#a3e635,#16a34a)}.project-profile-hero.netaraby:before{background:linear-gradient(180deg,#a1a1aa,#52525b)}
.profile-inner{padding-right:2rem}

@media(max-width:768px){
  .project-card{padding-right:1.55rem}
  .project-card .accent-line{right:.65rem;top:1rem;bottom:1rem;width:.38rem}
}

/* CORE v1.6 - الشريط العلوي هو إطار الكارت نفسه */
.project-card{
  padding:1.65rem 1.35rem 1.35rem!important;
}
.project-card .accent-line{
  right:1rem!important;
  left:1rem!important;
  top:.85rem!important;
  bottom:auto!important;
  width:auto!important;
  height:.48rem!important;
  border-radius:999px!important;
  box-shadow:0 8px 18px rgba(15,23,42,.08)!important;
}
.project-card:hover .accent-line{
  height:.56rem!important;
  width:auto!important;
  box-shadow:0 10px 24px rgba(15,23,42,.13)!important;
}
.project-card.ta7silak .accent-line{background:linear-gradient(90deg,#60a5fa,#2563eb)!important}.project-card.atlas .accent-line{background:linear-gradient(90deg,#94a3b8,#334155)!important}.project-card.xschool .accent-line{background:linear-gradient(90deg,#34d399,#0f766e)!important}.project-card.calendar .accent-line{background:linear-gradient(90deg,#fbbf24,#f97316)!important}.project-card.school-schedule .accent-line{background:linear-gradient(90deg,#a78bfa,#9333ea)!important}.project-card.school-calendar .accent-line{background:linear-gradient(90deg,#22d3ee,#0284c7)!important}.project-card.private-lessons .accent-line{background:linear-gradient(90deg,#fb7185,#db2777)!important}.project-card.sakan .accent-line{background:linear-gradient(90deg,#a3e635,#16a34a)!important}.project-card.netaraby .accent-line{background:linear-gradient(90deg,#a1a1aa,#52525b)!important}
.project-card-hero{padding-top:.75rem!important}
.project-profile-hero:before{
  right:1rem!important;
  left:1rem!important;
  top:.85rem!important;
  bottom:auto!important;
  width:auto!important;
  height:.55rem!important;
  border-radius:999px!important;
}
.profile-inner{padding:2rem 1.5rem 1.5rem!important}
@media(max-width:768px){
  .project-card{padding:1.55rem 1rem 1rem!important}
  .project-card .accent-line{right:.85rem!important;left:.85rem!important;top:.75rem!important;width:auto!important;height:.42rem!important}
}


/* CORE v1.6 - الشريط الملون على الحافة العلوية نفسها */
.project-card{
  position:relative!important;
  overflow:hidden!important;
  border-radius:2rem!important;
  padding:2rem 1.35rem 1.35rem!important;
}
.project-card .accent-line{
  position:absolute!important;
  top:0!important;
  right:0!important;
  left:0!important;
  bottom:auto!important;
  width:100%!important;
  height:14px!important;
  border-radius:2rem 2rem 0 0!important;
  box-shadow:0 8px 18px rgba(15,23,42,.08)!important;
}
.project-card:hover .accent-line{
  height:16px!important;
  box-shadow:0 10px 24px rgba(15,23,42,.12)!important;
}
.project-card.ta7silak .accent-line{background:linear-gradient(90deg,#60a5fa,#2563eb,#1d4ed8)!important}.project-card.atlas .accent-line{background:linear-gradient(90deg,#94a3b8,#475569,#334155)!important}.project-card.xschool .accent-line{background:linear-gradient(90deg,#34d399,#10b981,#0f766e)!important}.project-card.calendar .accent-line{background:linear-gradient(90deg,#fbbf24,#f59e0b,#f97316)!important}.project-card.school-schedule .accent-line{background:linear-gradient(90deg,#a78bfa,#8b5cf6,#9333ea)!important}.project-card.school-calendar .accent-line{background:linear-gradient(90deg,#22d3ee,#06b6d4,#0284c7)!important}.project-card.private-lessons .accent-line{background:linear-gradient(90deg,#fb7185,#f43f5e,#db2777)!important}.project-card.sakan .accent-line{background:linear-gradient(90deg,#a3e635,#22c55e,#16a34a)!important}.project-card.netaraby .accent-line{background:linear-gradient(90deg,#a1a1aa,#71717a,#52525b)!important}
.project-card-hero{padding-top:.55rem!important}
.project-profile-hero:before{
  top:0!important;
  right:0!important;
  left:0!important;
  bottom:auto!important;
  width:100%!important;
  height:14px!important;
  border-radius:2rem 2rem 0 0!important;
}
.project-profile-hero.ta7silak:before{background:linear-gradient(90deg,#60a5fa,#2563eb,#1d4ed8)!important}.project-profile-hero.atlas:before{background:linear-gradient(90deg,#94a3b8,#475569,#334155)!important}.project-profile-hero.xschool:before{background:linear-gradient(90deg,#34d399,#10b981,#0f766e)!important}.project-profile-hero.calendar:before{background:linear-gradient(90deg,#fbbf24,#f59e0b,#f97316)!important}.project-profile-hero.school-schedule:before{background:linear-gradient(90deg,#a78bfa,#8b5cf6,#9333ea)!important}.project-profile-hero.school-calendar:before{background:linear-gradient(90deg,#22d3ee,#06b6d4,#0284c7)!important}.project-profile-hero.private-lessons:before{background:linear-gradient(90deg,#fb7185,#f43f5e,#db2777)!important}.project-profile-hero.sakan:before{background:linear-gradient(90deg,#a3e635,#22c55e,#16a34a)!important}.project-profile-hero.netaraby:before{background:linear-gradient(90deg,#a1a1aa,#71717a,#52525b)!important}
.profile-inner{padding-top:2.2rem!important}
@media(max-width:768px){
  .project-card{padding:1.85rem 1rem 1rem!important}
  .project-card .accent-line{height:12px!important;border-radius:1.6rem 1.6rem 0 0!important}
}


/* CORE v1.7 - محرر أشكال الكروت من الإعدادات */
.project-card{
  background:var(--project-card-bg,linear-gradient(135deg,#fff,#f8fafc,#f1f5f9))!important;
  color:var(--project-title-color,#0f172a);
}
.project-card .accent-line{
  background:var(--project-accent-gradient,linear-gradient(90deg,#cbd5e1,#94a3b8))!important;
  height:var(--project-accent-thickness,14px)!important;
}
.project-card.accent-top{
  padding-top:calc(var(--project-accent-thickness,14px) + 1.1rem)!important;
  padding-right:1.35rem!important;
}
.project-card.accent-top .accent-line{
  top:0!important;right:0!important;left:0!important;bottom:auto!important;width:100%!important;
  border-radius:2rem 2rem 0 0!important;
}
.project-card.accent-side{
  padding-top:1.35rem!important;
  padding-right:calc(var(--project-accent-thickness,14px) + 1.15rem)!important;
}
.project-card.accent-side .accent-line{
  top:1rem!important;bottom:1rem!important;right:0!important;left:auto!important;width:var(--project-accent-thickness,14px)!important;height:auto!important;
  border-radius:999px 0 0 999px!important;
}
.project-card h3{
  font-family:var(--project-title-font,'Cairo','Tajawal',sans-serif)!important;
  color:var(--project-title-color,#0f172a)!important;
  font-weight:var(--project-title-weight,900)!important;
}
.project-card .type,.project-card .desc{color:var(--project-text-color,#64748b)!important}.badge-custom-status{background:var(--status-badge-bg,#dcfce7)!important;color:var(--status-badge-color,#166534)!important;border-color:transparent!important}.badge-custom-priority{background:var(--priority-badge-bg,#dbeafe)!important;color:var(--priority-badge-color,#2563eb)!important;border-color:transparent!important}.project-card .btn-details{background:var(--details-btn-bg,#fff)!important;color:var(--details-btn-color,#0f172a)!important}.project-card .btn-ops:not(.disabled){background:var(--ops-btn-bg,#0f172a)!important;color:var(--ops-btn-color,#fff)!important;border-color:var(--ops-btn-bg,#0f172a)!important}.project-profile-hero{background:var(--project-card-bg,linear-gradient(135deg,#fff,#f8fafc,#f1f5f9))!important}.project-profile-hero:before{background:var(--project-accent-gradient,linear-gradient(90deg,#cbd5e1,#94a3b8))!important;height:var(--project-accent-thickness,14px)!important}.project-profile-hero.accent-side:before{top:1rem!important;bottom:1rem!important;right:0!important;left:auto!important;width:var(--project-accent-thickness,14px)!important;height:auto!important;border-radius:999px 0 0 999px!important}.project-profile-hero.accent-top:before{top:0!important;right:0!important;left:0!important;width:100%!important;height:var(--project-accent-thickness,14px)!important;border-radius:2rem 2rem 0 0!important}.card-style-accordion .accordion-button{font-family:'Cairo','Tajawal',sans-serif}.card-style-accordion .form-control-color{height:3rem;padding:.35rem}.card-style-accordion h5{color:#0f172a}

/* CORE v1.8 - محرر شامل للمظهر العام */
body{
  font-family:var(--core-body-font, 'Cairo','Tajawal',system-ui,sans-serif)!important;
  color:var(--core-body-text,#0f172a)!important;
}
.core-bg{
  background:var(--core-page-bg,linear-gradient(180deg,#fbfdff,#eef2f7))!important;
}
.orb-1{background:var(--core-orb-1,rgba(59,130,246,.08))!important}.orb-2{background:var(--core-orb-2,rgba(168,85,247,.06))!important}.orb-3{background:var(--core-orb-3,rgba(16,185,129,.06))!important}
@media(min-width:1200px){
  .core-sidebar-col{width:var(--core-sidebar-width,300px)!important;flex:0 0 var(--core-sidebar-width,300px)!important}
  .core-main-col{width:calc(100% - var(--core-sidebar-width,300px))!important;flex:1 1 auto!important}
}
.sidebar-card{
  background:var(--core-sidebar-bg,rgba(255,255,255,.76))!important;
  border-radius:var(--core-radius,32px)!important;
  box-shadow:0 20px 60px rgba(15,23,42,var(--core-shadow-opacity,.08))!important;
}
.brand-title{color:var(--core-brand-title-color,#0f172a)!important}.brand-icon{background:var(--core-brand-icon-bg,#0f172a)!important;color:var(--core-brand-icon-color,#fff)!important}.side-nav a{color:var(--core-sidebar-text,#64748b)!important}.side-nav a.active{background:var(--core-sidebar-active-bg,#0f172a)!important;color:var(--core-sidebar-active-color,#fff)!important}.side-nav a:hover{background:var(--core-secondary-btn-bg,#fff)!important;color:var(--core-secondary-btn-color,#0f172a)!important}
.hero-header{
  background:var(--core-hero-bg,linear-gradient(135deg,#111827,#1e293b,#172554))!important;
  border-radius:var(--core-radius,32px)!important;
}
.hero-header h1{
  font-family:var(--core-hero-title-font,'Cairo','Tajawal',sans-serif)!important;
  color:var(--core-hero-title-color,#fff)!important;
  font-weight:var(--core-hero-title-weight,900)!important;
  font-size:clamp(1.7rem,3vw,var(--core-hero-title-size,42px))!important;
}
.hero-header p{color:var(--core-hero-subtitle-color,#dbeafe)!important}.hero-icon{background:var(--core-hero-icon-bg,rgba(255,255,255,.12))!important;color:var(--core-hero-icon-color,#fff)!important}
.section-panel,.ops-note{
  background:var(--core-panel-bg,linear-gradient(135deg,#0f172a,#1e293b,#111827))!important;
  border-radius:var(--core-radius,32px)!important;
}
.section-panel h2,.ops-note h6{color:var(--core-panel-title-color,#fff)!important}.section-panel p,.ops-note p{color:var(--core-panel-text-color,#cbd5e1)!important}.section-title-dark,.content-card h3,.content-card h5{
  font-family:var(--core-section-title-font,'Cairo','Tajawal',sans-serif)!important;
  color:var(--core-section-title-color,#0f172a)!important;
  font-weight:var(--core-section-title-weight,900)!important;
}
.btn-dark,.btn-ops:not(.disabled),.side-nav a.active{background:var(--core-primary-btn-bg,#0f172a)!important;color:var(--core-primary-btn-color,#fff)!important;border-color:var(--core-primary-btn-bg,#0f172a)!important}.btn-light,.btn-details{background:var(--core-secondary-btn-bg,#fff)!important;color:var(--core-secondary-btn-color,#0f172a)!important}.btn-core-light{background:rgba(255,255,255,.12);color:var(--core-primary-btn-color,#fff)}
.content-card,.project-card,.priority-select-card,.settings-tabs,.section-panel,.stat-card{border-radius:var(--core-radius,32px)!important}.stat-card strong,.stat-card span{color:var(--core-stat-text,#0f172a)!important}.stat-card small{color:var(--core-stat-muted,#64748b)!important}.stat-icon{color:var(--core-stat-text,#0f172a)!important}


/* CORE v1.8 Sidebar Brand Update */
.brand-block{
  display:grid !important;
  grid-template-columns:4.25rem 1fr !important;
  align-items:center !important;
  gap:.9rem !important;
  padding:.65rem .55rem 1.05rem !important;
  margin-bottom:1.25rem !important;
  border-bottom:1px solid rgba(148,163,184,.12) !important;
}
.brand-logo-wrap{
  width:4.25rem;
  height:4.25rem;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:1.35rem;
  background:rgba(255,255,255,.78);
  box-shadow:0 14px 32px rgba(15,23,42,.08);
  overflow:hidden;
}
.brand-logo{
  width:3.65rem;
  height:3.65rem;
  object-fit:contain;
  display:block;
}
.brand-copy{
  text-align:center;
  min-width:0;
}
.brand-title{
  font-family:"Cairo","Tajawal",system-ui,sans-serif;
  font-size:1.58rem !important;
  font-weight:900 !important;
  line-height:1 !important;
  color:#0f172a !important;
  letter-spacing:-.02em;
}
.brand-subtitle{
  font-family:"Cairo","Tajawal",system-ui,sans-serif;
  font-size:.86rem !important;
  font-weight:900 !important;
  color:#94a3b8 !important;
  line-height:1.5 !important;
}
.brand-version{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:.45rem;
  padding:.32rem .8rem;
  border-radius:999px;
  background:#f1f5f9;
  color:#64748b;
  font-size:.76rem;
  font-weight:900;
  line-height:1;
}


/* CORE v1.9 Brand + Header Customizer */
.brand-logo-wrap{
  width:calc(var(--core-brand-logo-size) + .65rem) !important;
  height:calc(var(--core-brand-logo-size) + .65rem) !important;
}
.brand-logo{
  width:var(--core-brand-logo-size) !important;
  height:var(--core-brand-logo-size) !important;
}
.brand-title{
  font-family:var(--core-brand-title-font) !important;
  color:var(--core-brand-title-color) !important;
  font-weight:var(--core-brand-title-weight) !important;
}
.brand-subtitle{
  font-family:var(--core-brand-subtitle-font) !important;
  color:var(--core-brand-subtitle-color) !important;
  font-weight:var(--core-brand-subtitle-weight) !important;
}
.brand-version{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  margin-top:.45rem;
  padding:.32rem .8rem;
  border-radius:999px;
  background:var(--core-brand-version-bg) !important;
  color:var(--core-brand-version-color) !important;
  font-family:var(--core-brand-version-font) !important;
  font-weight:var(--core-brand-version-weight) !important;
  font-size:.76rem;
  line-height:1;
}
.hero-header h1{
  font-family:var(--core-hero-title-font) !important;
  color:var(--core-hero-title-color) !important;
  font-weight:var(--core-hero-title-weight) !important;
  font-size:var(--core-hero-title-size) !important;
}
.hero-header p{
  font-family:var(--core-hero-subtitle-font) !important;
  color:var(--core-hero-subtitle-color) !important;
  font-weight:var(--core-hero-subtitle-weight) !important;
  font-size:var(--core-hero-subtitle-size) !important;
}


/* CORE v2.0 Project Actions */
.project-card-clickable{
  cursor:pointer;
}
.project-card-clickable:focus{
  outline:0;
  box-shadow:0 0 0 4px rgba(59,130,246,.18), 0 18px 40px rgba(15,23,42,calc(var(--core-shadow-opacity, .08) + .03));
}
.project-actions{
  display:grid;
  grid-template-columns:1fr 1.25fr;
  gap:.75rem;
  align-items:center;
  margin-top:1.05rem;
  padding-top:1rem;
  border-top:1px solid rgba(148,163,184,.14);
  position:relative;
  z-index:5;
}
.project-actions a,
.project-actions span{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  border-radius:1rem;
  font-weight:900;
  font-size:.92rem;
  line-height:1.2;
  transition:.18s ease;
}
.project-actions .btn-details{
  background:var(--project-details-bg, #ffffff);
  color:var(--project-details-color, #0f172a);
  border:1px solid rgba(148,163,184,.16);
  box-shadow:0 8px 24px rgba(15,23,42,.04);
}
.project-actions .btn-details:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(15,23,42,.08);
}
.project-actions .btn-ops{
  background:var(--project-ops-bg, #0f172a);
  color:var(--project-ops-color, #ffffff);
  border:1px solid rgba(15,23,42,.06);
  box-shadow:0 12px 28px rgba(15,23,42,.10);
}
.project-actions .btn-ops:hover{
  transform:translateY(-2px);
  filter:brightness(1.03);
}
.project-actions .btn-ops.disabled{
  background:#eef2f7 !important;
  color:#94a3b8 !important;
  box-shadow:none;
  cursor:not-allowed;
  pointer-events:none;
}
@media (max-width: 575.98px){
  .project-actions{
    grid-template-columns:1fr;
  }
}


/* CORE v2.1 Project Profile */
.project-profile-hero{
  position:relative;
  overflow:hidden;
  border-radius:var(--core-radius, 32px);
  background:linear-gradient(135deg,var(--project-bg-1,#fff),var(--project-bg-2,#f8fafc));
  border:1px solid rgba(148,163,184,.18);
  box-shadow:0 22px 60px rgba(15,23,42,.09);
}
.project-profile-hero .accent-line{
  position:absolute;
  top:0;
  right:0;
  left:0;
  height:var(--project-accent-thickness,14px);
  background:linear-gradient(90deg,var(--project-accent-1,#60a5fa),var(--project-accent-2,#2563eb));
  border-radius:var(--core-radius,32px) var(--core-radius,32px) 0 0;
}
.project-profile-hero .profile-inner{
  padding:2rem;
  padding-top:calc(2rem + var(--project-accent-thickness,14px));
}
.project-profile-hero h2{
  font-family:var(--project-title-font,var(--core-body-font));
  color:var(--project-title-color,#0f172a);
  font-weight:var(--project-title-weight,900);
  font-size:clamp(2rem,4vw,3.15rem);
  margin:0;
}
.project-profile-hero p{
  color:var(--project-text-color,#64748b);
  font-weight:800;
  line-height:1.9;
  margin:.75rem 0 0;
  max-width:760px;
}
.project-emoji.huge{
  width:5.2rem;
  height:5.2rem;
  font-size:2.35rem;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:1.65rem;
  background:rgba(255,255,255,.72);
  box-shadow:0 14px 36px rgba(15,23,42,.08);
}
.profile-metrics > div > div{
  background:rgba(255,255,255,.72);
  border:1px solid rgba(148,163,184,.16);
  border-radius:1.35rem;
  padding:1rem;
}
.profile-metrics small{
  display:block;
  color:#94a3b8;
  font-weight:900;
  margin-bottom:.35rem;
}
.profile-metrics strong{
  display:block;
  color:#0f172a;
  font-weight:900;
}
.profile-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  padding:.7rem;
  border-radius:1.5rem;
  background:rgba(255,255,255,.74);
  border:1px solid rgba(255,255,255,.8);
  box-shadow:0 12px 34px rgba(15,23,42,.06);
  backdrop-filter:blur(18px);
}
.profile-tabs a{
  padding:.75rem 1rem;
  border-radius:1rem;
  color:#64748b;
  font-weight:900;
  background:#f8fafc;
  border:1px solid rgba(148,163,184,.12);
  transition:.18s;
}
.profile-tabs a:hover,
.profile-tabs a.active{
  background:#0f172a;
  color:#fff;
  transform:translateY(-2px);
}
.profile-section{
  scroll-margin-top:1.5rem;
}
.profile-section-head{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:flex-start;
  margin-bottom:1.2rem;
}
.profile-section-head h3,
.content-card h3{
  font-weight:900;
}
.profile-section-head p{
  color:#64748b;
  margin:.25rem 0 0;
  font-weight:700;
}
.overview-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
}
.overview-item{
  padding:1rem;
  border-radius:1.35rem;
  background:#f8fafc;
  border:1px solid rgba(148,163,184,.13);
}
.overview-item span{
  display:block;
  color:#94a3b8;
  font-weight:900;
  font-size:.8rem;
  margin-bottom:.4rem;
}
.overview-item strong{
  display:block;
  color:#0f172a;
  font-weight:900;
  word-break:break-word;
}
.quick-add-form{
  background:#f8fafc;
  border:1px solid rgba(148,163,184,.13);
  padding:1rem;
  border-radius:1.4rem;
}
.link-tile-wrap{
  position:relative;
}
.link-tile-wrap form{
  position:absolute;
  top:.6rem;
  left:.6rem;
  opacity:0;
  transition:.18s;
}
.link-tile-wrap:hover form{
  opacity:1;
}
.mini-delete,
.roadmap-card form button{
  border:0;
  background:#fee2e2;
  color:#b91c1c;
  border-radius:999px;
  padding:.35rem .7rem;
  font-weight:900;
  font-size:.75rem;
}
.empty-state{
  border:1px dashed rgba(148,163,184,.45);
  border-radius:1.35rem;
  padding:1.2rem;
  color:#94a3b8;
  font-weight:900;
  text-align:center;
  background:#f8fafc;
}
.roadmap-board{
  display:grid;
  grid-template-columns:repeat(5,minmax(190px,1fr));
  gap:1rem;
  overflow-x:auto;
  padding-bottom:.35rem;
}
.roadmap-column{
  min-width:190px;
  background:#f8fafc;
  border:1px solid rgba(148,163,184,.13);
  border-radius:1.4rem;
  padding:.9rem;
}
.roadmap-column h4{
  display:flex;
  justify-content:space-between;
  gap:.5rem;
  font-size:.95rem;
  font-weight:900;
  color:#0f172a;
  margin:0 0 .8rem;
}
.roadmap-column h4 span{
  background:#e2e8f0;
  color:#475569;
  border-radius:999px;
  padding:.1rem .55rem;
  font-size:.75rem;
}
.roadmap-card{
  background:#fff;
  border:1px solid rgba(148,163,184,.14);
  box-shadow:0 8px 20px rgba(15,23,42,.04);
  border-radius:1rem;
  padding:.8rem;
  margin-bottom:.65rem;
}
.roadmap-card strong{
  display:block;
  font-weight:900;
  color:#334155;
  line-height:1.7;
}
.roadmap-card form{
  margin-top:.55rem;
}
.roadmap-empty{
  color:#94a3b8;
  font-weight:800;
  font-size:.85rem;
  text-align:center;
  padding:1rem .5rem;
}
.project-notes-editor{
  font-weight:700;
  line-height:1.9;
}
.ops-launch-card{
  display:block;
  position:relative;
  overflow:hidden;
  border-radius:1.5rem;
  padding:1.25rem;
  background:linear-gradient(135deg,#0f172a,#1e293b,#172554);
  color:#fff;
  box-shadow:0 18px 42px rgba(15,23,42,.16);
}
.ops-launch-card:hover{
  color:#fff;
  transform:translateY(-3px);
}
.ops-launch-card span{
  display:block;
  font-weight:900;
  font-size:1.05rem;
}
.ops-launch-card strong{
  display:block;
  margin-top:.5rem;
  color:rgba(255,255,255,.65);
  font-size:.8rem;
  word-break:break-all;
}
.ops-launch-card b{
  position:absolute;
  left:1rem;
  top:1rem;
  font-size:1.1rem;
}
.profile-activity-list{
  display:grid;
  gap:.8rem;
}
.profile-activity-item{
  display:flex;
  gap:.75rem;
  padding:.85rem;
  background:#f8fafc;
  border:1px solid rgba(148,163,184,.12);
  border-radius:1.15rem;
}
.profile-activity-item > span{
  width:.7rem;
  height:.7rem;
  border-radius:999px;
  background:#0f172a;
  margin-top:.35rem;
  flex:0 0 auto;
}
.profile-activity-item small{
  display:block;
  color:#94a3b8;
  font-weight:900;
  font-size:.74rem;
}
.profile-activity-item strong{
  display:block;
  color:#0f172a;
  font-weight:900;
}
.profile-activity-item p{
  color:#64748b;
  margin:.25rem 0 0;
  font-size:.82rem;
  font-weight:700;
  line-height:1.7;
}
@media (max-width: 991.98px){
  .overview-grid{
    grid-template-columns:1fr;
  }
  .profile-section-head{
    flex-direction:column;
  }
}


/* CORE v2.1.1 UI Polish Pass */

/* لمسات خلفية ناعمة بدون بهرجة */
.core-bg::before,
.core-bg::after{
  content:"";
  position:absolute;
  pointer-events:none;
  border-radius:999px;
  filter:blur(70px);
  opacity:.45;
  z-index:0;
}
.core-bg::before{
  width:28rem;
  height:28rem;
  top:8rem;
  left:8%;
  background:rgba(59,130,246,.055);
}
.core-bg::after{
  width:26rem;
  height:26rem;
  bottom:4rem;
  right:12%;
  background:rgba(16,185,129,.045);
}

/* تحسين عام للكروت واللوحات */
.content-card,
.section-panel,
.project-profile-hero,
.profile-metrics > div > div,
.link-tile,
.overview-item,
.roadmap-column,
.profile-activity-item{
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.content-card:hover,
.profile-metrics > div > div:hover,
.overview-item:hover,
.link-tile:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 42px rgba(15,23,42,.075);
  border-color:rgba(148,163,184,.24);
}

/* رأس المشروع: شفافية ونعومة أكثر */
.project-profile-hero .profile-inner{
  position:relative;
  z-index:1;
  backdrop-filter:blur(10px);
}
.project-profile-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 12% 15%, rgba(255,255,255,.72), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.44), transparent 30%);
  pointer-events:none;
}

/* بطاقات الملخص */
.profile-metrics > div:nth-child(1) > div{background:linear-gradient(135deg,rgba(59,130,246,.075),rgba(255,255,255,.86));}
.profile-metrics > div:nth-child(2) > div{background:linear-gradient(135deg,rgba(16,185,129,.075),rgba(255,255,255,.86));}
.profile-metrics > div:nth-child(3) > div{background:linear-gradient(135deg,rgba(245,158,11,.075),rgba(255,255,255,.86));}
.profile-metrics > div:nth-child(4) > div{background:linear-gradient(135deg,rgba(139,92,246,.075),rgba(255,255,255,.86));}

.profile-metrics > div > div{
  position:relative;
  overflow:hidden;
  min-height:112px;
}
.profile-metrics > div > div::before{
  position:absolute;
  left:1rem;
  top:1rem;
  width:2.4rem;
  height:2.4rem;
  border-radius:1rem;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.15rem;
  background:rgba(255,255,255,.72);
  box-shadow:0 10px 24px rgba(15,23,42,.055);
}
.profile-metrics > div:nth-child(1) > div::before{content:"🎯";}
.profile-metrics > div:nth-child(2) > div::before{content:"🟢";}
.profile-metrics > div:nth-child(3) > div::before{content:"⚡";}
.profile-metrics > div:nth-child(4) > div::before{content:"🔗";}

/* مؤشر الصحة الجديد: بطاقة صغيرة أنيقة */
.health-number{
  display:none !important;
}
.content-card:has(.score-bar.big){
  position:relative;
}
.content-card:has(.score-bar.big) h3{
  margin-bottom:1.15rem;
}
.content-card:has(.score-bar.big) .score-bar.big{
  height:12px;
  border-radius:999px;
  background:#e2e8f0;
  overflow:hidden;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.06);
}
.content-card:has(.score-bar.big) .score-bar.big i{
  display:block;
  height:100%;
  border-radius:999px;
}
.content-card:has(.score-bar.big) .score-bar.big i.score-good{background:#10b981;}
.content-card:has(.score-bar.big) .score-bar.big i.score-mid{background:#f59e0b;}
.content-card:has(.score-bar.big) .score-bar.big i.score-low{background:#ef4444;}

.content-card:has(.score-bar.big) .score-bar.big::before{
  content:"";
  display:block;
}
.content-card:has(.score-bar.big)::after{
  content:attr(data-health-label);
}

/* fallback عبر ترتيب صفحة المشروع */
.profile-section + .content-card:has(.score-bar.big){
  background:linear-gradient(135deg,#ffffff,#f8fafc);
}

/* شكل خاص لبطاقة الصحة في صفحة المشروع */
#operations + .content-card{
  background:linear-gradient(135deg,#ffffff,#f8fafc);
  border:1px solid rgba(148,163,184,.18);
}
#operations + .content-card h3{
  font-size:1.45rem;
}
#operations + .content-card .score-bar.big{
  margin-top:2.6rem;
  position:relative;
}
#operations + .content-card .score-bar.big::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(255,255,255,.35),transparent);
  pointer-events:none;
}
#operations + .content-card .score-bar.big + *{
  display:none;
}

/* نعرض النسبة بشكل أنيق باستخدام data من inline width غير متاح CSS، لذلك نترك الرقم داخل HTML مخفي ونضيفه بتعديل HTML أدناه */

/* روابط التشغيل: تمييز ناعم حسب ترتيب الرابط */
.link-tile{
  background:linear-gradient(135deg,#ffffff,#f8fafc);
  border:1px solid rgba(148,163,184,.14);
}
.link-tile::before{
  content:"";
  width:.55rem;
  align-self:stretch;
  border-radius:999px;
  background:#60a5fa;
  margin-inline-start:.15rem;
}
.link-tile-wrap:nth-child(4n+1) .link-tile::before{background:#3b82f6;}
.link-tile-wrap:nth-child(4n+2) .link-tile::before{background:#8b5cf6;}
.link-tile-wrap:nth-child(4n+3) .link-tile::before{background:#f59e0b;}
.link-tile-wrap:nth-child(4n+4) .link-tile::before{background:#10b981;}

/* Timeline لسجل النشاط */
.profile-activity-list{
  position:relative;
}
.profile-activity-list::before{
  content:"";
  position:absolute;
  top:.7rem;
  bottom:.7rem;
  right:.35rem;
  width:2px;
  background:linear-gradient(180deg,#0f172a,rgba(15,23,42,.08));
  opacity:.18;
}
.profile-activity-item{
  position:relative;
  padding-right:1.35rem;
  background:linear-gradient(135deg,#ffffff,#f8fafc);
}
.profile-activity-item > span{
  position:relative;
  z-index:1;
  box-shadow:0 0 0 5px #f8fafc;
}
.profile-activity-item:nth-child(4n+1) > span{background:#3b82f6;}
.profile-activity-item:nth-child(4n+2) > span{background:#10b981;}
.profile-activity-item:nth-child(4n+3) > span{background:#8b5cf6;}
.profile-activity-item:nth-child(4n+4) > span{background:#f59e0b;}

/* Roadmap polish */
.roadmap-column{
  background:linear-gradient(135deg,#ffffff,#f8fafc);
}
.roadmap-card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(15,23,42,.065);
}

/* بطاقة صحة مخصصة */
.health-card-polished{
  background:linear-gradient(135deg,#ffffff,#f8fafc) !important;
}
.health-card-polished .health-polish-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:1.1rem;
}
.health-card-polished .health-polish-title{
  font-weight:900;
  color:#0f172a;
  font-size:1.35rem;
}
.health-card-polished .health-polish-value{
  font-size:2.2rem;
  line-height:1;
  font-weight:900;
}
.health-card-polished .health-polish-value.score-good{color:#10b981;}
.health-card-polished .health-polish-value.score-mid{color:#f59e0b;}
.health-card-polished .health-polish-value.score-low{color:#ef4444;}
.health-card-polished .health-polish-status{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.4rem .75rem;
  border-radius:999px;
  font-size:.78rem;
  font-weight:900;
  background:#f1f5f9;
  color:#64748b;
}
.health-card-polished .health-polish-status i{
  width:.55rem;
  height:.55rem;
  border-radius:999px;
  display:inline-block;
}
.health-card-polished .health-polish-status i.score-good{background:#10b981;}
.health-card-polished .health-polish-status i.score-mid{background:#f59e0b;}
.health-card-polished .health-polish-status i.score-low{background:#ef4444;}
.health-card-polished .score-bar.big{
  margin-top:0 !important;
}

@media (max-width: 575.98px){
  .health-card-polished .health-polish-value{
    font-size:1.85rem;
  }
}


/* CORE v2.1.2 Fix Health Card + Favicon + Roadmap + ToDo */

/* إصلاح مؤشر الصحة نهائياً وإزالة أي مربعات/أشكال زائدة */
.health-card-polished::before,
.health-card-polished::after,
.health-card-polished .score-bar.big::before{
  content:none !important;
  display:none !important;
}
.health-card-polished{
  min-height:auto !important;
  padding:1.35rem !important;
  background:linear-gradient(135deg,#ffffff,#f8fafc) !important;
  border:1px solid rgba(148,163,184,.18) !important;
}
.health-card-polished .health-polish-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:1rem;
}
.health-card-polished .health-polish-title{
  font-size:1.25rem;
  font-weight:900;
  color:#0f172a;
}
.health-card-polished .health-polish-value{
  font-size:2rem;
  font-weight:900;
  line-height:1;
}
.health-card-polished .health-polish-status{
  margin-top:.55rem;
}
.health-card-polished .score-bar.big{
  height:11px !important;
  margin-top:0 !important;
  background:#e2e8f0 !important;
}

/* خارطة الطريق عند كثرة البنود */
.roadmap-board{
  max-height:720px;
  overflow:auto;
  padding:0 .15rem .75rem;
  scroll-snap-type:x proximity;
}
.roadmap-column{
  scroll-snap-align:start;
  border-top:5px solid #cbd5e1;
}
.roadmap-column h4{
  align-items:center;
}
.roadmap-column h4 i{
  display:inline-block;
  width:.7rem;
  height:.7rem;
  border-radius:999px;
  background:#94a3b8;
  margin-inline-end:.45rem;
}
.roadmap-status-قيد-التنفيذ{border-top-color:#3b82f6;background:linear-gradient(135deg,#eff6ff,#ffffff);}
.roadmap-status-قيد-التنفيذ h4 i{background:#3b82f6;}
.roadmap-status-مخطط-له{border-top-color:#f59e0b;background:linear-gradient(135deg,#fffbeb,#ffffff);}
.roadmap-status-مخطط-له h4 i{background:#f59e0b;}
.roadmap-status-مكتمل{border-top-color:#10b981;background:linear-gradient(135deg,#ecfdf5,#ffffff);}
.roadmap-status-مكتمل h4 i{background:#10b981;}
.roadmap-status-مؤجل{border-top-color:#8b5cf6;background:linear-gradient(135deg,#f5f3ff,#ffffff);}
.roadmap-status-مؤجل h4 i{background:#8b5cf6;}
.roadmap-status-لاحقا{border-top-color:#64748b;background:linear-gradient(135deg,#f8fafc,#ffffff);}
.roadmap-status-لاحقا h4 i{background:#64748b;}

.roadmap-card small{
  display:inline-flex;
  margin-top:.5rem;
  border-radius:999px;
  padding:.25rem .65rem;
  background:#f1f5f9;
  color:#64748b;
  font-size:.72rem;
  font-weight:900;
}

/* To Do List */
.todo-list{
  display:grid;
  gap:.75rem;
}
.todo-item{
  display:flex;
  align-items:center;
  gap:.85rem;
  padding:.85rem;
  border-radius:1.2rem;
  border:1px solid rgba(148,163,184,.16);
  background:linear-gradient(135deg,#ffffff,#f8fafc);
  transition:.18s ease;
}
.todo-item:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 30px rgba(15,23,42,.06);
}
.todo-toggle-form{
  margin:0;
}
.todo-check{
  width:2.2rem;
  height:2.2rem;
  border-radius:.75rem;
  border:2px solid #cbd5e1;
  background:#fff;
  color:#0f172a;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  transition:.18s ease;
}
.todo-content{
  flex:1;
  min-width:0;
}
.todo-content strong{
  display:block;
  color:#0f172a;
  font-weight:900;
  line-height:1.7;
}
.todo-content small{
  color:#94a3b8;
  font-weight:900;
}
.todo-done{
  background:linear-gradient(135deg,#ecfdf5,#ffffff);
  border-color:rgba(16,185,129,.28);
}
.todo-done .todo-check{
  background:#10b981;
  border-color:#10b981;
  color:#fff;
}
.todo-done .todo-content strong{
  color:#047857;
}
.todo-cancelled{
  background:linear-gradient(135deg,#f8fafc,#ffffff);
  opacity:.82;
}
.todo-cancelled .todo-check{
  background:#e2e8f0;
  border-color:#cbd5e1;
  color:#64748b;
}
.todo-cancelled .todo-content strong{
  color:#64748b;
  text-decoration:line-through;
  text-decoration-thickness:2px;
}
.todo-cancelled .todo-content small{
  color:#ef4444;
}

/* مزيد من النعومة للكروت العامة */
.project-profile-hero,
.content-card{
  box-shadow:0 18px 52px rgba(15,23,42,.07);
}


/* CORE v2.1.3 hard fix: health bar only + restore subtle effects */
.health-card-polished,
.health-card-polished *,
.health-number{
  all:revert-layer;
}
.health-number{display:none!important;}

.health-card-simple{
  padding:1.25rem!important;
  background:linear-gradient(135deg,#ffffff,#f8fafc)!important;
  border:1px solid rgba(148,163,184,.18)!important;
  box-shadow:0 18px 46px rgba(15,23,42,.07)!important;
}
.simple-health-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:1rem;
}
.simple-health-head h3{
  margin:0!important;
  font-weight:900!important;
  color:#0f172a!important;
}
.simple-health-badge{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:.4rem .8rem;
  font-weight:900;
  font-size:.85rem;
  background:#f1f5f9;
}
.simple-health-badge.score-good{color:#047857;background:#d1fae5;}
.simple-health-badge.score-mid{color:#b45309;background:#fef3c7;}
.simple-health-badge.score-low{color:#be123c;background:#ffe4e6;}

.simple-health-bar{
  position:relative;
  height:34px;
  overflow:hidden;
  border-radius:999px;
  background:#e2e8f0;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.08);
}
.simple-health-bar i{
  display:flex!important;
  align-items:center;
  justify-content:center;
  height:100%;
  min-width:54px;
  border-radius:999px;
  transition:width .35s ease;
  font-style:normal;
  box-shadow:0 8px 20px rgba(15,23,42,.12);
}
.simple-health-bar i.score-good{background:#10b981;}
.simple-health-bar i.score-mid{background:#f59e0b;}
.simple-health-bar i.score-low{background:#ef4444;}
.simple-health-bar b{
  color:#fff;
  font-weight:900;
  font-size:.95rem;
  line-height:1;
}

/* restore subtle hover/effects */
.content-card,
.section-panel,
.project-card,
.project-profile-hero,
.profile-metrics > div > div,
.overview-item,
.link-tile,
.roadmap-column,
.roadmap-card,
.todo-item{
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease!important;
}
.content-card:hover,
.profile-metrics > div > div:hover,
.overview-item:hover,
.link-tile:hover,
.roadmap-card:hover,
.todo-item:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 42px rgba(15,23,42,.075)!important;
}

/* ToDo guaranteed visible/style */
.todo-list{display:grid;gap:.75rem;}
.todo-item{
  display:flex;
  align-items:center;
  gap:.85rem;
  padding:.85rem;
  border-radius:1.2rem;
  border:1px solid rgba(148,163,184,.16);
  background:linear-gradient(135deg,#fff,#f8fafc);
}
.todo-check{
  width:2.2rem;height:2.2rem;border-radius:.75rem;
  border:2px solid #cbd5e1;background:#fff;color:#0f172a;
  display:flex;align-items:center;justify-content:center;
  font-weight:900;
}
.todo-content{flex:1;min-width:0;}
.todo-content strong{display:block;font-weight:900;color:#0f172a;}
.todo-content small{color:#94a3b8;font-weight:900;}
.todo-done{background:linear-gradient(135deg,#ecfdf5,#fff);border-color:rgba(16,185,129,.28);}
.todo-done .todo-check{background:#10b981;border-color:#10b981;color:#fff;}
.todo-done .todo-content strong{color:#047857;}
.todo-cancelled{opacity:.82;background:linear-gradient(135deg,#f8fafc,#fff);}
.todo-cancelled .todo-check{background:#e2e8f0;border-color:#cbd5e1;color:#64748b;}
.todo-cancelled .todo-content strong{color:#64748b;text-decoration:line-through;text-decoration-thickness:2px;}


/* CORE v2.1.4 Activity Sidebar + Health Cleanup */
.health-card-simple + .score-bar,
.health-card-simple ~ .score-bar.big{
  display:none !important;
}

.activity-page-head h2{
  font-weight:900;
  color:#0f172a;
  margin:0 0 .35rem;
}

.activity-timeline-page{
  display:grid;
  gap:1.25rem;
}

.activity-day-group{
  background:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.85);
  border-radius:2rem;
  padding:1.25rem;
  box-shadow:0 18px 46px rgba(15,23,42,.065);
  backdrop-filter:blur(18px);
}

.activity-day-group h3{
  font-size:1.15rem;
  font-weight:900;
  color:#0f172a;
  margin:0 0 1rem;
}

.activity-timeline-list{
  position:relative;
  display:grid;
  gap:.85rem;
}

.activity-timeline-list::before{
  content:"";
  position:absolute;
  top:.65rem;
  bottom:.65rem;
  right:.52rem;
  width:2px;
  background:linear-gradient(180deg,#0f172a,rgba(15,23,42,.08));
  opacity:.16;
}

.activity-timeline-item{
  position:relative;
  display:grid;
  grid-template-columns:1.2rem 1fr;
  gap:.85rem;
}

.activity-dot{
  position:relative;
  z-index:2;
  width:1rem;
  height:1rem;
  margin-top:1rem;
  border-radius:999px;
  background:#3b82f6;
  box-shadow:0 0 0 6px #f8fafc;
}

.activity-timeline-item:nth-child(4n+2) .activity-dot{background:#10b981;}
.activity-timeline-item:nth-child(4n+3) .activity-dot{background:#8b5cf6;}
.activity-timeline-item:nth-child(4n+4) .activity-dot{background:#f59e0b;}

.activity-card{
  background:linear-gradient(135deg,#ffffff,#f8fafc);
  border:1px solid rgba(148,163,184,.14);
  border-radius:1.35rem;
  padding:1rem;
  transition:.2s ease;
}

.activity-card:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 36px rgba(15,23,42,.075);
}

.activity-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.5rem;
  margin-bottom:.5rem;
}

.activity-meta time,
.activity-meta span,
.activity-meta a{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:.25rem .65rem;
  background:#f1f5f9;
  color:#64748b;
  font-size:.76rem;
  font-weight:900;
}

.activity-meta a{
  background:#dbeafe;
  color:#1d4ed8;
}

.activity-card h4{
  font-size:1rem;
  font-weight:900;
  color:#0f172a;
  margin:0;
  line-height:1.7;
}

.activity-card p{
  color:#64748b;
  font-weight:700;
  line-height:1.8;
  margin:.35rem 0 0;
}

@media (max-width: 575.98px){
  .activity-day-group{
    padding:1rem;
    border-radius:1.5rem;
  }
}


/* CORE v2.2 true project tabs */
.profile-tabs{
  position:sticky;
  top:1rem;
  z-index:20;
}
.roadmap-board-wide{
  min-height:520px;
}
.overview-mini-list{
  display:grid;
  gap:.8rem;
  margin-top:1rem;
}
.overview-mini-list > div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.9rem 1rem;
  border-radius:1.15rem;
  background:#f8fafc;
  border:1px solid rgba(148,163,184,.13);
}
.overview-mini-list span{
  color:#94a3b8;
  font-weight:900;
}
.overview-mini-list strong{
  color:#0f172a;
  font-weight:900;
}


/* CORE v2.3 Rich Notes Editor / Notion Lite */
.rich-notes-shell{
  overflow:hidden;
  border:1px solid rgba(148,163,184,.18);
  border-radius:1.5rem;
  background:linear-gradient(135deg,#ffffff,#f8fafc);
  box-shadow:0 16px 38px rgba(15,23,42,.055);
}

.rich-notes-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  padding:.8rem;
  background:rgba(248,250,252,.92);
  border-bottom:1px solid rgba(148,163,184,.14);
}

.rich-notes-toolbar button{
  border:0;
  border-radius:.9rem;
  padding:.55rem .78rem;
  background:#fff;
  color:#334155;
  font-size:.82rem;
  font-weight:900;
  box-shadow:0 6px 16px rgba(15,23,42,.045);
  transition:.18s ease;
}

.rich-notes-toolbar button:hover{
  transform:translateY(-2px);
  background:#0f172a;
  color:#fff;
}

.rich-notes-editor{
  min-height:420px;
  padding:1.25rem;
  outline:0;
  color:#0f172a;
  font-weight:700;
  line-height:2;
  font-size:1rem;
}

.rich-notes-editor:empty::before{
  content:attr(data-placeholder);
  color:#94a3b8;
  pointer-events:none;
}

.rich-notes-editor h1,
.rich-notes-editor h2,
.rich-notes-editor h3{
  font-weight:900;
  color:#0f172a;
  margin:1rem 0 .5rem;
  line-height:1.5;
}

.rich-notes-editor h1{font-size:2rem}
.rich-notes-editor h2{font-size:1.55rem}
.rich-notes-editor h3{font-size:1.25rem}

.rich-notes-editor ul,
.rich-notes-editor ol{
  padding-inline-start:1.7rem;
  margin:.75rem 0;
}

.rich-notes-editor li{
  margin:.35rem 0;
}

.rich-notes-editor blockquote{
  margin:1rem 0;
  padding:1rem 1.2rem;
  border-right:5px solid #3b82f6;
  border-radius:1rem;
  background:#eff6ff;
  color:#1e3a8a;
  font-weight:800;
}

.rich-notes-editor pre{
  direction:ltr;
  text-align:left;
  overflow:auto;
  border-radius:1rem;
  padding:1rem;
  background:#0f172a;
  color:#e2e8f0;
  line-height:1.8;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
}

.rich-notes-editor table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin:1rem 0;
  overflow:hidden;
  border:1px solid rgba(148,163,184,.18);
  border-radius:1rem;
}

.rich-notes-editor th,
.rich-notes-editor td{
  padding:.75rem;
  border-bottom:1px solid rgba(148,163,184,.14);
  background:#fff;
}

.rich-notes-editor th{
  background:#f1f5f9;
  font-weight:900;
}

.rich-notes-editor a{
  color:#2563eb;
  font-weight:900;
  text-decoration:underline;
}

.rich-notes-editor .rn-check{
  display:flex;
  align-items:center;
  gap:.7rem;
  margin:.55rem 0;
  padding:.7rem .85rem;
  border-radius:1rem;
  background:#f8fafc;
  border:1px solid rgba(148,163,184,.13);
}

.rich-notes-editor .rn-check label{
  display:flex;
  align-items:center;
  gap:.7rem;
  width:100%;
  margin:0;
}

.rich-notes-editor .rn-check input{
  width:1.15rem;
  height:1.15rem;
  accent-color:#10b981;
}

.rich-notes-editor .rn-check.checked,
.rich-notes-editor .rn-check:has(input:checked){
  background:#ecfdf5;
  border-color:rgba(16,185,129,.22);
}

.rich-notes-editor .rn-check.checked span,
.rich-notes-editor .rn-check:has(input:checked) span{
  color:#047857;
  text-decoration:line-through;
  text-decoration-thickness:2px;
}

@media (max-width:575.98px){
  .rich-notes-toolbar{
    gap:.35rem;
  }
  .rich-notes-toolbar button{
    padding:.5rem .65rem;
    font-size:.76rem;
  }
  .rich-notes-editor{
    min-height:340px;
    padding:1rem;
  }
}


/* CORE v2.4 Advanced Links Manager */
.advanced-link-form{
  background:linear-gradient(135deg,#ffffff,#f8fafc);
  border:1px solid rgba(148,163,184,.16);
  border-radius:1.5rem;
  padding:1rem;
  box-shadow:0 12px 30px rgba(15,23,42,.045);
}

.advanced-checks{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
}
.advanced-checks label{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  border-radius:999px;
  padding:.55rem .85rem;
  background:#f8fafc;
  border:1px solid rgba(148,163,184,.16);
  color:#475569;
  font-size:.85rem;
  font-weight:900;
}
.advanced-checks input{
  accent-color:#0f172a;
}

.advanced-links-list{
  display:grid;
  gap:1rem;
}

.advanced-link-row{
  overflow:hidden;
  border-radius:1.45rem;
  border:1px solid rgba(148,163,184,.16);
  background:linear-gradient(135deg,#ffffff,#f8fafc);
  box-shadow:0 12px 30px rgba(15,23,42,.045);
  transition:.2s ease;
}
.advanced-link-row:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 40px rgba(15,23,42,.07);
}
.advanced-link-row summary{
  list-style:none;
  display:grid;
  grid-template-columns:auto 1fr auto auto;
  align-items:center;
  gap:1rem;
  padding:1rem;
  cursor:pointer;
}
.advanced-link-row summary::-webkit-details-marker{
  display:none;
}
.advanced-link-row .link-icon,
.advanced-link-tile .link-icon{
  width:3rem;
  height:3rem;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:1.1rem;
  color:#fff;
  font-size:1.25rem;
  background:linear-gradient(135deg,var(--link-c1,#60a5fa),var(--link-c2,#2563eb));
  box-shadow:0 10px 22px rgba(15,23,42,.12);
  flex:0 0 auto;
}
.link-main strong{
  display:block;
  color:#0f172a;
  font-weight:900;
}
.link-main small{
  display:block;
  color:#64748b;
  font-weight:700;
  margin-top:.2rem;
  word-break:break-word;
}
.link-badges{
  display:flex;
  flex-wrap:wrap;
  gap:.35rem;
  justify-content:flex-end;
}
.link-badges b{
  border-radius:999px;
  padding:.3rem .65rem;
  background:#f1f5f9;
  color:#64748b;
  font-size:.72rem;
  font-weight:900;
}
.open-link-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:.5rem .85rem;
  background:#0f172a;
  color:#fff;
  font-size:.8rem;
  font-weight:900;
}
.open-link-btn:hover{
  color:#fff;
  filter:brightness(1.05);
}
.advanced-link-edit{
  padding:1rem;
  border-top:1px solid rgba(148,163,184,.13);
  background:rgba(248,250,252,.72);
}
.advanced-link-actions{
  display:flex;
  gap:.6rem;
  flex-wrap:wrap;
  padding:0 1rem 1rem;
  background:rgba(248,250,252,.72);
}
.advanced-link-tile{
  display:flex!important;
  align-items:center;
  gap:.85rem;
}
.advanced-link-tile::before{
  display:none!important;
}

@media (max-width: 767.98px){
  .advanced-link-row summary{
    grid-template-columns:auto 1fr;
  }
  .link-badges,
  .open-link-btn{
    grid-column:1 / -1;
    justify-content:flex-start;
  }
}


/* CORE v2.5 Operations Center Setup */
.operations-center-page{
  display:block;
}
.operation-hero{
  overflow:hidden;
  border-radius:2rem;
  border:1px solid rgba(148,163,184,.18);
  background:linear-gradient(135deg,#ffffff,#f8fafc);
  box-shadow:0 20px 54px rgba(15,23,42,.075);
  padding:1.25rem;
}
.operation-hero-main{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:1rem;
  align-items:stretch;
}
.operation-hero h3{
  font-size:clamp(1.65rem,3vw,2.5rem);
  font-weight:900;
  color:#0f172a;
  margin:.75rem 0 .45rem;
}
.operation-hero p{
  color:#64748b;
  font-weight:800;
  line-height:1.9;
  margin:0;
}
.operation-status-pill{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:.4rem .85rem;
  font-weight:900;
  font-size:.82rem;
}
.operation-hero.op-ready .operation-status-pill{background:#d1fae5;color:#047857}
.operation-hero.op-warning .operation-status-pill{background:#fef3c7;color:#b45309}
.operation-hero.op-stopped .operation-status-pill{background:#ffe4e6;color:#be123c}
.operation-hero.op-unset .operation-status-pill{background:#e2e8f0;color:#475569}
.operation-health{
  border-radius:1.5rem;
  padding:1rem;
  background:#fff;
  border:1px solid rgba(148,163,184,.13);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:.75rem;
}
.operation-health > span{
  color:#64748b;
  font-weight:900;
}
.operation-meta-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.75rem;
  margin-top:1rem;
}
.operation-meta-grid > div{
  border-radius:1.15rem;
  padding:.9rem;
  background:#fff;
  border:1px solid rgba(148,163,184,.13);
}
.operation-meta-grid small{
  display:block;
  color:#94a3b8;
  font-weight:900;
  margin-bottom:.35rem;
}
.operation-meta-grid strong{
  display:block;
  color:#0f172a;
  font-weight:900;
}
.operation-settings-form{
  background:#f8fafc;
  border:1px solid rgba(148,163,184,.13);
  border-radius:1.5rem;
  padding:1rem;
}
.operation-metrics-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.75rem;
}
.operation-metric{
  position:relative;
  display:flex;
  align-items:center;
  gap:.75rem;
  border-radius:1.25rem;
  padding:.9rem;
  background:linear-gradient(135deg,#fff,#f8fafc);
  border:1px solid rgba(148,163,184,.13);
}
.operation-metric > span{
  width:2.75rem;
  height:2.75rem;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:1rem;
  color:#fff;
  font-size:1.2rem;
  background:linear-gradient(135deg,var(--op-c1,#60a5fa),var(--op-c2,#2563eb));
  box-shadow:0 10px 24px rgba(15,23,42,.10);
}
.operation-metric small{
  display:block;
  color:#94a3b8;
  font-weight:900;
}
.operation-metric strong{
  display:block;
  color:#0f172a;
  font-weight:900;
  font-size:1.15rem;
}
.operation-metric form{
  margin-inline-start:auto;
}
.operation-metric button,
.operation-list-item form button,
.operation-action-card form button{
  border:0;
  width:1.75rem;
  height:1.75rem;
  border-radius:999px;
  background:#fee2e2;
  color:#b91c1c;
  font-weight:900;
}
.operation-list{
  display:grid;
  gap:.65rem;
}
.operation-list-item{
  display:grid;
  grid-template-columns:auto 1fr auto auto;
  align-items:center;
  gap:.65rem;
  border-radius:1.15rem;
  padding:.75rem;
  background:#f8fafc;
  border:1px solid rgba(148,163,184,.13);
}
.operation-list-item > span{
  width:2.35rem;
  height:2.35rem;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:.85rem;
  background:#fff;
  box-shadow:0 8px 18px rgba(15,23,42,.055);
}
.operation-list-item strong{
  display:block;
  color:#0f172a;
  font-weight:900;
}
.operation-list-item small{
  display:block;
  color:#94a3b8;
  font-weight:800;
  word-break:break-all;
}
.operation-list-item a{
  border-radius:999px;
  padding:.35rem .7rem;
  background:#0f172a;
  color:#fff;
  font-weight:900;
  font-size:.78rem;
}
.operation-actions-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.75rem;
}
.operation-action-card{
  border-radius:1.25rem;
  padding:.9rem;
  background:linear-gradient(135deg,#0f172a,#334155);
  color:#fff;
  display:grid;
  gap:.6rem;
  min-height:120px;
}
.operation-action-card > span{
  font-size:1.4rem;
}
.operation-action-card strong{
  font-weight:900;
}
.operation-action-card a{
  display:inline-flex;
  border-radius:999px;
  padding:.35rem .7rem;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-weight:900;
  font-size:.78rem;
}
.operation-logs{
  display:grid;
  gap:.75rem;
}
.operation-logs > div{
  border-radius:1rem;
  background:#f8fafc;
  border:1px solid rgba(148,163,184,.13);
  padding:.75rem;
}
.operation-logs small{
  display:block;
  color:#94a3b8;
  font-weight:900;
  font-size:.74rem;
}
.operation-logs strong{
  display:block;
  color:#0f172a;
  font-weight:900;
}
.operation-logs p{
  margin:.25rem 0 0;
  color:#64748b;
  font-weight:700;
  line-height:1.7;
}
@media (max-width: 1199.98px){
  .operation-hero-main{
    grid-template-columns:1fr;
  }
  .operation-meta-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 575.98px){
  .operation-meta-grid,
  .operation-metrics-grid,
  .operation-actions-grid{
    grid-template-columns:1fr;
  }
  .operation-list-item{
    grid-template-columns:auto 1fr;
  }
}
