*{box-sizing:border-box}html,body{padding:0;margin:0;min-height:100%;direction:rtl}body{font:14px/1.7 Tahoma,'Vazirmatn',sans-serif;background:transparent;color:#142b43}.ow{--bg:#f6faff;--head:#0a4b75;--accent:#0c8bba;--tile:#fff;--line:#dce9f1;--sub:#597486;border:1px solid var(--line);border-radius:18px;background:var(--bg);padding:15px;min-height:420px;overflow:hidden}.ow.theme-dark{--bg:#152334;--head:#e5f5ff;--accent:#6bc8f4;--tile:#22374c;--line:#38526a;--sub:#adc6d8;color:#ecf6ff}.ow.theme-sand{--bg:#fffaf1;--head:#76501b;--accent:#b27420;--tile:#fff;--line:#f0dec3;--sub:#8d7254}.ow.theme-green{--bg:#f1faf6;--head:#175b4c;--accent:#1a8b6a;--tile:#fff;--line:#d2e9e0;--sub:#527e73}.ow *{box-sizing:border-box}.ow a{color:var(--accent);text-decoration:none}.ow-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:11px;border-bottom:1px solid var(--line)}.ow-name{color:var(--head);font-size:20px;font-weight:900}.ow-prov{display:block;font-size:11px;color:var(--sub);font-weight:400}.ow-mark{font-size:22px;line-height:1;background:var(--tile);border:1px solid var(--line);padding:10px;border-radius:14px}.ow-date{margin:9px 0;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--sub);gap:6px;flex-wrap:wrap}.ow-clock{font-weight:900;font-size:18px;color:var(--head);font-variant-numeric:tabular-nums;direction:ltr}.ow-next{background:var(--head);border-radius:12px;padding:11px;color:#fff;margin:12px 0;display:flex;justify-content:space-between;align-items:center;gap:8px}.ow.theme-dark .ow-next{background:#0e4a68}.ow-next small{display:block;font-size:11px;opacity:.8}.ow-count{direction:ltr;text-align:left;font-size:17px;font-weight:900;font-variant-numeric:tabular-nums}.ow-prayers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.ow-prayer{background:var(--tile);border:1px solid var(--line);border-radius:10px;padding:7px 9px;display:flex;align-items:center;justify-content:space-between;font-size:12px;gap:6px}.ow-prayer span{color:var(--sub)}.ow-prayer b{font-size:13px;direction:ltr;font-variant-numeric:tabular-nums}.ow-extra{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.ow-extra-title{font-size:12px;color:var(--head);font-weight:900;margin-bottom:7px}.ow-weather{display:flex;align-items:center;gap:8px;font-size:12px;flex-wrap:wrap}.ow-weather b{font-size:20px;color:var(--head)}.ow-tour{display:flex;flex-wrap:wrap;gap:6px}.ow-tour a{background:var(--tile);border:1px solid var(--line);padding:3px 8px;border-radius:8px;font-size:11px}.ow-controls{margin-top:10px;display:flex;gap:7px;align-items:center;flex-wrap:wrap}.ow-btn{font-family:inherit;background:var(--tile);color:var(--head);border:1px solid var(--line);border-radius:9px;padding:6px 10px;cursor:pointer;font-size:12px}.ow-btn.active{background:#d8f6e7;color:#145a3f;border-color:#91d3b7}.ow-note{color:var(--sub);font-size:10px;margin:8px 0 0}.ow-foot{font-size:10px;margin-top:10px;padding-top:7px;border-top:1px solid var(--line);color:var(--sub);text-align:center}.ow-error{font-size:12px;line-height:1.8;color:#8f4b1c;background:#fff3d9;border:1px solid #efd3a7;padding:8px;border-radius:8px}.ow-loading{font-size:12px;color:var(--sub)}.ow-hide{display:none!important}
/* v0.2 - Compact hourly/daily forecasts, miniature Jalali calendar */
.ow{min-height:0}
.ow-header .ow-name{display:inline-block;color:var(--head);text-decoration:underline;text-decoration-style:dotted;text-underline-offset:4px}
.ow-weather{line-height:1.8}
.ow-weather-subtitle{margin-top:12px}
.ow-daily,.ow-hourly{display:flex;gap:7px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding:7px 0 8px;-webkit-overflow-scrolling:touch}
.ow-weather-card,.ow-hour-card{flex:0 0 126px;background:var(--tile);border:1px solid var(--line);border-radius:12px;padding:9px;display:flex;flex-direction:column;gap:3px;scroll-snap-align:start;font-size:11px;color:var(--sub)}
.ow-hour-card{flex-basis:144px}
.ow-weather-card strong,.ow-hour-card strong{font-size:11px;color:var(--head)}
.ow-weather-card b,.ow-hour-card b{font-size:15px;color:var(--head);font-weight:900}
.ow-weather-card small,.ow-hour-card small{font-size:10px;line-height:1.5}
.ow-stale{display:block;width:100%;color:#a85f22}
.ow-calendar{background:var(--tile);border:1px solid var(--line);border-radius:12px;padding:10px}
.ow-calendar-title{display:block;text-align:center;color:var(--head);margin-bottom:8px;font-size:13px}
.ow-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
.ow-dayhead{font-weight:900;color:var(--sub);font-size:11px;padding:4px 0}
.ow-calday{padding:5px 0;border-radius:7px;font-size:12px;color:var(--head)}
.ow-calday.is-friday{color:#bb534d}
.ow-calday.is-today{background:var(--head);color:var(--tile);font-weight:900}
.ow-extra-title .ow-more{font-size:10px;float:left;font-weight:400;text-decoration:underline}

/* 0.3: direct drag on hourly/daily cards, no need to grab the scrollbar */
.ow-hourly,.ow-daily{touch-action:pan-y;cursor:grab;overscroll-behavior-x:contain;-webkit-user-select:none;user-select:none;scroll-snap-type:x proximity}
.ow-hourly.ow-dragging,.ow-daily.ow-dragging{cursor:grabbing;scroll-snap-type:none}
.ow-hour-card,.ow-weather-card{user-select:none;-webkit-user-select:none}
.ow-swipe-controls{display:flex;gap:7px;justify-content:flex-end;margin:-2px 0 4px}
.ow-scroll-btn{min-width:31px;height:30px;padding:2px 8px;font-size:20px;line-height:1}

/* v0.4 compact calendar navigator */
.ow-calendar-controls{display:flex;gap:8px;align-items:center;justify-content:space-between;margin:6px 0 10px}
.ow-calendar-controls .ow-btn{font-size:11px;min-height:34px;padding:5px 12px}
.ow-calendar-controls .ow-btn:disabled{opacity:.4;cursor:not-allowed}
