/* Atlas OS v4.0 UI Foundation — تصميم تنفيذي فاخر ومتجاوب بالكامل */
:root{
  --bg:#f3f7fb;
  --bg2:#edf5ff;
  --surface:rgba(255,255,255,.82);
  --surface-solid:#ffffff;
  --ink:#0f172a;
  --muted:#64748b;
  --soft:#94a3b8;
  --primary:#2563eb;
  --primary2:#06b6d4;
  --navy:#111827;
  --navy2:#172033;
  --success:#16a34a;
  --warning:#d97706;
  --orange:#f97316;
  --danger:#dc2626;
  --line:rgba(148,163,184,.26);
  --shadow:0 24px 70px rgba(15,23,42,.10);
  --shadow-soft:0 14px 36px rgba(15,23,42,.07);
  --radius:28px;
  --radius-lg:36px;
  --content:1240px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-height:100vh;color:var(--ink);font-family:Tajawal,"IBM Plex Sans Arabic","Noto Sans Arabic",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:radial-gradient(circle at 12% 18%,rgba(6,182,212,.16),transparent 28%),radial-gradient(circle at 88% 10%,rgba(37,99,235,.14),transparent 30%),linear-gradient(135deg,var(--bg2),var(--bg));overflow-x:hidden}
a{text-decoration:none;color:inherit}button,input,textarea,select{font:inherit}.atlas-bg{position:fixed;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(6,182,212,.10) 0 10%,transparent 28% 100%);z-index:-1}
.app-shell{min-height:100vh}.sidebar{position:fixed;top:0;right:0;width:292px;height:100vh;padding:26px 18px;background:linear-gradient(180deg,#111827,#172033 58%,#0f172a);color:#fff;z-index:30;box-shadow:-20px 0 60px rgba(15,23,42,.14);display:flex;flex-direction:column}.brand-block{display:flex;align-items:center;gap:14px;padding:8px 8px 24px}.brand-mark{width:50px;height:50px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(135deg,var(--primary),var(--primary2));box-shadow:0 18px 44px rgba(37,99,235,.35);font-weight:900}.brand-title{font-size:23px;font-weight:900;letter-spacing:.2px}.brand-subtitle{font-size:12px;color:#b8c4d8;margin-top:2px}.side-nav{display:flex;flex-direction:column;gap:8px}.side-link{display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:18px;color:#dbe4f3;font-weight:700;transition:.2s}.side-link:hover,.side-link.is-active{background:rgba(255,255,255,.10);color:#fff;transform:translateX(-2px)}.side-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:12px;background:rgba(255,255,255,.08)}.sidebar-footer{margin-top:auto;padding:16px;border:1px solid rgba(255,255,255,.10);border-radius:22px;background:rgba(255,255,255,.06)}.mini-label{font-size:11px;color:#aab3c5}.user-chip{font-weight:900;margin:5px 0 10px}.logout-link{display:inline-block;color:#fca5a5;font-weight:800}
.content{margin-right:292px;padding:26px;width:calc(100% - 292px);max-width:calc(var(--content) + 292px);}.topbar{max-width:var(--content);margin:0 auto 22px;display:flex;justify-content:space-between;align-items:center;gap:18px}.topbar-kicker{font-size:12px;color:var(--muted);font-weight:800}.topbar-title{font-size:22px;font-weight:900}.topbar-actions{display:flex;gap:10px;align-items:center}.quick-pill{padding:11px 15px;border-radius:999px;background:rgba(255,255,255,.72);border:1px solid var(--line);box-shadow:var(--shadow-soft);font-weight:800;color:var(--ink)}.quick-pill.primary{background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;border:0}.page-wrap{max-width:var(--content);margin:0 auto}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:8px 0 22px}.page-title{font-size:42px;font-weight:950;margin:0;letter-spacing:-.5px}.page-subtitle{margin:8px 0 0;color:var(--muted);font-size:16px}.section-title{font-size:24px;margin:0 0 14px;font-weight:950}.executive-hero{position:relative;overflow:hidden;border-radius:var(--radius-lg);padding:34px;background:linear-gradient(135deg,#0f172a,#1e1b4b 58%,#075985);color:#fff;box-shadow:var(--shadow);margin-bottom:22px}.executive-hero:before{content:"";position:absolute;inset:auto -70px -100px auto;width:260px;height:260px;border-radius:50%;background:rgba(6,182,212,.30);filter:blur(2px)}.executive-hero h1{position:relative;font-size:50px;line-height:1.15;margin:0 0 10px;font-weight:950}.executive-hero p{position:relative;color:#dbeafe;margin:0;max-width:720px;font-size:18px}.hero-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.hero-chip{padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);font-weight:800}.grid{display:grid;gap:18px}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.card{background:var(--surface);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.76);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow-soft)}.card-solid{background:var(--surface-solid)}.card h2,.card h3{margin-top:0}.stat-card{min-height:126px;display:flex;flex-direction:column;justify-content:space-between}.stat{font-size:40px;font-weight:950;letter-spacing:-.5px}.muted{color:var(--muted)}.soft{color:var(--soft)}.btn{border:0;border-radius:16px;padding:12px 18px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-weight:900;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 14px 30px rgba(37,99,235,.20)}.btn:hover{transform:translateY(-1px)}.btn-secondary{background:#eef2ff;color:#3730a3;box-shadow:none}.btn-danger{background:var(--danger)}.btn-ghost{background:rgba(255,255,255,.72);color:var(--ink);box-shadow:none;border:1px solid var(--line)}.form{display:grid;gap:14px}.input,.select,.textarea{width:100%;padding:14px 16px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.86);color:var(--ink);outline:none}.input:focus,.select:focus,.textarea:focus{border-color:rgba(37,99,235,.55);box-shadow:0 0 0 4px rgba(37,99,235,.10)}.textarea{min-height:118px;resize:vertical}.form-row{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:separate;border-spacing:0 10px;min-width:720px}.table th{text-align:right;color:var(--muted);font-weight:900;padding:10px 14px}.table td{padding:14px;background:rgba(255,255,255,.82);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.table tr td:first-child{border-radius:0 18px 18px 0;border-right:1px solid var(--line)}.table tr td:last-child{border-radius:18px 0 0 18px;border-left:1px solid var(--line)}.badge{display:inline-flex;align-items:center;justify-content:center;padding:7px 11px;border-radius:999px;background:#eef2ff;color:#3730a3;font-weight:900;font-size:13px}.badge.success{background:#dcfce7;color:#166534}.badge.warning{background:#fef3c7;color:#92400e}.badge.orange{background:#ffedd5;color:#9a3412}.badge.danger{background:#fee2e2;color:#991b1b}.badge.neutral{background:#f1f5f9;color:#475569}.entity-card{display:block;position:relative;overflow:hidden;min-height:210px;transition:.2s}.entity-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.entity-card:after{content:"";position:absolute;inset:auto 0 0 0;height:5px;background:linear-gradient(90deg,var(--primary),var(--primary2))}.entity-title{font-size:26px;font-weight:950;margin:0 0 8px}.entity-meta{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.progress-line{height:9px;border-radius:999px;background:#e2e8f0;overflow:hidden;margin:16px 0}.progress-line span{display:block;height:100%;background:linear-gradient(90deg,var(--primary),var(--primary2));border-radius:inherit}.split-layout{display:grid;grid-template-columns:420px 1fr;gap:18px;align-items:start}.focus-card{background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(255,255,255,.68));border:1px solid rgba(255,255,255,.78)}.resume-card{background:linear-gradient(135deg,#fff,#eef7ff);border-color:rgba(37,99,235,.12)}.empty-state{padding:36px;text-align:center;color:var(--muted)}.login-page{display:grid;place-items:center;min-height:100vh;padding:20px}.login-card{width:min(460px,100%)}.login-logo{width:64px;height:64px;border-radius:22px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,var(--primary),var(--primary2));font-size:28px;font-weight:950;margin-bottom:18px}.fab{position:fixed;left:24px;bottom:24px;width:58px;height:58px;border-radius:22px;border:0;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-size:34px;line-height:1;box-shadow:0 18px 44px rgba(37,99,235,.35);z-index:50;cursor:pointer}.mobile-nav{display:none}.sheet-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.38);opacity:0;pointer-events:none;transition:.2s;z-index:70}.sheet-backdrop.is-open{opacity:1;pointer-events:auto}.bottom-sheet{position:fixed;right:0;left:0;bottom:0;transform:translateY(110%);transition:.25s ease;background:rgba(255,255,255,.96);backdrop-filter:blur(18px);border-radius:30px 30px 0 0;padding:12px 18px 24px;box-shadow:0 -24px 70px rgba(15,23,42,.18);z-index:80}.bottom-sheet.is-open{transform:translateY(0)}.sheet-handle{width:58px;height:5px;background:#cbd5e1;border-radius:999px;margin:0 auto 16px}.sheet-title{font-size:22px;font-weight:950;margin-bottom:14px}.sheet-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.sheet-grid a{padding:16px;border-radius:18px;background:#f8fafc;border:1px solid var(--line);font-weight:900}.sheet-grid a.is-disabled{opacity:.55}.actions{display:flex;gap:10px;flex-wrap:wrap}.desktop-only{display:block}.mobile-only{display:none}
@media(max-width:1180px){.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.split-layout{grid-template-columns:1fr}.content{padding:22px}}
@media(max-width:900px){.sidebar{display:none}.content{margin-right:0;width:100%;padding:16px 14px 112px}.topbar{padding:0;margin-bottom:16px}.topbar-actions{display:none}.topbar-title{font-size:18px}.page-head{align-items:flex-start;flex-direction:column}.page-title{font-size:34px}.executive-hero{padding:26px 22px;border-radius:30px}.executive-hero h1{font-size:36px}.executive-hero p{font-size:15px}.grid-4,.grid-3,.grid-2,.form-row{grid-template-columns:1fr}.card{border-radius:24px;padding:20px}.stat{font-size:34px}.mobile-nav{position:fixed;right:10px;left:10px;bottom:10px;height:72px;display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:8px;border-radius:26px;background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.70);box-shadow:0 18px 50px rgba(15,23,42,.18);z-index:60;backdrop-filter:blur(18px)}.mobile-link{border:0;background:transparent;border-radius:18px;display:grid;place-items:center;color:#64748b;font-weight:900;cursor:pointer}.mobile-link span{font-size:20px}.mobile-link small{font-size:11px}.mobile-link.is-active{background:#eff6ff;color:#1d4ed8}.fab{left:18px;bottom:94px;width:56px;height:56px}.desktop-only{display:none}.mobile-only{display:block}.sheet-grid{grid-template-columns:1fr}.table{min-width:680px}}
@media(max-width:520px){.executive-hero h1{font-size:31px}.hero-meta{gap:8px}.hero-chip{font-size:13px;padding:8px 10px}.entity-title{font-size:22px}.page-title{font-size:30px}}

/* v1.1 — Mobile overflow hardening: يمنع الفراغ الجانبي والانزلاق الأفقي في الجوال */
html,
body{
  width:100%;
  max-width:100%;
  overflow-x:hidden !important;
}
body{
  position:relative;
  touch-action:pan-y;
}
.app-shell,
.content,
.page-wrap,
.topbar,
.page-head,
.grid,
.card,
.executive-hero,
.split-layout,
.table-wrap{
  max-width:100%;
  min-width:0;
}
img,svg,video,canvas,iframe{
  max-width:100%;
}
.input,.select,.textarea,.btn,.quick-pill{
  min-width:0;
}
.card,
.entity-card,
.executive-hero{
  overflow-wrap:anywhere;
}
@media(max-width:900px){
  html,body{
    overflow-x:hidden !important;
  }
  .content{
    margin:0 !important;
    width:100% !important;
    max-width:100% !important;
    padding-inline:14px !important;
    overflow-x:hidden !important;
  }
  .page-wrap,
  .topbar{
    width:100% !important;
    max-width:100% !important;
    margin-inline:0 !important;
  }
  .grid{
    width:100%;
  }
  .card,
  .executive-hero{
    width:100%;
  }
  .table-wrap{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  .table{
    width:max-content;
    max-width:none;
  }
  .mobile-nav{
    width:auto !important;
    max-width:calc(100vw - 20px) !important;
  }
  .fab{
    max-width:56px;
  }
}
@media(max-width:520px){
  .content{
    padding-inline:12px !important;
  }
  .executive-hero{
    margin-inline:0;
  }
  .hero-meta{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .hero-chip{
    text-align:center;
    white-space:normal;
  }
}


/* v1.2 — Mobile dashboard density: بطاقات الجوال 2×2 بدون تغيير الديسكتوب */
@media (max-width:900px){
  .stats-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:12px !important;
  }
  .stats-grid .stat-card{
    min-height:112px;
    padding:18px !important;
  }
  .stats-grid .stat{
    font-size:34px;
  }
  .workspace-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:12px !important;
  }
  .workspace-grid .entity-card{
    min-height:170px;
    padding:18px !important;
  }
  .workspace-grid .entity-title{
    font-size:20px;
    line-height:1.2;
  }
  .workspace-grid .entity-card p{
    font-size:13px;
    line-height:1.7;
    margin:8px 0;
  }
  .workspace-grid .entity-meta{
    gap:6px;
    margin:12px 0;
  }
  .workspace-grid .badge{
    font-size:11px;
    padding:6px 8px;
  }
  .dashboard-bottom-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:12px !important;
  }
  .dashboard-bottom-grid .card{
    padding:18px !important;
    min-height:190px;
  }
  .dashboard-bottom-grid .section-title{
    font-size:20px;
    line-height:1.25;
  }
  .dashboard-bottom-grid .table-wrap{
    overflow-x:auto;
  }
  .dashboard-bottom-grid .table{
    min-width:360px;
    font-size:12px;
  }
  .dashboard-bottom-grid .table th,
  .dashboard-bottom-grid .table td{
    padding:9px 8px;
  }
}
@media (max-width:370px){
  .workspace-grid,
  .dashboard-bottom-grid{
    grid-template-columns:1fr !important;
  }
}

/* v1.3 — Hero interactive chips + best next action + compact mobile polish */
.hero-meta-links .hero-chip{
  transition:.18s ease;
  cursor:pointer;
}
.hero-meta-links .hero-chip:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.18);
}
.hero-next-action{
  position:relative;
  margin-top:18px;
  padding:16px 18px;
  border-radius:24px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px 14px;
  max-width:820px;
}
.hero-next-kicker{
  padding:7px 10px;
  border-radius:999px;
  color:#dbeafe;
  background:rgba(255,255,255,.10);
  font-size:12px;
  font-weight:900;
}
.hero-next-action strong{
  font-size:18px;
  font-weight:950;
}
.hero-next-action small{
  color:#dbeafe;
  grid-column:2/3;
  font-weight:700;
}
.hero-next-action a{
  grid-row:1/3;
  grid-column:3/4;
  padding:11px 16px;
  border-radius:16px;
  color:#fff;
  font-weight:950;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  box-shadow:0 12px 26px rgba(37,99,235,.22);
}
.stat-link-card{
  transition:.18s ease;
}
.stat-link-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow);
}
.calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:10px;
}
.calendar-day-name,
.calendar-cell{
  border-radius:20px;
  padding:14px;
}
.calendar-day-name{
  text-align:center;
  color:var(--muted);
  font-weight:950;
}
.calendar-cell{
  min-height:130px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(255,255,255,.76);
  box-shadow:var(--shadow-soft);
}
.calendar-cell.is-empty{
  opacity:.35;
  box-shadow:none;
}
.calendar-date{
  font-weight:950;
  margin-bottom:8px;
}
.calendar-item{
  display:block;
  margin-top:6px;
  padding:7px 9px;
  border-radius:12px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:12px;
  font-weight:900;
  line-height:1.45;
}
@media(max-width:900px){
  .hero-next-action{
    grid-template-columns:1fr;
    gap:9px;
    text-align:center;
  }
  .hero-next-action small,
  .hero-next-action a{
    grid-column:auto;
    grid-row:auto;
  }
  .calendar-grid{
    grid-template-columns:1fr;
  }
  .calendar-day-name{display:none}
  .calendar-cell{
    min-height:auto;
  }
  .calendar-cell.is-empty{display:none}
}


/* v1.4 — Navigation + Hero click safety + Calendar mobile redesign */
.executive-hero{isolation:isolate}
.executive-hero:before{pointer-events:none;z-index:0;inset:auto auto -95px -60px;width:250px;height:250px;opacity:.9}
.executive-hero h1,
.executive-hero p,
.hero-meta,
.hero-next-action{position:relative;z-index:2}
.hero-chip{position:relative;z-index:3}
.hero-next-action{overflow:hidden}
.hero-next-action:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.06),rgba(255,255,255,.01));pointer-events:none;z-index:-1}

.calendar-cell.is-today{border:2px solid rgba(37,99,235,.85);background:linear-gradient(135deg,#eff6ff,#ffffff);box-shadow:0 18px 45px rgba(37,99,235,.16)}
.calendar-cell.is-today .calendar-date{display:inline-grid;place-items:center;min-width:34px;height:34px;border-radius:14px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;padding:0 8px}
.calendar-cell.has-items{border-color:rgba(6,182,212,.36)}

@media(max-width:900px){
  .executive-hero:before{inset:auto auto -82px -42px;width:210px;height:210px;opacity:.62;filter:blur(1px)}
  .hero-next-action{margin-top:14px;padding:12px;border-radius:20px;display:grid;grid-template-columns:1fr;gap:7px;text-align:center;background:rgba(255,255,255,.11);border-color:rgba(255,255,255,.18)}
  .hero-next-kicker{justify-self:center;font-size:11px;padding:6px 10px}
  .hero-next-action strong{font-size:17px;line-height:1.45}
  .hero-next-action small{font-size:12px;line-height:1.55;color:#e0f2fe}
  .hero-next-action a{width:100%;padding:11px 14px;border-radius:16px}

  .calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr)) !important;gap:6px !important;direction:rtl}
  .calendar-day-name{display:block !important;font-size:11px;padding:8px 0;border-radius:12px;background:rgba(255,255,255,.45);box-shadow:none;color:#64748b}
  .calendar-cell{min-height:58px !important;padding:7px 5px !important;border-radius:16px;text-align:center;box-shadow:0 10px 24px rgba(15,23,42,.06)}
  .calendar-cell.is-empty{display:block !important;visibility:hidden}
  .calendar-date{margin:0 0 3px;font-size:13px;font-weight:950}
  .calendar-cell .soft{display:none}
  .calendar-item{font-size:0;padding:0;margin:4px auto 0;width:7px;height:7px;border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--primary2));overflow:hidden}
  .calendar-cell.is-today .calendar-date{min-width:28px;height:28px;border-radius:11px;font-size:13px;margin-inline:auto}
  .calendar-cell.is-today{border-width:2px;box-shadow:0 12px 28px rgba(37,99,235,.18)}
  .mobile-nav .mobile-link small{font-size:11px}
}
@media(max-width:430px){
  .calendar-grid{gap:5px !important}
  .calendar-cell{min-height:52px !important;border-radius:14px;padding:6px 3px !important}
  .calendar-day-name{font-size:10px}
}

/* Workspace Dashboard v1 — لوحة مساحة العمل */
.workspace-dashboard .workspace-hero{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:1fr 280px;
  gap:22px;
  align-items:end;
  border-radius:var(--radius-lg);
  padding:34px;
  margin-bottom:22px;
  color:#fff;
  background:
    radial-gradient(circle at 8% 90%, color-mix(in srgb, var(--workspace-color, #2563eb) 44%, transparent), transparent 30%),
    linear-gradient(135deg,#0f172a,#1e1b4b 58%,#075985);
  box-shadow:var(--shadow);
}
.workspace-dashboard .workspace-hero:before{
  content:"";
  position:absolute;
  width:260px;
  height:260px;
  border-radius:50%;
  left:-70px;
  bottom:-100px;
  background:rgba(6,182,212,.30);
  pointer-events:none;
}
.workspace-dashboard .workspace-hero-main,
.workspace-dashboard .workspace-score-card{position:relative;z-index:2}
.workspace-kicker{font-size:13px;font-weight:950;color:#93c5fd;margin-bottom:8px;letter-spacing:.3px}
.workspace-dashboard .workspace-hero h1{font-size:54px;line-height:1.1;margin:0 0 10px;font-weight:950;color:#fff}
.workspace-dashboard .workspace-hero p{color:#dbeafe;font-size:17px;margin:0;max-width:760px;line-height:1.9}
.workspace-score-card{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:28px;padding:22px;backdrop-filter:blur(12px)}
.workspace-score-card span{display:block;color:#dbeafe;font-weight:900;margin-bottom:8px}
.workspace-score-card strong{display:block;font-size:46px;font-weight:950;color:#fff;margin-bottom:12px}
.workspace-score-card .progress-line{background:rgba(255,255,255,.18)}
.workspace-score-card .progress-line span{background:linear-gradient(90deg,#38bdf8,#22c55e)}
.workspace-kpi-grid .stat-card{min-height:122px}
.workspace-main-grid .card{min-height:220px}
.workspace-actions-card .actions{margin-top:18px}
.compact-head{margin-bottom:14px}
.project-mini-card{min-height:230px}
.mini-card-footer{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:13px;font-weight:900;margin-top:8px}
.soft-row{display:block;padding:14px 0;border-bottom:1px solid rgba(148,163,184,.18)}
.soft-row:last-child{border-bottom:0}
.soft-row-title{display:block;color:var(--ink);font-weight:950;margin-bottom:5px}
.soft-row-meta{display:block;color:var(--muted);font-size:13px;font-weight:800}
.activity-list,.deadline-list{display:grid;gap:0}
@media(max-width:1180px){
  .workspace-dashboard .workspace-hero{grid-template-columns:1fr}
  .workspace-score-card{max-width:360px}
}
@media(max-width:900px){
  .workspace-dashboard .workspace-hero{padding:26px 22px;border-radius:30px;gap:16px;margin-bottom:18px}
  .workspace-dashboard .workspace-hero:before{left:-42px;bottom:-82px;width:210px;height:210px;opacity:.62}
  .workspace-dashboard .workspace-hero h1{font-size:38px;text-align:center}
  .workspace-dashboard .workspace-hero p{text-align:center;font-size:14px;line-height:1.8}
  .workspace-kicker{text-align:center}
  .workspace-score-card{max-width:100%;padding:18px;border-radius:24px;text-align:center}
  .workspace-score-card strong{font-size:38px}
  .workspace-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:12px !important}
  .workspace-kpi-grid .stat-card{min-height:112px;padding:18px !important}
  .workspace-main-grid,.workspace-bottom-grid{grid-template-columns:1fr !important}
  .workspace-project-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:12px !important}
  .workspace-project-grid .entity-card{min-height:190px;padding:18px !important}
  .workspace-project-grid .entity-title{font-size:20px;line-height:1.25}
  .workspace-project-grid .entity-card p{font-size:13px;line-height:1.7;margin:8px 0}
  .workspace-project-grid .entity-meta{gap:6px;margin:12px 0}
  .workspace-project-grid .badge{font-size:11px;padding:6px 8px}
  .mini-card-footer{display:block;font-size:12px;line-height:1.8}
}
@media(max-width:430px){
  .workspace-dashboard .workspace-hero h1{font-size:34px}
  .workspace-project-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .workspace-project-grid .entity-card{min-height:178px}
  .workspace-actions-card .actions .btn{width:100%}
}

/* Workspace Dashboard v1.6 Final Polish */
.workspace-dashboard-pro .workspace-hero-pro{
  grid-template-columns:1.45fr .55fr;
  align-items:stretch;
  background:
    radial-gradient(circle at 14% 18%, rgba(255,255,255,.18), transparent 28%),
    radial-gradient(circle at 92% 86%, color-mix(in srgb, var(--workspace-color, #2563eb) 46%, transparent), transparent 32%),
    linear-gradient(135deg,#0f172a,#1e1b4b 58%,#075985);
}
.workspace-dashboard-pro .workspace-hero-pro:before{pointer-events:none;z-index:0;opacity:.55}
.workspace-hero-chips .hero-chip{position:relative;z-index:3;transition:.18s ease}
.workspace-hero-chips .hero-chip:hover{background:rgba(255,255,255,.2);transform:translateY(-1px)}
.workspace-next-action{
  position:relative;z-index:2;margin-top:18px;padding:16px;border-radius:24px;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);
  display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08)
}
.workspace-next-action strong{color:#fff;font-size:18px;font-weight:950}
.workspace-next-action small{color:#dbeafe;line-height:1.7}
.workspace-next-action a{background:#fff;color:#1d4ed8;border-radius:16px;padding:11px 16px;font-weight:950;white-space:nowrap}
.workspace-score-card-pro small{display:block;color:#dbeafe;font-weight:800;margin-top:10px}
.workspace-actions-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.workspace-actions-grid .btn{width:100%;padding-inline:10px}
.project-mini-card-pro{min-height:250px;display:flex;flex-direction:column;gap:14px}
.project-card-top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.project-card-top .entity-title{margin-bottom:6px}
.progress-ring{--p:0;width:66px;height:66px;border-radius:50%;flex:0 0 66px;display:grid;place-items:center;background:conic-gradient(var(--primary) calc(var(--p) * 1%), #e2e8f0 0);position:relative;box-shadow:0 12px 30px rgba(37,99,235,.12)}
.progress-ring:before{content:"";position:absolute;inset:7px;border-radius:50%;background:#fff}
.progress-ring span{position:relative;z-index:2;font-size:13px;font-weight:950;color:#0f172a}
.project-card-info{display:grid;gap:6px;color:var(--muted);font-size:13px;font-weight:800;line-height:1.6}
.project-open-row{margin-top:auto;padding-top:12px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;font-weight:950;color:#2563eb}
.project-open-row b{font-size:20px;line-height:1}
.soft-empty{background:linear-gradient(135deg,#f8fafc,#eef7ff);border:1px dashed #cbd5e1;border-radius:22px;color:#475569}
.compact-empty{padding:20px;text-align:right;display:grid;gap:6px}
.compact-empty strong{font-size:16px;color:#0f172a}
.compact-empty span{font-size:13px;color:var(--muted);line-height:1.7}
.activity-timeline{display:grid;gap:12px}
.timeline-item{position:relative;display:grid;grid-template-columns:18px 1fr;gap:10px;align-items:start;padding:10px 0}
.timeline-dot{width:11px;height:11px;border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--primary2));margin-top:6px;box-shadow:0 0 0 5px rgba(37,99,235,.1)}
.timeline-item strong{display:block;font-size:15px;color:#0f172a;margin-bottom:4px}
.timeline-item small{color:var(--muted);font-weight:800;line-height:1.6}
.workspace-panel-card{min-height:230px}
.project-hero-lite{margin-bottom:18px}
@media(max-width:900px){
  .workspace-dashboard-pro .workspace-hero-pro{grid-template-columns:1fr;text-align:center;padding:26px 20px;border-radius:30px}
  .workspace-next-action{grid-template-columns:1fr;text-align:center;gap:8px;margin-top:15px;padding:13px;border-radius:20px}
  .workspace-next-action .hero-next-kicker{justify-self:center}
  .workspace-next-action strong{font-size:17px;line-height:1.45}
  .workspace-next-action small{font-size:12px;line-height:1.6}
  .workspace-next-action a{width:100%;padding:11px 14px}
  .workspace-actions-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .workspace-actions-grid .btn{font-size:12px;border-radius:14px;padding:11px 8px}
  .project-mini-card-pro{min-height:222px;padding:16px !important}
  .project-card-top{gap:10px}
  .progress-ring{width:54px;height:54px;flex-basis:54px}
  .progress-ring:before{inset:6px}
  .progress-ring span{font-size:11px}
  .project-card-info{font-size:12px}
  .project-open-row{font-size:13px}
  .compact-empty{text-align:center;padding:18px}
}
@media(max-width:420px){
  .workspace-project-grid.workspace-project-grid-pro{grid-template-columns:1fr !important}
  .project-mini-card-pro{min-height:auto}
}

/* Task Engine v1.0 */
.task-center .task-hero,
.todo-center .task-hero{
  display:grid;grid-template-columns:1.25fr .75fr;gap:20px;align-items:center;
  background:linear-gradient(135deg,#0f172a,#1e293b 55%,#075985);color:#fff;border:0;overflow:hidden;position:relative
}
.task-hero:before{content:"";position:absolute;inset:auto -80px -90px auto;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.10);pointer-events:none}
.task-hero h1{font-size:38px;margin:6px 0 8px;color:#fff;font-weight:950;letter-spacing:-.02em}
.task-hero p{color:#dbeafe;line-height:1.8;margin:0;font-weight:700}
.task-hero-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;position:relative;z-index:2}
.task-hero-stats a{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);border-radius:20px;padding:14px;text-align:center;color:#fff;transition:.18s ease}
.task-hero-stats a:hover{transform:translateY(-2px);background:rgba(255,255,255,.18)}
.task-hero-stats strong{display:block;font-size:26px;font-weight:950;line-height:1}
.task-hero-stats span{display:block;color:#dbeafe;font-size:12px;font-weight:800;margin-top:6px}
.task-toolbar-card{margin-top:18px}
.task-toolbar{display:grid;grid-template-columns:1.5fr .8fr 1.2fr auto auto;gap:10px;align-items:center}
.create-task-accordion{margin-top:18px}
.create-task-accordion summary{cursor:pointer;font-size:18px;font-weight:950;color:#0f172a;list-style:none;display:flex;justify-content:space-between;align-items:center}
.create-task-accordion summary:after{content:"+";width:30px;height:30px;border-radius:12px;display:grid;place-items:center;background:#eef2ff;color:#2563eb;font-weight:950}
.create-task-accordion[open] summary:after{content:"−"}
.task-create-form{margin-top:16px}
.compact-head{margin-top:22px;margin-bottom:12px}
.task-card-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.task-exec-card{padding:18px;display:flex;flex-direction:column;gap:14px;border:1px solid rgba(226,232,240,.9);transition:.18s ease;position:relative;overflow:hidden}
.task-exec-card:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(15,23,42,.10)}
.task-exec-card.is-overdue{border-color:rgba(220,38,38,.25);background:linear-gradient(135deg,#fff,#fff7f7)}
.task-main-link{display:block;color:inherit}
.task-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.task-card-head h3{margin:0 0 6px;font-size:18px;color:#0f172a;font-weight:950;line-height:1.35}
.task-card-head p{margin:0;color:var(--muted);font-size:13px;line-height:1.6;font-weight:800}
.task-card-meta{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0;color:var(--muted);font-size:12px;font-weight:850}
.task-card-meta span{background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:6px 9px}
.danger-text{color:#dc2626 !important;background:#fef2f2 !important;border-color:#fecaca !important}
.task-quick-actions{display:flex;flex-wrap:wrap;gap:8px;padding-top:12px;border-top:1px solid var(--line)}
.mini-action{border:0;background:#f1f5f9;color:#334155;border-radius:12px;padding:8px 11px;font-weight:900;cursor:pointer;font-family:inherit;font-size:12px}
.mini-action:hover{background:#e2e8f0}.mini-action.is-done{background:#dcfce7;color:#166534}
.task-detail-hero .breadcrumb-lite{position:relative;z-index:3;color:#bfdbfe;font-weight:850;margin-bottom:8px}
.task-detail-actions form{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;position:relative;z-index:4}
.task-detail-grid{align-items:start}
.checklist-list{display:grid;gap:8px;margin:14px 0}
.checklist-row{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:10px}
.check-dot{width:30px;height:30px;border:0;border-radius:12px;background:#e2e8f0;font-weight:950;cursor:pointer;color:#475569}
.check-dot.is-done{background:#dcfce7;color:#166534}
.compact-form{margin-top:14px}.check-inline{font-weight:800;color:#334155}
.badge.is-hot,.hero-chip.is-hot{background:#fee2e2 !important;color:#991b1b !important}
.todo-center .task-card-list{margin-bottom:80px}
.alert{padding:14px 16px;border-radius:18px;font-weight:900;margin:14px 0}.alert.success{background:#dcfce7;color:#166534}.alert.danger{background:#fee2e2;color:#991b1b}
@media(max-width:900px){
  .task-center .task-hero,.todo-center .task-hero{grid-template-columns:1fr;text-align:center;padding:24px 18px;border-radius:28px}
  .task-hero h1{font-size:30px}.task-hero p{font-size:13px}
  .task-hero-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
  .task-hero-stats a{padding:10px 6px;border-radius:16px}.task-hero-stats strong{font-size:20px}.task-hero-stats span{font-size:10px}
  .task-toolbar{grid-template-columns:1fr}.task-toolbar .btn{width:100%}
  .task-card-list{grid-template-columns:1fr;gap:11px}
  .task-exec-card{padding:15px;border-radius:20px}
  .task-card-head h3{font-size:16px}.task-card-head p{font-size:12px}
  .task-card-meta{gap:6px;margin:11px 0}.task-card-meta span{font-size:11px;padding:5px 8px}
  .task-quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.mini-action{padding:9px 5px;font-size:11px}
  .task-detail-actions form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.task-detail-actions .btn{width:100%;padding-inline:8px}
  .task-detail-page .task-detail-hero h1{font-size:27px;line-height:1.35}
}
@media(max-width:390px){.task-hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.task-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Workspace Dashboard Refinement v1 — مركز تشغيل مساحة العمل */
.workspace-dashboard-refined .workspace-hero-pro{
  padding:28px;
  min-height:auto;
  align-items:center;
}
.workspace-dashboard-refined .workspace-hero-pro h1{
  font-size:clamp(32px,4vw,52px);
  margin:8px 0 10px;
}
.workspace-dashboard-refined .workspace-hero-pro p{
  max-width:760px;
  line-height:1.75;
}
.workspace-dashboard-refined .workspace-score-card-pro{
  min-width:260px;
  padding:18px;
  border-radius:24px;
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
}
.workspace-dashboard-refined .workspace-score-card-pro strong{
  display:block;
  font-size:46px;
  line-height:1;
  margin:8px 0;
  color:#fff;
}
.workspace-dashboard-refined .workspace-kpi-grid{
  margin-top:14px;
  gap:12px;
}
.workspace-dashboard-refined .workspace-kpi-grid .stat-card{
  min-height:96px;
  padding:15px 16px;
}
.workspace-dashboard-refined .workspace-kpi-grid .stat{
  font-size:31px;
}
.workspace-overdue-card{
  margin-top:16px;
  border-color:rgba(220,38,38,.22);
  background:linear-gradient(135deg,#fff,#fff7f7);
}
.workspace-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.workspace-card-head .section-title{
  margin:0;
}
.workspace-card-head .page-subtitle{
  margin:6px 0 0;
}
.workspace-ops-grid .card{
  min-height:190px;
}
.workspace-actions-card .muted,
.workspace-snapshot-card .muted{
  line-height:1.7;
}
.workspace-snapshot-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.workspace-snapshot-list span{
  border:1px solid var(--line);
  background:#f8fafc;
  border-radius:18px;
  padding:12px;
  display:grid;
  gap:4px;
}
.workspace-snapshot-list b{
  font-size:25px;
  font-weight:950;
  color:#0f172a;
}
.workspace-snapshot-list small{
  color:var(--muted);
  font-weight:850;
}
.workspace-task-list{
  display:grid;
  gap:8px;
}
.workspace-task-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:4px 12px;
  padding:11px 13px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:18px;
  align-items:center;
}
.workspace-task-row strong{
  color:#0f172a;
  font-weight:950;
  line-height:1.35;
}
.workspace-task-row span{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  grid-column:1/2;
}
.workspace-task-row b{
  grid-row:1/3;
  grid-column:2/3;
  border-radius:999px;
  padding:7px 10px;
  background:#f1f5f9;
  color:#334155;
  font-size:12px;
  white-space:nowrap;
}
.workspace-task-row.is-overdue b{
  background:#fee2e2;
  color:#991b1b;
}
.workspace-project-grid-pro{
  gap:12px;
}
.workspace-dashboard-refined .project-mini-card-pro{
  min-height:188px;
  padding:16px !important;
  gap:10px;
}
.workspace-dashboard-refined .project-card-top{
  align-items:center;
}
.workspace-dashboard-refined .project-card-top .entity-title{
  font-size:20px;
  margin-bottom:3px;
  line-height:1.25;
}
.workspace-dashboard-refined .project-card-top p{
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:0;
  font-size:12px;
  line-height:1.5;
}
.workspace-dashboard-refined .project-mini-card-pro .entity-meta{
  margin:7px 0;
  gap:6px;
}
.workspace-dashboard-refined .project-mini-card-pro .badge{
  font-size:11px;
  padding:5px 8px;
}
.workspace-dashboard-refined .progress-ring{
  width:52px;
  height:52px;
  flex-basis:52px;
}
.workspace-dashboard-refined .progress-ring:before{
  inset:6px;
}
.workspace-dashboard-refined .progress-ring span{
  font-size:11px;
}
.workspace-dashboard-refined .project-card-info{
  font-size:12px;
  gap:4px;
}
.workspace-dashboard-refined .project-open-row{
  padding-top:9px;
  font-size:13px;
}
.workspace-dashboard-refined .workspace-panel-card{
  min-height:190px;
}
.workspace-dashboard-refined .timeline-item{
  padding:7px 0;
}
.workspace-dashboard-refined .timeline-item strong{
  font-size:14px;
}
.workspace-dashboard-refined .timeline-item small{
  font-size:12px;
}

@media(max-width:900px){
  .workspace-dashboard-refined .workspace-hero-pro{
    padding:22px 18px;
    text-align:right;
    border-radius:28px;
  }
  .workspace-dashboard-refined .workspace-hero-pro h1{
    font-size:32px;
  }
  .workspace-dashboard-refined .workspace-hero-pro p{
    font-size:13px;
  }
  .workspace-dashboard-refined .workspace-score-card-pro{
    min-width:0;
    width:100%;
    padding:14px;
  }
  .workspace-dashboard-refined .workspace-score-card-pro strong{
    font-size:36px;
  }
  .workspace-dashboard-refined .workspace-kpi-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .workspace-dashboard-refined .workspace-kpi-grid .stat-card{
    min-height:82px;
    padding:12px !important;
  }
  .workspace-dashboard-refined .workspace-kpi-grid .stat{
    font-size:25px;
  }
  .workspace-card-head{
    align-items:stretch;
  }
  .workspace-card-head .btn{
    padding:9px 12px;
    border-radius:14px;
    font-size:12px;
  }
  .workspace-ops-grid{
    grid-template-columns:1fr !important;
  }
  .workspace-ops-grid .card{
    min-height:auto;
  }
  .workspace-snapshot-list{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:7px;
  }
  .workspace-snapshot-list span{
    padding:9px 6px;
    border-radius:14px;
    text-align:center;
  }
  .workspace-snapshot-list b{
    font-size:20px;
  }
  .workspace-snapshot-list small{
    font-size:10px;
  }
  .workspace-task-row{
    padding:10px 11px;
    border-radius:16px;
  }
  .workspace-dashboard-refined .project-mini-card-pro{
    min-height:auto;
    padding:14px !important;
  }
  .workspace-dashboard-refined .project-card-top .entity-title{
    font-size:18px;
  }
  .workspace-dashboard-refined .project-card-info span:nth-child(2){
    display:none;
  }
  .workspace-bottom-grid{
    grid-template-columns:1fr !important;
  }
}
@media(max-width:420px){
  .workspace-snapshot-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .workspace-actions-grid{
    grid-template-columns:1fr !important;
  }
}

/* Project Dashboard v2 — لوحة قيادة المشروع */
.project-dashboard-v2{display:grid;gap:16px}
.project-v2-hero{position:relative;overflow:hidden;border-radius:var(--radius-lg);padding:28px;background:linear-gradient(135deg,#0f172a,#1e1b4b 54%,#0e7490);color:#fff;box-shadow:var(--shadow);display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px;align-items:center}
.project-v2-hero:before{content:"";position:absolute;left:-80px;bottom:-95px;width:260px;height:260px;border-radius:50%;background:rgba(14,165,233,.28);pointer-events:none}
.project-v2-hero-main,.project-v2-score-card{position:relative;z-index:2}
.project-v2-hero h1{font-size:clamp(34px,4vw,54px);line-height:1.15;margin:8px 0 10px;font-weight:950;color:#fff}
.project-v2-hero p{color:#dbeafe;line-height:1.8;margin:0;max-width:760px;font-weight:700}
.project-v2-hero-chips .hero-chip.success{background:rgba(34,197,94,.18)!important;color:#dcfce7!important;border-color:rgba(187,247,208,.22)!important}
.project-v2-hero-chips .hero-chip.warning{background:rgba(245,158,11,.18)!important;color:#fef3c7!important;border-color:rgba(253,230,138,.24)!important}
.project-v2-hero-chips .hero-chip.orange{background:rgba(249,115,22,.18)!important;color:#ffedd5!important;border-color:rgba(254,215,170,.24)!important}
.project-v2-hero-chips .hero-chip.danger{background:rgba(239,68,68,.18)!important;color:#fee2e2!important;border-color:rgba(254,202,202,.24)!important}
.project-v2-next-action{margin-top:16px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px 14px;align-items:center;padding:14px;border-radius:22px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16)}
.project-v2-next-action strong{color:#fff;font-size:18px;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project-v2-next-action small{grid-column:2/3;color:#dbeafe;font-weight:800;line-height:1.5}
.project-v2-next-action a{grid-row:1/3;grid-column:3/4;background:#fff;color:#1d4ed8;border-radius:16px;padding:11px 16px;font-weight:950;white-space:nowrap}
.project-v2-score-card{padding:18px;border-radius:26px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.18);color:#fff;text-align:center}
.project-v2-score-card span{display:block;color:#dbeafe;font-weight:900;margin-bottom:8px}
.project-v2-score-card strong{display:block;font-size:52px;font-weight:950;line-height:1;color:#fff;margin-bottom:12px}
.project-v2-score-card .progress-line{background:rgba(255,255,255,.18)}
.project-v2-score-card .progress-line span{background:linear-gradient(90deg,#38bdf8,#22c55e)}
.project-v2-score-card small{color:#dbeafe;font-weight:800}
.project-v2-kpis{gap:12px}.project-v2-kpis .stat-card{min-height:96px;padding:15px 16px}.project-v2-kpis .stat{font-size:31px}
.project-v2-top-grid{align-items:stretch;gap:12px}.project-v2-top-grid .card{min-height:210px}
.project-health-body{display:grid;gap:14px}.project-health-score{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;padding:14px;border-radius:22px;background:#f8fafc;border:1px solid var(--line)}
.project-health-score strong{font-size:42px;font-weight:950;color:#0f172a;line-height:1}.project-health-score span{color:var(--muted);font-weight:800;line-height:1.7}
.project-health-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.project-health-metrics b{font-size:21px}.project-health-metrics small{font-size:11px}
.project-actions-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:10px}.project-actions-grid .btn{padding-inline:10px;width:100%}
.project-v2-mini-note{margin-top:14px;padding:12px 14px;border-radius:18px;background:#f8fafc;border:1px solid var(--line);color:var(--muted);font-weight:800;line-height:1.7}
.project-v2-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:4px}.project-v2-section-head .section-title{margin:0}.project-v2-section-head .page-subtitle{margin:5px 0 0}
.project-v2-modules-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.project-v2-module-card{display:grid;gap:11px;min-height:170px;padding:16px!important;color:var(--ink)}
.project-v2-module-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.project-v2-module-top h3{font-size:19px;line-height:1.3;margin:0 0 5px;font-weight:950}.project-v2-module-top small{color:var(--muted);font-weight:800}
.project-v2-ring{--p:0;width:54px;height:54px;border-radius:50%;flex:0 0 54px;display:grid;place-items:center;background:conic-gradient(var(--primary) calc(var(--p)*1%),#e2e8f0 0);position:relative}.project-v2-ring:before{content:"";position:absolute;inset:6px;background:#fff;border-radius:50%}.project-v2-ring b{position:relative;font-size:11px;font-weight:950;color:#0f172a}
.project-v2-module-stats{display:flex;gap:6px;flex-wrap:wrap}.project-v2-module-stats span{padding:6px 9px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:900}.danger-text{background:#fee2e2!important;color:#991b1b!important}
.project-v2-bottom-grid{align-items:start;gap:12px}.project-v2-panel{min-height:300px}.project-v2-future-grid{gap:12px}.project-v2-mini-feature{min-height:130px}.project-v2-mini-feature h3{margin:0 0 8px;font-size:19px;font-weight:950}.project-v2-mini-feature p{line-height:1.7;margin:0}
@media(max-width:900px){
  .project-v2-hero{grid-template-columns:1fr;text-align:right;padding:22px 18px;border-radius:28px;gap:15px}
  .project-v2-hero h1{font-size:32px}.project-v2-hero p{font-size:13px;line-height:1.7}
  .project-v2-next-action{grid-template-columns:1fr;text-align:center;gap:7px;padding:12px;border-radius:20px}.project-v2-next-action .hero-next-kicker{justify-self:center}.project-v2-next-action strong{font-size:16px;white-space:normal}.project-v2-next-action small{grid-column:auto;font-size:12px}.project-v2-next-action a{grid-row:auto;grid-column:auto;width:100%;padding:10px 12px}
  .project-v2-score-card{padding:14px}.project-v2-score-card strong{font-size:38px}
  .project-v2-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.project-v2-kpis .stat-card{min-height:82px;padding:12px!important}.project-v2-kpis .stat{font-size:25px}
  .project-v2-top-grid,.project-v2-bottom-grid,.project-v2-future-grid{grid-template-columns:1fr!important}.project-v2-top-grid .card{min-height:auto}.project-health-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.project-health-score{grid-template-columns:1fr;text-align:center}.project-actions-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.project-actions-grid .btn{font-size:12px;padding:10px 8px;border-radius:14px}
  .project-v2-section-head{align-items:stretch}.project-v2-section-head .quick-pill{align-self:center;white-space:nowrap}.project-v2-modules-grid{grid-template-columns:1fr}.project-v2-module-card{min-height:auto}.project-v2-panel{min-height:auto}
}
@media(max-width:420px){.project-actions-grid{grid-template-columns:1fr}.project-v2-section-head{flex-direction:column}.project-v2-section-head .quick-pill{width:100%;text-align:center;justify-content:center}.project-health-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Project Dashboard v2.1 — Timeline Fix + Compact Activity */
.project-dashboard-v2 .project-v2-panel .activity-timeline,
.project-dashboard-v2 .project-v2-panel .timeline-item{
  display:initial;
}
.project-v2-timeline-list{
  display:grid;
  gap:10px;
  width:100%;
}
.project-v2-timeline-item{
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding:12px 14px;
  border:1px solid rgba(203,213,225,.9);
  border-radius:18px;
  background:linear-gradient(135deg,#ffffff,#f8fbff);
  color:var(--ink);
  text-decoration:none;
  min-width:0;
  overflow:hidden;
}
.project-v2-timeline-item:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(15,23,42,.08);
}
.project-v2-timeline-icon{
  width:34px;
  height:34px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#eef2ff;
  color:#2563eb;
  font-weight:950;
  font-size:18px;
  line-height:1;
}
.project-v2-timeline-item.success .project-v2-timeline-icon{background:#dcfce7;color:#15803d}
.project-v2-timeline-item.create .project-v2-timeline-icon{background:#e0f2fe;color:#0369a1}
.project-v2-timeline-item.status .project-v2-timeline-icon{background:#ede9fe;color:#6d28d9}
.project-v2-timeline-item.warning .project-v2-timeline-icon{background:#fef3c7;color:#b45309}
.project-v2-timeline-item.danger .project-v2-timeline-icon{background:#fee2e2;color:#b91c1c}
.project-v2-timeline-content{
  display:grid;
  gap:4px;
  min-width:0;
  max-width:100%;
}
.project-v2-timeline-content strong{
  display:block;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:14px;
  font-weight:950;
  color:#0f172a;
  line-height:1.45;
  word-break:normal!important;
  overflow-wrap:normal!important;
  writing-mode:horizontal-tb!important;
}
.project-v2-timeline-content small,
.project-v2-timeline-content em{
  display:block;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  line-height:1.5;
  font-style:normal;
  word-break:normal!important;
  overflow-wrap:normal!important;
  writing-mode:horizontal-tb!important;
}
.project-v2-timeline-content em{color:#64748b;font-weight:700}

@media(max-width:900px){
  .project-v2-timeline-list{gap:9px}
  .project-v2-timeline-item{
    grid-template-columns:38px minmax(0,1fr);
    gap:10px;
    padding:11px 12px;
    border-radius:16px;
  }
  .project-v2-timeline-icon{
    width:30px;
    height:30px;
    border-radius:12px;
    font-size:16px;
  }
  .project-v2-timeline-content strong{
    white-space:normal;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    font-size:14px;
  }
  .project-v2-timeline-content small,
  .project-v2-timeline-content em{
    white-space:normal;
    display:-webkit-box;
    -webkit-line-clamp:1;
    -webkit-box-orient:vertical;
    font-size:11px;
  }
}

/* Module Dashboard v1.0 */
.module-dashboard-v1{padding-bottom:120px}
.module-v1-hero{
  display:grid;grid-template-columns:1fr 260px;gap:20px;align-items:stretch;
  background:linear-gradient(135deg,#10172f 0%,#172554 52%,#0891b2 100%);
  color:#fff;border-radius:34px;padding:28px;position:relative;overflow:hidden;margin-bottom:18px;
  box-shadow:0 24px 70px rgba(15,23,42,.16)
}
.module-v1-hero:before{content:"";position:absolute;inset:auto auto -110px -80px;width:260px;height:260px;border-radius:50%;background:rgba(14,165,233,.22);pointer-events:none}
.module-v1-hero-main{position:relative;z-index:2;display:flex;flex-direction:column;gap:12px}
.module-v1-hero h1{margin:0;font-size:44px;line-height:1.1;color:#fff;font-weight:950;letter-spacing:-.03em}
.module-v1-hero p{margin:0;color:#dbeafe;line-height:1.85;font-weight:800;max-width:860px}
.module-v1-hero-chips{gap:8px}.module-v1-hero-chips .hero-chip{background:rgba(255,255,255,.13);color:#fff;border:1px solid rgba(255,255,255,.18)}
.module-v1-hero-chips .hero-chip.is-hot{background:#fee2e2!important;color:#991b1b!important;border-color:#fecaca}
.module-v1-next-action{margin-top:auto;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.17);border-radius:24px;padding:16px;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.module-v1-next-action strong{font-size:18px;color:#fff;font-weight:950;line-height:1.45}.module-v1-next-action small{display:block;color:#dbeafe;font-weight:800}.module-v1-next-action a{background:#fff;color:#2563eb;border-radius:16px;padding:11px 16px;font-weight:950;white-space:nowrap}
.module-v1-score-card{position:relative;z-index:2;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:26px;padding:22px;display:flex;flex-direction:column;justify-content:center;gap:12px;text-align:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.module-v1-score-card span,.module-v1-score-card small{color:#dbeafe;font-weight:900}.module-v1-score-card strong{font-size:52px;color:#fff;font-weight:950;line-height:1}
.module-v1-stats-grid{margin-bottom:18px}.module-v1-top-grid{align-items:start;margin-bottom:18px}.module-v1-health-card,.module-v1-actions-card{min-height:330px}
.module-v1-health-score{margin:18px 0;padding:20px;border-radius:24px;background:linear-gradient(135deg,#fff,#f8fbff);border:1px solid #e2e8f0;text-align:center}.module-v1-health-score b{display:block;font-size:50px;font-weight:950;color:#0f172a;line-height:1}.module-v1-health-score span{display:block;margin-top:8px;color:#64748b;font-weight:850;line-height:1.75}
.module-v1-health-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.module-v1-health-metrics span{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:12px;text-align:center}.module-v1-health-metrics b{display:block;font-size:20px;color:#0f172a;font-weight:950;line-height:1.25}.module-v1-health-metrics small{display:block;color:#64748b;font-weight:850;margin-top:4px}
.module-v1-task-form{margin-top:14px}.module-v1-section-head{display:flex;justify-content:space-between;align-items:end;gap:14px;margin:22px 0 12px}.module-v1-section-head .section-title{margin:0}.module-v1-section-head .page-subtitle{margin:6px 0 0}
.module-v1-kanban{display:grid;grid-template-columns:repeat(5,minmax(220px,1fr));gap:12px;align-items:start;overflow-x:auto;padding-bottom:8px;margin-bottom:20px}.module-v1-kanban-column{background:rgba(255,255,255,.72);border:1px solid rgba(226,232,240,.92);border-radius:24px;padding:12px;min-width:220px;box-shadow:0 18px 44px rgba(15,23,42,.06)}
.module-v1-column-head{display:grid;grid-template-columns:1fr auto;gap:4px;align-items:center;padding:4px 4px 12px}.module-v1-column-head strong{font-size:17px;font-weight:950;color:#0f172a}.module-v1-column-head small{grid-column:1/-1;color:#64748b;font-weight:800}.module-v1-column-head b{grid-row:1;grid-column:2;background:#eef2ff;color:#2563eb;border-radius:999px;min-width:28px;height:28px;display:grid;place-items:center;font-weight:950}
.module-v1-kanban-list{display:grid;gap:9px}.module-v1-task-card{display:grid;gap:8px;background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:12px;color:#0f172a;transition:.16s ease}.module-v1-task-card:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(15,23,42,.08)}.module-v1-task-card.is-overdue{border-color:#fecaca;background:linear-gradient(135deg,#fff,#fff7f7)}.module-v1-task-card strong{font-size:14px;font-weight:950;line-height:1.45}.module-v1-task-card span{font-size:12px;color:#64748b;font-weight:850}.module-v1-empty-mini{padding:16px;border-radius:16px;background:#f8fafc;border:1px dashed #cbd5e1;color:#94a3b8;text-align:center;font-weight:850}
.module-v1-bottom-grid{align-items:start}.module-v1-panel{min-height:430px}.module-v1-timeline-list .project-v2-timeline-item{min-height:auto}
@media(max-width:1100px){.module-v1-hero{grid-template-columns:1fr}.module-v1-score-card{min-height:180px}.module-v1-kanban{grid-template-columns:repeat(5,240px)}}
@media(max-width:900px){
  .module-dashboard-v1{padding-bottom:150px}.module-v1-hero{padding:24px 18px;border-radius:30px;text-align:center}.module-v1-hero h1{font-size:36px;line-height:1.12}.module-v1-hero p{font-size:14px;line-height:1.8}.module-v1-hero-chips{justify-content:center;display:flex;flex-wrap:wrap}.module-v1-next-action{grid-template-columns:1fr;text-align:center;border-radius:22px}.module-v1-next-action .hero-next-kicker{justify-self:center}.module-v1-next-action a{width:100%;padding:12px}.module-v1-score-card strong{font-size:44px}.module-v1-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.module-v1-top-grid,.module-v1-bottom-grid{grid-template-columns:1fr!important}.module-v1-health-card,.module-v1-actions-card,.module-v1-panel{min-height:auto}.module-v1-health-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.module-v1-section-head{align-items:start;flex-direction:column;text-align:right}.module-v1-kanban{grid-template-columns:repeat(5,82vw);gap:10px;margin-inline:-2px}.module-v1-kanban-column{min-width:82vw;border-radius:22px}.module-v1-task-card{padding:11px;border-radius:16px}.module-v1-task-card strong{font-size:13px}.module-v1-task-card span{font-size:11px}
}
@media(max-width:420px){.module-v1-hero h1{font-size:31px}.module-v1-health-score b{font-size:42px}.module-v1-health-score span{font-size:13px}.module-v1-health-metrics b{font-size:17px}.module-v1-health-metrics small{font-size:11px}.module-v1-kanban{grid-template-columns:repeat(5,86vw)}.module-v1-kanban-column{min-width:86vw}}

/* =========================================================
   Atlas OS v4.0 — Task Dashboard v1.0 / Execution Center
   تصميم صفحة المهمة التنفيذية بدون تغيير قاعدة البيانات
   ========================================================= */
.task-execution-page{padding-bottom:120px;}
.task-exec-hero{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px;align-items:stretch;background:linear-gradient(135deg,#111936 0%,#1f2f7a 58%,#09b8cb 100%);border-radius:34px;padding:30px;position:relative;overflow:hidden;box-shadow:0 22px 55px rgba(15,23,42,.16);color:#fff;margin-bottom:18px;}
.task-exec-hero:before{content:"";position:absolute;width:260px;height:260px;border-radius:50%;background:rgba(20,184,166,.22);left:-90px;bottom:-100px;}
.task-exec-hero>*{position:relative;z-index:1;}
.task-exec-hero .breadcrumb-lite{color:rgba(255,255,255,.78);font-weight:800;margin-bottom:8px;}
.task-exec-hero .hero-version{display:inline-flex;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:8px 12px;color:#dff6ff;font-weight:900;font-size:12px;margin-bottom:10px;}
.task-exec-hero h1{font-size:clamp(30px,4vw,54px);line-height:1.05;margin:4px 0 12px;font-weight:1000;letter-spacing:-.03em;}
.task-exec-hero p{font-size:16px;color:rgba(255,255,255,.84);max-width:920px;line-height:1.8;margin:0;}
.task-exec-chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;}
.task-exec-progress-card{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);border-radius:28px;padding:22px;display:flex;flex-direction:column;justify-content:center;gap:10px;min-height:210px;backdrop-filter:blur(8px);}
.task-exec-progress-card span{color:rgba(255,255,255,.82);font-weight:900;}
.task-exec-progress-card strong{font-size:52px;line-height:1;font-weight:1000;color:#fff;}
.task-exec-progress-card small{color:rgba(255,255,255,.78);font-weight:800;}
.task-exec-progress-card .progress-line{background:rgba(255,255,255,.22);height:10px;}
.task-exec-progress-card .progress-line span{background:linear-gradient(90deg,#38bdf8,#22c55e);}
.task-best-step-card{display:flex;align-items:center;justify-content:space-between;gap:18px;background:rgba(255,255,255,.78);border:1px solid rgba(226,232,240,.95);border-radius:28px;padding:22px 24px;box-shadow:0 18px 45px rgba(15,23,42,.08);margin-bottom:18px;}
.task-best-step-card .mini-label{display:inline-flex;background:#eef6ff;color:#2563eb;border-radius:999px;padding:8px 12px;font-weight:1000;font-size:12px;margin-bottom:8px;}
.task-best-step-card h2{font-size:24px;margin:0 0 6px;color:#0f172a;font-weight:1000;}
.task-best-step-card p{margin:0;color:#64748b;font-weight:800;}
.inline-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;}
.task-exec-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px;}
.task-exec-stats .stat-card{background:rgba(255,255,255,.74);border:1px solid rgba(226,232,240,.9);border-radius:24px;padding:18px;box-shadow:0 14px 35px rgba(15,23,42,.06);}
.task-exec-stats .stat-card span{display:block;color:#64748b;font-weight:900;margin-bottom:8px;}
.task-exec-stats .stat-card strong{font-size:28px;font-weight:1000;color:#0f172a;}
.task-exec-main-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;margin-bottom:18px;align-items:start;}
.task-panel{background:rgba(255,255,255,.76);border:1px solid rgba(226,232,240,.92);border-radius:28px;padding:22px;box-shadow:0 18px 45px rgba(15,23,42,.07);overflow:hidden;}
.panel-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px;}
.panel-title-row h2{font-size:24px;margin:0 0 6px;color:#0f172a;font-weight:1000;}
.panel-title-row p{margin:0;color:#64748b;font-weight:800;line-height:1.7;}
.health-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:10px 14px;font-weight:1000;white-space:nowrap;}
.health-success{background:#dcfce7;color:#166534;}
.health-warning{background:#fef3c7;color:#92400e;}
.health-orange{background:#ffedd5;color:#9a3412;}
.health-danger{background:#fee2e2;color:#991b1b;}
.task-health-score{background:rgba(248,250,252,.86);border:1px solid rgba(226,232,240,.95);border-radius:24px;padding:24px;text-align:center;margin-bottom:14px;}
.task-health-score strong{display:block;font-size:56px;font-weight:1000;color:#0f172a;letter-spacing:-.04em;}
.task-health-score p{margin:8px 0 0;color:#475569;font-weight:900;font-size:16px;line-height:1.8;}
.health-mini-grid,.time-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.health-mini-grid div,.time-grid div{background:rgba(248,250,252,.82);border:1px solid rgba(226,232,240,.9);border-radius:18px;padding:14px;text-align:center;}
.health-mini-grid strong,.time-grid strong{display:block;font-size:18px;color:#0f172a;font-weight:1000;margin-bottom:4px;}
.health-mini-grid span,.time-grid span{color:#64748b;font-weight:900;font-size:12px;}
.task-status-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px;}
.task-add-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;}
.checklist-progress{margin-bottom:16px;}
.task-checklist-list{display:grid;gap:10px;}
.task-check-row{display:flex;align-items:center;gap:12px;width:100%;border:1px solid rgba(226,232,240,.95);background:#fff;border-radius:18px;padding:12px 14px;text-align:right;}
.task-check-row span{font-weight:900;color:#0f172a;line-height:1.6;}
.task-check-row.is-done span{text-decoration:line-through;color:#94a3b8;}
.task-check-row .check-dot{width:34px;height:34px;border-radius:12px;border:0;background:#eef6ff;color:#2563eb;font-weight:1000;cursor:pointer;flex:0 0 auto;}
.task-check-row.is-done .check-dot{background:#dcfce7;color:#15803d;}
.resume-summary{background:#f8fafc;border:1px solid #e2e8f0;border-radius:20px;padding:16px;margin-bottom:14px;display:grid;gap:8px;}
.resume-summary strong{font-size:17px;color:#0f172a;font-weight:1000;}
.resume-summary span{color:#64748b;font-weight:800;line-height:1.7;}
.resume-summary b{color:#2563eb;font-weight:1000;line-height:1.7;}
.compact-task-form{display:grid;gap:10px;}
.compact-task-form .textarea{min-height:92px;}
.execution-timeline{position:relative;display:grid;gap:12px;}
.execution-timeline:before{content:"";position:absolute;right:15px;top:8px;bottom:8px;width:2px;background:#dbeafe;}
.execution-timeline-item{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;background:#fff;border:1px solid rgba(226,232,240,.95);border-radius:18px;padding:14px;}
.execution-timeline-item .timeline-dot{width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#06b6d4);box-shadow:0 0 0 7px #eff6ff;position:relative;z-index:2;margin-top:2px;}
.execution-timeline-item strong{display:block;color:#0f172a;font-weight:1000;line-height:1.5;margin-bottom:4px;word-break:normal;overflow-wrap:anywhere;}
.execution-timeline-item p{margin:0 0 6px;color:#64748b;font-weight:800;line-height:1.7;word-break:normal;overflow-wrap:anywhere;}
.execution-timeline-item small{color:#94a3b8;font-weight:900;}
.future-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.future-grid div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:16px;}
.future-grid strong{display:block;color:#0f172a;font-weight:1000;margin-bottom:6px;}
.future-grid span{color:#64748b;font-weight:800;line-height:1.6;}
.pill-danger{background:#fee2e2!important;color:#991b1b!important;}
@media (max-width: 900px){
  .task-execution-page{padding-left:14px;padding-right:14px;padding-bottom:140px;}
  .task-exec-hero{grid-template-columns:1fr;padding:24px 20px;border-radius:30px;gap:16px;margin-top:8px;}
  .task-exec-hero h1{font-size:40px;line-height:1.08;}
  .task-exec-hero p{font-size:16px;}
  .task-exec-progress-card{min-height:auto;padding:18px;border-radius:24px;}
  .task-exec-progress-card strong{font-size:48px;}
  .task-exec-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .task-exec-chips .pill{justify-content:center;}
  .task-best-step-card{display:grid;padding:20px;border-radius:26px;}
  .task-best-step-card h2{font-size:24px;line-height:1.35;}
  .inline-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;}
  .inline-actions .btn{width:100%;}
  .task-exec-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  .task-exec-stats .stat-card{min-height:112px;display:flex;flex-direction:column;justify-content:center;}
  .task-exec-main-grid{grid-template-columns:1fr;gap:14px;}
  .task-panel{border-radius:26px;padding:20px;}
  .panel-title-row{display:grid;gap:8px;}
  .panel-title-row h2{font-size:30px;}
  .task-health-score strong{font-size:62px;}
  .health-mini-grid,.time-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .task-status-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
  .task-add-line{grid-template-columns:1fr;}
  .task-check-row{padding:14px;border-radius:18px;}
  .task-check-row span{font-size:18px;}
  .future-grid{grid-template-columns:1fr;}
  .execution-timeline:before{right:14px;}
}
@media (max-width: 520px){
  .task-exec-hero h1{font-size:34px;}
  .task-exec-chips{grid-template-columns:1fr;}
  .task-exec-stats{grid-template-columns:1fr 1fr;}
  .health-mini-grid,.time-grid{grid-template-columns:1fr 1fr;}
  .panel-title-row h2{font-size:28px;}
}

/* =========================================================
   My Tasks Dashboard v1.0 — Daily Execution Center
   ========================================================= */
.my-tasks-dashboard{display:flex;flex-direction:column;gap:24px;padding-bottom:140px}.mytasks-hero{display:grid;grid-template-columns:1.25fr .9fr;gap:24px;align-items:stretch;background:linear-gradient(135deg,#141b45 0%,#233f99 52%,#06b6d4 100%);color:#fff;border:0;overflow:hidden;position:relative}.mytasks-hero:before{content:"";position:absolute;inset:auto auto -120px -90px;width:290px;height:290px;border-radius:50%;background:rgba(6,182,212,.22)}.mytasks-hero-main{position:relative;z-index:1;display:flex;flex-direction:column;gap:14px}.mytasks-hero h1{font-size:clamp(42px,5vw,76px);line-height:1.05;margin:0;color:#fff}.mytasks-hero p{max-width:760px;margin:0;color:rgba(255,255,255,.82);font-size:18px;line-height:1.9}.mytasks-hero-stats{position:relative;z-index:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.mytasks-hero-stats a{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:118px;border:1px solid rgba(255,255,255,.2);border-radius:24px;background:rgba(255,255,255,.13);color:#fff;text-decoration:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}.mytasks-hero-stats strong{font-size:38px;line-height:1}.mytasks-hero-stats span{margin-top:8px;font-weight:800;color:rgba(255,255,255,.8)}.mytasks-best-task{margin-top:auto;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);border-radius:24px;padding:18px;display:grid;grid-template-columns:auto 1fr auto;gap:10px 16px;align-items:center}.mytasks-best-task span{grid-column:1/-1;justify-self:start;background:rgba(255,255,255,.13);border-radius:999px;padding:8px 14px;font-weight:900;color:#dbeafe}.mytasks-best-task strong{font-size:22px}.mytasks-best-task small{color:rgba(255,255,255,.78);font-weight:800}.mytasks-top-grid,.mytasks-focus-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.mytasks-brief-card h2,.mytasks-capture-card h2,.mytasks-section-card h2{font-size:32px;margin:0 0 8px}.mytasks-brief-card p,.mytasks-capture-card p,.mytasks-section-card p{color:var(--muted);line-height:1.8;margin:0}.brief-metrics{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.brief-metrics span{background:#f1f5f9;border-radius:999px;padding:10px 16px;font-weight:900;color:#2563eb}.mytasks-capture-form{display:flex;flex-direction:column;gap:12px}.mytasks-filter-card{padding:14px 18px}.mytasks-filterbar{display:flex;flex-direction:column;gap:12px}.filter-scroll{display:flex;gap:10px;overflow-x:auto;white-space:nowrap;padding-bottom:4px;scrollbar-width:none}.filter-scroll::-webkit-scrollbar{display:none}.filter-chip{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border-radius:999px;background:#fff;border:1px solid rgba(148,163,184,.25);box-shadow:0 10px 26px rgba(15,23,42,.06);font-weight:900;color:#0f172a;text-decoration:none}.filter-chip.is-active{background:linear-gradient(135deg,#2563eb,#06b6d4);color:#fff}.mytasks-search-row{display:grid;grid-template-columns:1fr auto;gap:10px}.section-head-inline{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.focus-list,.queue-list,.activity-stream-compact,.mytasks-result-list{display:flex;flex-direction:column;gap:12px}.focus-task-item,.queue-item,.mini-task-row,.activity-compact-item,.mytasks-result-card>a{display:block;text-decoration:none;color:#0f172a;border:1px solid rgba(148,163,184,.22);border-radius:22px;background:rgba(255,255,255,.76);padding:16px;transition:.2s ease}.focus-task-item:hover,.queue-item:hover,.mini-task-row:hover,.activity-compact-item:hover,.mytasks-result-card:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(15,23,42,.08)}.focus-rank{display:inline-flex;border-radius:999px;background:#fff7ed;color:#c2410c;font-weight:900;padding:7px 12px;margin-bottom:8px}.focus-task-item strong,.queue-item strong,.mini-task-row strong,.activity-compact-item strong{display:block;font-size:18px;line-height:1.5}.focus-task-item small,.queue-item small,.mini-task-row small,.activity-compact-item small{display:block;color:#64748b;font-weight:800;margin-top:4px}.queue-item{display:grid;grid-template-columns:82px 1fr;gap:4px 14px;align-items:center}.queue-time{grid-row:1/3;display:flex;align-items:center;justify-content:center;background:#eef6ff;color:#2563eb;border-radius:18px;min-height:58px;font-weight:900}.mini-task-row{display:grid;grid-template-columns:120px 1fr;gap:4px 14px;align-items:center}.mini-task-row>span{grid-row:1/3;background:#f1f5f9;border-radius:999px;padding:8px 12px;text-align:center;font-weight:900;color:#475569}.mini-task-row.is-danger>span{background:#fee2e2;color:#b91c1c}.overdue-panel{border-color:rgba(248,113,113,.24)}.mytasks-kanban-mini{display:grid;grid-template-columns:repeat(5,minmax(160px,1fr));gap:14px;overflow-x:auto;padding-bottom:8px}.kanban-mini-col{background:rgba(248,250,252,.8);border:1px solid rgba(148,163,184,.22);border-radius:22px;padding:14px;min-width:180px}.kanban-mini-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-weight:900}.kanban-mini-head strong{background:#eaf2ff;color:#2563eb;border-radius:999px;padding:4px 10px}.kanban-mini-card{display:block;text-decoration:none;color:#0f172a;background:#fff;border:1px solid rgba(148,163,184,.2);border-radius:16px;padding:12px;margin-bottom:10px}.kanban-mini-card strong{font-size:14px;line-height:1.5}.kanban-mini-card small{display:block;color:#64748b;font-size:12px;margin-top:6px}.kanban-empty{color:#94a3b8;border:1px dashed rgba(148,163,184,.35);border-radius:16px;padding:14px;text-align:center;font-weight:800}.activity-compact-item{position:relative;padding-inline-start:44px}.activity-dot{position:absolute;right:16px;top:22px;width:14px;height:14px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#06b6d4);box-shadow:0 0 0 7px #eef6ff}.endday-card{text-align:center}.endday-score{font-size:64px;font-weight:1000;line-height:1;margin:16px auto;color:#0f172a}.mytasks-result-card{background:rgba(255,255,255,.65);border:1px solid rgba(148,163,184,.2);border-radius:24px;overflow:hidden}.mytasks-result-card>a{border:0;border-radius:0;background:transparent}.mytasks-result-card h3{margin:8px 0 6px;font-size:20px}.mytasks-result-card p{font-weight:800;color:#64748b;margin:0 0 8px}.mytasks-row-actions{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid rgba(148,163,184,.18);padding:12px 16px}.mini-action{border:0;border-radius:999px;background:#eef2ff;color:#3730a3;padding:8px 14px;font-weight:900;cursor:pointer}.mini-action.is-done{background:#dcfce7;color:#166534}.compact-empty{padding:18px;border-radius:20px;background:rgba(248,250,252,.75);color:#64748b;font-weight:900;text-align:center}.mytasks-result-card.is-overdue{border-color:rgba(239,68,68,.3)}

@media (max-width: 900px){.my-tasks-dashboard{gap:18px;padding-bottom:180px}.mytasks-hero{grid-template-columns:1fr;border-radius:30px;padding:26px 20px}.mytasks-hero h1{font-size:52px}.mytasks-hero p{font-size:16px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.mytasks-hero-stats{grid-template-columns:repeat(2,1fr);gap:10px}.mytasks-hero-stats a{min-height:88px;border-radius:20px}.mytasks-hero-stats strong{font-size:30px}.mytasks-best-task{grid-template-columns:1fr;border-radius:22px}.mytasks-best-task strong{font-size:20px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.mytasks-top-grid,.mytasks-focus-grid{grid-template-columns:1fr;gap:16px}.section-head-inline{align-items:flex-start}.mytasks-brief-card h2,.mytasks-capture-card h2,.mytasks-section-card h2{font-size:38px;line-height:1.15}.mytasks-search-row{grid-template-columns:1fr}.filter-chip{min-height:44px;padding:0 18px}.queue-item{grid-template-columns:74px 1fr}.mini-task-row{grid-template-columns:96px 1fr}.mytasks-kanban-mini{display:flex}.kanban-mini-col{min-width:78vw}.mytasks-result-card h3{font-size:20px}.mytasks-row-actions{justify-content:space-between}.mini-action{flex:1;min-width:70px}.fab{bottom:108px!important}.mobile-nav .mobile-link[href="my_tasks.php"]{color:#2563eb}}

@media (max-width: 520px){.mytasks-hero h1{font-size:46px}.mytasks-hero-stats strong{font-size:28px}.mytasks-top-grid .card,.mytasks-focus-grid .card,.mytasks-section-card{border-radius:28px;padding:22px}.mytasks-brief-card h2,.mytasks-capture-card h2,.mytasks-section-card h2{font-size:34px}.focus-task-item strong,.queue-item strong,.mini-task-row strong,.activity-compact-item strong{font-size:17px}.endday-score{font-size:54px}.brief-metrics span{width:100%;text-align:center}.mytasks-capture-form .form-row{grid-template-columns:1fr}.mytasks-result-card .task-card-meta{gap:8px;flex-wrap:wrap}.mytasks-result-card .task-card-meta span{font-size:12px}}
