/* One quiet, interruptible motion language. Native links and forms stay immediate. */
:root { --sequence-motion-fast:120ms; --sequence-motion-page:180ms; --sequence-motion-shared:220ms; --sequence-ease:cubic-bezier(.2,.7,.2,1); }
@view-transition { navigation:auto; }
.sidebar { view-transition-name:sequence-sidebar; }
.mobile-bottom-nav { view-transition-name:sequence-mobile-navigation; }
.main-content,.unauthenticated-shell { view-transition-name:sequence-workspace; }
.prep-brand-mark { view-transition-name:sequence-wordmark; }
.prep-home-heading h1,.player-page-heading h1 { view-transition-name:sequence-heading; }
::view-transition { pointer-events:none; }
::view-transition-group(*) { animation-duration:var(--sequence-motion-shared); animation-timing-function:var(--sequence-ease); }
::view-transition-old(root) { display:none; }
::view-transition-new(root) { animation:none; }
::view-transition-old(sequence-sidebar),::view-transition-old(sequence-mobile-navigation) { display:none; }
::view-transition-new(sequence-sidebar),::view-transition-new(sequence-mobile-navigation) { animation:none; }
::view-transition-old(sequence-workspace),::view-transition-old(sequence-heading),::view-transition-old(sequence-wordmark) { animation:sequence-view-out var(--sequence-motion-fast) ease both; mix-blend-mode:normal; }
::view-transition-new(sequence-workspace),::view-transition-new(sequence-heading),::view-transition-new(sequence-wordmark) { animation:sequence-view-in var(--sequence-motion-page) var(--sequence-ease) both; mix-blend-mode:normal; }
::view-transition-old(sequence-nav-cursor) { display:none; }
::view-transition-new(sequence-nav-cursor) { animation:none; }
@keyframes sequence-view-out { to { opacity:0; } }
@keyframes sequence-view-in { from { opacity:0; } to { opacity:1; } }
.sequence-sr-only { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.sequence-skip-link { position:fixed; left:16px; top:12px; z-index:20000; padding:12px 16px; color:var(--prep-text,var(--color-text-primary)); background:var(--prep-surface,var(--color-surface)); border:1px solid var(--prep-accent,var(--color-accent)); border-radius:8px; transform:translateY(-180%); }
.sequence-skip-link:focus { transform:none; }
#sequence-main:focus { outline:none; }
.sequence-ux .sidebar .nav-item { position:relative; transition:background var(--sequence-motion-fast) ease,color var(--sequence-motion-fast) ease,border-color var(--sequence-motion-fast) ease; }
.sequence-ux .sidebar .nav-item.active { box-shadow:none; }
.nav-current-indicator { position:absolute; pointer-events:none; background:var(--prep-accent,var(--color-accent)); border-radius:3px; }
.sidebar .nav-current-indicator { left:0; top:10px; bottom:10px; width:3px; view-transition-name:sequence-nav-cursor; }
.mobile-bottom-nav .nav-current-indicator { display:none; }
.sequence-ux .nav-item.is-pending { color:var(--prep-text); background:var(--prep-surface); border-color:var(--prep-line); }
.sequence-route-progress { display:none; position:fixed; top:0; left:0; right:0; height:2px; z-index:10001; pointer-events:none; overflow:hidden; }
html[data-sequence-navigating] .sequence-route-progress { display:block; }
.sequence-route-progress:after { content:''; display:block; height:100%; width:35%; background:var(--prep-accent,var(--color-accent)); animation:sequence-route-pending 1000ms var(--sequence-ease) infinite; }
@keyframes sequence-route-pending { from { transform:translateX(-110%); } to { transform:translateX(300%); } }
.sequence-ux #globalPageLoader { display:none !important; }
.player-tools-sheet { width:calc(100% - 24px); max-width:480px; max-height:calc(100dvh - 130px); margin:auto auto calc(96px + env(safe-area-inset-bottom,0px)); padding:20px; overflow:auto; color:var(--prep-text,var(--color-text-primary)); background:var(--prep-surface,var(--color-surface)); border:1px solid var(--prep-line,var(--color-border)); border-radius:20px; box-shadow:0 16px 48px #0003; transition:opacity 160ms ease,transform 180ms var(--sequence-ease),display 180ms allow-discrete,overlay 180ms allow-discrete; }
.player-tools-sheet:not([open]) { opacity:0; transform:translateY(12px); }
.player-tools-sheet::backdrop { background:#0007; transition:background-color 160ms ease,display 180ms allow-discrete,overlay 180ms allow-discrete; }
.player-tools-header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; }
.player-tools-header h2 { margin:0; color:inherit; font:500 28px/1.2 Georgia,'Times New Roman',serif; letter-spacing:-.7px; }
.player-tools-close { display:grid; place-items:center; width:44px; height:44px; padding:0; color:var(--prep-muted); background:transparent; border:1px solid var(--prep-line); border-radius:10px; cursor:pointer; }
.player-tools-sheet nav { display:grid; gap:6px; }
.player-tools-link { display:flex; align-items:center; gap:14px; min-height:76px; padding:12px; color:var(--prep-text); border:1px solid transparent; border-radius:12px; text-decoration:none; transition:background var(--sequence-motion-fast) ease; }
.player-tools-link:hover,.player-tools-link[aria-current='page'] { background:var(--prep-bg); border-color:var(--prep-line); }
.player-tools-link[aria-current='page']>.home-icon { color:var(--prep-accent); }
.player-tools-icon { display:grid; place-items:center; width:42px; height:42px; flex-shrink:0; color:var(--prep-accent); border:1px solid var(--prep-line); border-radius:10px; }
.player-tools-link>span:nth-child(2) { flex:1; min-width:0; }.player-tools-link strong { display:block; font-size:15px; font-weight:600; line-height:1.5; }.player-tools-link small { display:block; margin-top:3px; color:var(--prep-muted); font-size:12px; line-height:1.5; }
.player-tools-sheet :is(a,button):focus-visible { outline:2px solid var(--prep-accent); outline-offset:2px; }
body.mobile-tools-open { overflow:hidden; }
@starting-style { .player-tools-sheet[open] { opacity:0; transform:translateY(12px); }.player-tools-sheet[open]::backdrop { background:transparent; } }
.file-preview-dialog { transition:opacity 160ms ease,transform 180ms var(--sequence-ease),display 180ms allow-discrete,overlay 180ms allow-discrete; }
.file-preview-dialog:not([open]) { opacity:0; transform:scale(.99); }
.file-preview-dialog::backdrop { transition:background-color 160ms ease,display 180ms allow-discrete,overlay 180ms allow-discrete; }
@starting-style { .file-preview-dialog[open] { opacity:0; transform:scale(.99); }.file-preview-dialog[open]::backdrop { background-color:transparent; } }
@media(max-width:1024px) {
    .sidebar,.sidebar .nav-current-indicator { view-transition-name:none; }
    .mobile-bottom-nav-item { position:relative; }
    .sequence-ux .app-container .adaptive-mobile-nav .nav-current-indicator { display:block; position:absolute; margin:0; width:16px; height:2px; left:calc(50% - 8px); top:3px; view-transition-name:sequence-nav-cursor; }
    .sequence-ux .app-container .mobile-bottom-nav.adaptive-mobile-nav { display:flex; width:calc(100% - 32px); max-width:420px; left:16px; right:16px; bottom:calc(12px + env(safe-area-inset-bottom,0px)); height:74px; margin:auto; padding:6px; gap:0; border:1px solid #ffffff30; border-radius:23px; background:var(--prep-surface); box-shadow:0 8px 28px #0003,inset 0 1px 0 #ffffff24; will-change:auto; transition:height 180ms var(--sequence-ease),max-width 220ms var(--sequence-ease),border-radius 180ms var(--sequence-ease); }
    .sequence-ux[data-theme='light'] .app-container .mobile-bottom-nav.adaptive-mobile-nav { border-color:#ffffffa6; box-shadow:0 8px 28px #1e1c181f,inset 0 1px 0 #ffffffd9; }
    @supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
        .sequence-ux .app-container .mobile-bottom-nav.adaptive-mobile-nav { background:linear-gradient(135deg,#ffffff0a,transparent 55%),#121212d6; -webkit-backdrop-filter:blur(22px) saturate(160%); backdrop-filter:blur(22px) saturate(160%); }
        .sequence-ux[data-theme='light'] .app-container .mobile-bottom-nav.adaptive-mobile-nav { background:linear-gradient(135deg,#ffffff91,transparent 55%),#f5f4f1c9; }
    }
    .sequence-ux .app-container .mobile-bottom-nav.adaptive-mobile-nav .mobile-bottom-nav-item,
    .sequence-ux .app-container .mobile-bottom-nav.adaptive-mobile-nav:not(.is-expanded) .mobile-bottom-nav-item:not(.active) { display:flex; flex:1; flex-direction:column; align-items:center; justify-content:center; gap:5px; width:auto; min-width:44px; max-width:none; height:60px; margin:0; padding:8px 3px; opacity:1; transform:none; pointer-events:auto; box-shadow:none; font-family:inherit; border:0; border-radius:13px; cursor:pointer; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
    .sequence-ux .app-container .mobile-bottom-nav.adaptive-mobile-nav .mobile-bottom-nav-item>.home-icon { width:22px; height:22px; }
    .sequence-ux .app-container .mobile-bottom-nav.adaptive-mobile-nav .mobile-bottom-nav-item { min-height:44px; transition:height 180ms var(--sequence-ease),gap 180ms var(--sequence-ease),background-color 120ms ease,color 120ms ease; }
    .sequence-ux .app-container .mobile-bottom-nav.adaptive-mobile-nav .mobile-bottom-nav-item>span:not(.nav-current-indicator) { display:block; position:static; width:auto; height:auto; margin:0; max-height:14px; opacity:1; overflow:hidden; clip:auto; font-size:10px; line-height:1.4; font-weight:550; white-space:nowrap; transition:max-height 180ms var(--sequence-ease),opacity 120ms ease; }
    .sequence-ux .app-container .mobile-bottom-nav.adaptive-mobile-nav .mobile-bottom-nav-item.active { color:var(--prep-accent); background:color-mix(in srgb,var(--prep-accent) 12%,transparent); }
    .sequence-ux .app-container .mobile-bottom-nav.adaptive-mobile-nav .mobile-bottom-nav-item:not(.active) { color:#dfddd7; }
    .sequence-ux[data-theme='light'] .app-container .mobile-bottom-nav.adaptive-mobile-nav .mobile-bottom-nav-item:not(.active) { color:#45413a; }
    .sequence-ux .app-container .mobile-bottom-nav.adaptive-mobile-nav.is-compact { max-width:300px; height:56px; border-radius:28px; }
    .sequence-ux .app-container .mobile-bottom-nav.adaptive-mobile-nav.is-compact .mobile-bottom-nav-item,
    .sequence-ux .app-container .mobile-bottom-nav.adaptive-mobile-nav.is-compact:not(.is-expanded) .mobile-bottom-nav-item:not(.active) { height:44px; padding:5px 3px; gap:0; border-radius:22px; }
    .sequence-ux .app-container .mobile-bottom-nav.adaptive-mobile-nav.is-compact .mobile-bottom-nav-item>span:not(.nav-current-indicator) { max-height:0; opacity:0; }
    .sequence-ux .app-container .mobile-bottom-nav.adaptive-mobile-nav .mobile-bottom-nav-item:focus-visible { outline:2px solid var(--prep-accent); outline-offset:-2px; }
    .sequence-ux .app-container .mobile-bottom-nav.adaptive-mobile-nav .mobile-bottom-nav-item:active { background:var(--prep-bg); transform:none; }
}
@media(prefers-reduced-motion:reduce) {
    @view-transition { navigation:none; }
    ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*) { animation:none; }
    .sequence-route-progress:after { animation:none; width:100%; opacity:.65; }
    .file-preview-dialog { transition:none; transform:none; }
    .file-preview-dialog::backdrop { transition:none; }
    .player-tools-sheet,.player-tools-sheet::backdrop { transition:none; transform:none; }
    .sequence-ux .app-container .mobile-bottom-nav.adaptive-mobile-nav,
    .sequence-ux .app-container .mobile-bottom-nav.adaptive-mobile-nav .mobile-bottom-nav-item,
    .sequence-ux .app-container .mobile-bottom-nav.adaptive-mobile-nav .mobile-bottom-nav-item>span:not(.nav-current-indicator) { transition:none; }
}
@media(prefers-reduced-transparency:reduce) {
    .sequence-ux[data-theme] .app-container .mobile-bottom-nav.adaptive-mobile-nav { background:var(--prep-surface); -webkit-backdrop-filter:none; backdrop-filter:none; }
}
