  :root {
    --paper: #f3f0e9;
    --ink: #272521;
    --muted: #716c63;
    --line: rgba(39, 37, 33, .14);
    --saffron: #a95b2d;
    --saffron-soft: #f5ece3;
    --indigo: #294263;
    --indigo-soft: #e9eeee;
    --panel-radius: 18px;
    --shadow: 0 14px 42px rgba(39, 37, 33, .06);
  }

  * { box-sizing: border-box; }
  html, body { width: 100%; min-height: 100%; margin: 0; }
  body {
    color: var(--ink);
    background: var(--paper, #eee8dc);
    font-family: var(--font-sans, sans-serif);
  }
  button, input { font: inherit; }
  button { color: inherit; }
  [hidden] { display: none !important; }
  .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

  .loading, .error, .chooser, .diksoochi {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
  }
  .status-card, .chooser-card {
    width: min(560px, 100%);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 253, 248, .86);
    box-shadow: var(--shadow);
    padding: 2.2rem;
    text-align: center;
  }
  .status-mark { color: var(--saffron); font-family: var(--font-sans, sans-serif); font-size: 2rem; }
  .status-card h1, .chooser-card h1 { margin: .65rem 0 .45rem; font-family: var(--font-sans, sans-serif); font-weight: 500; }
  .status-card p, .chooser-card p { margin: 0; color: var(--muted); line-height: 1.6; }
  .file-actions { display: grid; gap: 10px; margin-top: 1.4rem; }
  .file-button, .retry-button {
    min-height: 44px; border-radius: 999px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 13px;
  }
  .file-button { border: 1px solid var(--indigo); background: var(--indigo); color: white; }
  .file-button:hover { background: #182c49; }
  .retry-button { border: 1px solid var(--line); background: white; color: var(--muted); }
  .retry-button:hover { border-color: rgba(183, 93, 42, .48); color: var(--ink); }
  .file-note { margin-top: 1rem !important; font-size: 11px; }
  .file-error { min-height: 18px; margin-top: .8rem; color: #a64032; font-size: 12px; line-height: 1.45; }
  .diksoochi { min-height: 100vh; display: block; padding: 0 0 32px; }
  .home-masthead { width: min(1460px, 100%); height: 86px; margin: 0 auto; padding: 18px clamp(22px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; }
  .home-brand { display: flex; align-items: center; gap: 11px; font-size: 20px; }
  .home-brand .diksoochi-flute { width: 42px; height: 42px; margin: 0; border: 0; box-shadow: none; background: rgba(255,253,248,.78); }
  .home-brand .diksoochi-flute img { width: 30px; height: 30px; }
  .diksoochi .landing-profile-pill { position: static; }
  .diksoochi-shell { width: min(1460px, 100%); margin: 0 auto; padding: 20px clamp(22px, 4vw, 64px) 60px; }
  .diksoochi-head { min-height: 18px; }
  .diksoochi-head p { margin: 0; color: var(--saffron); font-size: 11px; font-weight: 650; line-height: 1.55; }
  .diksoochi-journey-group > h2, .diksoochi-experiences > h2 { margin: 0 0 20px; font: 500 clamp(34px, 4vw, 58px)/1.05 var(--font-sans, sans-serif); }
  .diksoochi-journey-grid { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(300px,.8fr); gap: 18px; }
  .continue-journey-link, .diksoochi-journey { min-height: 350px; border-radius: 26px; overflow: hidden; box-shadow: 0 24px 60px rgba(58,43,25,.13); }
  .continue-journey-link { position: relative; display: block; isolation: isolate; color: white; text-decoration: none; background: #193445; }
  .continue-journey-image { position: absolute; inset: 0; z-index: -2; background: var(--experience-card-image, none) center/cover; transform: scale(1.01); transition: transform .5s ease; }
  .continue-journey-link:hover .continue-journey-image, .continue-journey-link:focus-visible .continue-journey-image { transform: scale(1.05); }
  .continue-journey-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgba(10,23,31,.91),rgba(10,23,31,.45) 56%,rgba(10,23,31,.06)); }
  .continue-journey-copy { position: absolute; left: clamp(25px,4vw,56px); right: 24px; bottom: 38px; display: grid; justify-items: start; }
  .continue-journey-copy small { color: #e49a6f; text-transform: uppercase; letter-spacing: .14em; font-size: 10px; font-weight: 700; }
  .continue-journey-copy strong { margin: 8px 0 10px; font-size: clamp(36px,5vw,68px); line-height: 1; font-weight: 580; }
  .continue-journey-action { margin-top: 10px; padding: 10px 18px; border-radius: 999px; background: white; color: var(--indigo); font-size: 13px; font-weight: 700; }
  .continue-journey-action b { margin-right: 6px; color: var(--saffron); font-size: 11px; }
  .diksoochi-journey { position: relative; padding: 38px; display: flex; flex-direction: column; background: linear-gradient(145deg,#fffaf1,#efe4d3); border: 1px solid rgba(141,105,61,.15); }
  .journey-card-label { margin: 12px 0 22px; font-size: 11px; color: var(--saffron); text-transform: uppercase; letter-spacing: .15em; }
  .journey-spark { position: absolute; right: 28px; top: 20px; color: #d09a52; font-size: 34px; }
  .diksoochi-journey-statements p { margin: 0; color: var(--ink); font-size: clamp(22px,2.3vw,36px); font-weight: 520; line-height: 1.35; }
  .diksoochi-journey-empty { margin: auto 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
  .journey-details-link { border: 0; background: transparent; color: var(--saffron); padding: 2px 4px; font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .diksoochi-experiences { margin-top: 70px; }
  .product-list { display: flex; gap: 9px; margin: -4px 0 22px; overflow-x: auto; scrollbar-width: none; }
  .product-list:empty { display: none; }
  .product-list::-webkit-scrollbar { display: none; }
  .product-pill { flex: 0 0 auto; border: 1px solid rgba(42,68,91,.22); border-radius: 999px; padding: 10px 18px; background: rgba(255,255,255,.62); color: var(--indigo); font: 650 14px/1 var(--font-sans, sans-serif); cursor: pointer; }
  .product-pill:hover, .product-pill:focus-visible { border-color: var(--saffron); outline: none; }
  .product-pill[aria-selected="true"] { border-color: var(--indigo); background: var(--indigo); color: white; }
  .product-pill:disabled { opacity: .46; cursor: not-allowed; }
  .experience-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
  .experience-link { position: relative; min-height: 270px; overflow: hidden; border: 0; border-radius: 22px; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; isolation: isolate; color: white; text-decoration: none; text-align: left; box-shadow: 0 16px 38px rgba(40,32,24,.13); transition: transform .25s ease, box-shadow .25s ease; }
  .experience-link::before { content: ''; position: absolute; inset: 0; z-index: -2; background-position: center; background-size: cover; transition: transform .5s ease; }
  .experience-link::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,rgba(8,17,23,.94),rgba(8,17,23,.06) 82%); }
  .experience-link::before { background-image: var(--experience-card-image, none); }
  .experience-link:hover, .experience-link:focus-visible, .experience-link.active { transform: translateY(-6px); box-shadow: 0 25px 48px rgba(40,32,24,.2); outline: none; }
  .experience-link:hover::before, .experience-link.active::before { transform: scale(1.04); }
  .experience-link small { color: rgba(255,255,255,.82); font-size: 11px; }
  .experience-link strong { margin: 5px 0; font-size: clamp(28px,3vw,42px); font-weight: 560; }
  .experience-link > span { max-width: calc(100% - 38px); color: rgba(255,255,255,.74); font-size: 11px; }
  .experience-link i { position: absolute; right: 23px; bottom: 23px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; font-style: normal; }
  .experience-link.disabled { opacity: .48; pointer-events: none; }
  .diksoochi .landing-links { margin-top: 42px; }
  .experience-link.needs-collections { border-style: dashed; }
  .experience-detail { position: relative; margin-top: 18px; min-height: 350px; overflow: hidden; display: grid; grid-template-columns: minmax(260px,.85fr) minmax(0,1.5fr); border-radius: 26px; background: #fffaf1; box-shadow: var(--shadow); }
  .experience-detail-art { min-height: 350px; background: center/cover no-repeat; }
  .experience-detail-copy { position: relative; padding: 38px clamp(28px,4vw,60px); }
  .experience-detail-copy > small { color: var(--saffron); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
  .experience-detail-copy h3 { margin: 8px 0 12px; font-size: 40px; font-weight: 540; }
  .experience-detail-copy p { color: var(--muted); line-height: 1.6; }
  .experience-detail-copy ul { columns: 2; margin: 20px 0 0; padding-left: 18px; color: #4d5960; line-height: 1.8; }
  .experience-detail-close { position: absolute; right: 17px; top: 15px; border: 0; background: transparent; font-size: 27px; cursor: pointer; }
  .experience-detail-action { float: right; margin-top: 24px; padding: 11px 18px; border-radius: 999px; background: var(--indigo); color: white; text-decoration: none; }
  .home-collections { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
  .home-collections h2 { margin: 0 0 4px; font: 500 18px var(--font-sans, sans-serif); }
  .home-collections p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
  .home-collections .file-error { grid-column: 1 / -1; color: #a64032; }

  .journey-details { min-height: 100vh; padding: clamp(72px, 9vw, 96px) clamp(18px, 5vw, 56px) 40px; align-items: start; }
  .journey-details-shell { width: min(1120px, 100%); margin: 0 auto; }
  .journey-details-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
  .journey-details-head h1 { margin: 0; font: 500 clamp(27px, 4vw, 38px) var(--font-sans, sans-serif); text-align: center; }
  .journey-back { justify-self: start; border: 0; background: transparent; color: var(--saffron); padding: 8px 0; cursor: pointer; }
  .journey-view-switch { justify-self: end; display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: white; }
  .journey-view-switch button { width: 36px; height: 36px; border: 0; border-radius: 50%; padding: 8px; display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer; }
  .journey-view-switch svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .journey-view-switch button[aria-pressed="true"] { background: var(--indigo); color: white; }
  .journey-note { margin: 20px 0 14px; color: var(--muted); font-size: 11px; }
  .journey-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .journey-card { min-width: 0; padding: 17px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,253,248,.94); box-shadow: 0 8px 24px rgba(44,35,24,.05); cursor: pointer; }
  .journey-card:focus-visible, .journey-table-row:focus-visible { outline: 3px solid rgba(182,93,42,.24); outline-offset: 2px; }
  .journey-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; color: var(--saffron); }
  .journey-card-head strong { font: 600 17px var(--font-sans, sans-serif); }
  .journey-card-head span { min-width: 30px; text-align: right; font-weight: 700; color: var(--indigo); }
  .journey-count { margin-left: auto; }
  .journey-chevron { width: 8px; height: 8px; flex: 0 0 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .16s ease; }
  [data-journey-sid][aria-expanded="true"] .journey-chevron { transform: rotate(225deg) translate(-1px, -1px); }
  .journey-line { margin: 5px 0 0; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
  .journey-sanskrit { color: var(--ink); font-family: var(--font-sans, sans-serif); font-size: 14px; }
  .journey-card[aria-expanded="true"] > .journey-line { display: none; }
  .journey-expanded { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
  .journey-expanded p, .journey-table-detail p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; white-space: pre-line; }
  .journey-expanded p + p, .journey-table-detail p + p { margin-top: 12px; }
  .journey-expanded .journey-expanded-shloka, .journey-table-detail .journey-expanded-shloka { color: var(--ink); font-family: var(--font-sans, sans-serif); font-size: 15px; }
  .journey-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,253,248,.94); }
  .journey-table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
  .journey-table th, .journey-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; }
  .journey-table thead th { background: var(--indigo-soft); color: var(--muted); font-size: 10px; letter-spacing: .03em; text-transform: uppercase; }
  .journey-table th:first-child { width: 82px; }
  .journey-table th:last-child, .journey-table td:last-child { width: 76px; text-align: right; }
  .journey-table tbody tr:last-child > * { border-bottom: 0; }
  .journey-table-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .journey-table-row { cursor: pointer; }
  .journey-table-row .journey-chevron { display: inline-block; margin-left: 10px; color: var(--muted); }
  .journey-table-detail td { padding: 18px 24px; background: rgba(234,239,238,.5); }
  .journey-table-detail p { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }

  .profile-screen {
    min-height: 100vh; padding: 28px; display: grid; place-items: center;
  }
  .profile-form-card, .profile-selection-card {
    width: min(650px, 100%); border: 1px solid var(--line); border-radius: 24px;
    background: rgba(255, 253, 248, .94); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 38px);
  }
  .profile-form-card > .status-mark, .profile-form-card > h1, .profile-form-card > p { text-align: center; }
  .profile-form-card h1, .profile-selection-card h1 { margin: .55rem 0 .4rem; font: 500 clamp(25px, 4vw, 34px) var(--font-sans, sans-serif); }
  .profile-form-card > p, .profile-selection-card p { margin: 0 0 1.5rem; color: var(--muted); font-size: 13px; line-height: 1.55; }
  .profile-form-section { margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.64); }
  .profile-form-section h2 { margin: 0 0 12px; font: 500 19px var(--font-sans, sans-serif); color: var(--ink); }
  .profile-form-section:focus { outline: 3px solid rgba(183,93,42,.12); border-color: rgba(183,93,42,.5); }
  .profile-form-section .profile-photo-field { margin-top: 0; }
  .profile-photo-field { display: flex; align-items: center; gap: 16px; margin: 1.5rem 0; }
  .profile-photo-avatar, .profile-card-avatar {
    width: 74px; height: 74px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  }
  .profile-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--saffron-soft); color: var(--saffron); font: 600 22px var(--font-sans, sans-serif); }
  .profile-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .profile-photo-actions small { width: 100%; color: var(--muted); font-size: 10px; }
  .field-label { display: block; margin: 13px 0 6px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .025em; }
  .field-label small { font-weight: 400; }
  .profile-input {
    width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 12px;
    background: white; padding: 9px 12px; color: var(--ink); outline: none;
  }
  .profile-input:focus { border-color: rgba(183,93,42,.6); box-shadow: 0 0 0 3px rgba(183,93,42,.09); }
  .profile-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
  .check-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 15px; color: var(--muted); font-size: 11px; line-height: 1.45; }
  .check-row input { margin-top: 2px; accent-color: var(--saffron); }
  .analytics-notice {
    margin: 15px 0 0; padding: 11px 13px; border-radius: 11px;
    background: var(--indigo-soft); color: var(--muted); font-size: 11px; line-height: 1.45;
  }
  .form-error { min-height: 20px; margin-top: 10px; color: #a64032; font-size: 12px; }
  .profile-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
  .primary-button, .secondary-button, .quiet-button, .add-profile-button {
    min-height: 40px; border-radius: 999px; padding: 0 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
  }
  .primary-button { border: 1px solid var(--indigo); background: var(--indigo); color: white; }
  .secondary-button { border: 1px solid var(--saffron); background: var(--saffron-soft); color: var(--saffron); }
  .quiet-button, .add-profile-button { border: 1px solid var(--line); background: white; color: var(--muted); }
  .profile-selection-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .profile-list { display: grid; gap: 10px; }
  .profile-card { border: 1px solid var(--line); border-radius: 16px; background: white; overflow: hidden; }
  .profile-select { width: 100%; border: 0; background: transparent; padding: 14px; display: flex; align-items: center; gap: 14px; cursor: pointer; text-align: left; }
  .profile-select:hover, .profile-select:focus-visible { background: var(--saffron-soft); outline: none; }
  .profile-card-avatar { width: 48px; height: 48px; font-size: 15px; }
  .profile-card-copy { flex: 1; min-width: 0; display: grid; gap: 3px; }
  .profile-card-copy strong { overflow: hidden; text-overflow: ellipsis; }
  .profile-card-copy small, .default-badge { color: var(--muted); font-size: 10px; }
  .default-badge { border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; }
  .profile-card-actions { display: flex; justify-content: flex-end; gap: 4px; padding: 7px 10px; border-top: 1px solid var(--line); }
  .profile-card-actions button { border: 0; background: transparent; color: var(--muted); padding: 5px 8px; font-size: 10px; cursor: pointer; border-radius: 7px; }
  .profile-card-actions button:hover { background: var(--paper); color: var(--ink); }
  .add-profile-button { width: 100%; margin-top: 12px; }
  .about-link {
    display: block; margin: 18px auto -8px; padding: 6px 9px; border: 0;
    background: transparent; color: var(--muted); font-size: 11px; cursor: pointer;
    text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  }
  .about-link:hover, .about-link:focus-visible { color: var(--saffron); text-decoration-color: currentColor; outline: none; }
  .landing-links { display: flex; align-items: center; justify-content: center; gap: 4px; }
  .profile-pill {
    max-width: 170px; min-height: 36px; border: 1px solid var(--line); border-radius: 999px;
    padding: 3px 10px 3px 4px; display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,253,248,.9); color: var(--ink); cursor: pointer; font-size: 11px;
  }
  .profile-pill > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .profile-pill-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: 0 0 28px; font-size: 9px; }
  .landing-profile-pill { position: fixed; z-index: 10; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); }
  .profile-menu-options { display: grid; gap: 7px; }
  .profile-menu-options button { min-height: 44px; border: 1px solid var(--line); border-radius: 11px; background: white; text-align: left; padding: 0 13px; cursor: pointer; }
  .profile-menu-options button:hover { background: var(--saffron-soft); }
  .profile-menu-dialog { width: min(360px, 100%); }
  .about-dialog { position: relative; width: min(480px, 100%); display: block; overflow: visible; }
  .about-close { position: absolute; z-index: 2; top: 12px; right: 12px; }
  .about-body { padding: 34px 34px 29px; text-align: center; }
  .about-body h2 { margin: 12px 0 10px; font: 500 27px var(--font-sans, sans-serif); }
  .about-body > p { max-width: 390px; margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 1.65; }
  .about-flute {
    position: relative; width: 78px; height: 78px; margin: 0 auto; display: grid; place-items: center;
    border: 1px solid rgba(201,149,63,.54); border-radius: 50%;
    background: radial-gradient(circle at 36% 30%, #fff8e8, #edc878 74%, #d39d42);
    box-shadow: inset 0 0 0 4px rgba(255,255,255,.24), 0 12px 30px rgba(107,75,27,.16);
  }
  .about-flute img { width: 57px; height: 57px; transform-origin: 42% 62%; }
  .about-note {
    position: absolute; z-index: 3; right: 0; top: 7px; color: var(--indigo);
    font: 700 17px/1 var(--font-sans, sans-serif); font-style: normal; opacity: 0; pointer-events: none;
    text-shadow: 0 1px white, 0 0 6px rgba(255,255,255,.65);
  }
  .about-note-two { color: #3f746f; font-size: 15px; }
  .about-note-three { color: #0d3445; font-size: 14px; }
  #about-overlay:not([hidden]) .about-flute img, .about-flute:hover img { animation: about-flute-lilt .78s ease both; }
  #about-overlay:not([hidden]) .about-note-one, .about-flute:hover .about-note-one { animation: about-note-one .78s ease-out both; }
  #about-overlay:not([hidden]) .about-note-two, .about-flute:hover .about-note-two { animation: about-note-two .78s .09s ease-out both; }
  #about-overlay:not([hidden]) .about-note-three, .about-flute:hover .about-note-three { animation: about-note-three .78s .17s ease-out both; }
  @keyframes about-flute-lilt { 0%,100% { transform: translateY(0) rotate(0); } 42% { transform: translateY(-2px) rotate(-4deg); } }
  @keyframes about-note-one { 0% { opacity:0; transform:translate(0,5px) scale(.55) rotate(-8deg); } 35% { opacity:1; } 100% { opacity:0; transform:translate(10px,-19px) scale(1.12) rotate(10deg); } }
  @keyframes about-note-two { 0% { opacity:0; transform:translate(-1px,5px) scale(.5) rotate(5deg); } 35% { opacity:1; } 100% { opacity:0; transform:translate(18px,-12px) scale(1.06) rotate(18deg); } }
  @keyframes about-note-three { 0% { opacity:0; transform:translate(0,4px) scale(.5); } 35% { opacity:.95; } 100% { opacity:0; transform:translate(5px,-27px) scale(1.02) rotate(-10deg); } }
  .diksoochi-flute img { animation: diksoochi-flute-lilt 4.8s ease-in-out infinite; }
  .diksoochi-flute .about-note-one { animation: diksoochi-note-one 4.8s ease-out infinite; }
  .diksoochi-flute .about-note-two { animation: diksoochi-note-two 4.8s .12s ease-out infinite; }
  .diksoochi-flute .about-note-three { animation: diksoochi-note-three 4.8s .24s ease-out infinite; }
  @keyframes diksoochi-flute-lilt { 0%,28%,100% { transform: translateY(0) rotate(0); } 11% { transform: translateY(-2px) rotate(-4deg); } }
  @keyframes diksoochi-note-one { 0%,28%,100% { opacity:0; transform:translate(0,5px) scale(.55) rotate(-8deg); } 9% { opacity:1; } 24% { opacity:0; transform:translate(10px,-19px) scale(1.12) rotate(10deg); } }
  @keyframes diksoochi-note-two { 0%,28%,100% { opacity:0; transform:translate(-1px,5px) scale(.5) rotate(5deg); } 10% { opacity:1; } 25% { opacity:0; transform:translate(18px,-12px) scale(1.06) rotate(18deg); } }
  @keyframes diksoochi-note-three { 0%,28%,100% { opacity:0; transform:translate(0,4px) scale(.5); } 11% { opacity:.95; } 26% { opacity:0; transform:translate(5px,-27px) scale(1.02) rotate(-10deg); } }
  .about-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 17px; }
  .about-links a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--indigo); font-size: 11px; text-decoration: none; }
  .about-links a:hover, .about-links a:focus-visible { border-color: rgba(183,93,42,.5); background: var(--saffron-soft); outline: none; }
  .about-version { font-size: 10px !important; font-variant-numeric: tabular-nums; }
  .about-history-link, .about-history-back { margin-top: 10px; border: 0; background: transparent; color: var(--saffron); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 11px; }
  .about-history { max-height: min(68vh, 560px); overflow-y: auto; padding: 28px 30px 24px; text-align: left; }
  .about-history-back { margin: 0 0 10px; padding: 0; }
  .about-history > h2 { margin: 0 0 16px; font: 500 27px var(--font-sans, sans-serif); text-align: center; }
  .about-history-list { display: grid; gap: 10px; }
  .about-history-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .about-history-item:last-child { border-bottom: 0; }
  .about-history-item h3 { margin: 0; color: var(--indigo); font-size: 13px; }
  .about-history-item time, .about-history-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
  .about-history-item p { margin: 7px 0 0; color: var(--ink); font-size: 12px; line-height: 1.5; }

  #app { height: 100vh; height: 100dvh; padding: 16px; }
  .shell {
    height: 100%; min-height: 0;
    display: grid; grid-template-rows: 58px 12px minmax(0, 1fr) 58px;
    gap: 4px; max-width: 1600px; margin: 0 auto;
  }
  .topbar, .controlbar {
    display: flex; align-items: center;
    border: 1px solid var(--line);
    background: rgba(251, 248, 241, .84);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 8px 28px rgba(61, 49, 35, .05);
  }
  .topbar {
    position: relative; z-index: 40; border-radius: 15px; padding: 0 10px 0 16px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 1fr) minmax(0, 1fr); gap: 12px;
  }
  .topbar-left { grid-column: 1; min-width: 0; justify-self: start; display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
  .collection-context, .chapter-context {
    min-width: 0;
    width: max-content;
    max-width: 100%;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 7px;
    margin-left: -7px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    text-align: left;
  }
  .collection-context:hover, .chapter-context:hover { background: rgba(62, 52, 40, .07); }
  .collection-context:focus-visible, .chapter-context:focus-visible { outline: none; box-shadow: inset 0 -2px rgba(183,93,42,.48); }
  .chapter-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    object-fit: contain;
  }
  .collection-heading, .chapter-heading {
    min-width: 0; color: var(--muted); font-family: var(--font-sans, sans-serif); font-size: 14px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .collection-context {
    width: 42px; height: 42px; flex: 0 0 42px; justify-content: center; padding: 0; margin-left: -7px;
    border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.58);
  }
  .collection-heading { color: var(--saffron); font-size: 20px; font-weight: 750; overflow: visible; }
  .collection-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
  .collection-button { min-height: 92px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
  .collection-button.active { border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(183,93,42,.12); }
  .collection-button strong, .collection-button span { display: block; }
  .collection-button span { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.4; }
  .sid-badge {
    color: var(--saffron); font-family: var(--font-sans, sans-serif);
    font-size: clamp(25px, 2.6vw, 34px); font-weight: 700;
    font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1;
    letter-spacing: .015em;
  }
  .shloka-position { position: absolute; inset: 0; min-width: 0; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1; pointer-events: none; }
  .record-position {
    align-self: center; justify-self: center; color: var(--muted); font-size: 9px;
    line-height: 1; font-variant-numeric: tabular-nums;
  }
  .icon-button, .text-button, .play-button {
    border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border-radius: 999px;
  }
  .icon-button { width: 36px; height: 36px; }
  .icon-button:hover, .text-button:hover { background: rgba(62, 52, 40, .07); }
  .icon-button svg, .play-button svg { width: 19px; height: 19px; fill: currentColor; }
  .text-button { min-height: 34px; padding: 0 12px; color: var(--muted); font-size: 12px; gap: 7px; }
  .top-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 7px; min-width: 0; position: relative; z-index: 1; }
  .top-menu-wrap { position: relative; }
  .topbar-profile-pill { width: 38px; height: 38px; padding: 4px; flex: 0 0 38px; }
  .topbar-profile-pill > span:last-child:not(.profile-pill-avatar) { display: none; }
  .menu-toggle { border: 1px solid transparent; }
  .menu-toggle[aria-expanded="true"] { background: rgba(62, 52, 40, .08); border-color: var(--line); }
  .menu-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .top-menu-panel {
    position: absolute; z-index: 45; top: calc(100% + 10px); right: 0;
    width: min(270px, calc(100vw - 28px)); padding: 7px;
    border: 1px solid var(--line); border-radius: 16px; background: #fffdf9;
    box-shadow: 0 20px 60px rgba(45, 36, 26, .2);
  }
  .top-menu-item {
    width: 100%; min-height: 40px; border: 0; border-radius: 10px;
    display: flex; align-items: center; gap: 12px; padding: 0 12px;
    background: transparent; color: var(--ink); font-size: 13px; text-align: left;
  }
  .top-menu-item { cursor: pointer; }
  .top-menu-item:hover, .top-menu-item:focus-visible { background: var(--saffron-soft); outline: none; }
  .top-menu-label { flex: 1; }
  .menu-shortcut { color: var(--muted); font-size: 11px; font-weight: 600; }
  .top-menu-divider { height: 1px; margin: 6px 8px; background: var(--line); }
  .pwa-notice {
    position: fixed; z-index: 90; left: 50%; bottom: max(20px, env(safe-area-inset-bottom));
    transform: translateX(-50%); width: min(520px, calc(100vw - 28px)); min-height: 52px;
    display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 16px;
    border: 1px solid rgba(201,149,63,.48); border-radius: 15px;
    background: #fffdf9; color: var(--ink); box-shadow: 0 16px 48px rgba(35,29,22,.22);
    font-size: 12px;
  }
  .pwa-notice > span { flex: 1; line-height: 1.4; }
  .pwa-notice button { min-height: 34px; border-radius: 999px; cursor: pointer; }
  #pwa-update-action { border: 1px solid var(--indigo); padding: 0 13px; background: var(--indigo); color: white; }
  .pwa-notice-close { width: 34px; border: 0; background: transparent; color: var(--muted); font-size: 20px; }
  .pwa-status-notice { width: auto; max-width: calc(100vw - 28px); min-height: 44px; padding-right: 16px; }
  #renderer-root { min-height: 0; touch-action: pan-y pinch-zoom; }

  .controlbar {
    border-radius: 17px; padding: 7px 14px;
    display: grid; grid-template-columns: 42px minmax(0, 680px) 42px;
    justify-content: center; gap: 12px;
  }
  .audio-player { width: min(680px, 100%); display: flex; align-items: center; justify-content: center; gap: 12px; }
  .footer-action {
    width: 42px; height: 42px; padding: 0; border: 0; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: var(--muted); cursor: pointer;
  }
  .footer-action:hover, .footer-action:focus-visible { background: rgba(62,52,40,.07); color: var(--ink); outline: none; }
  .footer-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .play-button { width: 42px; height: 42px; background: var(--indigo); color: white; }
  .play-button:hover { background: #182c49; }
  .play-button:disabled { opacity: .35; cursor: default; }
  .audio-seek {
    flex: 1; min-width: 80px; height: 18px; margin: 0; cursor: pointer;
    accent-color: var(--saffron);
  }
  .audio-seek:disabled { opacity: .35; cursor: default; }
  .audio-time { min-width: 88px; color: var(--muted); font-size: 10px; text-align: right; font-variant-numeric: tabular-nums; }

  html.immersive #app { min-height: 100dvh; padding: 0; }
  html.immersive .shell { max-width: none; min-height: 100dvh; }
  html.immersive .topbar { border-radius: 0 0 15px 15px; }
  html.immersive .controlbar { border-radius: 15px 15px 0 0; }

  .overlay {
    position: fixed; inset: 0; z-index: 50; padding: 20px;
    display: grid; place-items: center; background: rgba(29, 25, 20, .38);
    backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  }
  .dialog {
    width: min(450px, 100%); max-height: min(720px, calc(100vh - 40px)); overflow: hidden;
    display: grid; grid-template-rows: auto minmax(0, 1fr);
    border: 1px solid rgba(255,255,255,.55); border-radius: 22px;
    background: #fffdf9; box-shadow: 0 28px 80px rgba(0,0,0,.22);
  }
  .dialog-head { display: flex; align-items: center; padding: 17px 18px; border-bottom: 1px solid var(--line); }
  .dialog-head h2 { flex: 1; margin: 0; font-family: var(--font-sans, sans-serif); font-size: 19px; font-weight: 500; }
  .dialog-body { overflow: auto; padding: 16px 18px 20px; }
  .goto-input {
    width: 100%; border: 1px solid var(--line); border-radius: 13px;
    background: white; padding: 13px 14px; outline: 0; font-size: 22px;
    font-family: var(--font-sans, sans-serif); text-align: center;
  }
  .goto-input:focus { border-color: rgba(183, 93, 42, .65); box-shadow: 0 0 0 3px rgba(183,93,42,.09); }
  .dialog-note { color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; margin: 11px 0 0; }
  .dialog-error { color: #a64032; min-height: 18px; font-size: 12px; text-align: center; margin-top: 8px; }
  .shortcut-list { display: grid; gap: 4px; margin: 0; }
  .shortcut-row {
    display: grid; grid-template-columns: minmax(105px, .8fr) 1.7fr; gap: 16px;
    align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line);
  }
  .shortcut-row:last-child { border-bottom: 0; }
  .shortcut-keys { display: flex; flex-wrap: wrap; gap: 5px; }
  kbd {
    min-width: 27px; padding: 4px 7px; border: 1px solid var(--line); border-bottom-width: 2px;
    border-radius: 7px; background: white; color: var(--ink); font: 11px var(--font-sans, sans-serif);
    text-align: center;
  }
  .shortcut-description { color: var(--muted); font-size: 12px; }
  .chapter-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .chapter-button {
    border: 1px solid var(--line); border-radius: 12px; background: white;
    padding: 12px 7px; cursor: pointer; text-align: center;
  }
  .chapter-button:hover, .chapter-button.active { border-color: rgba(183,93,42,.55); background: var(--saffron-soft); }
  .chapter-button:focus-visible { border-color: var(--saffron); outline: 3px solid rgba(183,93,42,.17); }
  .chapter-list-icon { display: block; width: 28px; height: 28px; margin: 0 auto 5px; object-fit: contain; }
  .chapter-number { display: block; color: var(--saffron); font-family: var(--font-sans, sans-serif); font-size: 18px; }
  .chapter-name { display: block; color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
  .language-dialog { width: min(360px, 100%); }
  .language-options { display: grid; gap: 8px; }
  .language-option {
    min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 13px;
    background: white; color: var(--ink); cursor: pointer; text-align: left;
  }
  .language-option:hover, .language-option:focus-visible, .language-option.active {
    border-color: rgba(183,93,42,.55); background: var(--saffron-soft); outline: none;
  }

  @media (max-width: 760px) {
    .home-masthead { height: 72px; padding: 12px 22px; }
    .home-brand strong { font-size: 18px; }
    .diksoochi-shell { padding: 10px 22px 48px; }
    .diksoochi-head { min-height: 10px; }
    .diksoochi-journey-grid { grid-template-columns: 1fr; }
    .continue-journey-link, .diksoochi-journey { min-height: 300px; }
    .diksoochi-journey { min-height: 285px; }
    .diksoochi-experiences { margin-top: 52px; }
    .experience-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 5px 18vw 18px 0; }
    .experience-link { flex: 0 0 82vw; scroll-snap-align: start; }
    .experience-detail { grid-template-columns: 1fr; }
    .experience-detail-art { min-height: 230px; }
    .experience-detail-copy ul { columns: 1; }
    .experience-detail-action { float: none; display: block; text-align: center; }
    .home-collections { grid-template-columns: 1fr; }
    .home-collections .secondary-button { width: 100%; }
    .journey-details { padding: 68px 14px 24px; }
    .journey-details-head { grid-template-columns: 1fr auto; }
    .journey-details-head h1 { grid-column: 1 / -1; grid-row: 1; }
    .journey-back { grid-column: 1; grid-row: 2; }
    .journey-view-switch { grid-column: 2; grid-row: 2; }
    .journey-view-switch button { width: 44px; height: 44px; padding: 11px; }
    .journey-cards { grid-template-columns: 1fr; }
    .collection-context, .chapter-context { gap: 6px; }
    .collection-heading { font-size: 18px; }
    .chapter-icon { width: 27px; height: 27px; flex-basis: 27px; }
    #app { height: auto; min-height: 100vh; padding: 9px; }
    .shell { min-height: calc(100vh - 18px); height: auto; grid-template-rows: 54px 12px auto; gap: 4px; padding-bottom: 64px; }
    .topbar { padding-left: 13px; }
    .chapter-heading { font-size: 12px; }
    .controlbar {
      position: fixed; left: 9px; right: 9px; bottom: 7px; z-index: 20;
      padding: 6px 8px; grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 7px;
    }
    .audio-player { gap: 8px; }
    .play-button { width: 38px; height: 38px; flex: 0 0 38px; }
    .audio-seek { min-width: 40px; }
    .audio-time { min-width: 68px; font-size: 9px; }
    .footer-action { width: 38px; height: 38px; }
    .chapter-list { grid-template-columns: repeat(2, 1fr); }
    .topbar-profile-pill { max-width: 38px; padding-right: 4px; }
    .topbar-profile-pill > span:last-child { display: none; }
    .profile-field-grid { grid-template-columns: 1fr; gap: 0; }
    .profile-screen { padding: 12px; }
  }

  html.mobile-layout #app { height: auto; min-height: 100vh; padding: 9px; }
  html.mobile-layout .shell { min-height: calc(100vh - 18px); height: auto; grid-template-rows: 54px 12px auto; gap: 4px; padding-bottom: 64px; }
  html.mobile-layout .topbar { padding-left: 13px; }
  html.mobile-layout .collection-context, html.mobile-layout .chapter-context { gap: 6px; }
  html.mobile-layout .collection-heading { font-size: 18px; }
  html.mobile-layout .chapter-icon { width: 27px; height: 27px; flex-basis: 27px; }
  html.mobile-layout .chapter-heading { font-size: 12px; }
  html.mobile-layout .controlbar {
    position: fixed; left: 9px; right: 9px; bottom: 7px; z-index: 20;
    padding: 6px 8px; grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 7px;
  }
  html.mobile-layout .audio-player { gap: 8px; }
  html.mobile-layout .play-button { width: 38px; height: 38px; flex: 0 0 38px; }
  html.mobile-layout .audio-seek { min-width: 40px; }
  html.mobile-layout .audio-time { min-width: 68px; font-size: 9px; }
  html.mobile-layout .footer-action { width: 38px; height: 38px; }
  html.mobile-layout .chapter-list { grid-template-columns: repeat(2, 1fr); }
  html.mobile-layout.immersive #app { padding: 0; }
  html.mobile-layout.immersive .controlbar { left: 0; right: 0; bottom: 0; }

  @media (max-width: 390px) {
    .sid-badge { font-size: 24px; }
    .record-position { font-size: 8px; }
    .chapter-heading { max-width: 112px; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
    #about-overlay:not([hidden]) .about-flute img, .about-flute:hover img,
    #about-overlay:not([hidden]) .about-note, .about-flute:hover .about-note,
    .diksoochi-flute img, .diksoochi-flute .about-note { animation: none; }
  }
