/* Device-only navigation variants. Classic and Themed keep the theme artwork. */
/* Tint follows frame colours, independently of the content wallpaper.
   Literal defaults retain the previous readable glass in older CSS engines. */
:root{
  --nav-art-size:auto 100%;--nav-art-position:center bottom;--nav-art-repeat:no-repeat;--nav-art-blend:normal;
  --nav-solid:#f5f9f2;--nav-glass-solid:#e7efeb;--nav-glass-surface:#ffffff52;--nav-glass-low:#dcebd612;
  --nav-glass-ink:#172e25;
  --nav-glass-sheen:linear-gradient(180deg,#ffffff38 0%,#ffffff05 42%,#ffffff00 65%,var(--nav-glass-low) 100%);
  --nav-glass-active-top:#e7f6dd8f;--nav-glass-active-bottom:#c2dfae66;
  --nav-ink:#345b4a;--nav-active-ink:#164632;--nav-active-fill:#d3e9c3;--nav-active-top:#e7f6ddeb;--nav-active-bottom:#c2dfaebf;
  --nav-rim:#44695670;--nav-active-rim:#63874f33;--nav-shadow-deep:#173e393d;--nav-shadow-soft:#173e3926;--nav-inset:#58756b29;--nav-focus:#438866;
}
:root[data-kyoto-season="leather"]{--nav-art-size:384px 384px;--nav-art-position:left top;--nav-art-repeat:repeat;--nav-art-blend:soft-light}
:root[data-kyoto-season^="dong-son-"]{--nav-art-size:cover;--nav-art-position:center 68%;--nav-art-blend:soft-light}
@supports(color:color-mix(in srgb,#000,#fff)){
  :root[data-kyoto-season]{
    --nav-solid:color-mix(in srgb,var(--season-paper) 26%,#f7f9ff);
    --nav-glass-solid:var(--nav-solid);
    --nav-glass-surface:color-mix(in srgb,color-mix(in srgb,var(--season-paper) 10%,#fff) 32%,transparent);
    --nav-glass-low:color-mix(in srgb,var(--bar-active) 7%,transparent);
    --nav-glass-active-top:color-mix(in srgb,color-mix(in srgb,var(--bar-active) 56%,#fff) 56%,transparent);
    --nav-glass-active-bottom:color-mix(in srgb,var(--bar-active) 40%,transparent);
    --nav-ink:var(--bar-active-ink);--nav-active-ink:var(--bar-active-ink);
    --nav-glass-ink:color-mix(in srgb,var(--bar-active-ink) 70%,#000);
    --nav-active-fill:color-mix(in srgb,var(--bar-active) 84%,#fff);
    --nav-active-top:color-mix(in srgb,var(--bar-active) 52%,#fff);
    --nav-active-bottom:color-mix(in srgb,var(--bar-active) 88%,transparent);
    --nav-rim:color-mix(in srgb,var(--bar-active-ink) 44%,transparent);
    --nav-active-rim:color-mix(in srgb,var(--bar-active-ink) 22%,transparent);
    --nav-shadow-deep:color-mix(in srgb,var(--bar-active-ink) 24%,transparent);
    --nav-shadow-soft:color-mix(in srgb,var(--bar-active-ink) 15%,transparent);
    --nav-inset:color-mix(in srgb,var(--bar-active-ink) 16%,transparent);
    --nav-focus:var(--bar-active-ink);
  }
}
.navigation-style-settings{margin:0 0 24px}
.navigation-style-settings .settings-subtitle{margin:0 0 10px}
.navigation-style-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.navigation-style-options>button{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;min-height:110px;padding:10px 6px;border:1px solid #dce5d9;border-radius:18px;background:#fff;color:#345c49;text-align:center;line-height:1.35}
.navigation-style-options>button[aria-pressed="true"]{border-color:#438866;background:#eef7e6;box-shadow:inset 0 0 0 1px #438866}
.navigation-style-options strong{font-size:calc(12px * var(--font-scale,1))}
.navigation-style-options small{font-size:calc(10px * var(--font-scale,1));color:#5a7061}
.navigation-style-options>button:focus-visible{outline:3px solid #528b64;outline-offset:3px}
.navigation-style-settings>.caption{margin:10px 0 0;line-height:1.6}
.nav-style-preview{display:grid;place-items:end center;width:100%;height:38px;padding:4px;border-radius:10px;background:linear-gradient(135deg,#d1e6cf,#f0e2c5);overflow:hidden}
.nav-style-preview>span{display:flex;justify-content:space-around;align-items:center;gap:4px;width:100%;height:21px;padding:4px;background:var(--season-paper,#245c4c)}
.nav-style-preview i{width:8px;height:8px;border:1px solid var(--bar-muted,#d9efbd);border-radius:2px}
.nav-style-preview i:first-child{background:var(--bar-active,#d9efbd)}
.nav-style-preview-classic>span,.nav-style-preview-themed>span{background-color:var(--season-paper,#194f42);background-image:var(--season-bottom);background-size:var(--nav-art-size);background-position:var(--nav-art-position);background-repeat:var(--nav-art-repeat);background-blend-mode:var(--nav-art-blend)}
.nav-style-preview-themed>span{width:92%;height:23px;border:1px solid var(--season-edge,#357563);border-radius:999px;box-shadow:0 3px 7px #173e393d,inset 0 1px 0 #ffffff70}
.nav-style-preview-glass>span{width:92%;height:23px;border:1px solid #ffffffb3;border-radius:999px;background-color:var(--nav-glass-solid);background-image:var(--nav-glass-sheen);box-shadow:0 2px 5px #172d391a,0 0 0 1px #172d3914,inset 0 1px 1px #ffffffb3}
.nav-style-preview-glass i{border-color:var(--nav-glass-ink)}
.nav-style-preview-glass i:first-child{background:linear-gradient(180deg,var(--nav-glass-active-top),var(--nav-glass-active-bottom))}
.nav-style-preview-compact>span{width:85%;height:18px;border:1px solid var(--nav-rim);border-radius:999px;background:var(--nav-solid);box-shadow:0 2px 5px var(--nav-shadow-soft)}
.nav-style-preview-compact i{width:7px;height:7px;border-color:var(--nav-ink)}
.nav-style-preview-compact i:first-child{background:var(--nav-active-fill)}

/* Values live on each shell so Member's own type-size preference is inherited. */
html:is([data-navigation-style="glass"],[data-navigation-style="themed"]) :is(.workspace,.member-shell){--nav-pill-height:calc(64px + (var(--font-scale,1) - 1) * 30px)}
html[data-navigation-style="compact"] :is(.workspace,.member-shell){--nav-pill-height:calc(56px + (var(--font-scale,1) - 1) * 30px)}
html:is([data-navigation-style="glass"],[data-navigation-style="compact"],[data-navigation-style="themed"]) :is(.workspace,.member-shell){--nav-pill-bottom:max(8px,env(safe-area-inset-bottom,0px));--nav-pill-clearance:calc(var(--nav-pill-height) + var(--nav-pill-bottom) + 12px)}

/* A floating Member bar lets main fill the old footer row. */
html:is([data-navigation-style="glass"],[data-navigation-style="compact"],[data-navigation-style="themed"]) .member-shell{grid-template-rows:auto minmax(0,1fr);grid-template-areas:"member-header" "member-content"}
html:is([data-navigation-style="glass"],[data-navigation-style="compact"],[data-navigation-style="themed"]) .member-shell>.member-nav{grid-area:auto;position:absolute;left:max(10px,env(safe-area-inset-left,0px));right:max(10px,env(safe-area-inset-right,0px));bottom:var(--nav-pill-bottom);width:auto;max-width:640px;margin:0 auto;height:var(--nav-pill-height);padding:4px;gap:2px;border:1px solid #fff9;border-radius:999px;background:var(--nav-solid);background-image:none;box-shadow:0 7px 24px #143c2c24,inset 0 1px 0 #fff;z-index:20}
html:is([data-navigation-style="glass"],[data-navigation-style="compact"],[data-navigation-style="themed"]) .member-shell>main{padding-bottom:calc(var(--nav-pill-clearance) + 20px);scroll-padding-bottom:calc(var(--nav-pill-clearance) + 20px)}
html:is([data-navigation-style="glass"],[data-navigation-style="compact"],[data-navigation-style="themed"]) .member-shell:has(.member-order-dock)>main{padding-bottom:calc(var(--nav-pill-clearance) + 84px);scroll-padding-bottom:calc(var(--nav-pill-clearance) + 84px)}
html:is([data-navigation-style="glass"],[data-navigation-style="compact"],[data-navigation-style="themed"]) .member-shell>.member-order-dock{margin-bottom:var(--nav-pill-clearance)}
html:is([data-navigation-style="glass"],[data-navigation-style="compact"],[data-navigation-style="themed"]) .member-shell>.calendar-scroll-top{bottom:var(--nav-pill-clearance)!important}

/* Floating controls reveal main behind them; measured padding keeps the last
   court and finish controls reachable even when draft actions wrap. */
@media(max-width:700px){
  html.acalon-frame:is([data-navigation-style="glass"],[data-navigation-style="compact"],[data-navigation-style="themed"]) .workspace{position:relative;padding-bottom:0}
  html.acalon-frame:is([data-navigation-style="glass"],[data-navigation-style="compact"],[data-navigation-style="themed"]) .workspace>.mobile-nav{position:absolute;left:max(10px,env(safe-area-inset-left,0px));right:max(10px,env(safe-area-inset-right,0px));bottom:var(--nav-pill-bottom);width:auto;height:var(--nav-pill-height);margin:0;padding:4px;gap:2px;border:1px solid #fff9;border-radius:999px;background:var(--nav-solid);background-image:none;box-shadow:0 7px 24px #143c2c24,inset 0 1px 0 #fff;z-index:20}
  html.acalon-frame:is([data-navigation-style="glass"],[data-navigation-style="compact"],[data-navigation-style="themed"]) .workspace>main{padding-bottom:calc(var(--nav-pill-clearance) + 20px);scroll-padding-bottom:calc(var(--nav-pill-clearance) + 20px)}
  html.acalon-frame:is([data-navigation-style="glass"],[data-navigation-style="compact"],[data-navigation-style="themed"]) .workspace>.action-dock.dock-pill{position:absolute;right:12px;left:auto;bottom:var(--nav-pill-clearance);margin:0;max-width:calc(100% - 24px);z-index:21}
  html.acalon-frame[data-navigation-style]:is([data-navigation-style="glass"],[data-navigation-style="compact"],[data-navigation-style="themed"]) .workspace:has(.action-dock)>main{padding-bottom:calc(var(--nav-pill-clearance) + var(--nav-action-height,90px) + 20px);scroll-padding-bottom:calc(var(--nav-pill-clearance) + var(--nav-action-height,90px) + 20px)}
  html.acalon-frame:is([data-navigation-style="glass"],[data-navigation-style="compact"],[data-navigation-style="themed"]) .workspace>.calendar-scroll-top{bottom:var(--nav-pill-clearance)!important}
}
html:is([data-navigation-style="glass"],[data-navigation-style="compact"],[data-navigation-style="themed"]) :is(.workspace>.mobile-nav,.member-shell>.member-nav) :is(button,.btn){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:44px;height:100%;padding:2px;border:0;border-radius:999px;background:transparent;color:var(--nav-ink);font-size:calc(10px * var(--font-scale,1));font-weight:650;line-height:1.15;white-space:normal;box-shadow:none}
html:is([data-navigation-style="glass"],[data-navigation-style="compact"],[data-navigation-style="themed"]) :is(.workspace>.mobile-nav,.member-shell>.member-nav) button>span{display:block;max-width:100%;text-align:center;overflow-wrap:anywhere}
html:is([data-navigation-style="glass"],[data-navigation-style="compact"],[data-navigation-style="themed"]) :is(.workspace>.mobile-nav,.member-shell>.member-nav) button>svg{width:23px;height:23px;flex:none}
html:is([data-navigation-style="glass"],[data-navigation-style="compact"],[data-navigation-style="themed"]) :is(.workspace>.mobile-nav,.member-shell>.member-nav) button.active{background:var(--nav-active-fill);color:var(--nav-active-ink);box-shadow:inset 0 1px 1px #fff9,0 1px 4px var(--nav-shadow-soft)}
html:is([data-navigation-style="glass"],[data-navigation-style="compact"],[data-navigation-style="themed"]) :is(.workspace>.mobile-nav,.member-shell>.member-nav) button:focus-visible{outline:3px solid var(--nav-focus);outline-offset:1px}
html[data-navigation-style="compact"] :is(.workspace>.mobile-nav,.member-shell>.member-nav) :is(button,.btn){gap:2px;font-size:calc(9px * var(--font-scale,1));padding:2px}
html[data-navigation-style="compact"] :is(.workspace>.mobile-nav,.member-shell>.member-nav) button>svg{width:20px;height:20px}

/* A darker rim and lifted shadow keep floating controls distinct over white
   panels as well as artwork. Highlights stay behind all interactive content. */
html[data-navigation-style]:is([data-navigation-style="glass"],[data-navigation-style="compact"],[data-navigation-style="themed"]) :is(.workspace>.mobile-nav,.member-shell>.member-nav){
  isolation:isolate;border-color:var(--nav-rim);background-size:100% 100%;background-position:center;background-repeat:no-repeat;background-blend-mode:normal;
  box-shadow:0 12px 28px var(--nav-shadow-deep),0 3px 8px var(--nav-shadow-soft),0 0 0 1px #ffffffc7,inset 0 1px 1px #fffffffa,inset 0 -1px 1px var(--nav-inset);
}
/* A thin, mostly neutral veil lets the real page colour pass through. Light
   stays at the rim instead of forming an opaque grey bevel across the bar. */
html[data-navigation-style="glass"][data-navigation-style] :is(.workspace>.mobile-nav,.member-shell>.member-nav){
  border-color:#ffffff94;background-color:var(--nav-glass-solid);background-image:var(--nav-glass-sheen);
  box-shadow:0 8px 24px #172d391f,0 2px 6px #172d3912,0 0 0 1px #172d3914,inset 0 1px 1px #ffffffc2,inset 0 -1px 1px #ffffff38;
}
html[data-navigation-style="glass"][data-navigation-style] :is(.workspace>.mobile-nav,.member-shell>.member-nav)::before{
  content:"";position:absolute;inset:1px;z-index:0;border:1px solid #ffffff4d;border-radius:inherit;pointer-events:none;
  background:linear-gradient(115deg,#ffffff24 0%,#ffffff00 28%,#ffffff00 75%,#ffffff12 100%);
  box-shadow:inset 0 1px 1px #ffffff70;
}
html[data-navigation-style]:is([data-navigation-style="glass"],[data-navigation-style="compact"],[data-navigation-style="themed"]) :is(.workspace>.mobile-nav,.member-shell>.member-nav) button{position:relative;z-index:1}
html[data-navigation-style="glass"][data-navigation-style] :is(.workspace>.mobile-nav,.member-shell>.member-nav) button.active{
  background:linear-gradient(180deg,var(--nav-glass-active-top),var(--nav-glass-active-bottom));color:var(--nav-active-ink);
  box-shadow:0 1px 4px #172d3914,inset 0 0 0 1px #ffffff8c,inset 0 1px 1px #ffffffb3;
}
html[data-navigation-style="glass"][data-navigation-style] :is(.workspace>.mobile-nav,.member-shell>.member-nav) button{color:var(--nav-glass-ink);font-weight:700;text-shadow:0 1px 2px #ffffffcc,0 0 1px #ffffffb3}
html[data-navigation-style="glass"][data-navigation-style] :is(.workspace>.mobile-nav,.member-shell>.member-nav) button>svg{filter:drop-shadow(0 1px 1px #ffffff80)}

/* Themed uses the same opaque footer artwork and ink as Classic, in a floating
   pill. Keep artwork paint separate from the Glass/Compact surface resets. */
html[data-navigation-style="themed"][data-navigation-style] :is(.workspace>.mobile-nav,.member-shell>.member-nav){
  background-color:var(--season-paper,#194f42);background-image:var(--season-bottom);
  background-size:var(--nav-art-size);background-position:var(--nav-art-position);background-repeat:var(--nav-art-repeat);background-blend-mode:var(--nav-art-blend);
  border-color:var(--season-edge,#357563);-webkit-backdrop-filter:none;backdrop-filter:none;
}
html[data-navigation-style="themed"][data-navigation-style] :is(.workspace>.mobile-nav,.member-shell>.member-nav) button{color:var(--bar-muted,#e2efdf)}
html[data-navigation-style="themed"][data-navigation-style] :is(.workspace>.mobile-nav,.member-shell>.member-nav) button.active{background:var(--bar-active,#daf4a6);color:var(--bar-active-ink,#163a2e)}
html[data-navigation-style="themed"][data-navigation-style] :is(.workspace>.mobile-nav,.member-shell>.member-nav) button:focus-visible{outline-color:var(--bar-ink,#f2f7ed)}

/* Only this small surface blurs; the header and content remain crisp. */
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  html[data-navigation-style="glass"][data-navigation-style] :is(.workspace>.mobile-nav,.member-shell>.member-nav){background-color:var(--nav-glass-surface);-webkit-backdrop-filter:blur(12px) saturate(1.4);backdrop-filter:blur(12px) saturate(1.4)}
  .nav-style-preview-glass>span{background-color:var(--nav-glass-surface);-webkit-backdrop-filter:blur(6px) saturate(1.4);backdrop-filter:blur(6px) saturate(1.4)}
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){
  html[data-navigation-style="glass"][data-navigation-style] :is(.workspace>.mobile-nav,.member-shell>.member-nav){background:var(--nav-glass-solid);border-color:var(--nav-ink);-webkit-backdrop-filter:none;backdrop-filter:none}
  html[data-navigation-style="glass"][data-navigation-style] :is(.workspace>.mobile-nav,.member-shell>.member-nav)::before{display:none}
  html[data-navigation-style="glass"][data-navigation-style] :is(.workspace>.mobile-nav,.member-shell>.member-nav) button.active{background:var(--nav-active-fill);box-shadow:inset 0 0 0 1px var(--nav-active-rim)}
  .nav-style-preview-glass>span{background:var(--nav-glass-solid);border-color:var(--nav-ink);-webkit-backdrop-filter:none;backdrop-filter:none}
  .nav-style-preview-glass i:first-child{background:var(--nav-active-fill)}
}
