
.anka-menu-toggle{display:none}
@media(min-width:0px){
header{position:relative;height:auto!important;flex-wrap:wrap!important;gap:12px!important;padding-bottom:14px!important}
header .brand{flex:0 0 auto!important;order:0}
header .anka-menu-toggle{display:flex;align-items:center;justify-content:center;gap:9px;order:1;margin-left:auto;min-width:48px;min-height:48px;padding:10px 13px;border:0;border-radius:0;background:transparent;color:#283e34;font:500 16px/1.2 Arial,sans-serif;cursor:pointer}
.anka-burger{display:inline-block;width:21px;height:16px;border-top:2px solid currentColor;border-bottom:2px solid currentColor;position:relative}.anka-burger:after{content:'';position:absolute;top:5px;left:0;width:21px;border-top:2px solid currentColor}
header #ankaNavigation{display:none!important;order:2;width:100%;flex-basis:100%;gap:0!important;padding:5px 0 10px;border-top:1px solid #dfe2d7;border-bottom:1px solid #dfe2d7}
header #ankaNavigation.is-open{display:flex!important;flex-direction:column;align-items:stretch}
header #ankaNavigation a,header #ankaNavigation button{display:block;width:100%;text-align:left;padding:14px 12px!important;min-height:48px;margin:0;border:0;border-radius:5px;background:transparent;color:#283e34;font:500 17px/1.4 Arial,sans-serif;text-decoration:none;box-shadow:none;flex:none}
header #ankaNavigation .active{background:#e8eddf}
header .phone-tools{order:3;flex-basis:100%;justify-content:flex-start;gap:8px;flex-wrap:wrap}header .anka-language{order:4}
header>a:not(.brand){display:none}
}
.anka-drawer-backdrop,.anka-drawer-close{display:none}
@media(min-width:0px){
header .brand{order:1;margin-left:auto!important}
header .anka-menu-toggle{order:0;margin-left:0}
header #ankaNavigation{display:flex!important;position:fixed;inset:0 auto 0 0;z-index:1001;width:min(84vw,330px);height:100dvh;flex-basis:auto;flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;overflow-y:auto;padding:max(20px,env(safe-area-inset-top)) 18px max(24px,env(safe-area-inset-bottom));border:0;border-right:1px solid #dfe2d7;background:#f7f5ef;box-shadow:8px 0 32px #18271e20;transform:translateX(-105%);visibility:hidden;transition:transform .25s ease,visibility .25s}
header #ankaNavigation.is-open{transform:translateX(0);visibility:visible}
header #ankaNavigation .anka-drawer-close{display:block;width:48px;min-height:48px;align-self:flex-end;text-align:center;font-size:30px;padding:0!important;margin-bottom:18px}
.anka-drawer-backdrop.is-open{display:block;position:fixed;inset:0;z-index:1000;border:0;border-radius:0;background:#14231b80;padding:0;width:100%;height:100dvh}
body.anka-drawer-open{overflow:hidden}
}
@media(prefers-reduced-motion:reduce){header #ankaNavigation{transition:none}}

@media(min-width:0px){header .anka-menu-toggle{border:0;background:transparent;box-shadow:none;padding:12px;gap:0}}

@media(min-width:0px){header .phone-tools{display:none}header #ankaNavigation .anka-language{display:flex;flex-direction:column;align-items:stretch;gap:10px;order:0;padding:18px 12px;margin-top:12px;border-top:1px solid #dfe2d7}header #ankaNavigation .anka-language label{font:500 15px/1.4 Arial,sans-serif;margin:0}header #ankaNavigation .anka-language select{width:100%;min-height:48px}}
/* Keep the mobile app bar visible and reserve its space above page content. */
@media(max-width:800px){
html{scroll-padding-top:calc(106px + env(safe-area-inset-top,0px))}
body{padding-top:calc(94px + env(safe-area-inset-top,0px))}
body>header{position:fixed;top:0;left:0;right:0;z-index:900;height:calc(94px + env(safe-area-inset-top,0px))!important;min-height:0!important;padding:calc(12px + env(safe-area-inset-top,0px)) 20px 12px!important;flex-wrap:nowrap!important;align-items:center;background:#f7f5ef;border-bottom:1px solid #dfe2d7}
}

main.wrap>aside.circle-entry:first-of-type{margin-top:32px}
@media(max-width:800px){main.wrap>aside.demo-card{margin-top:22px}}

.anka-prayer-search{display:flex;align-items:center;border:1px solid #cbd2c1;border-radius:8px;background:#fffefa;max-width:300px;min-width:180px;flex:1;margin:0}
.anka-prayer-search input{width:100%;min-width:0;padding:10px 12px;border:0;background:transparent;font:16px/1.4 Arial,sans-serif;border-radius:8px;color:#283e34}
.anka-prayer-search button{border:0;background:transparent;color:#283e34;padding:8px;min-width:44px;min-height:44px;margin:0;font:26px/1 Arial,sans-serif;border-radius:7px}
@media(min-width:801px){body>header{height:auto;min-height:94px;gap:16px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}}
@media(max-width:800px){
body{padding-top:calc(154px + env(safe-area-inset-top,0px))}
html{scroll-padding-top:calc(166px + env(safe-area-inset-top,0px))}
body>header{height:calc(154px + env(safe-area-inset-top,0px))!important;flex-wrap:wrap!important;align-content:center}
header .anka-prayer-search{order:2;flex-basis:100%;max-width:none;width:100%;margin:0}
}

/* Compact search with its icon inside the left edge. */
header .anka-prayer-search{position:relative;flex:0 1 230px;width:230px;max-width:230px;min-width:0;margin:auto;align-self:center}
.anka-prayer-search button{position:absolute;left:0;top:50%;transform:translateY(-50%);display:grid;place-items:center;font-size:22px}
.anka-prayer-search input{padding-left:40px;padding-right:8px}
@media(max-width:800px){
body{padding-top:calc(94px + env(safe-area-inset-top,0px))}
html{scroll-padding-top:calc(106px + env(safe-area-inset-top,0px))}
body>header{height:calc(94px + env(safe-area-inset-top,0px))!important;flex-wrap:nowrap!important}
header .anka-prayer-search{position:absolute;left:50%;top:calc(50% + env(safe-area-inset-top,0px)/2);transform:translate(-50%,-50%);width:calc(100% - 164px);max-width:230px;min-width:0;flex-basis:auto;margin:0}
}
/* Search returns to its own row beneath the mobile brand and menu. */
@media(max-width:800px){
body{padding-top:calc(154px + env(safe-area-inset-top,0px))}
html{scroll-padding-top:calc(166px + env(safe-area-inset-top,0px))}
body>header{height:calc(154px + env(safe-area-inset-top,0px))!important;flex-wrap:wrap!important}
header .anka-prayer-search{position:relative;left:auto;top:auto;transform:none;order:2;flex:0 0 100%;width:100%;max-width:none;margin:0}
}

@media(min-width:0px){header #ankaNavigation .anka-donate{border-top:1px solid #dfe2d7;margin-top:10px;padding-top:18px!important;font-weight:600}}

.anka-cloud-notice{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:950;padding:14px 18px;background:#283e34;color:white;border-radius:9px;max-width:90vw;font:16px/1.4 Arial,sans-serif;text-align:center;text-decoration:none;box-shadow:0 3px 18px #0003}

.anka-backup-control{padding:16px 12px;border-top:1px solid #dfe2d7;margin-top:12px;white-space:normal}.anka-backup-label{display:flex!important;align-items:center;justify-content:space-between;gap:14px;margin:0!important;font:500 16px/1.4 Arial,sans-serif}.anka-backup-control small{display:block;margin-top:9px;color:#65705b;font:13px/1.5 Arial,sans-serif}.anka-switch{position:relative;display:inline-block;width:48px;height:28px;flex:none}.anka-switch input{position:absolute;width:1px;height:1px;opacity:0;padding:0;margin:0}.anka-switch-track{position:absolute;inset:0;background:#a5aaa1;border-radius:20px;transition:background .18s}.anka-switch-track:before{content:'';position:absolute;left:3px;top:3px;width:22px;height:22px;background:white;border-radius:50%;box-shadow:0 1px 4px #0003;transition:transform .18s}.anka-switch input:checked+.anka-switch-track{background:#283e34}.anka-switch input:checked+.anka-switch-track:before{transform:translateX(20px)}.anka-switch input:focus-visible+.anka-switch-track{outline:3px solid #b9975c;outline-offset:4px}.anka-switch input:disabled+.anka-switch-track{opacity:.55}header .anka-backup-control{order:10}@media(prefers-reduced-motion:reduce){.anka-switch-track,.anka-switch-track:before{transition:none}}

header .anka-account-menu .anka-backup-control{margin:0 0 12px;padding-top:4px;border-top:0}header .anka-account-menu>a{display:block}

/* Desktop uses the same drawer and menu order as the app. */
@media(min-width:801px){
body>header{flex-wrap:nowrap!important}
header .anka-menu-toggle{order:0}
header .anka-prayer-search{order:1;margin:auto}
header .brand{order:2;margin-left:0!important}
}

/* Shared line icons remain intact when account labels or alert counts update. */
header #ankaNavigation [data-menu-icon]::before{content:'';display:inline-block;width:23px;height:23px;flex:0 0 23px;background:currentColor;mask:var(--anka-menu-icon) center/contain no-repeat;-webkit-mask:var(--anka-menu-icon) center/contain no-repeat}
header #ankaNavigation a[data-menu-icon],header #ankaNavigation button[data-menu-icon]{display:flex!important;align-items:center;gap:13px}
header #ankaNavigation .anka-language label[data-menu-icon]{display:flex;align-items:center;gap:13px}
header #ankaNavigation button.anka-language-icon[data-menu-icon]{display:none!important}
@media(min-width:801px){
body{padding-left:76px}
header #ankaNavigation{width:330px;max-width:calc(100vw - 24px);visibility:visible;transform:none;padding:16px 14px 24px;transition:width .2s ease;box-sizing:border-box}
header #ankaNavigation .anka-drawer-close{align-self:flex-end;font-size:32px;margin-bottom:12px}
.anka-drawer-backdrop{display:none!important}body.anka-drawer-open{overflow:auto}
header #ankaNavigation.is-collapsed{width:76px;padding:16px 10px 24px;box-shadow:2px 0 14px #18271e0c}
header #ankaNavigation.is-collapsed .anka-drawer-close{align-self:center;margin:0 0 12px;width:48px}
header #ankaNavigation.is-collapsed a[data-menu-icon],header #ankaNavigation.is-collapsed button[data-menu-icon]{width:54px;min-height:50px;justify-content:center;padding:12px!important;font-size:0!important;gap:0;white-space:nowrap;margin:0}
header #ankaNavigation.is-collapsed [data-menu-icon]>*,header #ankaNavigation.is-collapsed .anka-backup-control,header #ankaNavigation.is-collapsed .anka-language{display:none!important}
header #ankaNavigation.is-collapsed button.anka-language-icon[data-menu-icon]{display:flex!important}
header #ankaNavigation.is-collapsed .anka-account-menu{width:54px;margin:0}
header #ankaNavigation.is-collapsed .anka-donate{border-top:1px solid #dfe2d7;margin-top:6px!important}
header #ankaNavigation [data-menu-icon]:focus-visible{outline:2px solid #b9975c;outline-offset:-2px}
}
@media(prefers-reduced-motion:reduce){header #ankaNavigation{transition:none}}

/* Desktop header stays above the scrolling page; the rail owns menu expansion. */
@media(min-width:801px){
html{scroll-padding-top:106px}
body{padding-top:94px}
body>header{position:fixed;top:0;left:76px;right:0;z-index:900;height:94px!important;min-height:94px;box-sizing:border-box;align-items:center;background:#f7f5ef;border-bottom:1px solid #dfe2d7}
header .anka-menu-toggle{display:none!important}
header .brand{margin-left:auto!important}
header .anka-prayer-search{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:calc(100% - 260px);max-width:520px;min-width:0;margin:0;flex:none}
}

/* Space the image in the page itself so cached navigation styles cannot close the gap. */

@media(max-width:800px){header #ankaNavigation.anka-drawer-dragging,.anka-drawer-backdrop.anka-drawer-dragging{transition:none!important}header #ankaNavigation{overscroll-behavior-y:contain}}

/* Keep touch focus from drawing a box around the standalone burger. */
header button.anka-menu-toggle{appearance:none;-webkit-appearance:none;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
header button.anka-menu-toggle:focus:not(:focus-visible){outline:none}
header button.anka-menu-toggle:focus-visible{outline:2px solid #b9975c;outline-offset:2px}

/* The selected language remains visible when the navigation drawer is closed. */
header .anka-language-flag{position:absolute;left:24px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:42px;height:28px;flex:none;line-height:0;pointer-events:none}
header .anka-language-flag img{display:block;width:100%;height:100%;object-fit:fill;border-radius:2px;box-shadow:0 0 0 1px #283e3420}
@media(max-width:800px){
header .anka-language-flag{position:static;transform:none;order:0;width:22px;height:15px;margin-left:0;align-self:center}
}
@media(display-mode:standalone){header .anka-language-flag{width:22px;height:15px}}

/* A visible translation indicator spans the top of its own prayer card. */
.anka-prayer-translation-loading{display:flex;align-items:center;gap:10px;box-sizing:border-box;width:100%;margin:0 0 16px;padding:12px 14px;background:#e8eddf;color:#283e34;border-radius:9px;font:500 14px/1.4 Arial,sans-serif}
.anka-prayer-translation-loading[hidden]{display:none!important}
.anka-prayer-translation-loading>span:not(.anka-translation-spinner){flex:none}
.anka-prayer-translation-loading progress{flex:1;min-width:35px;width:auto;height:6px;margin:0 0 0 4px;accent-color:#60745d}
.anka-translation-spinner{display:block;width:18px;height:18px;flex:0 0 18px;box-sizing:border-box;border:2px solid #cbd2c2;border-top-color:#60745d;border-radius:50%;animation:anka-translation-spin .85s linear infinite}
@keyframes anka-translation-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.anka-translation-spinner{animation:none}}

/* Keep hidden account actions hidden even when menu icons use flex layout. */
header #ankaNavigation [data-account-logout][hidden],#ankaLogoutStatus[hidden]{display:none!important}

/* Account and language share the top of the drawer on every device. */
header #ankaNavigation .anka-menu-profile{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:none;min-height:64px;margin:0 0 10px;padding:0 6px}
header #ankaNavigation a.anka-menu-avatar{display:grid!important;place-items:center;flex:0 0 54px;width:54px;height:54px;min-height:54px;padding:0!important;border:2px solid #dfe5d5;border-radius:50%;overflow:hidden;background:#e6ebdf}
header #ankaNavigation .anka-menu-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
header #ankaNavigation .anka-menu-avatar:focus-visible{outline:3px solid #b9975c;outline-offset:3px}
header #ankaNavigation .anka-language-flag{position:static;transform:none;display:inline-flex;width:38px;height:25px;margin:0;order:0}
header #ankaNavigation .anka-drawer-close{position:absolute;top:28px;left:calc(50% - 20px);align-self:auto;width:40px;min-height:40px;height:40px;margin:0;padding:0!important;font-size:28px}
@media(max-width:800px){header #ankaNavigation .anka-language-flag{width:27px;height:18px}header #ankaNavigation .anka-drawer-close{top:calc(28px + env(safe-area-inset-top,0px))}}
@media(min-width:801px){header #ankaNavigation.is-collapsed .anka-menu-profile{justify-content:center;min-height:48px;margin-bottom:4px;padding:0;gap:0}header #ankaNavigation.is-collapsed a.anka-menu-avatar{width:44px;height:44px;min-height:44px;flex-basis:44px}header #ankaNavigation.is-collapsed .anka-language-flag{display:none}header #ankaNavigation.is-collapsed .anka-drawer-close{position:static;align-self:center;width:48px;margin:0 0 12px}}
#accountProfile[hidden],#profilePasswordForm[hidden],#profileExternalPassword[hidden],#removeProfilePhoto[hidden]{display:none!important}
#accountProfile{margin-bottom:24px}#accountProfile h2{margin-top:0}#accountProfile h3{margin:28px 0 20px;font:500 25px/1.3 Georgia,serif}
.anka-profile-photo{display:flex;align-items:center;gap:22px;margin:24px 0 16px}.anka-profile-photo>img{width:96px;height:96px;flex:none;border-radius:50%;object-fit:cover;border:2px solid #dfe5d5;background:#e6ebdf}.anka-profile-photo>div{display:flex;align-items:flex-start;flex-direction:column;gap:10px}.anka-profile-photo button{margin:0;min-height:44px}
#accountProfile label{display:block;margin:18px 0 8px;font:500 16px/1.4 Arial,sans-serif}#accountProfile input:not([type=file]){display:block;box-sizing:border-box;width:100%;min-height:48px;margin:0;padding:13px;border:1px solid #cdd2c4;border-radius:9px;background:#fff;font:inherit;color:#283e34}#accountProfile .anka-profile-details input:disabled{background:#eeeee8;color:#747970;-webkit-text-fill-color:#747970;opacity:1;cursor:default}
#profilePasswordForm{border-top:1px solid #dfe2d7;margin-top:28px}.anka-profile-password{position:relative}.anka-profile-password input{padding-right:58px!important}.anka-profile-password .anka-password-toggle svg{width:22px;height:22px}.anka-profile-password .eye-slash{visibility:hidden}.anka-profile-password [aria-pressed=true] .eye-slash{visibility:visible}#saveProfilePassword{margin-top:12px}#profilePasswordStatus,#profilePhotoStatus{font-size:15px;line-height:1.5}#profilePasswordStatus:empty,#profilePhotoStatus:empty{display:none}
@media(max-width:420px){.anka-profile-photo{gap:16px}.anka-profile-photo>img{width:76px;height:76px}.anka-profile-photo button{font-size:14px;padding:10px 12px}}

/* Keep the desktop collapse arrow at the outside edge, following the flag. */
@media(min-width:801px){
header #ankaNavigation:not(.is-collapsed) .anka-menu-profile{padding-right:58px}
header #ankaNavigation:not(.is-collapsed) .anka-drawer-close{left:auto;right:14px}
}
