
/* Compact, editable personal goals and a clear morning/evening programme. */
@layer nahwa-personal-dhikr {
  #nahwa-personal-dhikr[data-nhp-unified] :is([data-nhp-list],[data-nhp-custom]) {
    height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;
    grid-template-rows:none!important;grid-auto-rows:max-content!important;grid-auto-flow:row!important;
    align-content:start!important;align-items:start!important;gap:12px!important;
  }
  #nahwa-personal-dhikr[data-nhp-unified] :is([data-nhp-list],[data-nhp-custom]) > .nhp-card {
    display:grid!important;grid-template-columns:minmax(0,1fr) minmax(212px,auto)!important;
    align-content:start!important;align-items:start!important;align-self:start!important;
    height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;
    grid-template-rows:none!important;grid-auto-rows:max-content!important;gap:6px 10px!important;
    padding:14px!important;border-radius:13px!important;box-shadow:none!important;
  }
  #nahwa-personal-dhikr[data-nhp-unified] .nhp-card > :is(h3,.nhp-card-meta,.nhp-card-note,progress,.nhp-card-progress) { grid-column:1/-1!important; }
  #nahwa-personal-dhikr[data-nhp-unified] .nhp-card > h3 { font-size:18px!important;line-height:1.65!important; }
  #nahwa-personal-dhikr[data-nhp-unified] .nhp-card :is(.nhp-card-meta,.nhp-card-note) { font-size:12px!important;line-height:1.75!important; }
  #nahwa-personal-dhikr[data-nhp-unified] .nhp-card > progress { margin:2px 0 4px!important; }
  #nahwa-personal-dhikr[data-nhp-unified] .nhp-card-actions {
    grid-column:1!important;align-self:center!important;min-width:0!important;margin:0!important;gap:4px 6px!important;
  }
  #nahwa-personal-dhikr[data-nhp-unified] .nhp-card :is(.nhp-card-open,.nhp-virtue,.nhp-edit) { min-height:44px!important;padding:7px 9px!important;font-size:13px!important; }
  #nahwa-personal-dhikr[data-nhp-unified] .nhp-card .nhp-card-open { min-width:64px!important; }
  #nahwa-personal-dhikr[data-nhp-unified] .nhp-edit {
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    min-width:44px!important;max-width:100%!important;margin:0!important;border:1px solid transparent!important;
    border-radius:9px!important;background:transparent!important;color:var(--nhp-muted)!important;
    font:400 13px/1.8 'Hind Siliguri',sans-serif!important;text-decoration:underline!important;
    text-decoration-color:#acc2ce!important;text-underline-offset:4px!important;cursor:pointer!important;
  }
  #nahwa-personal-dhikr[data-nhp-unified] .nhp-card-counter {
    grid-column:2!important;align-self:center!important;justify-self:end!important;
    grid-template-columns:44px minmax(106px,1fr) 44px!important;gap:4px!important;
    width:100%!important;min-width:212px!important;max-width:236px!important;margin:0!important;padding:4px!important;
  }
  #nahwa-personal-dhikr[data-nhp-unified] .nhp-card-count { font-size:18px!important;line-height:1.65!important; }
  #nahwa-personal-dhikr[data-nhp-unified] .nhp-card-progress { min-height:21px!important;margin:0!important;font-size:11px!important;line-height:1.8!important; }
  #nahwa-personal-dhikr[data-nhp-unified] .nhp-custom-section { height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;margin-top:23px!important;padding-top:18px!important; }
  #nahwa-personal-dhikr[data-nhp-unified] .nhp-section-head { margin-bottom:11px!important; }
  #nahwa-personal-dhikr[data-nhp-unified] .nhp-section-head h2 { font-size:19px!important;line-height:1.7!important; }
  #nahwa-personal-dhikr[data-nhp-unified] [data-nhp-custom] > .nhp-card { grid-template-columns:minmax(0,1fr)!important; }
  #nahwa-personal-dhikr[data-nhp-unified] [data-nhp-custom] > .nhp-card :is(.nhp-card-actions,.nhp-card-counter) { grid-column:1!important;justify-self:stretch!important;max-width:none!important; }
  #nahwa-personal-dhikr[data-nhp-unified] .nhp-dialog:has(.nhp-edit-form) { width:min(calc(100vw - 40px),560px)!important;max-width:560px!important; }
  #nahwa-personal-dhikr[data-nhp-unified] .nhp-edit-form { min-width:0!important;margin:0!important; }
  #nahwa-personal-dhikr[data-nhp-unified] .nhp-edit-fields { display:grid!important;grid-template-columns:minmax(0,1fr) 132px!important;gap:12px!important;min-width:0!important; }
  #nahwa-personal-dhikr[data-nhp-unified] .nhp-edit-fields .nhp-field { margin:0!important; }
  #nahwa-personal-dhikr[data-nhp-unified] .nhp-edit-note { margin:14px 0!important;font-size:13px!important;line-height:1.9!important; }
  #nahwa-personal-dhikr[data-nhp-unified] [data-nhp-edit-error] { margin:12px 0!important;color:#8d523d!important;font-size:13px!important;line-height:1.9!important; }
  #nahwa-personal-dhikr[data-nhp-unified] .nhp-edit-actions { display:flex!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:8px!important;margin-top:18px!important; }
  #nahwa-personal-dhikr[data-nhp-unified] .nhp-edit-save { border-color:#e7c7ad!important;background:#ffdfc5!important;color:#6d503c!important; }
  @media(min-width:1000px) { #nahwa-personal-dhikr[data-nhp-unified] [data-nhp-custom] { grid-template-columns:repeat(3,minmax(0,1fr))!important; } }
  @media(max-width:1050px) {
    #nahwa-personal-dhikr[data-nhp-unified] :is([data-nhp-list],[data-nhp-custom]) > .nhp-card { grid-template-columns:minmax(0,1fr)!important; }
    #nahwa-personal-dhikr[data-nhp-unified] .nhp-card :is(.nhp-card-actions,.nhp-card-counter) { grid-column:1!important;justify-self:stretch!important;max-width:none!important; }
  }
  @media(max-width:760px) {
    #nahwa-personal-dhikr[data-nhp-unified] :is([data-nhp-list],[data-nhp-custom]) { grid-template-columns:minmax(0,1fr)!important;gap:10px!important; }
    #nahwa-personal-dhikr[data-nhp-unified] :is([data-nhp-list],[data-nhp-custom]) > .nhp-card { padding:13px!important;gap:5px 9px!important; }
    #nahwa-personal-dhikr[data-nhp-unified] .nhp-card-actions { justify-content:flex-start!important; }
  }
  @media(max-width:520px) {
    #nahwa-personal-dhikr[data-nhp-unified] .nhp-edit-fields { grid-template-columns:minmax(0,1fr)!important; }
    #nahwa-personal-dhikr[data-nhp-unified] .nhp-dialog:has(.nhp-edit-form) { width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important; }
  }
  @media(hover:hover) { #nahwa-personal-dhikr[data-nhp-unified] .nhp-edit:hover { border-color:var(--nhp-line)!important;background:var(--nhp-soft)!important; } }
}

@layer nahwa-faith-workspace {
  #nfh-workspace [data-nfh-legacy-body] > #nwdh-app {
    --ink:#294551;--muted:#5e7480;--paper:#fff;--line:#dce7ee;
    width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;
    margin:0!important;padding:18px!important;border:0!important;border-radius:0 0 15px 15px!important;
    background:#fff!important;box-shadow:none!important;font-family:'Hind Siliguri','Noto Sans Bengali','Nirmala UI',sans-serif!important;
  }
  #nfh-workspace #nwdh-app :is(.nwdh-head h2,.nwdh-session-head h3,.nwdh-history-title h3,.nwdh-reward h3,.nwdh-optional-head) { font-family:'Hind Siliguri','Noto Sans Bengali','Nirmala UI',sans-serif!important;font-weight:500!important;letter-spacing:normal!important;color:var(--ink)!important; }
  #nfh-workspace #nwdh-app :is(button,input,a,summary,.nwdh-name,.nwdh-target,.nwdh-eyebrow,.nwdh-stat,.nwdh-dayseal,.nwdh-mile,.nwdh-session-progress,.nwdh-source-note,.nwdh-rule-note,.nwdh-history-title,.nwdh-kind-note) { font-family:'Hind Siliguri','Noto Sans Bengali','Nirmala UI',sans-serif!important;letter-spacing:normal!important; }
  #nfh-workspace #nwdh-app .nwdh-aurora { display:none!important; }
  #nfh-workspace #nwdh-app .nwdh-head { grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:12px!important; }
  #nfh-workspace #nwdh-app .nwdh-head > div:first-child { min-width:0!important;padding:0!important; }
  #nfh-workspace #nwdh-app .nwdh-head h2 { font-size:25px!important;line-height:1.6!important; }
  #nfh-workspace #nwdh-app .nwdh-head > div > p:last-child { margin-top:6px!important;font-size:14px!important;line-height:1.85!important; }
  #nfh-workspace #nwdh-app .nwdh-eyebrow { margin:0 0 4px!important;font-size:12px!important;font-weight:500!important;line-height:1.8!important;color:var(--muted)!important;text-transform:none!important; }
  #nfh-workspace #nwdh-app .nwdh-dayseal { position:static!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;width:auto!important;min-width:0!important;aspect-ratio:auto!important;padding:8px 11px!important;border:1px solid var(--line)!important;border-radius:10px!important;background:#f3f8fb!important;box-shadow:none!important;backdrop-filter:none!important; }
  #nfh-workspace #nwdh-app .nwdh-dayseal strong { font-size:21px!important;font-weight:600!important;line-height:1.5!important; }
  #nfh-workspace #nwdh-app .nwdh-stats { grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-rows:max-content!important;align-content:start!important;align-items:start!important;gap:9px!important;margin:17px 0 13px!important; }
  #nfh-workspace #nwdh-app .nwdh-stat { min-width:0!important;height:auto!important;min-height:0!important;padding:12px!important;border-radius:11px!important;background:#f4f9fc!important;box-shadow:none!important; }
  #nfh-workspace #nwdh-app .nwdh-stat > span { margin-bottom:4px!important;font-size:12px!important;line-height:1.75!important; }
  #nfh-workspace #nwdh-app .nwdh-stat strong { font-size:20px!important;font-weight:600!important;line-height:1.5!important; }
  #nfh-workspace #nwdh-app .nwdh-stat small { margin-top:4px!important;font-size:11px!important;line-height:1.75!important; }
  #nfh-workspace #nwdh-app .nwdh-stat-accent { grid-column:auto!important; }
  #nfh-workspace #nwdh-app .nwdh-reward { grid-template-columns:minmax(0,1fr) minmax(210px,1fr)!important;align-items:center!important;gap:10px 18px!important;padding:13px!important;border:1px solid #e5e9eb!important;border-radius:12px!important;background:#fbfaf7!important; }
  #nfh-workspace #nwdh-app .nwdh-reward h3 { font-size:18px!important;line-height:1.75!important; }
  #nfh-workspace #nwdh-app .nwdh-reward-copy > p:last-child { font-size:12px!important;line-height:1.8!important; }
  #nfh-workspace #nwdh-app .nwdh-milestones { gap:6px!important; }
  #nfh-workspace #nwdh-app .nwdh-mile { padding:7px 6px!important;border-radius:9px!important;background:#fff!important;box-shadow:none!important; }
  #nfh-workspace #nwdh-app .nwdh-mile b { font-size:16px!important;font-weight:500!important;line-height:1.65!important; }
  #nfh-workspace #nwdh-app .nwdh-reward-status { grid-column:1/-1!important;justify-self:start!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;font-size:11px!important;font-weight:400!important;line-height:1.85!important; }
  #nfh-workspace #nwdh-app .nwdh-tabs { display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;overflow:visible!important;margin:18px 0 13px!important;padding:4px!important;border-radius:11px!important;background:#f0f6fa!important; }
  #nfh-workspace #nwdh-app .nwdh-tab { min-width:0!important;min-height:44px!important;padding:8px 10px!important;border:1px solid transparent!important;border-radius:8px!important;font-size:15px!important;font-weight:500!important;line-height:1.75!important; }
  #nfh-workspace #nwdh-app .nwdh-tab.is-active { border-color:#cadfe9!important;box-shadow:none!important; }
  #nfh-workspace #nwdh-app .nwdh-session-head { align-items:center!important;gap:12px!important;margin:16px 0 10px!important; }
  #nfh-workspace #nwdh-app :is(.nwdh-session-head h3,.nwdh-history-title h3) { font-size:20px!important;line-height:1.7!important; }
  #nfh-workspace #nwdh-app .nwdh-session-progress span { font-size:18px!important;font-weight:500!important;line-height:1.7!important; }
  #nfh-workspace #nwdh-app :is(.nwdh-source-note,.nwdh-rule-note) { margin:0 0 12px!important;padding:11px 12px!important;border:1px solid #dce7ee!important;border-radius:10px!important;background:#f5f9fc!important;color:var(--muted)!important;font-size:12px!important;line-height:1.9!important; }
  #nfh-workspace #nwdh-app :is(.nwdh-list,.nwdh-optional-list) { display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:max-content!important;align-content:start!important;align-items:start!important;gap:10px!important;min-width:0!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important; }
  #nfh-workspace #nwdh-app .nwdh-card { display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-content:start!important;align-items:start!important;align-self:start!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;gap:9px!important;padding:13px!important;border:1px solid var(--line)!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important;transform:none!important;transition:border-color .16s ease,background-color .16s ease!important; }
  #nfh-workspace #nwdh-app .nwdh-card > div:first-child { min-width:0!important; }
  #nfh-workspace #nwdh-app .nwdh-name { margin:0!important;font-size:16px!important;font-weight:500!important;line-height:1.8!important; }
  #nfh-workspace #nwdh-app .nwdh-target { margin-top:3px!important;font-size:12px!important;line-height:1.85!important; }
  #nfh-workspace #nwdh-app .nwdh-controls { display:grid!important;grid-template-columns:44px minmax(110px,1fr) 44px!important;align-items:center!important;gap:5px!important;justify-self:start!important;width:min(100%,242px)!important;min-width:0!important;padding:4px!important;border:1px solid #dbe7ef!important;border-radius:11px!important;background:#f2f8fc!important; }
  #nfh-workspace #nwdh-app .nwdh-count { display:block!important;min-width:0!important;margin:0!important;color:var(--ink)!important;font:600 19px/1.7 'Hind Siliguri',sans-serif!important;font-variant-numeric:tabular-nums!important;text-align:center!important;white-space:nowrap!important; }
  #nfh-workspace #nwdh-app :is(.nwdh-counter,.nwdh-undo) { display:inline-flex!important;align-items:center!important;justify-content:center!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:5px!important;border:1px solid transparent!important;border-radius:8px!important;background:transparent!important;color:var(--ink)!important;font:500 18px/1.5 'Hind Siliguri',sans-serif!important;box-shadow:none!important;transform:none!important;touch-action:manipulation!important; }
  #nfh-workspace #nwdh-app .nwdh-counter { border-color:#e7cfb9!important;background:#ffdfc6!important;color:#72513d!important; }
  #nfh-workspace #nwdh-app .nwdh-progressbar { grid-column:1/-1!important;height:5px!important;margin:0!important; }
  #nfh-workspace #nwdh-app .nwdh-card.is-complete { border-color:#c9e0d5!important;background:#f4faf7!important; }
  #nfh-workspace #nwdh-app .nwdh-card .nwdh-virtue { justify-self:start!important;min-height:44px!important;margin:0!important;padding:6px 8px!important; }
  #nfh-workspace #nwdh-app .nwdh-history-wrap { margin-top:21px!important;padding-top:17px!important; }
  #nfh-workspace #nwdh-app .nwdh-history-title { align-items:start!important;flex-wrap:wrap!important;gap:10px 18px!important; }
  #nfh-workspace #nwdh-app .nwdh-history-actions { justify-content:flex-start!important;gap:5px 13px!important; }
  #nfh-workspace #nwdh-app .nwdh-text-btn { min-height:44px!important;padding:6px 0!important;font-size:12px!important;line-height:1.8!important; }
  #nfh-workspace #nwdh-app .nwdh-day { min-height:55px!important;border-radius:10px!important; }
  #nfh-workspace #nwdh-app .nwdh-optional { margin:22px 0 0!important;padding:17px 0 0!important;border-top:1px solid var(--line)!important; }
  #nfh-workspace #nwdh-app .nwdh-optional-head { margin:0 0 5px!important;font-size:18px!important;line-height:1.8!important; }
  #nfh-workspace #nwdh-app .nwdh-optional > p { margin:0 0 11px!important;color:var(--muted)!important;font-size:13px!important;line-height:1.85!important; }
  #nfh-workspace #nwdh-app .nwdh-card-optional { background:#fbfcfd!important; }
  @media(max-width:760px) {
    #nfh-workspace [data-nfh-legacy-body] > #nwdh-app { padding:14px!important; }
    #nfh-workspace #nwdh-app .nwdh-head { grid-template-columns:minmax(0,1fr)!important;gap:10px!important; }
    #nfh-workspace #nwdh-app .nwdh-head h2 { font-size:23px!important; }
    #nfh-workspace #nwdh-app .nwdh-dayseal { justify-self:start!important;padding:6px 10px!important; }
    #nfh-workspace #nwdh-app .nwdh-stats { gap:7px!important; }
    #nfh-workspace #nwdh-app .nwdh-stat { padding:10px!important; }
    #nfh-workspace #nwdh-app .nwdh-stat strong { font-size:18px!important; }
    #nfh-workspace #nwdh-app .nwdh-reward { grid-template-columns:minmax(0,1fr)!important;gap:10px!important;padding:12px!important; }
    #nfh-workspace #nwdh-app .nwdh-tabs { gap:3px!important; }
    #nfh-workspace #nwdh-app .nwdh-tab { padding:8px 5px!important;font-size:14px!important; }
    #nfh-workspace #nwdh-app :is(.nwdh-list,.nwdh-optional-list) { grid-template-columns:minmax(0,1fr)!important;gap:9px!important; }
    #nfh-workspace #nwdh-app .nwdh-card { padding:12px!important; }
    #nfh-workspace #nwdh-app .nwdh-controls { justify-self:stretch!important;width:100%!important; }
    #nfh-workspace #nwdh-app .nwdh-history { grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:4px!important; }
    #nfh-workspace #nwdh-app .nwdh-day b { font-size:12px!important; }
    #nfh-workspace #nwdh-app .nwdh-day small { font-size:9px!important; }
  }
  @media(max-width:380px) { #nfh-workspace #nwdh-app .nwdh-stats { grid-template-columns:minmax(0,1fr)!important; } }
  @media(prefers-reduced-motion:reduce),(prefers-reduced-data:reduce) { #nfh-workspace #nwdh-app .nwdh-card { transition:none!important; } }
  :is(html,body):is(.still,.sunlit-motion-paused,.creative-static,.nd-sunlit-paused,.nd-sunlit-still,[data-still='true'],[data-home-still='true'],[data-motion='off'],[data-motion='still']) #nfh-workspace #nwdh-app .nwdh-card { transition:none!important; }
}

