/* EZ Smart Courses — isolated home screen.
 * Dashboard shell sizing lives in front.css; this file owns home content only.
 */
.ezsc-dashboard-shell.is-dashboard-tab-login .ezsc-dashboard-content-card.is-tab-login{padding:0;background:#f8fafc;border:1px solid #e8edf5;border-radius:24px;box-shadow:none}

.ezsc-home-v2,.ezsc-home-v2 *,.ezsc-home-v2 *::before,.ezsc-home-v2 *::after{box-sizing:border-box}
.ezsc-home-v2{--home-text:#111827;--home-muted:#6b7280;--home-line:#e7ecf4;--home-blue:#4169e1;--home-purple:#7657f6;--home-surface:#fff;height:auto;min-height:100%;display:grid;grid-template-rows:auto auto auto auto;gap:12px;font-family:"Open Sans",Arial,sans-serif!important;font-size:16px!important;line-height:1.4!important;color:var(--home-text)!important;padding:20px;max-width:1500px;margin:0 auto;overflow:visible}
.ezsc-home-v2 :where(h1,h2,h3,p,blockquote){margin:0}
.ezsc-home-v2 :where(a,button){font:inherit!important}

.ezsc-home-v2-header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px}
.ezsc-home-v2-greeting{display:flex;align-items:center;gap:10px}
.ezsc-home-v2-greeting>img{width:42px;height:42px;border-radius:50%;object-fit:cover}
.ezsc-home-v2-greeting h1{font-size:21px!important;line-height:1.2!important;font-weight:800!important;letter-spacing:-.02em}
.ezsc-home-v2-greeting p{font-size:15px!important;color:var(--home-muted)!important;margin-top:2px}
.ezsc-home-v2-header-actions{display:flex;gap:7px}
.ezsc-home-v2-icon-link{position:relative;width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--home-line)!important;border-radius:12px!important;background:#fff!important;padding:0!important;cursor:pointer;text-decoration:none;box-shadow:0 4px 12px rgba(15,23,42,.025)}
.ezsc-home-v2-icon-link img{width:17px;height:17px;object-fit:contain}
.ezsc-home-v2-icon-link>span{position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;padding:0 4px;border-radius:99px;background:var(--home-blue);color:#fff!important;font-size:11px!important;display:grid;place-items:center}

.ezsc-home-v2-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.ezsc-home-v2-mini-card{display:flex;align-items:flex-start;gap:13px;background:#fff;border:1px solid var(--home-line);border-radius:18px;padding:14px 15px;min-height:112px;box-shadow:0 5px 16px rgba(15,23,42,.02)}
.ezsc-home-v2-mini-card.is-presence{--mini-tint:#f2ebff;--mini-accent:#8b5cf6}.ezsc-home-v2-mini-card.is-last-visit{--mini-tint:#e9fbf1;--mini-accent:#22a963}.ezsc-home-v2-mini-card.is-birthday{--mini-tint:#fff4df;--mini-accent:#e7a415}.ezsc-home-v2-mini-card.is-inspiration{--mini-tint:#edf2ff;--mini-accent:#5577ee}
.ezsc-home-v2-mini-content{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.ezsc-home-v2-mini-card strong{font-size:18px!important;line-height:1.25!important;color:var(--home-text)!important;font-weight:800!important}
.ezsc-home-v2-mini-card small{font-size:14px!important;color:var(--home-muted)!important;font-weight:600!important}
.ezsc-home-v2-mini-icon{flex:0 0 48px;width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:var(--mini-tint)}
.ezsc-home-v2-mini-icon img{width:25px;height:25px;display:block;object-fit:contain}
.ezsc-home-v2-mini-note{font-size:13px!important;color:var(--home-muted)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ezsc-home-v2-mini-status{display:inline-flex;align-items:center;gap:5px;font-size:13px!important;color:var(--home-muted)!important}.ezsc-home-v2-mini-status i{width:7px;height:7px;border-radius:50%;background:#20b26b;display:inline-block}
.ezsc-home-v2-mini-quote{font-size:16px!important;line-height:1.35!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.ezsc-home-v2-mini-avatars{display:flex;align-items:center;margin-top:auto;padding-top:5px;direction:ltr}.ezsc-home-v2-mini-avatars img{width:25px;height:25px;border-radius:50%;object-fit:cover;border:2px solid #fff;margin-left:-6px}.ezsc-home-v2-mini-avatars img:first-child{margin-left:0}.ezsc-home-v2-mini-avatars em{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#f3f5f9;color:#667085!important;font-size:11px!important;font-style:normal;border:2px solid #fff;margin-left:-6px}

.ezsc-home-v2-section,.ezsc-home-v2-panel{background:#fff;border:1px solid var(--home-line);border-radius:18px;box-shadow:0 6px 20px rgba(15,23,42,.02);min-width:0}
.ezsc-home-v2-section{padding:12px 15px}
.ezsc-home-v2-panel{padding:15px}
.ezsc-home-v2-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:11px}
.ezsc-home-v2-section-head h2{font-size:22px!important;line-height:1.2!important;font-weight:800!important;color:var(--home-text)!important}
.ezsc-home-v2-section-head p{font-size:15px!important;color:var(--home-muted)!important;margin-top:2px}
.ezsc-home-v2-section-head>a{font-size:15px!important;font-weight:700;color:var(--home-blue)!important;text-decoration:none}
.ezsc-home-v2-section-head.is-compact{margin-bottom:9px}

.ezsc-home-v2-main-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(250px,1fr);gap:12px;min-height:0;align-items:stretch}
.ezsc-home-v2-courses-section,.ezsc-home-v2-activity{min-height:0;overflow:hidden}
.ezsc-home-v2-course-rail{display:flex;gap:20px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:auto;scrollbar-color:#b8c5db #f3f6fb;padding:0 16px 10px;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.ezsc-home-v2-course-card{flex:0 0 calc((100% - 52px)/2);min-width:250px;border:1px solid var(--home-line);border-radius:15px;overflow:hidden;background:#fff;scroll-snap-align:start;transition:transform .18s ease,box-shadow .18s ease}
.ezsc-home-v2-course-rail::-webkit-scrollbar{height:8px}
.ezsc-home-v2-course-rail::-webkit-scrollbar-track{background:#f3f6fb;border-radius:999px}
.ezsc-home-v2-course-rail::-webkit-scrollbar-thumb{background:#b8c5db;border-radius:999px;border:2px solid #f3f6fb}
.ezsc-home-v2-course-rail::-webkit-scrollbar-thumb:hover{background:#94a3b8}
/* Collapsed sidebar: give more width to courses and more breathing room. */
.ezsc-dashboard-frame.sidebar-collapsed .ezsc-home-v2-main-grid{grid-template-columns:minmax(0,3fr) minmax(220px,.85fr);gap:16px}
.ezsc-dashboard-frame.sidebar-collapsed .ezsc-home-v2-course-rail{gap:16px;padding-inline:8px}
.ezsc-dashboard-frame.sidebar-collapsed .ezsc-home-v2-course-card{flex-basis:calc((100% - 48px)/3);min-width:230px}

.ezsc-home-v2-course-card:hover{transform:translateY(-2px);box-shadow:0 9px 24px rgba(15,23,42,.07)}
.ezsc-home-v2-course-image{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:#eef2f7}
.ezsc-home-v2-course-image img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.ezsc-home-v2-course-card:hover .ezsc-home-v2-course-image img{transform:scale(1.025)}
.ezsc-home-v2-course-placeholder{display:block;width:100%;height:100%;background:linear-gradient(135deg,#eef2ff,#f8fafc)}
.ezsc-home-v2-course-status{position:absolute;top:8px;right:8px;padding:3px 8px;border-radius:999px;background:rgba(255,255,255,.9);backdrop-filter:blur(8px);font-size:12px!important;font-weight:700;color:#475569!important}
.ezsc-home-v2-course-body{padding:10px 11px 11px}
.ezsc-home-v2-course-body h3{font-size:18px!important;line-height:1.25!important;font-weight:800!important;color:var(--home-text)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:7px}
.ezsc-home-v2-progress{height:4px;border-radius:99px;background:#edf1f7;overflow:hidden}
.ezsc-home-v2-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--home-blue),#7d8cff)}
.ezsc-home-v2-course-meta{display:flex;justify-content:space-between;gap:8px;margin-top:5px;font-size:14px!important;color:var(--home-muted)!important}
.ezsc-home-v2-course-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}
.ezsc-home-v2-primary{display:inline-flex;align-items:center;justify-content:center;min-height:31px;padding:0 12px;border-radius:10px!important;background:#edf3ff!important;color:#285fd4!important;text-decoration:none!important;font-size:15px!important;font-weight:800!important;border:0!important;box-shadow:none!important}
.ezsc-home-v2-text-link{font-size:15px!important;font-weight:700!important;color:#4f6fbd!important;text-decoration:none!important}

.ezsc-home-v2-activity-list{display:flex;flex-direction:column;min-height:0}
.ezsc-home-v2-activity-item{display:grid;grid-template-columns:32px 1fr auto;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #eef2f6;text-decoration:none!important;min-height:48px}
.ezsc-home-v2-activity-item:last-child{border-bottom:0}
.ezsc-home-v2-activity-item>img{width:30px;height:30px;border-radius:50%;object-fit:cover}
.ezsc-home-v2-activity-item>span{display:flex;flex-direction:column;min-width:0}
.ezsc-home-v2-activity-item strong{font-size:16px!important;color:var(--home-text)!important}
.ezsc-home-v2-activity-item small{font-size:14px!important;color:var(--home-muted)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ezsc-home-v2-activity-item em{font-style:normal;font-size:16px!important}

.ezsc-home-v2-bottom-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:12px}
.ezsc-home-v2-bottom-grid .ezsc-home-v2-panel{height:178px;min-height:0;overflow:hidden}
.ezsc-home-v2-inspiration{display:flex;flex-direction:column;position:relative}
.ezsc-home-v2-insight-viewport{position:relative;flex:1;min-height:0;overflow:hidden}
.ezsc-home-v2-insight{position:absolute;inset:0;display:flex;flex-direction:column;opacity:0;transform:translateX(-28px);pointer-events:none;transition:opacity .5s ease,transform .5s ease}
.ezsc-home-v2-insight.is-active{opacity:1;transform:translateX(0);pointer-events:auto}
.ezsc-home-v2-insight.is-leaving{opacity:0;transform:translateX(28px)}
.ezsc-home-v2-inspiration blockquote{font-size:18px!important;line-height:1.5!important;font-weight:700!important;color:#273043!important;padding:2px 0 8px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ezsc-home-v2-inspiration-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:8px;margin-top:auto}
.ezsc-home-v2-inspiration-footer strong{font-size:15px!important;color:var(--home-muted)!important;font-weight:600!important}
.ezsc-home-v2-inspiration-stats{font-size:14px!important;color:var(--home-muted)!important}
.ezsc-home-v2-insight-dots{display:flex;justify-content:center;gap:5px;padding-top:5px}
.ezsc-home-v2-insight-dots span{width:5px;height:5px;border-radius:50%;background:#d9dfeb;transition:width .2s ease,background .2s ease}
.ezsc-home-v2-insight-dots span.is-active{width:15px;border-radius:999px;background:var(--home-purple)}


.ezsc-home-v2-community-posts{display:flex;flex-direction:column}
.ezsc-home-v2-community-post-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-height:0}
.ezsc-home-v2-community-post{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:start;padding:9px;border:1px solid #edf1f6;border-radius:13px;background:#fafbfe;text-decoration:none!important;min-width:0}
.ezsc-home-v2-community-post>img{width:34px;height:34px;border-radius:50%;object-fit:cover}
.ezsc-home-v2-community-post-body{display:flex;flex-direction:column;gap:3px;min-width:0}
.ezsc-home-v2-community-post-meta{display:flex;align-items:center;gap:6px;min-width:0}
.ezsc-home-v2-community-post-meta strong{font-size:15px!important;color:var(--home-text)!important;white-space:nowrap}
.ezsc-home-v2-community-post-meta small{font-size:12px!important;color:var(--home-muted)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ezsc-home-v2-community-post-content{font-size:14px!important;line-height:1.35!important;color:#374151!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ezsc-home-v2-community-post-stats{font-size:12px!important;color:var(--home-muted)!important}

.ezsc-home-v2-upcoming-list{display:flex;flex-direction:column;gap:6px}
.ezsc-home-v2-upcoming-list>a,.ezsc-home-v2-upcoming-list>button{width:100%;display:grid;grid-template-columns:31px 1fr;align-items:center;gap:8px;text-align:right;padding:7px 8px;border:0!important;border-radius:11px!important;background:#fafbfe!important;text-decoration:none!important;cursor:pointer}
.ezsc-home-v2-upcoming-list>a>span,.ezsc-home-v2-upcoming-list>button>span{width:29px;height:29px;border-radius:9px;display:grid;place-items:center;font-size:14px!important}
.ezsc-home-v2-upcoming-list .is-purple{background:#f0ebff;color:#7657f6!important}.ezsc-home-v2-upcoming-list .is-blue{background:#eaf2ff;color:#3973e8!important}.ezsc-home-v2-upcoming-list .is-orange{background:#fff1df;color:#ec8b2c!important}
.ezsc-home-v2-upcoming-list div{display:flex;flex-direction:column}.ezsc-home-v2-upcoming-list strong{font-size:16px!important;color:var(--home-text)!important}.ezsc-home-v2-upcoming-list small{font-size:14px!important;color:var(--home-muted)!important}
.ezsc-home-v2-empty{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:18px;border:1px dashed #d8e0ec;border-radius:14px;background:#fbfcfe;color:var(--home-muted)!important}
.ezsc-home-v2-empty strong{color:var(--home-text)!important}.ezsc-home-v2-empty p{font-size:15px!important}.ezsc-home-v2-empty.is-small{padding:14px;font-size:15px!important}

@media (max-height:820px) and (min-width:783px){.ezsc-home-v2{padding:12px 14px;gap:8px}.ezsc-home-v2-greeting>img{width:38px;height:38px}.ezsc-home-v2-greeting h1{font-size:20px!important}.ezsc-home-v2-mini-card{min-height:96px;padding:11px 12px}.ezsc-home-v2-mini-icon{width:42px;height:42px;flex-basis:42px}.ezsc-home-v2-mini-icon img{width:22px;height:22px}.ezsc-home-v2-bottom-grid .ezsc-home-v2-panel{height:152px}.ezsc-home-v2-course-image{aspect-ratio:16/8.2}.ezsc-home-v2-section,.ezsc-home-v2-panel{padding:12px}.ezsc-home-v2-activity-item{padding:6px 0;min-height:42px}}
@media (max-width:1180px){.ezsc-home-v2-main-grid{grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr)}.ezsc-home-v2-course-card{flex-basis:72%}.ezsc-home-v2-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.ezsc-dashboard-shell.is-dashboard-tab-login .ezsc-dashboard-content-card.is-tab-login{overflow-y:auto}.ezsc-home-v2{height:auto;min-height:100%;overflow:visible;grid-template-rows:auto}}
@media (max-width:900px){.ezsc-home-v2-bottom-grid{grid-template-columns:1fr}.ezsc-home-v2-community-post-list{grid-template-columns:1fr 1fr}}
@media (max-width:782px){.admin-bar .ezsc-dashboard-shell.is-dashboard-tab-login{height:calc(100dvh - 46px)}.ezsc-dashboard-shell.is-dashboard-tab-login{padding:8px}.ezsc-dashboard-shell.is-dashboard-tab-login .ezsc-dashboard-content-card.is-tab-login{overflow-y:auto}.ezsc-home-v2{height:auto;min-height:100%;display:block;padding:20px;overflow:visible}.ezsc-home-v2>*{margin-bottom:12px}.ezsc-home-v2-overview{grid-template-columns:1fr 1fr}.ezsc-home-v2-main-grid,.ezsc-home-v2-bottom-grid{grid-template-columns:1fr}.ezsc-home-v2-course-card{flex:0 0 78%}.ezsc-home-v2-bottom-grid .ezsc-home-v2-panel{height:190px}}
@media (max-width:560px){.ezsc-home-v2-community-post-list{grid-template-columns:1fr}.ezsc-home-v2-header{align-items:flex-start}.ezsc-home-v2-greeting h1{font-size:20px!important}.ezsc-home-v2-overview{grid-template-columns:1fr}.ezsc-home-v2-mini-card{min-height:58px}.ezsc-home-v2-course-card{flex-basis:88%}}


/* Home stories strip — reuses the existing 24-hour story upload/view system. */
.ezsc-home-v2-stories{min-width:0;overflow:hidden;padding:1px 0 2px}
.ezsc-home-v2-stories-rail{display:flex;align-items:flex-start;gap:16px;overflow-x:auto;overflow-y:hidden;padding:4px 3px 8px;scrollbar-width:none;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.ezsc-home-v2-stories-rail::-webkit-scrollbar{display:none}
.ezsc-home-v2-story-item{flex:0 0 72px;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
.ezsc-home-v2-story-item>span{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-size:13px!important;line-height:1.25!important;font-weight:600!important;color:#465166!important}
.ezsc-home-v2-story-avatar-wrap{position:relative;width:64px;height:64px;flex:0 0 64px;border:0!important;border-radius:999px!important;padding:0!important;background:#fff!important;display:grid;place-items:center;box-shadow:0 5px 16px rgba(15,23,42,.08);cursor:pointer}
.ezsc-home-v2-story-avatar-wrap.has-story-ring{padding:3px!important;background:conic-gradient(from 135deg,#7657f6,#f59e0b,#ec4899,#7657f6)!important}
.ezsc-home-v2-story-avatar{width:100%;height:100%;display:block;border:0!important;border-radius:999px!important;padding:0!important;background:#fff!important;overflow:hidden;cursor:pointer}
.ezsc-home-v2-story-avatar img{width:100%;height:100%;display:block;object-fit:cover;border-radius:999px;border:3px solid #fff;background:#fff}
.ezsc-home-v2-story-plus{position:absolute;right:-2px;bottom:0;width:23px;height:23px;border-radius:999px!important;border:3px solid #fff!important;background:var(--home-purple)!important;padding:0!important;display:grid;place-items:center;box-shadow:0 5px 12px rgba(15,23,42,.18);cursor:pointer;z-index:2}
.ezsc-home-v2-story-plus img{width:11px;height:11px;display:block;filter:brightness(0) invert(1)}
.ezsc-home-v2-story-item.is-own-story .ezsc-home-v2-story-avatar-wrap:not(.has-story-ring){background:#f3f5fa!important}
@media (max-height:820px) and (min-width:783px){.ezsc-home-v2-stories-rail{gap:14px;padding-block:2px 5px}.ezsc-home-v2-story-item{flex-basis:66px}.ezsc-home-v2-story-avatar-wrap{width:58px;height:58px;flex-basis:58px}.ezsc-home-v2-story-item>span{font-size:12px!important}}
@media (max-width:560px){.ezsc-home-v2-stories-rail{gap:12px}.ezsc-home-v2-story-item{flex-basis:64px}.ezsc-home-v2-story-avatar-wrap{width:56px;height:56px;flex-basis:56px}.ezsc-home-v2-story-item>span{font-size:12px!important}}


/* spacing polish */
.esc-home-greeting,.esc-home-welcome{margin-bottom:24px!important;}
.esc-stories-row,.esc-home-stories{margin-bottom:28px!important;}
.esc-home-top-cards,.esc-top-stats{margin-bottom:30px!important;}
.esc-home-main-grid,.esc-home-middle{margin-bottom:30px!important;}
.esc-home-top-cards .esc-stat-card,.esc-top-stats .esc-stat-card{min-height:104px!important;padding-top:20px!important;padding-bottom:20px!important;}

/* =========================================================
 * Home responsive pass — tablet + mobile only (v0.7.3.102)
 * Layout-only overrides. Desktop and home logic remain intact.
 * ========================================================= */
@media (max-width:1024px){
  .ezsc-home-v2{
    max-width:none;
    width:100%;
    padding:18px;
    gap:16px;
  }

  .ezsc-home-v2-header{
    min-height:52px;
  }
  .ezsc-home-v2-greeting h1{
    font-size:22px!important;
  }

  /* Keep the four overview cards as a clean 2x2 grid on tablet/mobile. */
  .ezsc-home-v2-overview{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .ezsc-home-v2-mini-card{
    min-height:104px;
    padding:13px 14px;
  }

  /* On smaller screens the courses become the primary full-width rail. */
  .ezsc-home-v2-main-grid,
  .ezsc-dashboard-frame.sidebar-collapsed .ezsc-home-v2-main-grid{
    grid-template-columns:1fr;
    gap:14px;
  }
  .ezsc-home-v2-courses-section{
    order:1;
  }
  .ezsc-home-v2-activity{
    order:2;
  }
  .ezsc-home-v2-course-rail,
  .ezsc-dashboard-frame.sidebar-collapsed .ezsc-home-v2-course-rail{
    gap:12px;
    padding:0 4px 8px;
    scrollbar-width:none;
  }
  .ezsc-home-v2-course-rail::-webkit-scrollbar{
    display:none;
  }
  .ezsc-home-v2-course-card,
  .ezsc-dashboard-frame.sidebar-collapsed .ezsc-home-v2-course-card{
    flex:0 0 min(330px,42vw);
    min-width:260px;
    scroll-snap-align:start;
  }

  /* Tablet keeps the two lower modules side by side when space allows. */
  .ezsc-home-v2-bottom-grid{
    grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);
    gap:14px;
  }
  .ezsc-home-v2-bottom-grid .ezsc-home-v2-panel{
    height:auto;
    min-height:178px;
    overflow:hidden;
  }
  .ezsc-home-v2-community-post-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:767px){
  .ezsc-home-v2{
    display:block;
    padding:14px 12px 18px;
  }
  .ezsc-home-v2>*{
    margin-bottom:14px;
  }

  /* Compact app-like header. */
  .ezsc-home-v2-header{
    align-items:flex-start;
    gap:10px;
    min-height:48px;
  }
  .ezsc-home-v2-greeting{
    gap:9px;
    min-width:0;
  }
  .ezsc-home-v2-greeting>img{
    width:40px;
    height:40px;
    flex:0 0 40px;
  }
  .ezsc-home-v2-greeting h1{
    font-size:20px!important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .ezsc-home-v2-greeting p{
    font-size:13px!important;
    line-height:1.35!important;
  }
  .ezsc-home-v2-header-actions{
    gap:6px;
    flex:0 0 auto;
  }
  .ezsc-home-v2-icon-link{
    width:34px;
    height:34px;
    border-radius:11px!important;
  }

  /* Stories stay horizontal and compact. */
  .ezsc-home-v2-stories{
    margin-inline:-2px;
  }
  .ezsc-home-v2-stories-rail{
    gap:11px;
    padding:3px 2px 6px;
  }
  .ezsc-home-v2-story-item{
    flex-basis:60px;
  }
  .ezsc-home-v2-story-avatar-wrap{
    width:54px;
    height:54px;
    flex-basis:54px;
  }
  .ezsc-home-v2-story-item>span{
    font-size:11px!important;
  }

  /* Never collapse the overview to a single column on phones. */
  .ezsc-home-v2-overview{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }
  .ezsc-home-v2-mini-card{
    min-width:0;
    min-height:118px;
    padding:11px 10px;
    gap:8px;
    border-radius:16px;
    flex-direction:column;
  }
  .ezsc-home-v2-mini-icon{
    width:38px;
    height:38px;
    flex:0 0 38px;
    border-radius:12px;
  }
  .ezsc-home-v2-mini-icon img{
    width:20px;
    height:20px;
  }
  .ezsc-home-v2-mini-card strong{
    font-size:15px!important;
  }
  .ezsc-home-v2-mini-card small,
  .ezsc-home-v2-mini-note,
  .ezsc-home-v2-mini-status{
    font-size:11px!important;
  }
  .ezsc-home-v2-mini-quote{
    font-size:13px!important;
  }
  .ezsc-home-v2-mini-avatars{
    padding-top:3px;
  }
  .ezsc-home-v2-mini-avatars img{
    width:22px;
    height:22px;
  }

  .ezsc-home-v2-section,
  .ezsc-home-v2-panel{
    border-radius:17px;
  }
  .ezsc-home-v2-section{
    padding:12px;
  }
  .ezsc-home-v2-panel{
    padding:13px;
  }
  .ezsc-home-v2-section-head{
    margin-bottom:10px;
    gap:8px;
  }
  .ezsc-home-v2-section-head h2{
    font-size:20px!important;
  }
  .ezsc-home-v2-section-head p{
    font-size:13px!important;
  }
  .ezsc-home-v2-section-head>a{
    font-size:13px!important;
    white-space:nowrap;
  }

  /* Netflix-like single-card-at-a-time course rail. */
  .ezsc-home-v2-course-rail,
  .ezsc-dashboard-frame.sidebar-collapsed .ezsc-home-v2-course-rail{
    gap:10px;
    padding:0 1px 6px;
    scroll-padding-inline:1px;
  }
  .ezsc-home-v2-course-card,
  .ezsc-dashboard-frame.sidebar-collapsed .ezsc-home-v2-course-card{
    flex:0 0 91%;
    min-width:0;
    border-radius:16px;
  }
  .ezsc-home-v2-course-image{
    aspect-ratio:16/9;
  }
  .ezsc-home-v2-course-body{
    padding:10px 11px 12px;
  }
  .ezsc-home-v2-course-body h3{
    font-size:17px!important;
  }
  .ezsc-home-v2-course-meta{
    font-size:12px!important;
  }
  .ezsc-home-v2-course-actions{
    margin-top:9px;
  }
  .ezsc-home-v2-primary{
    min-height:38px;
    font-size:14px!important;
  }
  .ezsc-home-v2-text-link{
    font-size:13px!important;
  }

  /* Community activity becomes a short, lightweight card under courses. */
  .ezsc-home-v2-activity-item{
    grid-template-columns:30px minmax(0,1fr) auto;
    min-height:44px;
    padding:7px 0;
  }
  .ezsc-home-v2-activity-item strong{
    font-size:14px!important;
  }
  .ezsc-home-v2-activity-item small{
    font-size:12px!important;
  }

  /* Mobile order: upcoming first, community posts afterwards. */
  .ezsc-home-v2-bottom-grid{
    display:flex;
    flex-direction:column;
    gap:14px;
  }
  .ezsc-home-v2-upcoming{
    order:1;
  }
  .ezsc-home-v2-community-posts{
    order:2;
  }
  .ezsc-home-v2-bottom-grid .ezsc-home-v2-panel{
    height:auto;
    min-height:0;
    overflow:visible;
  }

  .ezsc-home-v2-upcoming-list>a,
  .ezsc-home-v2-upcoming-list>button{
    min-height:58px;
    padding:10px;
    border:1px solid #edf1f6!important;
    background:#fafbfe!important;
  }
  .ezsc-home-v2-upcoming-list strong{
    font-size:14px!important;
  }
  .ezsc-home-v2-upcoming-list small{
    font-size:12px!important;
  }

  /* Community posts become a swipeable rail instead of a vertical stack. */
  .ezsc-home-v2-community-post-list{
    display:flex;
    gap:10px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    padding-bottom:3px;
    -webkit-overflow-scrolling:touch;
  }
  .ezsc-home-v2-community-post-list::-webkit-scrollbar{
    display:none;
  }
  .ezsc-home-v2-community-post{
    flex:0 0 82%;
    scroll-snap-align:start;
    min-height:126px;
    padding:11px;
    border-radius:15px;
  }
  .ezsc-home-v2-community-post-content{
    -webkit-line-clamp:3;
    font-size:13px!important;
  }

  .ezsc-home-v2-empty,
  .ezsc-home-v2-empty.is-small{
    padding:13px;
    font-size:13px!important;
  }
}

@media (max-width:390px){
  .ezsc-home-v2{
    padding-inline:10px;
  }
  .ezsc-home-v2-mini-card{
    min-height:112px;
  }
  .ezsc-home-v2-mini-card strong{
    font-size:14px!important;
  }
  .ezsc-home-v2-course-card,
  .ezsc-dashboard-frame.sidebar-collapsed .ezsc-home-v2-course-card{
    flex-basis:94%;
  }
}
