/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Libre Caslon Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/libre-caslon-display-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Libre Caslon Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/libre-caslon-display-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* Ivory dashboard — compact, solid surfaces with a saffron activity accent. */
:root {
  --paper: #fffff5;
  --surface: #f3f2e6;
  --surface-deep: #eae8d9;
  --ink: #20221c;
  --muted: #747666;
  --accent: #d95828;
  --accent-dark: #b94016;
  --accent-soft: #f9e4d6;
  --saffron: #f17c47;
  --sage: #5b7856;
  --theme-background: url('/images/varanasi-background.jpg');
  --theme-wash: 255 255 245;
  --sidebar-background: #f3f2e6ed;
  --ring-track: #e2e2d1;
  --warm-tile: #f5e9de;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; isolation: isolate; min-height: 100dvh; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(180deg, rgb(var(--theme-wash) / .85) 0%, rgb(var(--theme-wash) / .7) 45%, rgb(var(--theme-wash) / .5) 100%), var(--theme-background);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
button, input, select { font: inherit; color: inherit; }
button, input, select, dialog { border: 0; }
button { background: none; cursor: pointer; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:disabled, input:disabled, select:disabled { opacity: .45; cursor: default; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
button svg { pointer-events: none; }
.icon-definitions { display: none; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 218px; padding: 35px 20px 25px; display: flex; flex-direction: column; background: var(--sidebar-background); z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; letter-spacing: -.9px; }
.brand-icon { display: grid; place-items: center; color: var(--accent); }
.brand-icon img { display: block; width: 48px; height: 60px; }
.brand-tag { display: block; color: #858675; font-size: 7px; letter-spacing: 1.7px; font-weight: 500; margin-top: 3px; }
.nav-label { font-size: 9px; letter-spacing: 1.4px; color: #7a7b68; margin: 44px 12px 14px; }
.main-nav { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; min-height: 46px; padding: 12px; color: #747563; font-size: 12px; font-weight: 500; border-radius: 11px; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover { background: #eae8d8; }
.nav-item.active { background: var(--accent); color: #fffff5; }
.nav-active-dot { display: none; }
.sidebar-bottom { margin-top: auto; }
.intention-note { padding: 30px 12px; color: #a09f87; }
.intention-note > svg { width: 24px; height: 24px; }
.intention-note p { font-size: 24px; line-height: 1.25; letter-spacing: -.8px; font-weight: 500; color: #828570; margin: 12px 0 18px; }
.intention-note > span { font-size: 7px; letter-spacing: 1px; }
.sidebar-bottom .nav-item { font-size: 11px; }
.tiny-pill { margin-left: auto; padding: 3px 5px; background: #e4e5d3; color: #70765a; border-radius: 5px; font-size: 8px; }
.device-note { display: flex; gap: 7px; align-items: center; color: #7d806b; font-size: 9px; margin: 17px 12px 0; }
.green-dot { width: 5px; height: 5px; background: #7c956a; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.app-shell { margin-left: 218px; }
.topbar { max-width: 1180px; margin: auto; height: 82px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; }
.topbar-title { color: #92947d; font-size: 13px; font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 26px; }
.theme-preferences { margin-top: 22px; padding: 18px; background: var(--surface); border-radius: 14px; }
.theme-preferences h3 { margin: 0 0 13px; }
.theme-picker { display: grid; gap: 8px; }
.theme-picker label { color: var(--muted); font-size: 10px; font-weight: 500; }
.theme-picker select { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; background-color: var(--paper); color: var(--ink); font-size: 12px; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.connection-status { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #82856e; }
.profile-button { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 500; min-height: 44px; }
.profile-avatar { display: grid; place-items: center; width: 32px; height: 32px; background: #e8e8d7; color: #6f755b; border-radius: 50%; font-size: 12px; font-weight: 600; }
.chevron { width: 12px; height: 12px; color: #91947d; }
.mobile-brand, .mobile-install-button { display: none; }
main { max-width: 1180px; padding: 10px 38px 26px; margin: auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 25px; min-height: 84px; }
h1 { font-size: 34px; line-height: 1.15; letter-spacing: -1.4px; font-weight: 700; margin: 0; }
.eyebrow { font-size: 10px; color: #8a8e73; font-weight: 500; margin: 0 0 7px; }
.short-rule, .heading-art { display: none; }
.accent-period { color: var(--saffron); }
.heading-description { font-size: 12px; color: var(--muted); margin: 9px 0 0; }
.compact h1 { font-size: 32px; }
.practice-card { background: var(--surface); border-radius: 20px; overflow: hidden; }
.card-topline { padding: 21px 25px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-topline > div { display: flex; align-items: center; gap: 8px; }
h2 { font-size: 13px; font-weight: 600; letter-spacing: -.2px; margin: 0; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #a9ad91; }
.status-dot.running { background: var(--accent); }
.status-dot.paused { background: #d6a252; }
.card-date { color: #8e927a; font-size: 10px; }
.practice-body { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; padding: 23px 25px 27px; }
.counter-area { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.counter-wrap { width: 246px; height: 246px; position: relative; }
.progress-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-ring circle { fill: none; }
.ring-track { stroke: var(--ring-track); stroke-width: 9; }
.ring-fill { stroke: var(--saffron); stroke-width: 9; stroke-dasharray: 735.133; stroke-dashoffset: 735.133; transition: stroke-dashoffset .6s ease; }
.ring-inner { display: none; }
.counter-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.counter-kicker { font-size: 7px; color: #8a8d76; letter-spacing: 1.2px; margin-bottom: 6px; }
.counter-content strong { color: var(--accent); font-size: 80px; font-weight: 600; letter-spacing: -5px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.counter-caption { font-size: 11px; color: #7e826a; margin-top: 6px; }
.goal-label { font-size: 10px; color: #92957c; margin-top: 10px; }
.ring-leaf { display: none; }
.practice-controls { width: 100%; max-width: 270px; margin-top: 15px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 11px; padding: 11px 17px; font-size: 11px; font-weight: 500; transition: background .15s ease; white-space: nowrap; }
.button svg { width: 15px; height: 15px; }
.button.primary { background: var(--accent); color: #fffff5; }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { background: #e7e7d7; color: #454a36; }
.button.secondary:hover { background: #dedfca; }
.button.text-button { color: #73785e; padding-left: 8px; padding-right: 8px; }
.button.text-button:hover { background: #e9e9da; }
.start-button, .active-controls > .primary { width: 100%; }
.start-button > svg:first-child { width: 12px; fill: currentColor; stroke: none; }
.start-button > svg:last-child { margin-left: auto; }
.start-button > span { margin-right: auto; }
.secondary-controls { display: flex; gap: 8px; justify-content: space-between; margin-top: 8px; }
.secondary-controls .button { min-height: 36px; font-size: 10px; padding: 8px 12px; }
.active-controls.goal-complete .secondary-controls { display: block; margin-top: 0; }
.active-controls.goal-complete #finish-button { width: 100%; min-height: 48px; padding: 13px 17px; font-size: 12px; }
.continue-button { width: 100%; margin-top: 9px; }
.practice-hint { font-size: 9px; color: #8d9079; text-align: center; line-height: 1.7; margin: 11px -5px 0; }
.practice-setup { padding: 5px 0 0; min-width: 0; }
.section-kicker { font-size: 11px; font-weight: 600; letter-spacing: -.1px; color: var(--ink); margin: 0 0 17px; }
.practice-setup label { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 500; margin-bottom: 8px; }
.practice-setup label > span { color: #92957e; font-size: 9px; font-weight: 400; }
.place-entry { display: flex; gap: 6px; align-items: center; }
.place-entry .input-with-icon { flex: 1; min-width: 0; }
.input-with-icon { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px; background: #fffff5; }
.input-with-icon svg { width: 16px; color: #9a9d83; }
.input-with-icon input { min-width: 0; width: 100%; padding: 12px 0; font-size: 11px; background: transparent; }
.input-with-icon input::placeholder { color: #a1a38c; }
.place-entry .button { min-height: 40px; padding: 8px 10px; font-size: 10px; background: #dedfcd; }
.place-status { color: #8a8e75; font-size: 9px; line-height: 1.5; margin: 7px 0 0; overflow-wrap: anywhere; }
.goal-title, .mode-title { margin-top: 17px; }
.goal-options { display: flex; gap: 5px; }
.goal-option { flex: 1; min-width: 0; min-height: 38px; background: #e7e7d8; color: #7e826a; border-radius: 9px; font-size: 12px; }
.goal-option.selected { background: var(--accent); color: #fffff5; }
.goal-option:not(.selected):hover { background: #dfe1ca; }
.custom-goal { margin-top: 10px; }
.custom-goal input, #temple-size { width: 100%; padding: 11px 12px; background: #fffff5; border-radius: 10px; min-height: 40px; font-size: 11px; }
#temple-size-description { margin: 7px 0 0; font-size: 9px; }
.mode-switch { display: flex; padding: 4px; gap: 4px; border-radius: 10px; background: #e7e7d8; }
.mode-switch button { display: flex; align-items: center; justify-content: center; gap: 5px; flex: 1; min-width: 0; min-height: 33px; font-size: 10px; color: #83866f; border-radius: 8px; }
.mode-switch button svg { width: 13px; height: 13px; }
.mode-switch button.selected { background: var(--accent); color: #fffff5; }
.mode-description { font-size: 9px; line-height: 1.6; color: #888d72; margin: 9px 0 0; }
.setup-footnote { display: none; }
.gps-banner { display: flex; align-items: center; gap: 9px; padding: 15px 25px; background: #e8ead9; color: #687153; font-size: 10px; }
.gps-banner svg { width: 16px; }
.gps-banner .text-link { margin-left: auto; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 15px; }
.stat-card { position: relative; background: var(--surface); padding: 20px; border-radius: 16px; overflow: hidden; min-width: 0; }
.stat-icon { display: inline-flex; position: absolute; top: 19px; left: 18px; color: var(--ink); }
.stat-icon svg { width: 14px; height: 14px; stroke-width: 2; }
.stat-label { display: block; font-size: 10px; font-weight: 500; padding-left: 21px; letter-spacing: -.1px; }
.stat-card strong { display: block; font-size: 29px; font-weight: 500; letter-spacing: -1.5px; line-height: 1.15; margin-top: 20px; font-variant-numeric: tabular-nums; }
.stat-unit { font-size: 10px; color: #8e9178; font-weight: 400; letter-spacing: 0; }
.stat-footnote { display: block; color: #969a80; font-size: 9px; margin-top: 7px; line-height: 1.4; }
#view-practice > .stat-grid .stat-card:first-child { background: var(--warm-tile); }
.lower-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 15px; margin-top: 15px; }
.lap-card, .wisdom-card, .chart-card { background: var(--surface); border-radius: 16px; overflow: hidden; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; }
.section-heading > span { color: #999c85; font-size: 8px; }
.section-heading h2 { font-size: 12px; }
.muted { color: #8b9078; font-size: 11px; line-height: 1.6; }
.empty-laps { min-height: 105px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px; }
.empty-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e6e7d6; color: #a2a68b; }
.empty-icon svg { width: 17px; }
.empty-laps h3 { font-size: 11px; font-weight: 500; color: #72795d; margin: 0 0 5px; }
.empty-laps p { color: #9b9f86; font-size: 9px; margin: 0; }
.lap-list { padding: 0 20px 13px; max-height: 290px; overflow: auto; }
.lap-row { display: flex; align-items: center; gap: 9px; min-height: 45px; font-size: 11px; }
.lap-row + .lap-row { margin-top: 3px; }
.lap-number { width: 25px; height: 25px; display: grid; place-items: center; background: #e5e6d6; border-radius: 8px; color: #7f8766; font-size: 9px; }
.lap-row time { margin-left: auto; font-variant-numeric: tabular-nums; }
.lap-source { color: #a0a489; font-size: 8px; }
.best-tag { font-size: 7px; color: #b65d36; background: #f8e2d1; border-radius: 4px; padding: 3px 5px; }
.wisdom-card { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 22px; position: relative; }
.wisdom-flower { position: absolute; right: 20px; top: 16px; color: var(--saffron); font-family: "Noto Sans Devanagari", "Devanagari Sangam MN", "Kohinoor Devanagari", serif; font-size: 35px; line-height: 1; }
.wisdom-card p { margin: 6px 0 17px; font-size: 19px; line-height: 1.25; font-weight: 500; letter-spacing: -.6px; color: #545b43; max-width: 80%; }
.wisdom-card > span:not(.wisdom-flower) { color: #999c85; font-size: 7px; letter-spacing: .8px; }
.wisdom-card small { color: #93977b; font-size: 9px; margin-top: 7px; }
.wisdom-line { display: none; }
.page-footer { display: flex; align-items: center; gap: 6px; padding: 24px 0 0; color: #a5aa91; font-size: 8px; }
.page-footer svg { width: 13px; height: 13px; }
.footer-platforms { margin-left: auto; }
.history-toolbar { display: flex; justify-content: space-between; gap: 15px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.filter-buttons { display: flex; background: var(--surface); border-radius: 10px; padding: 4px; gap: 3px; }
.filter { border-radius: 8px; min-height: 34px; padding: 7px 16px; font-size: 11px; color: #868d72; }
.filter.active { background: var(--accent); color: #fffff5; }
.history-actions { display: flex; gap: 8px; }
.small-button { min-height: 36px; padding: 8px 12px; font-size: 10px; }
.history-empty { padding: 60px 25px; border-radius: 18px; text-align: center; background: var(--surface); }
.history-empty > svg { color: #a4ab8c; width: 33px; height: 33px; }
.history-empty h2 { margin: 14px 0 9px; }
.history-empty p { color: #92997e; font-size: 12px; }
.history-group-title { font-size: 10px; font-weight: 500; color: #92997f; margin: 24px 0 10px; }
.history-item { display: flex; align-items: center; gap: 14px; background: var(--surface); padding: 19px; border-radius: 14px; margin-bottom: 10px; }
.history-icon { width: 37px; height: 37px; border-radius: 12px; display: grid; place-items: center; background: #e5e7d4; color: #909a76; flex-shrink: 0; }
.history-icon svg { width: 20px; height: 20px; }
.history-item-main { min-width: 0; flex: 1; }
.history-item h3 { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 5px; }
.history-meta { font-size: 10px; color: #969d80; }
.history-total { text-align: right; }
.history-total strong { display: block; font-size: 24px; font-weight: 500; line-height: 1.1; letter-spacing: -1px; }
.history-total > span { font-size: 9px; color: #929a7b; }
.history-open { display: grid; place-items: center; height: 30px; width: 30px; border-radius: 50%; color: #9b713f; background: #efdfc6; }
.history-open svg { width: 14px; height: 14px; }
.icon-button { display: grid; place-items: center; min-width: 36px; min-height: 36px; padding: 7px; color: #929a7e; border-radius: 10px; }
.icon-button:hover { background: #e9eadb; }
.icon-button svg { width: 17px; height: 17px; }
.storage-disclaimer { display: flex; align-items: center; gap: 9px; color: #9bA187; font-size: 10px; margin-top: 20px; }
.storage-disclaimer svg { width: 15px; height: 15px; }
.chart-card { margin-top: 16px; }
.chart-card .section-heading { align-items: flex-start; }
.chart-card .section-heading p { margin: 5px 0 0; font-size: 10px; }
.chart-header-icon { color: var(--saffron); }
.week-chart { display: flex; align-items: stretch; gap: 15px; padding: 10px 25px 25px; height: 240px; }
.chart-column { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; }
.chart-bar-area { height: 150px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.chart-bar { width: 65%; max-width: 45px; min-height: 3px; background: #f4a17c; border-radius: 8px; }
.chart-column.today .chart-bar { background: var(--saffron); }
.chart-value { font-size: 10px; color: #969c7f; margin-bottom: 7px; }
.chart-day { font-size: 10px; color: #a2a88c; margin-top: 10px; }
.chart-column.today .chart-day { color: var(--ink); }
.insight-note { display: flex; align-items: center; gap: 12px; padding: 20px; background: var(--surface); border-radius: 15px; margin-top: 15px; font-size: 11px; line-height: 1.7; color: #939b7d; }
.insight-note svg { width: 25px; height: 25px; }
.modal { width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 28px; border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 80px #252b2433; }
.modal::backdrop { background: #22261d77; backdrop-filter: blur(4px); }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.modal-heading h2 { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.8px; }
.modal-heading .eyebrow { font-size: 9px; }
.modal-heading > .icon-button { margin: -6px -8px 0 0; }
.modal p { font-size: 12px; line-height: 1.8; color: #92997e; }
.modal h3 { font-size: 12px; font-weight: 500; margin: 22px 0 8px; }
.account-profile { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 13px; padding: 17px; flex-wrap: wrap; }
.account-profile > svg { width: 27px; height: 27px; color: var(--saffron); }
.account-profile h3 { margin: 0 0 3px; }
.account-profile p { margin: 0; font-size: 10px; overflow-wrap: anywhere; }
.account-profile .text-link { margin-left: auto; }
.text-link { font-size: 10px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.google-signin { margin-top: 16px; min-height: 42px; }
.auth-config-note { padding: 15px; background: var(--surface); border-radius: 12px; }
.auth-config-note p { font-size: 10px; }
.auth-config-note label { display: block; font-size: 10px; margin: 12px 0 6px; }
.auth-config-note input { width: 100%; padding: 10px; background: var(--paper); font-size: 11px; border-radius: 9px; margin-bottom: 9px; }
.auth-config-note summary { font-size: 10px; color: var(--accent); cursor: pointer; }
.cloud-backup { margin-top: 20px; }
.cloud-backup .button { margin: 4px 0; }
.cloud-backup .danger { display: block; margin-top: 14px; }
.cloud-backup [role='status'] { min-height: 1.5em; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0 15px; }
.setting-row strong { font-size: 12px; font-weight: 500; }
.setting-row p { font-size: 10px; margin: 4px 0 0; }
.setting-row input { appearance: none; width: 36px; height: 22px; background: #d9deca; border-radius: 20px; position: relative; flex-shrink: 0; cursor: pointer; }
.setting-row input::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; background: var(--paper); border-radius: 50%; transition: transform .15s; }
.setting-row input:checked { background: var(--accent); }
.setting-row input:checked::after { transform: translateX(14px); }
.privacy-note { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0 15px; }
.privacy-note > svg { margin-top: 15px; color: #919b79; width: 18px; height: 18px; }
.privacy-note p { font-size: 10px; }
.danger { color: #af542e; }
.install-logo { width: 64px; height: 64px; display: grid; place-items: center; background: var(--surface); color: var(--saffron); border-radius: 18px; margin: 0 auto 18px; }
.install-logo svg { width: 35px; height: 35px; }
.install-instructions { padding: 1px 0 12px; }
.install-instructions p { font-size: 11px; }
.small-modal { max-width: 400px; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 22px; }
.detail-summary { display: flex; justify-content: space-between; gap: 14px; padding: 20px; background: var(--surface); border-radius: 14px; margin-bottom: 15px; }
.detail-summary > div > span { display: block; color: #8c9679; font-size: 8px; }
.detail-summary strong { display: block; font-size: 25px; font-weight: 500; letter-spacing: -1px; margin-top: 8px; }
.detail-summary small { font-size: 9px; color: #919b7f; font-weight: 400; letter-spacing: 0; }
.detail-laps { max-height: 290px; overflow: auto; }
.completion-blessing { display: flex; align-items: flex-start; gap: 13px; padding: 18px; margin-bottom: 17px; background: var(--accent-soft); border-radius: 15px; }
.completion-blessing img { width: 40px; height: 48px; object-fit: contain; flex-shrink: 0; }
.blessing-heading { display: block; margin-bottom: 7px; color: var(--accent); font-size: 10px; font-weight: 600; }
.completion-blessing blockquote { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.65; font-weight: 500; }
.detail-share-button { width: 100%; margin-top: 20px; }
.share-modal { width: min(540px, calc(100% - 28px)); }
.share-name-label { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 500; }
.share-name-label span { color: var(--muted); font-size: 10px; font-weight: 400; }
.share-name-input { width: 100%; min-height: 44px; padding: 12px; border-radius: 11px; background: var(--surface); margin: 9px 0 17px; font-size: 16px; }
.share-preview-wrap { position: relative; min-height: 180px; background: var(--surface); border-radius: 15px; overflow: hidden; }
.share-preview-wrap img { display: block; width: 100%; height: auto; }
.share-preview-wrap p { text-align: center; padding: 60px 18px; }
.share-preview-wrap[aria-busy='true'] img { opacity: .5; }
.share-preview-wrap[aria-busy='true'] img:not([hidden]) + p { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; }
.modal .share-destinations { text-align: center; color: var(--accent); font-size: 11px; font-weight: 500; margin: 17px 0 7px; }
.modal .share-help { font-size: 10px; text-align: center; color: var(--muted); line-height: 1.7; margin: 0 0 17px; }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.share-actions .download-only { grid-column: 1 / -1; }
.share-actions .text-link { grid-column: 1 / -1; justify-self: center; margin-top: 7px; min-height: 32px; }
.modal .share-status { min-height: 1.5em; color: var(--muted); font-size: 10px; text-align: center; margin: 12px 0 0; }
.toast { position: fixed; bottom: 26px; left: calc(50% + 109px); transform: translateX(-50%); max-width: calc(100% - 32px); padding: 13px 21px; border-radius: 13px; background: var(--ink); color: var(--paper); font-size: 12px; line-height: 1.6; box-shadow: 0 7px 25px #22261d1a; z-index: 99; }
.goal-reached .counter-content strong { color: var(--accent); }
@media (max-width: 1100px) and (min-width: 741px) {
  .sidebar { width: 184px; padding: 29px 14px 20px; }
  .brand { font-size: 19px; gap: 7px; }
  .brand-icon img { width: 42px; height: 52px; }
  .brand-tag { font-size: 6px; }
  .app-shell { margin-left: 184px; }
  .topbar { padding: 0 25px; }
  main { padding: 8px 25px 25px; }
  .practice-body { gap: 15px; padding: 22px 20px; }
  .counter-wrap { width: 220px; height: 220px; }
  .counter-content strong { font-size: 72px; }
  .stat-card { padding: 18px 15px; }
  .stat-icon { left: 14px; top: 18px; }
  .stat-footnote { font-size: 8px; }
  .toast { left: calc(50% + 92px); }
}
@media (max-width: 870px) and (min-width: 741px) {
  .sidebar { width: 158px; padding-left: 11px; padding-right: 11px; }
  .brand { font-size: 16px; }
  .brand-icon img { width: 36px; height: 45px; }
  .app-shell { margin-left: 158px; }
  .nav-item { font-size: 11px; gap: 9px; }
  .intention-note p { font-size: 22px; }
  .connection-status { display: none; }
  .counter-wrap { width: 200px; height: 200px; }
  .counter-content strong { font-size: 65px; }
  .practice-body { gap: 12px; padding: 20px 17px; }
  .practice-setup label { font-size: 10px; }
  .input-with-icon { padding: 0 9px; }
  .place-entry { flex-wrap: wrap; }
  .place-entry .input-with-icon { flex-basis: 100%; }
  .stat-label { font-size: 9px; }
  .stat-card strong { font-size: 25px; }
  .lower-grid { grid-template-columns: 1fr; }
  .toast { left: calc(50% + 79px); }
}
@media (max-width: 740px) {
  body::before { background-position: 28% center; }
  .sidebar { inset: auto 0 0; width: 100%; height: calc(65px + env(safe-area-inset-bottom)); padding: 0; background: var(--paper); }
  .sidebar .brand, .nav-label, .sidebar-bottom { display: none; }
  .main-nav { display: flex; align-items: center; justify-content: space-around; height: 100%; padding: 6px 20px calc(6px + env(safe-area-inset-bottom)); gap: 12px; }
  .nav-item { width: auto; min-width: 54px; min-height: 44px; padding: 8px 10px; gap: 4px; flex-direction: column; font-size: 8px; border-radius: 11px; color: #a3a88b; }
  .nav-item svg { width: 19px; height: 19px; }
  .nav-item.active { background: var(--accent); color: #fffff5; }
  .nav-item.active svg { stroke: #fffff5; stroke-width: 2.5; }
  .app-shell { margin-left: 0; }
  .topbar { height: 70px; padding: 14px 21px 0; max-width: 560px; }
  .topbar-title { color: #a2a58a; font-size: 13px; }
  .topbar-title { display: none; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; letter-spacing: -.8px; }
  .mobile-brand img { display: block; width: 34px; height: 43px; }
  .topbar-right { gap: 9px; }
  .connection-status, .chevron { display: none; }
  .profile-button { flex-direction: row-reverse; gap: 8px; }
  #profile-name { display: none; }
  .profile-avatar { width: 30px; height: 30px; background: #e7e8d7; }
  .mobile-install-button { display: grid; min-width: 32px; min-height: 36px; color: var(--ink); }
  main { max-width: 560px; padding: 10px 20px calc(88px + env(safe-area-inset-bottom)); }
  .page-heading { min-height: 58px; margin-bottom: 19px; }
  h1 { font-size: 28px; letter-spacing: -1.2px; }
  .eyebrow { font-size: 9px; margin-bottom: 5px; }
  .heading-description { font-size: 11px; margin-top: 6px; }
  #view-practice { display: flex; flex-direction: column; }
  #view-practice .page-heading { order: 0; }
  #view-practice > .stat-grid { order: 1; margin-top: 0; margin-bottom: 16px; }
  #view-practice .practice-card, #view-practice .practice-body { display: contents; }
  #view-practice .card-topline { order: 2; padding: 0 0 12px; }
  #view-practice .counter-area { order: 3; background: var(--surface); border-radius: 16px; padding: 19px 18px 18px; }
  #view-practice .practice-setup { order: 4; margin-top: 15px; padding: 20px; background: var(--surface); border-radius: 16px; }
  #view-practice .lower-grid { order: 5; }
  #view-practice .gps-banner { order: 4; border-radius: 13px; margin-top: 10px; }
  #view-practice .page-footer { order: 6; }
  .stat-grid { gap: 9px; }
  .stat-card { padding: 14px 12px; border-radius: 13px; }
  .stat-icon { left: 12px; top: 15px; }
  .stat-icon svg { width: 11px; height: 11px; }
  .stat-label { font-size: 8px; padding-left: 16px; }
  .stat-card strong { font-size: 24px; letter-spacing: -1px; margin-top: 16px; }
  .stat-unit { font-size: 8px; }
  .stat-footnote { font-size: 8px; margin-top: 6px; line-height: 1.45; }
  .card-topline h2 { font-size: 12px; }
  .card-date { font-size: 9px; }
  .counter-wrap { width: 224px; height: 224px; }
  .counter-content strong { font-size: 75px; }
  .counter-kicker { font-size: 7px; }
  .practice-controls { max-width: 100%; margin-top: 14px; }
  .button { min-height: 46px; font-size: 12px; }
  .practice-hint { font-size: 10px; }
  .secondary-controls .button { min-height: 40px; font-size: 11px; }
  .practice-setup label { font-size: 12px; }
  .practice-setup label > span { font-size: 10px; }
  .input-with-icon input, #temple-size, .custom-goal input, .auth-config-note input { font-size: 16px; }
  .input-with-icon input { padding: 12px 0; }
  .place-entry .button { min-height: 44px; font-size: 10px; }
  .place-status { font-size: 10px; }
  .goal-option { min-height: 44px; font-size: 13px; }
  .mode-switch button { min-height: 39px; font-size: 11px; }
  .mode-description, #temple-size-description { font-size: 10px; }
  .section-kicker { font-size: 12px; margin-bottom: 18px; }
  .lower-grid { grid-template-columns: 1fr; gap: 14px; }
  .wisdom-card { min-height: 150px; }
  .wisdom-card p { font-size: 23px; }
  .compact h1 { font-size: 28px; }
  .history-toolbar { gap: 12px; margin-bottom: 18px; }
  .filter-buttons { width: 100%; }
  .filter { flex: 1; min-height: 36px; }
  .history-actions { margin-left: auto; }
  .small-button { min-height: 40px; }
  .history-item { padding: 16px 12px; gap: 10px; }
  .history-item h3 { font-size: 11px; }
  .history-icon { width: 30px; height: 30px; border-radius: 9px; }
  .history-meta { font-size: 9px; }
  .history-total strong { font-size: 22px; }
  .history-open { width: 27px; height: 27px; }
  .delete-session { min-width: 25px; padding: 4px; }
  .storage-disclaimer { font-size: 9px; align-items: flex-start; }
  .storage-disclaimer svg { flex-shrink: 0; margin-top: 2px; }
  .week-chart { gap: 9px; padding: 10px 18px 24px; }
  .chart-day { font-size: 9px; }
  .modal { padding: 25px; }
  .modal-heading h2 { font-size: 24px; }
  .toast { left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); width: max-content; text-align: center; font-size: 11px; }
  .page-footer { font-size: 8px; padding-top: 21px; }
}
@media (max-width: 370px) {
  main { padding-left: 15px; padding-right: 15px; }
  .topbar { padding-left: 16px; padding-right: 16px; }
  .stat-card { padding: 13px 10px; }
  .stat-icon { left: 10px; top: 14px; }
  .stat-label { font-size: 7px; }
  .stat-card strong { font-size: 22px; }
  .stat-footnote { font-size: 7px; }
  .history-icon { display: none; }
  .place-entry { flex-wrap: wrap; }
  .place-entry .input-with-icon { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Devotional themes use only bundled artwork and a fixed, known palette. */
:root[data-theme='krishna'] {
  --paper: #f5faff; --surface: #e9f1f8; --surface-deep: #dce8f2;
  --ink: #183447; --muted: #526d80; --accent: #1764a0; --accent-dark: #124d7c;
  --accent-soft: #dcecfb; --saffron: #2288c4; --theme-wash: 245 250 255;
  --sidebar-background: #e9f1f8ed; --ring-track: #cedfea; --warm-tile: #deedf9;
  --theme-background: url('/images/krishna-background.jpg');
}
:root[data-theme='shiva'] {
  color-scheme: dark;
  --paper: #101216; --surface: #1b1e24; --surface-deep: #292e37;
  --ink: #f4f1eb; --muted: #b5bac4; --accent: #bfc5cd; --accent-dark: #e3e6eb;
  --accent-soft: #30343b; --saffron: #c8b58c; --theme-wash: 12 14 18;
  --sidebar-background: #15181ef0; --ring-track: #343a44; --warm-tile: #242831;
  --theme-background: url('/images/shiva-background.jpg');
}
:root[data-theme='shiva'] :is(.brand-tag, .nav-label, .nav-item:not(.active),
  .intention-note, .intention-note p, .intention-note > span, .device-note,
  .card-date, .practice-setup label > span, .section-heading > span,
  .empty-laps h3, .empty-laps p, .wisdom-card > span:not(.wisdom-flower),
  .wisdom-card small, .page-footer, .history-meta, .history-total > span,
  .history-group-title, .history-empty p, .storage-disclaimer,
  .chart-value, .chart-day, .modal p, .detail-summary > div > span,
  .detail-summary small, .lap-source, .icon-button) { color: var(--muted); }
:root[data-theme='shiva'] :is(.wisdom-card p, .stat-label, .section-kicker) { color: var(--ink); }
:root[data-theme='shiva'] :is(.history-icon, .empty-icon, .insight-note) { background: var(--surface-deep); color: var(--muted); }
:root[data-theme='ganesha'] {
  --paper: #fff8f7; --surface: #f6e9e7; --surface-deep: #efdad8;
  --ink: #46272d; --muted: #805d63; --accent: #ad4565; --accent-dark: #88334e;
  --accent-soft: #f7dce5; --saffron: #d2738a; --theme-wash: 255 248 247;
  --sidebar-background: #f6e9e7ed; --ring-track: #ebd3d8; --warm-tile: #f6dee4;
  --theme-background: url('/images/ganesha-background.jpg');
}
:root[data-theme='hanuman'] {
  --paper: #fff5f4; --surface: #f7e7e5; --surface-deep: #efd3d0;
  --ink: #442222; --muted: #805b58; --accent: #c62828; --accent-dark: #a31d1d;
  --accent-soft: #fbd7d4; --saffron: #e3413c; --theme-wash: 255 245 244;
  --sidebar-background: #f7e7e5ed; --ring-track: #ebcfcb; --warm-tile: #f8dcd8;
  --theme-background: url('/images/hanuman-background.jpg');
}
.button.primary, .nav-item.active, .goal-option.selected, .mode-switch button.selected, .filter.active { color: var(--paper); }
.button.secondary, .goal-option:not(.selected), .mode-switch, .lap-number, .profile-avatar, .tiny-pill, .setting-row input { background: var(--surface-deep); }
.input-with-icon, .custom-goal input, #temple-size, .auth-config-note input { background: var(--paper); }
.nav-item:hover, .button.secondary:hover, .goal-option:not(.selected):hover, .icon-button:hover { background: var(--surface-deep); }
.nav-item.active:hover { background: var(--accent-dark); }
.button.secondary, .goal-option:not(.selected), .mode-switch button:not(.selected), .filter, .profile-avatar { color: var(--muted); }
.topbar-title, .connection-status, .practice-hint, .mode-description, .place-status, .stat-footnote, .stat-unit, .goal-label, .counter-caption, .counter-kicker { color: var(--muted); }
.best-tag, .history-open { background: var(--accent-soft); color: var(--accent-dark); }

@media (max-width: 740px) {
  .theme-picker label { font-size: 11px; }
  .theme-picker select { min-width: 0; font-size: 16px; }
  .nav-item.active svg { stroke: var(--paper); }
}

/* Keep native-script language names readable and the picker available on phones. */
.language-picker { position: relative; min-width: 0; flex-shrink: 1; }
.language-picker::after { content: ""; position: absolute; inset-inline-end: 4px; top: 18px; width: 6px; height: 6px; border-inline-end: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.language-picker select { appearance: none; width: 110px; max-width: 100%; min-height: 44px; padding-block: 8px; padding-inline: 2px 20px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; }
.language-picker select:hover { color: var(--ink); }
.language-picker select option { background: var(--paper); color: var(--ink); }
html:not([lang="en"]) h1, html:not([lang="en"]) h2, html:not([lang="en"]) h3 { font-family: var(--sans); letter-spacing: normal; }
html:not([lang="en"]) .counter-kicker { letter-spacing: normal; }
html[dir="rtl"] .sidebar { inset: 0 0 0 auto; }
html[dir="rtl"] .app-shell { margin-left: 0; margin-right: 218px; }
html[dir="rtl"] .nav-item { text-align: start; }
html[dir="rtl"] .practice-setup { border-left: 0; border-right: 1px solid var(--surface-deep); }
html[dir="rtl"] .input-with-icon svg { left: auto; right: 13px; }
html[dir="rtl"] .input-with-icon input { padding-left: 12px; padding-right: 39px; }
html[dir="rtl"] .stat-icon { left: auto; right: 20px; }
html[dir="rtl"] .stat-label { padding-left: 0; padding-right: 23px; }
#lap-count, #total-time, #average-time, #best-time, time { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 1050px) { .topbar-right { gap: 12px; } }
@media (max-width: 740px) {
  .language-picker select { width: 95px; font-size: 16px; }
  .topbar-right { gap: 6px; }
  .mobile-brand { font-size: 17px; gap: 5px; }
  html[dir="rtl"] .sidebar { inset: auto 0 0; }
  html[dir="rtl"] .app-shell { margin-right: 0; }
  html[dir="rtl"] .practice-setup { border-right: 0; }
  html[dir="rtl"] .stat-icon { right: 12px; }
  html[dir="rtl"] .stat-label { padding-right: 16px; }
}
@media (max-width: 370px) {
  .language-picker select { width: 90px; }
  .mobile-brand { font-size: 15px; }
  .mobile-brand img { width: 25px; height: 32px; }
}

@media (max-width: 1100px) and (min-width: 871px) { html[dir="rtl"] .app-shell { margin-right: 184px; } }
@media (max-width: 870px) and (min-width: 741px) { html[dir="rtl"] .app-shell { margin-right: 158px; } }

.saved-place-label { margin-top: 12px; }
#saved-place-select { margin-bottom: 12px; }
.account-places { margin-block: 22px; }
.account-places h3 { margin-bottom: 10px; }
.account-places label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.account-places select { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; background: var(--surface); color: var(--ink); }
.account-places option, #saved-place-select option { unicode-bidi: plaintext; }
@media (max-width: 740px) { .account-places select, #saved-place-select { font-size: 16px; } }
.practice-setup #saved-place-select { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; background: var(--paper); color: var(--ink); cursor: pointer; }
