/* Glass is limited to app chrome. Protocol paper, printed output and ink are untouched. */
.desktop-glass-gallery { position: relative; isolation: isolate; }
.desktop-glass-gallery::before { content: ''; position: fixed; z-index: -1; pointer-events: none; inset: 0; background: radial-gradient(ellipse at 8% 12%, #c8dcf046, transparent 48%), radial-gradient(ellipse at 96% 80%, #e1e9f466, transparent 55%); }
.desktop-glass-gallery .carousel-project-card { background: linear-gradient(145deg, #ffffffef, #f9fbffdc); border-color: #d5e1ee; box-shadow: inset 0 1px #fff, 0 12px 34px #263e5710; transition: transform .32s cubic-bezier(.2,.85,.2,1.1), box-shadow .32s, border-color .25s; }
.desktop-glass-gallery .carousel-project-card:hover { transform: translateY(-5px); border-color: #a4bddc; box-shadow: inset 0 1px #fff, 0 18px 42px #263e571a; }
.desktop-glass-gallery .is-current .carousel-project-card { border-color: #a9c3e3; box-shadow: inset 0 1px #fff, 0 12px 36px #23496f16; }
.desktop-glass-shell .hub-module { transition: transform .25s cubic-bezier(.2,.85,.2,1.1), box-shadow .25s, border-color .25s; }
.desktop-glass-shell .hub-module:hover { transform: translateY(-3px); }
.glass-sidebar-heading,.glass-edge-reveal { display: none; }
.glass-project-dock { display: flex; align-items: center; align-self: center; max-width: 100%; gap: 15px; margin: 6px 0 30px; padding: 1px 17px; border: 1px solid #ffffffed; border-radius: 24px; background: linear-gradient(160deg, #ffffffd9, #e9f0f8b3); box-shadow: inset 0 1px #fff, 0 9px 30px #2b4c7110, 0 0 0 1px #cad7e280; -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); }
.glass-dock-heading { font-size: 8px; font-weight: 700; letter-spacing: 1px; color: #738ba5; writing-mode: vertical-rl; transform: rotate(180deg); }
.glass-dock-track { display: flex; align-items: flex-end; gap: 3px; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding: 25px 7px 12px; }
.glass-dock-slot { display: flex; flex-direction: column; align-items: center; width: 77px; flex: 0 0 77px; gap: 7px; }
.glass-dock-project { display: block; position: relative; width: 54px; height: 54px; padding: 0; border-radius: 15px; border: 1px solid #c8d9eb; color: #2c5b8a; background: linear-gradient(145deg, #fff, #e7eff9); box-shadow: inset 0 1px #fff, 0 3px 5px #234a7020; transform: translateY(var(--dock-rise, 0)) scale(var(--dock-scale, 1)); transform-origin: 50% 100%; transition: transform .22s cubic-bezier(.2,.85,.2,1.1), box-shadow .2s; }
.glass-dock-project:hover { background: linear-gradient(145deg, #fff, #edf4fc); border-color: #91b4dc; }
.glass-dock-project.is-current { border-color: #7eabdf; color: #145db2; background: linear-gradient(145deg, #f4faff, #dceafb); }
.glass-dock-symbol { display: grid; place-items: center; height: 100%; padding: 6px; font-size: 18px; letter-spacing: -.6px; font-weight: 650; }
.glass-dock-symbol img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 8px; }
.glass-dock-indicator { position: absolute; width: 4px; height: 4px; left: calc(50% - 2px); bottom: -9px; background: transparent; border-radius: 50%; }
.glass-dock-project.is-current .glass-dock-indicator { background: #4c7cba; }
.glass-dock-name { display: block; width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; color: #6d839b; font-size: 9px; padding-top: 4px; }
@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
  .desktop-glass-shell { grid-template-columns: 93px minmax(0,1fr); }
  .desktop-glass-shell.glass-sidebar-pinned { grid-template-columns: 274px minmax(0,1fr); }
  .desktop-glass-shell > .sidebar { z-index: 45; inset: 12px auto 12px 12px; width: 70px; padding: 13px 10px 16px; border: 1px solid #ffffffef; border-radius: 21px; background: #f5f8fcf0; box-shadow: inset 0 1px #fff, 0 8px 28px #253e5910, 0 0 0 1px #d3dfeb85; overflow-x: hidden; transition: width .36s cubic-bezier(.2,.7,.25,1), box-shadow .3s ease; -webkit-backdrop-filter: blur(26px) saturate(1.15); backdrop-filter: blur(26px) saturate(1.15); }
  .desktop-glass-shell.glass-sidebar-open > .sidebar { width: 250px; box-shadow: inset 0 1px #fff, 4px 14px 44px #253e5920, 0 0 0 1px #d3dfeb85; }
  .desktop-glass-shell .glass-sidebar-heading { display: flex; align-items: center; width: 100%; height: 37px; flex: 0 0 37px; gap: 6px; margin-bottom: 9px; }
  .desktop-glass-shell .glass-rail-brand { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 37px; }
  .desktop-glass-shell .glass-rail-brand img { display: block; width: 37px; height: 37px; object-fit: contain; mix-blend-mode: multiply; }
  .desktop-glass-shell .glass-sidebar-pin { width: 28px; height: 28px; flex: 0 0 28px; padding: 6px; margin-left: auto; background: #ffffffa8; color: #6a8099; border: 1px solid #d5e0ed; border-radius: 9px; }
  .desktop-glass-shell .glass-sidebar-pin svg { display: block; width: 14px; height: 14px; }
  .desktop-glass-shell .glass-sidebar-pin[aria-pressed=true] { background: #e7f0fc; color: #2865ad; border-color: #a8c3e5; }
  .desktop-glass-shell .glass-edge-reveal { display: block; position: fixed; z-index: 44; left: 0; top: 0; bottom: 0; width: 13px; padding: 0; border: 0; background: transparent; border-radius: 0; }
  .desktop-glass-shell .glass-edge-reveal:focus-visible { outline-offset: -3px; background: #d9e7f8; }
  .desktop-glass-shell .sidebar nav { gap: 17px; }
  .desktop-glass-shell .sidebar nav button.active { border: 1px solid #c1d5ee; background: linear-gradient(135deg, #f6fbff, #e0edfc); box-shadow: inset 0 1px #fff, 0 2px 6px #294e7711; }
  .desktop-glass-shell .sidebar nav button:hover { background: #ffffffb8; }
  /* Keep the expanded content at its final width while the surface reveals it.
     Text never wraps against the animated rail width and icons keep their rows. */
  .desktop-glass-shell .sidebar > .brand { display: flex; width: 166px; flex: 0 0 98px; min-height: 98px; align-self: flex-start; margin: 3px 0 17px 58px; transition: opacity .18s ease; }
  .desktop-glass-shell .sidebar .back-projects { display: flex; width: 236px; height: 38px; min-height: 38px; flex: 0 0 38px; margin: 0 0 12px; padding: 6px 8px; white-space: nowrap; }
  .desktop-glass-shell .sidebar .back-projects::before { content: none; }
  .desktop-glass-shell .sidebar .project-side { width: 236px; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 5px 9px; padding: 13px 10px; margin-bottom: 21px; }
  .desktop-glass-shell .sidebar .project-side :is(strong,small) { display: block; }
  .desktop-glass-shell .sidebar nav { width: 236px; gap: 19px; }
  .desktop-glass-shell .sidebar nav .workbench-nav-heading { display: block; }
  .desktop-glass-shell .sidebar nav button { width: 236px; min-height: 36px; justify-content: flex-start; gap: 10px; padding: 8px 10px; white-space: normal; }
  .desktop-glass-shell .sidebar nav .im-blick-nav-module { min-height: 53px; }
  .desktop-glass-shell .sidebar nav button > span:not(.workbench-nav-icon):not(.profile-avatar) { transition: opacity .18s ease; }
  .desktop-glass-shell .sidebar .side-foot { display: block; width: 236px; }
  .desktop-glass-shell:not(.glass-sidebar-open) .sidebar > .brand { opacity: 0; visibility: hidden; pointer-events: none; }
  .desktop-glass-shell .glass-sidebar-pin { position: absolute; left: 11px; top: 57px; margin: 0; width: 46px; height: 27px; padding: 5px 15px; transition: background .18s ease, border-color .18s ease; }
  .desktop-glass-shell:not(.glass-sidebar-open) .sidebar .back-projects { font-size: 0; }
  .desktop-glass-shell:not(.glass-sidebar-open) .sidebar .back-projects::before { content: '‹'; font-size: 25px; line-height: 1; padding-left: 10px; }
  .desktop-glass-shell:not(.glass-sidebar-open) .sidebar .project-side :is(strong,small),
  .desktop-glass-shell:not(.glass-sidebar-open) .sidebar nav .workbench-nav-heading,
  .desktop-glass-shell:not(.glass-sidebar-open) .sidebar nav button > span:not(.workbench-nav-icon):not(.profile-avatar),
  .desktop-glass-shell:not(.glass-sidebar-open) .sidebar .side-foot { opacity: 0; visibility: hidden; pointer-events: none; }
  .desktop-glass-shell:not(.glass-sidebar-open) .sidebar nav .import-side { font-size: 0; }
  .desktop-glass-shell:not(.glass-sidebar-open) .sidebar nav .import-side::before { content: '+'; font-size: 22px; font-weight: 400; }
  .desktop-glass-shell.glass-sidebar-open .glass-rail-brand { visibility: hidden; }

}
@media (max-width: 760px) { .glass-project-dock { gap: 6px; padding: 1px 9px; border-radius: 19px; } .glass-dock-track { padding-left: 0; padding-right: 0; } .glass-dock-slot { width: 67px; flex-basis: 67px; } .glass-dock-name { width: 65px; } }
@media (prefers-reduced-motion: reduce) { .desktop-glass-gallery .carousel-project-card,.desktop-glass-shell .sidebar,.desktop-glass-shell .hub-module,.glass-dock-project { transition: none !important; transform: none !important; } }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { .desktop-glass-shell > .sidebar,.glass-project-dock { background: #f6f8fc; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: #bccddd; } .desktop-glass-gallery::before { display: none; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .desktop-glass-shell > .sidebar,.glass-project-dock { background: #f6f8fc; } }
@media print { .glass-project-dock,.glass-sidebar-heading,.glass-edge-reveal { display: none !important; } .desktop-glass-shell { display: block; } .desktop-glass-shell > .sidebar { display: none !important; } .desktop-glass-shell .hub-module,.desktop-glass-gallery .carousel-project-card { box-shadow: none; transform: none; } }
