/* סיפוריק – "סדר היום שלי – בונים יחד" */

/* קיצורי הדרך במסך הבית: שתי שורות */
.sp-quick.sp-quick-rows { flex-direction: column; align-items: stretch; gap: 8px; }
.sp-quick-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sp-quick-main button { flex: 1 1 220px; max-width: 360px; padding: 12px 16px; font-size: 1.05rem; border-radius: 18px; }
.sp-quick .sp-q-build { background: linear-gradient(135deg,#f59e0b,#ea580c); color: #fff; border-color: #c2410c; }
.sp-quick .sp-q-morning { background: linear-gradient(135deg,#fde68a,#fb923c); color: #7c2d12; border-color: #f59e0b; }
.sp-quick .sp-q-noon { background: linear-gradient(135deg,#bae6fd,#38bdf8); color: #0c4a6e; border-color: #0ea5e9; }
.sp-quick .sp-q-build:hover, .sp-quick .sp-q-morning:hover, .sp-quick .sp-q-noon:hover, .sp-quick .sp-q-night:hover { filter: brightness(1.06); }

/* מסך הבנייה */
.md-builder { display: flex; flex-direction: column; gap: 14px; }
.md-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: linear-gradient(135deg,#fef3c7,#e0e7ff); border-radius: 24px; padding: 18px 22px 18px 34px; }
.md-hero-txt { flex: 1 1 260px; }
.md-hero h3 { margin: 0 0 6px; color: #9a3412; font-size: 1.35rem; }
.md-hero p { margin: 0 0 6px; color: #334155; line-height: 1.55; }
.md-hero-stars { color: #b45309 !important; font-weight: 700; }
.md-nohero { text-align: center; background: #fff7ed; border: 3px dashed #fdba74; border-radius: 24px; padding: 26px 18px; }
.md-nohero-ico { font-size: 3.4rem; }
.md-nohero h3 { color: #9a3412; margin: 6px 0; }
.md-nohero p { color: #475569; max-width: 520px; margin: 0 auto 14px; }
.md-link-btn { display: inline-block; text-decoration: none; }

.md-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.md-tab { border: 3px solid transparent; border-radius: 18px; padding: 12px 6px; font: inherit; font-size: 1.1rem; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; color: #1e293b; }
.md-tab-ico { font-size: 1.5rem; }
.md-tab-morning { background: #fef3c7; } .md-tab-afternoon { background: #e0f2fe; } .md-tab-evening { background: #e0e7ff; }
.md-tab.active { border-color: #1e293b; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(15,23,42,.12); }
.md-tab:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.md-tab-n { background: #fff; border-radius: 999px; min-width: 1.7em; padding: 0 6px; font-size: .9rem; }

.md-panel { border-radius: 22px; padding: 16px; border: 3px solid #e2e8f0; background: #fff; }
.md-panel-morning { border-color: #fcd34d; background: #fffbeb; }
.md-panel-afternoon { border-color: #7dd3fc; background: #f0f9ff; }
.md-panel-evening { border-color: #a5b4fc; background: #eef2ff; }
.md-panel-title { margin: 0 0 10px; color: #1e293b; }
.md-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.md-task { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: 0 2px 8px rgba(15,23,42,.06); }
.md-task.done { background: #f0fdf4; }
.md-task-n { width: 26px; height: 26px; border-radius: 50%; background: #f1f5f9; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: #475569; flex-shrink: 0; }
.md-task-ico { font-size: 1.9rem; line-height: 1; }
.md-task-name { flex: 1 1 140px; font-weight: 800; font-size: 1.05rem; color: #1e293b; }
.md-today-ok { color: #15803d; font-weight: 700; }
.md-timer { display: inline-flex; align-items: center; gap: 4px; background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 999px; padding: 3px; }
.md-min { min-width: 76px; text-align: center; font-weight: 800; color: #0f766e; }
.md-step { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #14b8a6; color: #fff; font-size: 1.3rem; font-weight: 800; cursor: pointer; line-height: 1; }
.md-step:disabled { background: #cbd5e1; cursor: default; }
.md-task-act { display: inline-flex; gap: 4px; }
.md-ico-btn { width: 34px; height: 34px; border-radius: 10px; border: 2px solid #e2e8f0; background: #fff; cursor: pointer; font-size: .9rem; color: #475569; }
.md-ico-btn:disabled { opacity: .35; cursor: default; }
.md-del { color: #dc2626; border-color: #fecaca; }
.md-step:focus-visible, .md-ico-btn:focus-visible, .md-chip:focus-visible, .md-icon:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.md-total { margin: 10px 0 0; color: #475569; }
.md-empty { color: #64748b; margin: 6px 0; }
.md-add-title { margin: 16px 0 8px; color: #334155; }
.md-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.md-chip { border: 2px solid #cbd5e1; background: #fff; border-radius: 999px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer; color: #1e293b; }
.md-chip:hover:not(:disabled) { border-color: #f59e0b; background: #fffbeb; }
.md-chip:disabled { opacity: .45; cursor: default; text-decoration: line-through; }
.md-custom { margin-top: 14px; background: rgba(255,255,255,.7); border-radius: 16px; padding: 12px; }
.md-custom-label { font-weight: 800; color: #334155; display: block; margin-bottom: 6px; }
.md-icons { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.md-icon { width: 40px; height: 40px; border-radius: 10px; border: 2px solid #e2e8f0; background: #fff; font-size: 1.3rem; cursor: pointer; }
.md-icon.on { border-color: #f59e0b; background: #fef3c7; transform: scale(1.08); }
.md-custom-row { display: flex; gap: 8px; flex-wrap: wrap; }
.md-custom-row input { flex: 1 1 200px; font: inherit; padding: 10px 12px; border-radius: 12px; border: 2px solid #cbd5e1; }
.md-custom-row select { font: inherit; padding: 10px; border-radius: 12px; border: 2px solid #cbd5e1; background: #fff; }
.md-add-btn { font: inherit; font-weight: 800; border: 0; border-radius: 12px; padding: 10px 16px; background: #0d9488; color: #fff; cursor: pointer; }

.md-save-bar { position: sticky; bottom: 8px; z-index: 5; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; background: rgba(255,255,255,.96); border: 2px solid #e2e8f0; border-radius: 20px; padding: 10px 12px; box-shadow: 0 8px 22px rgba(15,23,42,.12); }
.md-save, .md-go { font: inherit; font-weight: 800; font-size: 1.1rem; border: 0; border-radius: 16px; padding: 12px 20px; cursor: pointer; color: #fff; }
.md-save { background: linear-gradient(135deg,#16a34a,#0d9488); }
.md-save.pending { animation: md-pulse 1.6s ease-in-out infinite; }
.md-go { background: linear-gradient(135deg,#4f46e5,#7c3aed); }
.md-save:focus-visible, .md-go:focus-visible { outline: 3px solid #fde68a; outline-offset: 2px; }
.md-save-msg { font-weight: 700; color: #475569; }
@keyframes md-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(22,163,74,.45) } 50% { box-shadow: 0 0 0 8px rgba(22,163,74,0) } }

.md-progress { background: #fff; border: 3px solid #e2e8f0; border-radius: 22px; padding: 16px; }
.md-progress h3 { margin: 0 0 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: #1e293b; }
.md-today-badge { background: #dcfce7; color: #15803d; border-radius: 999px; padding: 2px 12px; font-size: .95rem; }
.md-streak { font-weight: 800; color: #c2410c; margin: 0 0 8px; }
.md-scroll { overflow-x: auto; }
.md-week { width: 100%; border-collapse: separate; border-spacing: 4px; text-align: center; }
.md-week th { font-size: .95rem; color: #334155; }
.md-week th small { display: block; color: #94a3b8; font-weight: 400; }
.md-week tr.today th[scope="row"] { color: #b45309; }
.md-c span { display: inline-block; min-width: 60px; padding: 6px 8px; border-radius: 12px; font-weight: 800; }
.md-c.full span { background: #fef08a; color: #854d0e; }
.md-c.some span { background: #dbeafe; color: #1e40af; }
.md-c.none span { background: #f1f5f9; color: #94a3b8; }
.md-na { color: #cbd5e1; }
.md-hint { margin: 10px 0 0; color: #475569; font-size: .95rem; }

/* מצב מעקב */
.md-live-parts { display: flex; gap: 6px; margin-top: 10px; position: relative; z-index: 1; flex-wrap: wrap; justify-content: center; }
.md-live-parts button { font: inherit; font-weight: 700; border: 2px solid rgba(15,23,42,.15); background: rgba(255,255,255,.7); border-radius: 999px; padding: 6px 14px; cursor: pointer; color: #1e293b; }
.md-live-parts button.on { background: #fff; border-color: #f59e0b; }
.md-dots li { padding: 0; }
.md-dots li button { width: 100%; height: 100%; border: 0; background: none; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.md-dots li button:focus-visible { outline: 3px solid #fde68a; outline-offset: 2px; }
.md-live-stars { font-weight: 800; margin: 12px 0 0; position: relative; z-index: 1; }
.md-win { height: auto; min-height: 40vh; }

html.a11y-dark .md-panel, html.a11y-dark .md-progress, html.a11y-dark .md-task, html.a11y-dark .md-save-bar { background: #1e293b; color: #f8fafc; }
html.a11y-dark .md-task-name, html.a11y-dark .md-panel-title, html.a11y-dark .md-progress h3 { color: #f8fafc; }
@media (prefers-reduced-motion: reduce) { .md-save.pending, .md-tab.active, .md-icon.on { animation: none !important; transform: none !important; } }
html.a11y-calm .md-save.pending, html.a11y-motion .md-save.pending { animation: none !important; }
@media (max-width: 560px) {
  .md-tab { font-size: .95rem; padding: 10px 4px; }
  .md-hero { padding: 14px; }
}
@media print { .md-save-bar, .md-live { display: none !important; } }
