/* Sun Kala v23.0 — Task Manager */
body.task-manager-open { overflow: hidden !important; }
.tm-root {
  position: fixed; inset: 0; z-index: 9000; direction: rtl;
  color: #132235; font-family: inherit; background: #eef4f7;
  --tm-accent: #1fa77b; --tm-accent-deep: #147458; --tm-orange: #ff7a21;
  --tm-glass: rgba(255,255,255,.78); --tm-line: rgba(36,65,91,.12);
  --tm-shadow: 0 18px 45px rgba(29,47,63,.12);
}
.tm-scene,.tm-sky { position:absolute; inset:0; pointer-events:none; }
.tm-scene { overflow:hidden; background:#eef4f7; }
.tm-sky { background-size:cover; background-position:center; filter:saturate(.92); transform:scale(1.02); }
:root[data-daypart="morning"] .tm-sky { background-image:linear-gradient(rgba(248,251,252,.72),rgba(242,247,249,.88)),url('/assets/dayparts/morning-portrait.webp'); }
:root[data-daypart="day"] .tm-sky { background-image:linear-gradient(rgba(248,251,252,.68),rgba(242,247,249,.88)),url('/assets/dayparts/day-portrait.webp'); }
:root[data-daypart="evening"] .tm-sky { background-image:linear-gradient(rgba(35,44,68,.42),rgba(237,240,247,.88)),url('/assets/dayparts/evening-portrait.webp'); }
:root[data-daypart="night"] .tm-sky { background-image:linear-gradient(rgba(9,18,34,.55),rgba(226,234,243,.9)),url('/assets/dayparts/night-portrait.webp'); }
.tm-shell { position:relative; z-index:1; width:min(100%,680px); height:100%; margin:auto; display:flex; flex-direction:column; }
.tm-header {
  min-height:76px; padding:max(12px,env(safe-area-inset-top)) 16px 10px; display:grid;
  grid-template-columns:46px 1fr 46px; align-items:center; gap:10px;
  background:rgba(255,255,255,.57); backdrop-filter:blur(22px) saturate(145%); -webkit-backdrop-filter:blur(22px) saturate(145%);
  border-bottom:1px solid rgba(255,255,255,.66); box-shadow:0 8px 28px rgba(21,45,65,.07);
}
.tm-back,.tm-avatar { width:42px; height:42px; border-radius:15px; }
.tm-back { border:1px solid var(--tm-line); background:rgba(255,255,255,.62); display:grid; place-items:center; color:#42586c; }
.tm-avatar { object-fit:cover; border:2px solid rgba(255,255,255,.85); box-shadow:0 5px 16px rgba(30,50,68,.15); }
.tm-title { text-align:center; display:flex; flex-direction:column; gap:2px; }
.tm-title strong { font-size:16px; font-weight:900; }
.tm-title span { font-size:10px; color:#728091; }
.tm-mode-switch { align-self:center; width:calc(100% - 32px); margin:10px 16px 0; padding:5px; display:flex; gap:5px; border-radius:17px; background:rgba(255,255,255,.72); border:1px solid rgba(255,255,255,.82); box-shadow:0 8px 24px rgba(31,53,72,.08); backdrop-filter:blur(16px); }
.tm-mode-switch button { flex:1; min-height:42px; border:0; border-radius:12px; background:transparent; color:#617083; font-weight:800; display:flex; align-items:center; justify-content:center; gap:6px; }
.tm-mode-switch button.active { background:#132235; color:white; box-shadow:0 7px 18px rgba(19,34,53,.18); }
.tm-main { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:14px 14px 116px; scrollbar-width:none; }
.tm-main::-webkit-scrollbar { display:none; }
.tm-loading { min-height:55vh; display:grid; place-items:center; align-content:center; gap:14px; color:#637286; }
.tm-loading span { width:32px; height:32px; border:3px solid rgba(31,167,123,.2); border-top-color:var(--tm-accent); border-radius:50%; animation:tmspin .8s linear infinite; }
@keyframes tmspin { to { transform:rotate(360deg); } }
.tm-eyebrow,.tm-page-head>span,.tm-team-head>div>span { font-size:10px; font-weight:900; color:var(--tm-accent-deep); letter-spacing:.02em; }
.tm-welcome-card,.tm-day-card,.tm-page-head,.tm-notification-permission,.tm-team-head,.tm-team-user-head,.tm-team-date-line {
  background:var(--tm-glass); border:1px solid rgba(255,255,255,.8); backdrop-filter:blur(21px) saturate(135%); -webkit-backdrop-filter:blur(21px) saturate(135%);
  box-shadow:var(--tm-shadow); border-radius:26px;
}
.tm-welcome-card { padding:22px; text-align:center; }
.tm-welcome-card h1,.tm-page-head h1,.tm-team-head h1 { margin:7px 0 6px; font-size:24px; line-height:1.3; }
.tm-welcome-card>p,.tm-page-head>p { margin:0; color:#6d7b8c; font-size:12px; line-height:1.9; }
.tm-carry-alert { margin:18px 0; padding:12px; display:flex; align-items:center; gap:10px; text-align:right; border-radius:17px; background:rgba(255,122,33,.09); border:1px solid rgba(255,122,33,.18); color:#725038; }
.tm-carry-alert b { width:34px; height:34px; flex:0 0 auto; border-radius:12px; display:grid; place-items:center; color:white; background:var(--tm-orange); }
.tm-carry-alert span { font-size:11px; line-height:1.8; }
.tm-primary-wide { width:100%; min-height:48px; border:0; border-radius:16px; color:white; background:linear-gradient(135deg,var(--tm-accent),var(--tm-accent-deep)); font-weight:900; box-shadow:0 10px 22px rgba(31,167,123,.23); }
.tm-day-card { padding:17px; display:grid; grid-template-columns:1fr 68px; gap:12px; align-items:center; }
.tm-day-card h1 { margin:4px 0 0; font-size:21px; }
.tm-day-card>div>span { font-size:10px; color:#738294; }
.tm-progress-ring { --p:0; width:64px; height:64px; border-radius:50%; display:grid; place-items:center; background:conic-gradient(var(--tm-accent) calc(var(--p)*1%),rgba(31,167,123,.12) 0); position:relative; }
.tm-progress-ring::after { content:""; position:absolute; inset:7px; border-radius:50%; background:rgba(255,255,255,.92); }
.tm-progress-ring b { position:relative; z-index:1; font-size:12px; color:var(--tm-accent-deep); }
.tm-day-stats { grid-column:1/-1; display:flex; gap:8px; }
.tm-day-stats span { flex:1; padding:9px 11px; border-radius:13px; background:rgba(238,244,247,.68); color:#667586; font-size:10px; }
.tm-day-stats b { color:#16283b; font-size:13px; margin-left:4px; }
.tm-reminder-chip { grid-column:1/-1; min-height:34px; border:0; border-radius:12px; background:rgba(31,167,123,.09); color:var(--tm-accent-deep); display:flex; align-items:center; justify-content:center; gap:6px; font-weight:850; font-size:10px; }
.tm-reminder-chip.muted { background:rgba(97,112,131,.08); color:#718092; }
.tm-section { margin-top:15px; }
.tm-section-head { margin-bottom:9px; display:flex; justify-content:space-between; align-items:center; gap:10px; }
.tm-section-head h2 { margin:0; font-size:15px; }
.tm-section-head span { display:block; margin-top:2px; font-size:9px; color:#788697; }
.tm-section-head button { min-height:34px; border:0; border-radius:12px; padding:0 11px; background:rgba(255,255,255,.68); color:var(--tm-accent-deep); font-weight:850; display:flex; align-items:center; gap:5px; }
.tm-task-list { display:grid; gap:8px; }
.tm-task { position:relative; display:grid; grid-template-columns:34px 1fr auto; gap:10px; align-items:start; padding:13px; border-radius:19px; background:rgba(255,255,255,.79); border:1px solid rgba(255,255,255,.86); box-shadow:0 7px 20px rgba(28,50,69,.065); backdrop-filter:blur(12px); }
.tm-task.manager-task { border-color:rgba(255,122,33,.22); background:linear-gradient(135deg,rgba(255,251,247,.87),rgba(255,255,255,.8)); }
.tm-task.done { opacity:.7; }
.tm-task.done .tm-task-copy strong { text-decoration:line-through; color:#718092; }
.tm-task.carried { opacity:.58; }
.tm-checkbox { width:30px; height:30px; margin-top:1px; border-radius:10px; border:1.7px solid rgba(66,88,108,.3); color:white; background:rgba(255,255,255,.65); display:grid; place-items:center; }
.tm-checkbox.checked { background:var(--tm-accent); border-color:var(--tm-accent); }
.tm-checkbox:disabled { opacity:.55; }
.tm-task-copy { min-width:0; }
.tm-task-title-line { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.tm-task-title-line>strong { font-size:12px; line-height:1.7; }
.tm-manager-badge { padding:3px 7px; border-radius:999px; color:#b25318; background:rgba(255,122,33,.11); font-size:8px; font-weight:900; }
.tm-task-meta { min-height:4px; margin-top:3px; display:flex; flex-wrap:wrap; gap:8px; color:#7d8997; }
.tm-task-meta span { display:flex; align-items:center; gap:3px; font-size:8px; }
.tm-task-copy>p { margin:5px 0 0; font-size:9px; color:#6c7a8b; line-height:1.7; }
.tm-task-actions { display:flex; gap:4px; }
.tm-task-actions button { width:29px; height:29px; border:0; border-radius:10px; display:grid; place-items:center; background:rgba(232,238,243,.68); color:#627286; }
.tm-task-actions button.danger { color:#c95d5d; background:rgba(207,86,86,.08); }
.tm-empty { min-height:150px; padding:24px 18px; display:grid; place-items:center; align-content:center; text-align:center; color:#738192; background:rgba(255,255,255,.56); border:1px dashed rgba(80,101,119,.18); border-radius:22px; }
.tm-empty>span { color:var(--tm-accent); }
.tm-empty strong { margin-top:6px; color:#304356; font-size:13px; }
.tm-empty p { max-width:300px; margin:5px 0 0; font-size:9px; line-height:1.8; }
.tm-page-head { padding:17px; margin-bottom:12px; }
.tm-page-head h1 { font-size:21px; }
.tm-archive-list,.tm-reminder-list { display:grid; gap:8px; }
.tm-archive-card { width:100%; min-height:76px; padding:12px 14px; border:1px solid rgba(255,255,255,.82); border-radius:19px; background:rgba(255,255,255,.73); display:flex; align-items:center; justify-content:space-between; text-align:right; box-shadow:0 6px 18px rgba(30,52,70,.06); }
.tm-archive-card strong { display:block; font-size:11px; color:#2a3e50; }
.tm-archive-card span { display:block; margin-top:4px; font-size:8px; color:#82909e; }
.tm-archive-numbers { text-align:left; }
.tm-archive-numbers b { color:var(--tm-accent-deep); font-size:17px; }
.tm-archive-numbers em { display:block; margin-top:3px; font-style:normal; color:#c66d31; font-size:8px; }
.tm-notification-permission { margin-bottom:11px; padding:13px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.tm-notification-permission>div { display:flex; align-items:center; gap:9px; color:#a55e2e; }
.tm-notification-permission.ok>div { color:var(--tm-accent-deep); }
.tm-notification-permission strong,.tm-notification-permission small { display:block; }
.tm-notification-permission strong { color:#2d4053; font-size:11px; }
.tm-notification-permission small { margin-top:3px; color:#82909d; font-size:8px; }
.tm-notification-permission button { border:0; border-radius:10px; min-height:32px; padding:0 10px; background:#132235; color:white; font-size:9px; font-weight:850; }
.tm-reminder-card { padding:12px; display:grid; grid-template-columns:38px 1fr auto; gap:9px; align-items:center; border-radius:18px; background:rgba(255,255,255,.75); border:1px solid rgba(255,255,255,.85); }
.tm-reminder-card.off { opacity:.55; }
.tm-reminder-icon { width:36px; height:36px; border-radius:12px; display:grid; place-items:center; background:rgba(31,167,123,.1); color:var(--tm-accent-deep); }
.tm-reminder-card strong,.tm-reminder-card span { display:block; }
.tm-reminder-card strong { font-size:10px; }
.tm-reminder-card span { margin-top:4px; color:#7c8998; font-size:8px; }
.tm-reminder-card button { border:0; border-radius:9px; padding:7px 9px; background:rgba(207,86,86,.08); color:#bf5555; font-size:8px; font-weight:850; }
.tm-reminder-card em { color:#83909c; font-size:8px; font-style:normal; }
.tm-team-head { padding:14px; margin-bottom:10px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.tm-team-head h1 { margin:3px 0 0; font-size:20px; }
.tm-team-head input { width:128px; min-height:37px; border:1px solid var(--tm-line); border-radius:11px; background:rgba(255,255,255,.75); padding:0 8px; color:#425569; }
.tm-team-grid { display:grid; gap:8px; }
.tm-person-card { width:100%; padding:11px; border:1px solid rgba(255,255,255,.82); border-radius:19px; background:rgba(255,255,255,.76); display:grid; grid-template-columns:44px 1fr 32px; gap:10px; align-items:center; text-align:right; box-shadow:0 6px 18px rgba(30,52,70,.05); }
.tm-person-card img { width:43px; height:43px; object-fit:cover; border-radius:14px; }
.tm-person-card strong,.tm-person-card span,.tm-person-card small { display:block; }
.tm-person-card strong { font-size:11px; }
.tm-person-card span { margin-top:2px; color:#7b8998; font-size:8px; }
.tm-person-card small { margin-top:4px; color:#778696; font-size:7px; }
.tm-person-card>b { min-width:28px; height:28px; display:grid; place-items:center; border-radius:10px; background:rgba(255,122,33,.1); color:#bd641f; font-size:10px; }
.tm-person-progress { margin-top:6px; height:4px; background:rgba(31,167,123,.1); overflow:hidden; border-radius:99px; }
.tm-person-progress i { display:block; height:100%; background:var(--tm-accent); border-radius:99px; }
.tm-team-user-head { padding:12px; display:grid; grid-template-columns:34px 44px 1fr auto; gap:8px; align-items:center; margin-bottom:8px; }
.tm-team-user-head>button:first-child { width:32px; height:32px; border:0; border-radius:10px; background:rgba(93,111,129,.08); color:#617183; }
.tm-team-user-head img { width:43px; height:43px; border-radius:14px; object-fit:cover; }
.tm-team-user-head strong,.tm-team-user-head span { display:block; }
.tm-team-user-head strong { font-size:11px; }
.tm-team-user-head span { color:#798797; font-size:8px; margin-top:2px; }
.tm-team-add { min-height:34px; border:0; border-radius:11px; padding:0 9px; background:var(--tm-accent); color:white; display:flex; align-items:center; gap:4px; font-size:8px; font-weight:850; }
.tm-team-date-line { margin-bottom:9px; padding:9px 12px; display:flex; justify-content:space-between; font-size:9px; color:#607184; }
.tm-team-date-line span { color:var(--tm-accent-deep); font-weight:800; }
.tm-team-date-line span.muted { color:#8995a1; }
.tm-bottom-nav { position:absolute; z-index:4; right:10px; left:10px; bottom:max(8px,env(safe-area-inset-bottom)); height:74px; padding:5px 5px 4px; display:grid; grid-template-columns:1fr 1fr 76px 1fr 1fr; align-items:end; border-radius:25px; background:rgba(255,255,255,.78); border:1px solid rgba(255,255,255,.88); box-shadow:0 12px 38px rgba(24,45,63,.16); backdrop-filter:blur(22px) saturate(145%); -webkit-backdrop-filter:blur(22px) saturate(145%); }
.tm-bottom-nav>button { height:56px; border:0; background:transparent; color:#718092; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; font-size:8px; font-weight:800; }
.tm-bottom-nav>button.active { color:var(--tm-accent-deep); }
.tm-bottom-nav .tm-nav-add { width:60px; height:60px; margin:0 auto 14px; border-radius:20px; color:white; background:linear-gradient(145deg,var(--tm-accent),var(--tm-accent-deep)); box-shadow:0 10px 23px rgba(31,167,123,.29); }
.tm-bottom-nav .tm-nav-add span { font-size:7px; }
.tm-manager-bar { position:absolute; z-index:4; right:12px; left:12px; bottom:max(10px,env(safe-area-inset-bottom)); min-height:58px; padding:6px; display:flex; gap:7px; background:rgba(255,255,255,.8); border:1px solid rgba(255,255,255,.88); border-radius:20px; box-shadow:0 12px 34px rgba(24,45,63,.14); backdrop-filter:blur(20px); }
.tm-manager-bar button { flex:1; border:0; border-radius:14px; background:rgba(232,238,243,.72); color:#52667a; font-weight:850; display:flex; align-items:center; justify-content:center; gap:6px; }
.tm-manager-bar button.primary { background:#132235; color:white; }
.tm-modal-backdrop { position:fixed; inset:0; z-index:9500; padding:18px; display:flex; align-items:flex-end; justify-content:center; background:rgba(7,17,27,.34); backdrop-filter:blur(8px); direction:rtl; }
.tm-modal-card { width:min(100%,560px); max-height:min(82vh,760px); overflow:auto; padding:16px; border-radius:25px 25px 18px 18px; background:rgba(250,252,253,.96); box-shadow:0 24px 70px rgba(12,25,36,.27); }
.tm-modal-card>header { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.tm-modal-card>header strong,.tm-modal-card>header span { display:block; }
.tm-modal-card>header strong { font-size:14px; }
.tm-modal-card>header span { margin-top:3px; color:#788696; font-size:8px; }
.tm-modal-card>header button { width:34px; height:34px; border:0; border-radius:11px; background:#edf1f4; color:#5c6c7c; display:grid; place-items:center; }
.tm-modal-note { color:#667687; font-size:10px; line-height:1.8; }
.tm-transfer-list { display:grid; gap:6px; max-height:42vh; overflow:auto; }
.tm-transfer-list label { display:flex; align-items:center; gap:9px; padding:10px; border-radius:14px; background:white; border:1px solid #edf0f2; }
.tm-transfer-list input { accent-color:var(--tm-accent); width:18px; height:18px; }
.tm-transfer-list strong,.tm-transfer-list small { display:block; }
.tm-transfer-list strong { font-size:10px; }
.tm-transfer-list small { margin-top:3px; color:#82909d; font-size:7px; }
.tm-modal-actions { display:flex; gap:8px; margin-top:13px; }
.tm-modal-actions button { flex:1; min-height:43px; border:0; border-radius:14px; font-weight:850; }
.tm-modal-actions .secondary { background:#edf1f4; color:#56687a; }
.tm-modal-actions .primary { background:var(--tm-accent); color:white; }
.tm-form { display:grid; gap:11px; }
.tm-form label>span { display:block; margin-bottom:5px; color:#536477; font-size:9px; font-weight:850; }
.tm-form label small { color:#9aa4ad; font-weight:500; }
.tm-form input,.tm-form textarea,.tm-form select { width:100%; border:1px solid rgba(74,95,113,.14); border-radius:13px; background:white; color:#26394c; padding:10px 11px; outline:none; font:inherit; font-size:11px; box-sizing:border-box; }
.tm-form input:focus,.tm-form textarea:focus,.tm-form select:focus { border-color:rgba(31,167,123,.55); box-shadow:0 0 0 3px rgba(31,167,123,.08); }
.tm-inline-check { display:flex; align-items:center; gap:8px; padding:8px 0; }
.tm-inline-check input { width:18px; height:18px; accent-color:var(--tm-accent); }
.tm-inline-check>span { margin:0 !important; }
.tm-reminder-inline { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:10px; border-radius:15px; background:rgba(31,167,123,.06); }
.tm-form-hint { margin:0; font-size:8px; color:#7b8998; line-height:1.7; }
.tm-archive-detail { max-height:65vh; overflow:auto; }
.tm-toast-root { position:fixed; z-index:9999; right:14px; left:14px; bottom:100px; display:grid; gap:7px; pointer-events:none; direction:rtl; }
.tm-toast { max-width:520px; margin:auto; padding:11px 14px; border-radius:14px; background:#132235; color:white; box-shadow:0 10px 28px rgba(0,0,0,.19); font-size:10px; font-weight:750; }
.tm-toast.error { background:#a84646; }
@media (min-width:700px) {
  .tm-root { background:#dce6eb; }
  .tm-shell { border-inline:1px solid rgba(255,255,255,.5); box-shadow:0 0 60px rgba(19,38,52,.12); }
}
@media (max-width:390px) {
  .tm-main { padding-inline:10px; }
  .tm-task { grid-template-columns:31px 1fr; }
  .tm-task-actions { grid-column:2; justify-content:flex-end; }
  .tm-reminder-inline { grid-template-columns:1fr; }
  .tm-bottom-nav { right:6px; left:6px; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-root * { scroll-behavior:auto !important; animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

/* === v23.0.5 — خوانایی و دکمه‌های واضح مدیریت وظایف === */
.tm-title span { font-size: 12px; }
.tm-mode-switch button { font-size: 12px; }
.tm-eyebrow,.tm-page-head>span,.tm-team-head>div>span { font-size: 12px; }
.tm-welcome-card>p,.tm-page-head>p { font-size: 13px; }
.tm-carry-alert span { font-size: 13px; }
.tm-day-card>div>span { font-size: 12px; }
.tm-day-stats span { font-size: 12px; }
.tm-day-stats b { font-size: 15px; }
.tm-reminder-chip { min-height: 40px; font-size: 12px; }
.tm-section-head h2 { font-size: 17px; }
.tm-section-head span { font-size: 12px; }
.tm-section-head button {
  min-height: 40px;
  padding: 0 14px;
  background: linear-gradient(145deg,var(--tm-accent),var(--tm-accent-deep)) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(31,167,123,.22);
  font-size: 12px;
}
.tm-task-title-line>strong { font-size: 14px; }
.tm-manager-badge { font-size: 10px; }
.tm-task-meta span { font-size: 11px; }
.tm-task-copy>p { font-size: 12px; }
.tm-empty strong { font-size: 14px; }
.tm-empty p { font-size: 12px; }
.tm-archive-card strong { font-size: 13px; }
.tm-archive-card span { font-size: 11px; }
.tm-archive-numbers em { font-size: 10px; }
.tm-notification-permission strong { font-size: 13px; }
.tm-notification-permission small { font-size: 11px; }
.tm-notification-permission button { min-height: 38px; font-size: 11px; }
.tm-reminder-card strong { font-size: 13px; }
.tm-reminder-card span { font-size: 11px; }
.tm-reminder-card button,.tm-reminder-card em { font-size: 11px; }
.tm-person-card strong { font-size: 13px; }
.tm-person-card span { font-size: 11px; }
.tm-person-card small { font-size: 10px; }
.tm-person-card>b { font-size: 12px; }
.tm-team-user-head strong { font-size: 13px; }
.tm-team-user-head span { font-size: 11px; }
.tm-team-add { min-height: 40px; padding: 0 12px; font-size: 11px; }
.tm-team-date-line { font-size: 11px; }
.tm-bottom-nav>button { font-size: 11px; }
.tm-bottom-nav .tm-nav-add span { font-size: 10px; }
.tm-manager-bar button { font-size: 12px; }
.tm-modal-card>header strong { font-size: 16px; }
.tm-modal-card>header span { font-size: 11px; }
.tm-modal-note { font-size: 12px; }
.tm-transfer-list strong { font-size: 13px; }
.tm-transfer-list small { font-size: 11px; }
.tm-modal-actions button { min-height: 47px; font-size: 12px; }
.tm-form label>span { font-size: 12px; }
.tm-form input,.tm-form textarea,.tm-form select { min-height: 46px; font-size: 14px; }
.tm-form textarea { min-height: 86px; }
.tm-form-hint { font-size: 11px; }
.tm-primary-wide {
  min-height: 52px !important;
  background: linear-gradient(145deg,var(--tm-accent),var(--tm-accent-deep)) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(31,167,123,.26) !important;
  font-size: 13px;
}
.tm-toast { font-size: 12px; }
