/* mywork.css — My Work — playful + colorful */

@property --mw-grad-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

.mw-wrap {
  position: relative;
  padding: 24px 28px 48px;
  overflow: auto; flex: 1;
  background:
    radial-gradient(1200px 360px at 12% -10%, rgba(162,93,220,.10), transparent 70%),
    radial-gradient(900px 360px at 95% 0%,  rgba(56,214,196,.10), transparent 70%),
    linear-gradient(180deg, #f9fafd 0%, var(--bg-canvas, #f5f6f8) 360px);
}

/* ── Decorative background blobs ──────────────────────────── */
.mw-bg-fx {
  position: absolute; inset: 0; pointer-events: none;
  overflow: hidden; z-index: 0;
}
.mw-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
  animation: mwBlobFloat 22s ease-in-out infinite alternate;
}
.mw-blob-a {
  width: 320px; height: 320px;
  top: -80px; left: 8%;
  background: radial-gradient(circle, #a25ddc 0%, transparent 60%);
  animation-duration: 24s;
}
.mw-blob-b {
  width: 280px; height: 280px;
  top: 60px; right: 6%;
  background: radial-gradient(circle, #38d6c4 0%, transparent 65%);
  animation-duration: 28s;
  animation-delay: -8s;
}
.mw-blob-c {
  width: 240px; height: 240px;
  top: 220px; left: 38%;
  background: radial-gradient(circle, #f06ea2 0%, transparent 65%);
  animation-duration: 32s;
  animation-delay: -14s;
  opacity: .22;
}
@keyframes mwBlobFloat {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(28px, 18px, 0) scale(1.05); }
  100% { transform: translate3d(-18px, 24px, 0) scale(.98); }
}
.mw-wrap > *:not(.mw-bg-fx) { position: relative; z-index: 1; }

/* ══ Hero ════════════════════════════════════════════════════ */
.mw-hero {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; margin-bottom: 22px;
  animation: mwFadeUp .45s ease-out both;
}
.mw-hero-left { min-width: 0; }

.mw-hero-date {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 6px;
  background: rgba(255,255,255,.7);
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(162,93,220,.18);
}
.mw-dot-pulse {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #00ca72;
  box-shadow: 0 0 0 0 rgba(0,202,114,.6);
  animation: mwPulse 1.8s ease-out infinite;
}
@keyframes mwPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,202,114,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(0,202,114,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,202,114,0); }
}

.mw-hero-title {
  font-size: 36px; font-weight: 800; color: var(--ink-strong, #0f1729);
  letter-spacing: -0.03em; line-height: 1.05;
  margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.mw-hero-name {
  background:
    linear-gradient(90deg, #a25ddc 0%, #6c2bd9 25%, #4c8bf5 50%, #38d6c4 75%, #a25ddc 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: mwGradShift 8s linear infinite;
}
@keyframes mwGradShift {
  to { background-position: 240% 0; }
}
.mw-hero-wave {
  display: inline-block; font-size: 30px;
  transform-origin: 70% 70%;
  animation: mwWave 3.6s ease-in-out infinite;
}
@keyframes mwWave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}

.mw-hero-sub {
  margin-top: 10px; font-size: 14.5px; color: var(--ink-body, #323338);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.mw-hero-sub strong { color: var(--ink-strong, #0f1729); font-weight: 800; }
.mw-hero-warn {
  color: #d23a55; font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #ffe7eb, #fff4f5);
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid #ffc8d2;
}

.mw-hero-right {
  display: flex; align-items: center; gap: 14px;
}

/* ── Streak with animated flame ─────────────────────────────── */
.mw-streak {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff4dc 0%, #ffe6d2 50%, #ffd6e0 100%);
  border: 1px solid #ffd1a3;
  box-shadow: 0 6px 20px rgba(255,160,80,.18), inset 0 0 0 1px rgba(255,255,255,.8);
  overflow: hidden;
  transition: transform .2s ease;
}
.mw-streak::before {
  content: "";
  position: absolute; inset: -2px;
  background: conic-gradient(from var(--mw-grad-angle, 0deg),
    #f59e0b, #f06ea2, #f59e0b, #ffd66e, #f59e0b);
  filter: blur(14px); opacity: 0;
  animation: mwGradAngle 10s linear infinite;
  z-index: -1;
}
.mw-streak.is-on::before { opacity: .35; }
.mw-streak:hover { transform: translateY(-1px); }
@keyframes mwGradAngle { to { --mw-grad-angle: 360deg; } }

.mw-streak-num {
  font-size: 28px; font-weight: 900;
  background: linear-gradient(135deg, #d97706 0%, #ea580c 60%, #db2777 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  line-height: 1; font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.mw-streak.is-off .mw-streak-num {
  background: none; -webkit-text-fill-color: initial;
  color: #9499a8;
}
.mw-streak-label {
  font-size: 11px; font-weight: 800;
  color: #7a3a00; text-transform: uppercase; letter-spacing: 0.08em;
}
.mw-streak-sub { font-size: 11px; color: #a66100; margin-top: 1px; font-weight: 600; }

.mw-view-toggle {
  display: inline-flex;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(162,93,220,.18);
  padding: 4px; border-radius: 11px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(16,22,40,.06);
}
.mw-view-toggle button {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; background: transparent;
  font: inherit; font-size: 12.5px; font-weight: 700;
  color: var(--ink-muted, #676879); cursor: pointer;
  padding: 7px 13px; border-radius: 7px;
  transition: all .16s ease;
}
.mw-view-toggle button:hover { color: #6c2bd9; background: rgba(162,93,220,.06); }
.mw-view-toggle button.is-active {
  background: linear-gradient(135deg, #a25ddc 0%, #6c2bd9 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(108,43,217,.32);
}

/* ══ Stats row ═══════════════════════════════════════════════ */
.mw-stats-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px; flex-wrap: wrap;
  animation: mwFadeUp .55s ease-out .1s both;
}
.mw-stat {
  position: relative;
  background: white;
  border: 1.5px solid transparent;
  padding: 9px 16px 8px; border-radius: 12px;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: flex; flex-direction: column; gap: 1px;
  min-width: 86px;
  background-clip: padding-box;
  box-shadow: 0 2px 8px rgba(16,22,40,.04);
}
.mw-stat::before {
  content: "";
  position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 2px; border-radius: 2px;
  background: var(--stat-tone, #c4c7d0);
  opacity: .35;
}
.mw-stat-num {
  font-size: 22px; font-weight: 800; color: var(--ink-strong, #0f1729);
  line-height: 1.1; font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.mw-stat-label {
  font-size: 11px; font-weight: 700; color: var(--ink-muted, #676879);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.mw-stat:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(16,22,40,.08); }

.mw-stat.tone-slate  { --stat-tone: #676879; background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%); }
.mw-stat.tone-red    { --stat-tone: #e2445c; background: linear-gradient(180deg, #fff8f9 0%, #ffeff2 100%); }
.mw-stat.tone-orange { --stat-tone: #fd713d; background: linear-gradient(180deg, #fffaf6 0%, #fff0e6 100%); }
.mw-stat.tone-blue   { --stat-tone: #0073ea; background: linear-gradient(180deg, #f7fbff 0%, #e9f2fe 100%); }
.mw-stat.tone-purple { --stat-tone: #a25ddc; background: linear-gradient(180deg, #fcf8ff 0%, #f3e8ff 100%); }
.mw-stat.tone-green  { --stat-tone: #00ca72; background: linear-gradient(180deg, #f6fdfa 0%, #e6f8ee 100%); }

.mw-stat.is-active {
  border-color: var(--stat-tone);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--stat-tone) 14%, transparent),
              0 8px 18px rgba(16,22,40,.08);
}
.mw-stat.is-active .mw-stat-num { color: var(--stat-tone); }
.mw-stat.is-active::before { opacity: 1; height: 3px; }

/* Hide-done toggle — persisted preference for the home page (My
   Work). Two visual states: ON (done tasks hidden, button looks
   armed/active) vs OFF (done tasks visible, button looks idle). */
.mw-hide-done {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; margin-right: 6px;
  background: white;
  border: 1px solid rgba(162,93,220,.16);
  border-radius: 10px;
  font: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--ink-muted, #676879);
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.mw-hide-done:hover {
  background: rgba(162,93,220,.06);
  border-color: rgba(162,93,220,.32);
  color: var(--ink-strong, #0f1729);
}
.mw-hide-done.is-on {
  background: linear-gradient(180deg, rgba(162,93,220,.18), rgba(162,93,220,.10));
  border-color: rgba(162,93,220,.45);
  color: #6c2bd9;
  box-shadow: inset 0 0 0 1px rgba(162,93,220,.10);
}
.mw-hide-done.is-on:hover {
  background: linear-gradient(180deg, rgba(162,93,220,.24), rgba(162,93,220,.14));
}

.mw-search {
  display: flex; align-items: center; gap: 7px;
  background: white; border: 1px solid rgba(162,93,220,.16);
  border-radius: 10px;
  padding: 7px 12px; min-width: 200px;
  color: var(--ink-muted, #676879);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mw-search:focus-within {
  border-color: #a25ddc;
  box-shadow: 0 0 0 4px rgba(162,93,220,.14);
}
.mw-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font: inherit; font-size: 13px; color: var(--ink-body, #323338); min-width: 0;
}
.mw-search input::placeholder { color: var(--ink-faint, #a3a8b6); }
.mw-search button {
  border: none; background: transparent; color: var(--ink-muted);
  cursor: pointer; padding: 2px; display: inline-flex; border-radius: 4px;
}
.mw-search button:hover { background: var(--bg-subtle, #f5f6f8); }

/* ══ Body: two-column ═════════════════════════════════════════ */
.mw-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px; align-items: start;
  animation: mwFadeUp .65s ease-out .2s both;
}
/* Single-column layout when the side rail is removed — keeps the page
   feeling intentional rather than a column with empty whitespace. */
.mw-body.mw-body-single { grid-template-columns: minmax(0, 1fr); }
.mw-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }

/* ══ Section ═════════════════════════════════════════════════ */
.mw-section {
  position: relative;
  background: white;
  border-radius: 14px; overflow: hidden;
  --tone: #c4c7d0;
  box-shadow: 0 4px 14px rgba(16,22,40,.05), 0 0 0 1px rgba(16,22,40,.04);
  transition: box-shadow .2s ease;
}
.mw-section:hover { box-shadow: 0 8px 22px rgba(16,22,40,.08), 0 0 0 1px rgba(16,22,40,.06); }
.mw-section.tone-red    { --tone: #e2445c; }
.mw-section.tone-orange { --tone: #fd713d; }
.mw-section.tone-blue   { --tone: #0073ea; }
.mw-section.tone-purple { --tone: #a25ddc; }
.mw-section.tone-slate  { --tone: #676879; }
.mw-section.tone-green  { --tone: #00ca72; }

.mw-section::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--tone) 0%,
    color-mix(in srgb, var(--tone) 60%, transparent) 100%);
}

.mw-sec-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(16,22,40,.06);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--tone) 7%, white) 0%,
      white 100%);
}
.mw-sec-dot {
  width: 11px; height: 11px; border-radius: 4px;
  background: var(--tone);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 14%, transparent);
}
.mw-sec-head h3 {
  font-size: 14.5px; font-weight: 800; color: var(--ink-strong, #0f1729);
  margin: 0; letter-spacing: -0.01em;
}
.mw-sec-count {
  background: var(--tone);
  color: white;
  padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--tone) 30%, transparent);
}
.mw-sec-hint {
  font-size: 11.5px; color: var(--ink-muted, #676879);
  margin-left: auto; font-weight: 500;
}

/* ══ Task row ═════════════════════════════════════════════════ */
.mw-list { display: flex; flex-direction: column; }
.mw-row {
  position: relative;
  display: flex; align-items: stretch; gap: 12px;
  padding: 11px 16px 11px 22px;
  border-bottom: 1px solid rgba(16,22,40,.04);
  transition: background .14s ease, transform .14s ease;
  --prio-color: #c4c7d0;
}
.mw-row[data-prio="critical"] { --prio-color: #e2445c; }
.mw-row[data-prio="high"]     { --prio-color: #fd713d; }
.mw-row[data-prio="medium"]   { --prio-color: #fdab3d; }
.mw-row[data-prio="low"]      { --prio-color: #579bfc; }
.mw-row[data-prio="none"]     { --prio-color: #d4d6de; }

.mw-row::before {
  content: "";
  position: absolute; left: 8px; top: 14px; bottom: 14px;
  width: 3px; border-radius: 3px;
  background: var(--prio-color);
  opacity: .55;
  transition: opacity .14s ease, transform .14s ease;
}
.mw-row:last-child { border-bottom: none; }
.mw-row:hover {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--prio-color) 8%, transparent) 0%,
    transparent 60%);
}
.mw-row:hover::before { opacity: 1; transform: scaleY(1.05); }
.mw-row.is-done { opacity: 0.55; }
.mw-row.is-done .mw-name { text-decoration: line-through; color: var(--ink-muted, #676879); }
.mw-row.is-done::before { background: #00ca72; opacity: .35; }
.mw-row.just-done { animation: mwFlashDone 1.0s ease-out; }
@keyframes mwFlashDone {
  0%   { background: #d8f7e6; }
  100% { background: transparent; }
}

.mw-check {
  width: 22px; height: 22px; min-width: 22px;
  border: 2px solid #c4c7d0; border-radius: 50%;
  background: white; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  align-self: center; color: white;
  transition: all .18s cubic-bezier(.2,.8,.25,1.05);
}
.mw-check:hover {
  border-color: #00ca72; background: #ecfaf3;
  transform: scale(1.08);
}
.mw-row.is-done .mw-check {
  background: linear-gradient(135deg, #00d27a, #00a35e);
  border-color: #00a35e;
  box-shadow: 0 4px 10px rgba(0,202,114,.36);
}
.mw-row.just-done .mw-check { animation: mwCheckPop .5s ease-out; }
@keyframes mwCheckPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(.94); }
  100% { transform: scale(1); }
}

.mw-row-body { flex: 1; min-width: 0; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 1px 0; }
.mw-row-line1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mw-name {
  font-size: 13.5px; font-weight: 600; color: var(--ink-strong, #0f1729);
  text-wrap: pretty; line-height: 1.3;
}
.mw-row-line2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; color: var(--ink-muted, #676879);
  flex-wrap: wrap;
}
.mw-project {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 600; font-size: 11.5px;
}
.mw-proj-dot {
  width: 7px; height: 7px; border-radius: 2px; display: inline-block;
}
.mw-proj-dot.big { width: 11px; height: 11px; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.mw-epic {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700;
  padding: 1.5px 8px; border-radius: 5px;
  background: color-mix(in srgb, var(--ec, #0073ea) 14%, white);
  color: var(--ec, #0073ea);
  border: 1px solid color-mix(in srgb, var(--ec, #0073ea) 28%, transparent);
}
.mw-chip {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, #f5f6f8 0%, #eceef3 100%);
  color: var(--ink-body, #323338);
  padding: 1.5px 8px; border-radius: 5px;
  font-size: 11px; font-weight: 600;
}
.mw-blocked {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #fff3f5 0%, #ffe0e6 100%);
  color: #c4263a;
  padding: 1.5px 8px; border-radius: 5px;
  font-size: 11px; font-weight: 600;
  border: 1px solid #f4c2cb;
}

.mw-prio-dot {
  width: 7px; height: 7px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
  box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 0%, white);
}

.mw-badge {
  font-size: 10px; font-weight: 800;
  padding: 1.5px 7px; border-radius: 5px;
  text-transform: uppercase; letter-spacing: 0.04em;
  white-space: nowrap;
}
.mw-badge.mentions { background: linear-gradient(135deg, #e6efff, #d6e6ff); color: #0050c0; }
.mw-badge.review   { background: linear-gradient(135deg, #fff0e0, #ffe1c2); color: #a35400; }
.mw-badge.snoozed  { background: linear-gradient(135deg, #f0f1f5, #e6e8ef); color: #525468; }

.mw-row-right {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.mw-status {
  font-size: 11px; font-weight: 800;
  padding: 3px 9px; border-radius: 6px;
  min-width: 76px; text-align: center;
  letter-spacing: 0.02em;
}
.mw-due {
  font-size: 12px; font-weight: 700;
  color: var(--ink-body, #323338);
  min-width: 64px; text-align: center;
  font-variant-numeric: tabular-nums;
  padding: 3px 8px; border-radius: 6px;
  background: #f5f6f8;
}
.mw-due.overdue { color: #d23a55; background: linear-gradient(135deg, #ffe7eb, #ffd2d9); }
.mw-due.today   { color: #c44a14; background: linear-gradient(135deg, #fff0e0, #ffd9b8); }
.mw-due.week    { color: #0058b8; background: linear-gradient(135deg, #e6efff, #cfe1ff); }
.mw-due.later   { color: #525468; background: #eceef3; }
.mw-due.someday { color: #7a7e8c; background: #f0f1f5; }

.mw-pts {
  font-size: 11px; font-weight: 800;
  color: var(--ink-muted, #676879);
  min-width: 40px; text-align: right;
  font-variant-numeric: tabular-nums;
}
.mw-row-actions { display: flex; gap: 2px; opacity: 0; transition: opacity .14s ease; }
.mw-row:hover .mw-row-actions { opacity: 1; }
.mw-icon-btn {
  border: none; background: transparent;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-muted, #676879); border-radius: 6px;
  cursor: pointer;
  transition: all .14s ease;
}
.mw-icon-btn:hover {
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
  color: #6c2bd9; transform: scale(1.06);
}

/* ══ Week view ═══════════════════════════════════════════════ */
.mw-week { display: flex; flex-direction: column; gap: 16px; }
.mw-week-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.mw-day {
  background: white; border: 1px solid rgba(16,22,40,.06);
  border-radius: 12px; overflow: hidden;
  min-height: 240px;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 8px rgba(16,22,40,.04);
  transition: box-shadow .18s ease, transform .18s ease;
}
.mw-day:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(16,22,40,.08); }
.mw-day.is-today {
  border-color: transparent;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(135deg, #a25ddc, #4c8bf5, #38d6c4) border-box;
  border: 2px solid transparent;
  box-shadow: 0 8px 24px rgba(108,43,217,.18), 0 0 0 4px rgba(162,93,220,.10);
}
.mw-day-head {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(16,22,40,.05);
  background: #fafbfd;
}
.mw-day.is-today .mw-day-head {
  background: linear-gradient(180deg, #f3e8ff 0%, #fafbfd 100%);
  border-bottom-color: rgba(108,43,217,.10);
}
.mw-day-name {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-muted, #676879);
}
.mw-day.is-today .mw-day-name {
  background: linear-gradient(135deg, #a25ddc, #4c8bf5);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.mw-day-num {
  font-size: 11.5px; font-weight: 700; color: var(--ink-body, #323338);
  margin-left: auto; font-variant-numeric: tabular-nums;
}
.mw-day.is-today .mw-day-num { color: #6c2bd9; }
.mw-day-count {
  background: linear-gradient(135deg, #a25ddc, #6c2bd9);
  color: white;
  font-size: 10px; font-weight: 800;
  padding: 2px 7px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(108,43,217,.32);
}

.mw-day-body {
  flex: 1; padding: 7px;
  display: flex; flex-direction: column; gap: 5px;
  overflow: auto;
}
.mw-day-card {
  padding: 7px 9px;
  border-radius: 7px;
  background: linear-gradient(135deg, #fafbfd 0%, #f5f6f8 100%);
  border-left: 3px solid var(--pc, #0073ea);
  cursor: pointer;
  font-size: 11.5px;
  transition: transform .14s ease, background .14s ease, box-shadow .14s ease;
}
.mw-day-card:hover {
  transform: translateX(2px);
  background: linear-gradient(135deg, #f0f3f7 0%, #e8ecf2 100%);
  box-shadow: 0 4px 10px rgba(16,22,40,.08);
}
.mw-day-card.was-overdue {
  background: linear-gradient(135deg, #fff4f5 0%, #ffe7ec 100%);
  border-left-color: #e2445c;
}
.mw-day-card.prio-critical { background: linear-gradient(135deg, #fff4f5 0%, #ffe7ec 100%); }
.mw-day-card.prio-high     { background: linear-gradient(135deg, #fff8f3 0%, #ffeede 100%); }
.mw-day-name-line {
  display: flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--ink-strong, #0f1729);
  line-height: 1.25;
}
.mw-day-meta {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; color: var(--ink-muted, #676879);
  margin-top: 3px; font-weight: 600;
}
.mw-day-empty {
  color: var(--ink-faint, #a3a8b6); font-size: 11px; font-style: italic;
  text-align: center; margin: auto 0;
}

.mw-overflow {
  background: white; border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(16,22,40,.05), 0 0 0 1px rgba(16,22,40,.04);
}
.mw-overflow-head {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 800; color: var(--ink-strong, #0f1729);
  margin-bottom: 10px;
}
.mw-overflow-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.mw-overflow-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #f5f6f8, #eceef3);
  border: 1px solid transparent;
  padding: 6px 11px; border-radius: 7px;
  font: inherit; font-size: 11.5px; font-weight: 600;
  color: var(--ink-strong, #0f1729); cursor: pointer;
  transition: all .14s ease;
}
.mw-overflow-chip:hover {
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
  border-color: rgba(108,43,217,.24);
  transform: translateY(-1px);
}

/* ══ Project view ═══════════════════════════════════════════ */
.mw-proj-head { gap: 12px; }
.mw-proj-progress {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: auto;
}
.mw-proj-bar {
  width: 130px; height: 7px;
  background: #eef0f4; border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(16,22,40,.06);
}
.mw-proj-bar span {
  display: block; height: 100%; border-radius: 4px;
  transition: width .4s cubic-bezier(.2,.8,.25,1);
  box-shadow: 0 0 8px color-mix(in srgb, currentColor 30%, transparent);
}
.mw-proj-pct {
  font-size: 11.5px; font-weight: 800; color: var(--ink-body, #323338);
  min-width: 36px; text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ══ Side rail ══════════════════════════════════════════════ */
.mw-side {
  display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: 12px;
}
.mw-side-card {
  position: relative;
  background: white;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(16,22,40,.05), 0 0 0 1px rgba(16,22,40,.04);
  transition: box-shadow .2s ease, transform .2s ease;
}
.mw-side-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #a25ddc 0%, #4c8bf5 50%, #38d6c4 100%);
  opacity: .85;
}
.mw-side-card:hover { box-shadow: 0 8px 22px rgba(16,22,40,.08), 0 0 0 1px rgba(16,22,40,.06); }

.mw-side-head {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px 11px;
  border-bottom: 1px solid rgba(16,22,40,.05);
  background: linear-gradient(180deg, #fbfbfd 0%, white 100%);
}
.mw-side-head h4 {
  margin: 0; font-size: 13px; font-weight: 800; color: var(--ink-strong, #0f1729);
  letter-spacing: -0.005em;
}
.mw-side-link {
  margin-left: auto;
  font-size: 11px; font-weight: 800;
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
  color: #6c2bd9;
  padding: 2px 9px; border-radius: 999px;
  letter-spacing: 0.02em;
}
.mw-side-empty {
  display: flex; align-items: center; gap: 9px;
  padding: 18px 16px;
  font-size: 12.5px; color: var(--ink-muted, #676879);
}
.mw-side-empty svg { color: #b8bcc7; }

/* Week snapshot */
.mw-week-snap {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 16px;
}
.mw-ring {
  position: relative; width: 88px; height: 88px; flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0,202,114,.18));
}
.mw-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mw-ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.mw-ring-num {
  font-size: 22px; font-weight: 900;
  background: linear-gradient(135deg, #00d27a, #00a35e);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  line-height: 1; letter-spacing: -0.02em;
}
.mw-ring-lbl {
  font-size: 10px; font-weight: 800; color: var(--ink-muted, #676879);
  text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px;
}

.mw-week-stats { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink-body, #323338); }
.mw-week-stats strong { color: var(--ink-strong, #0f1729); font-weight: 800; }
.mw-week-delta {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 800; color: #00a35e;
  background: linear-gradient(135deg, #e6f8ee, #d4f1e0);
  padding: 2px 8px; border-radius: 999px;
  width: fit-content;
}
.mw-week-delta.is-down {
  color: #d23a55;
  background: linear-gradient(135deg, #ffe7eb, #ffd2d9);
}
.mw-open-line { font-size: 11.5px; color: var(--ink-muted, #676879); margin-top: 5px; font-weight: 600; }

/* Mentions */
.mw-mentions { display: flex; flex-direction: column; }
.mw-mention {
  display: flex; gap: 11px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(16,22,40,.05);
  cursor: pointer;
  transition: background .14s ease;
}
.mw-mention:last-child { border-bottom: none; }
.mw-mention:hover { background: linear-gradient(90deg, rgba(162,93,220,.05), transparent 70%); }
.mw-mention-body { flex: 1; min-width: 0; }
.mw-mention-line1 { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; }
.mw-mention-line1 strong { color: var(--ink-strong, #0f1729); font-weight: 800; }
.mw-mention-at { color: var(--ink-faint, #a3a8b6); font-size: 11px; margin-left: auto; }
.mw-mention-snippet {
  font-size: 12.5px; color: var(--ink-body, #323338);
  line-height: 1.4; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.mw-mention-ctx {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--ink-muted, #676879);
  margin-top: 6px; font-weight: 600;
}

/* Reviews */
.mw-reviews { display: flex; flex-direction: column; }
.mw-review {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(16,22,40,.05);
  transition: background .14s ease;
}
.mw-review:last-child { border-bottom: none; }
.mw-review:hover { background: linear-gradient(90deg, rgba(76,139,245,.05), transparent 70%); }
.mw-review-kind {
  font-size: 10px; font-weight: 900;
  padding: 4px 8px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.06em;
  flex-shrink: 0;
}
.mw-review-kind.k-pr     { background: linear-gradient(135deg, #e6efff, #d3e1ff); color: #0050c0; }
.mw-review-kind.k-design { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); color: #6c2bd9; }
.mw-review-body { flex: 1; min-width: 0; }
.mw-review-title {
  font-size: 12.5px; font-weight: 700; color: var(--ink-strong, #0f1729);
  line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mw-review-meta {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--ink-muted, #676879);
  margin-top: 5px; flex-wrap: wrap; font-weight: 600;
}
.mw-review-meta .sep { color: var(--ink-faint, #a3a8b6); }
.mw-review-added {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
  color: #6c2bd9;
  padding: 1px 6px; border-radius: 4px;
}
.mw-review-cta {
  border: 1.5px solid transparent;
  background: linear-gradient(135deg, #a25ddc 0%, #6c2bd9 100%);
  color: white;
  padding: 5px 13px; border-radius: 7px;
  font: inherit; font-size: 11.5px; font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(108,43,217,.28);
  transition: transform .14s ease, box-shadow .14s ease;
}
.mw-review-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(108,43,217,.36); }

/* Empty state */
.mw-empty {
  background: white;
  padding: 56px 28px; border-radius: 14px;
  text-align: center; color: var(--ink-muted, #676879);
  box-shadow: 0 4px 14px rgba(16,22,40,.05), 0 0 0 1px rgba(16,22,40,.04);
}
.mw-empty-ico { font-size: 40px; margin-bottom: 12px; }
.mw-empty-title { font-size: 16px; font-weight: 800; color: var(--ink-strong, #0f1729); margin-bottom: 6px; }
.mw-empty-sub { font-size: 13px; }

/* Filter button look (overrides app.css if present) */
.mw-stats-row .btn {
  background: white;
  border: 1px solid rgba(16,22,40,.10);
  color: var(--ink-body, #323338);
  font-weight: 700;
  border-radius: 9px;
  padding: 7px 12px;
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
  transition: all .14s ease;
}
.mw-stats-row .btn:hover {
  border-color: rgba(162,93,220,.32);
  color: #6c2bd9;
}
.mw-stats-row .btn.btn-active {
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
  border-color: rgba(108,43,217,.32);
  color: #6c2bd9;
}
.mw-stats-row .btn-count {
  background: #6c2bd9; color: white;
  font-size: 10px; font-weight: 800;
  padding: 1px 7px; border-radius: 999px;
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes mwFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .mw-blob, .mw-hero-name, .mw-hero-wave,
  .mw-streak::before, .mw-dot-pulse {
    animation: none !important;
  }
  .mw-hero, .mw-stats-row, .mw-body { animation: none !important; }
}
