@layer neutral-platform, neutral-buttons, blurred-navigation;
/* Shared, accent-tinted glass application chrome. Apps own layout; this file owns the
 * reusable controls and their accessible interaction states. */
:root,
.theme-scope {
  --ui-surface: var(--shell-surface, #1c2128);
  --ui-ink: var(--shell-surface-ink, #f0f6fc);
  --ui-muted-ink: color-mix(in srgb, var(--ui-ink) 64%, var(--ui-surface));
  --ui-highlight: color-mix(in srgb, var(--ui-surface), #fff 12%);
  --ui-light: color-mix(in srgb, var(--ui-surface), #fff 8%);
  --ui-raised: color-mix(in srgb, var(--ui-surface), #fff 5%);
  --ui-hover: color-mix(in srgb, var(--ui-surface), var(--ui-ink) 11%);
  --ui-sunken: color-mix(in srgb, var(--ui-surface), #000 18%);
  --ui-dark: color-mix(in srgb, var(--ui-surface), #000 32%);
  --ui-border: color-mix(in srgb, var(--ui-ink) 14%, transparent);
  --ui-grid: color-mix(in srgb, var(--ui-ink) 8%, transparent);
  --ui-edge-highlight: transparent;
  --ui-edge-shadow: transparent;
  --ui-accent: var(--shell-accent, #829fff);
  --ui-accent-mid: var(--shell-accent-mid, #47578a);
  --ui-accent-mid-ink: var(--shell-accent-ink, #f5f5f5);
  --ui-accent-dark: var(--shell-accent-dark, #354064);
  --ui-accent-dark-ink: var(--shell-accent-dark-ink, #f5f5f5);
  --ui-accent-strong: var(--shell-accent-strong, #5f74b9);
  --ui-danger: color-mix(in srgb, var(--ui-surface), #cf5c5c 30%);
  --ui-danger-border: color-mix(in srgb, var(--ui-border), #cf5c5c 55%);
  --ui-danger-ink: var(--ui-ink);
  --ui-field: var(--shell-field, #161b22);
  --ui-field-ink: var(--shell-field-ink, #f0f6fc);
  --ui-field-muted: color-mix(in srgb, var(--ui-field-ink) 58%, var(--ui-field));
}

.chrome-window {
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: min(var(--shell-radius, 8px), 12px);
  background: var(--ui-surface) !important;
  color: var(--ui-ink);
  box-shadow: none !important;
  font-family: var(--shell-font, system-ui, sans-serif);
}

.chrome-titlebar {
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin: 0 !important;
  padding: .3rem .55rem;
  border-bottom: 1px solid var(--ui-border);
  border-radius: min(var(--shell-radius, 8px), 7px) min(var(--shell-radius, 8px), 7px) 0 0;
  background: var(--ui-surface) !important;
  color: var(--ui-ink);
  box-shadow: none !important;
}

.chrome-titlebar-icon { width: 1rem; height: 1rem; flex: 0 0 auto; color: var(--ui-ink); }
.chrome-titlebar-icon::after { content: ""; display: block; width: .65rem; height: .65rem; margin: .15rem; border: 1px solid currentColor; border-radius: 2px; }
.chrome-titlebar-icon.contextual-titlebar-icon::after { content: attr(data-context-icon) !important; width: auto; height: auto; margin: 0; border: 0; color: inherit; line-height: 1; }
.chrome-titlebar > .contextual-titlebar-icon + :is(h1, h2, h3) { margin-left: -.25rem; }
.widget-heading > .contextual-titlebar-icon { margin-right: .35rem; }

.chrome-body { background: var(--ui-surface); color: var(--ui-ink); }

:is(
  .chrome-button,
  #root #app-container button:not(.theme-color-swatch):not(.chrome-toolbar-button):not(.chrome-menu-button):not(.chrome-menu-item):not(.hertz-tab):not(.hertz-object-tab):not(.profile-tab):not(.aero-tab),
  #root .shell-confirm-actions button, .shell-entry-card button,
  #root :is(#shell-session-actions,#shell-profile-actions,#shell-profile-owner-actions) button,
  #root :is(.shell-rail-mobile-toggle,#search-toggle,#shell-profile-mode-button)
) {
  appearance: none !important;
  border: 1px solid var(--chrome-button-border, var(--ui-border)) !important;
  border-radius: var(--chrome-control-radius, min(var(--shell-radius, 8px), 6px)) !important;
  background: var(--ui-raised) !important;
  color: var(--ui-ink) !important;
  box-shadow: none !important;
  font-family: var(--shell-font, system-ui, sans-serif) !important;
  transition: var(--chrome-control-transition, background .16s ease, border-color .16s ease, color .16s ease) !important;
  cursor: var(--chrome-control-cursor, pointer) !important;
}

:is(.chrome-button, #root #app-container button:not(.theme-color-swatch):not(.chrome-toolbar-button):not(.chrome-menu-button):not(.chrome-menu-item):not(.hertz-tab):not(.hertz-object-tab):not(.profile-tab):not(.aero-tab), #root .shell-confirm-actions button, .shell-entry-card button,
  #root :is(#shell-session-actions,#shell-profile-actions,#shell-profile-owner-actions) button,
  #root :is(.shell-rail-mobile-toggle,#search-toggle,#shell-profile-mode-button)):not(:disabled):hover {
  border-color: var(--ui-accent-strong) !important;
  background: var(--ui-hover) !important;
}
:is(.chrome-button, #root #app-container button:not(.theme-color-swatch):not(.chrome-toolbar-button):not(.chrome-menu-button):not(.chrome-menu-item):not(.hertz-tab):not(.hertz-object-tab):not(.profile-tab):not(.aero-tab), #root .shell-confirm-actions button, .shell-entry-card button,
  #root :is(#shell-session-actions,#shell-profile-actions,#shell-profile-owner-actions) button,
  #root :is(.shell-rail-mobile-toggle,#search-toggle,#shell-profile-mode-button)):not(:disabled):active { background: var(--ui-sunken) !important; }
:is(.chrome-button, #root #app-container button:not(.theme-color-swatch):not(.chrome-toolbar-button):not(.chrome-menu-button):not(.chrome-menu-item):not(.hertz-tab):not(.hertz-object-tab):not(.profile-tab):not(.aero-tab), #root .shell-confirm-actions button, .shell-entry-card button,
  #root :is(#shell-session-actions,#shell-profile-actions,#shell-profile-owner-actions) button,
  #root :is(.shell-rail-mobile-toggle,#search-toggle,#shell-profile-mode-button)):disabled { cursor: var(--chrome-control-cursor, default) !important; opacity: var(--chrome-control-disabled-opacity, .5) !important; }
:is(.chrome-button, #root #app-container button:not(.theme-color-swatch):not(.chrome-toolbar-button):not(.chrome-menu-button):not(.chrome-menu-item):not(.hertz-tab):not(.hertz-object-tab):not(.profile-tab):not(.aero-tab), #root .shell-confirm-actions button, .shell-entry-card button,
  #root :is(#shell-session-actions,#shell-profile-actions,#shell-profile-owner-actions) button,
  #root :is(.shell-rail-mobile-toggle,#search-toggle,#shell-profile-mode-button)):focus-visible,
.chrome-field:focus-visible { outline: 2px solid var(--ui-accent) !important; outline-offset: 2px; }

:is(.chrome-button-primary, #root #app-container :is(.calendar-primary-button, .tasks-primary-button, .hertz-btn-primary), #root .shell-confirm-actions .primary) { border-color: var(--ui-accent-strong) !important; background: var(--ui-accent-dark) !important; color: var(--ui-accent-dark-ink) !important; }
:is(.chrome-button-primary, #root #app-container :is(.calendar-primary-button, .tasks-primary-button, .hertz-btn-primary), #root .shell-confirm-actions .primary):not(:disabled):hover { background: var(--ui-accent-mid) !important; }
:is(.chrome-button-danger, #root #app-container :is(.calendar-event-item-btn-delete, .tasks-danger-button, .hertz-btn-danger, .images-delete, .posts-delete-btn, .luck-item-remove, .notepad-modal-danger, .task-remove-btn, .tasks-board-remove-btn, .widget-gallery-remove, .danger), #root .shell-confirm-actions .danger) { border-color: var(--ui-danger-border) !important; background: var(--ui-danger) !important; color: var(--ui-danger-ink) !important; }

#root #app-container .chrome-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.25rem;
  margin: 0;
  padding: .3rem .45rem;
  border: 0;
  border-bottom: 1px solid var(--ui-border);
  background: var(--ui-raised) !important;
  color: var(--ui-ink);
  box-shadow: none !important;
  font: 12px/1.2 var(--shell-font, system-ui, sans-serif);
}

:is(.chrome-menubar, #root #app-container .chrome-menubar) {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.25rem;
  margin: 0;
  padding: .3rem .45rem;
  border: 0;
  border-bottom: 1px solid var(--ui-border);
  background: var(--ui-raised) !important;
  color: var(--ui-ink);
  box-shadow: none !important;
  font: 12px/1.2 var(--shell-font, system-ui, sans-serif);
}

#root #app-container .chrome-toolbar-button,
:is(.chrome-menu-button, #root #app-container .chrome-menu-button),
:is(.chrome-menu-item, #root #app-container .chrome-menu-item) {
  appearance: none !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: var(--ui-ink) !important;
  box-shadow: none !important;
  font: inherit !important;
  cursor: pointer !important;
}
#root #app-container .chrome-toolbar-button { min-height: 1.72rem; padding: .24rem .68rem !important; }
:is(.chrome-menu, #root #app-container .chrome-menu) { position: relative; }
:is(.chrome-menu-button, #root #app-container .chrome-menu-button) { height: 100%; padding: 0 .62rem !important; }
:is(.chrome-menu-item, #root #app-container .chrome-menu-item) { display: block; width: 100%; min-height: 1.75rem; padding: .3rem .7rem !important; text-align: left !important; }
:is(.chrome-menu, #root #app-container .chrome-menu):hover > .chrome-menu-button,
:is(.chrome-menu, #root #app-container .chrome-menu):focus-within > .chrome-menu-button,
:is(.chrome-menu-item, #root #app-container .chrome-menu-item):not(:disabled):hover,
:is(.chrome-menu-item, #root #app-container .chrome-menu-item):not(:disabled):focus-visible,
#root #app-container .chrome-toolbar-button:not(:disabled):hover,
#root #app-container .chrome-toolbar-button:not(:disabled):focus-visible { border-color: var(--ui-accent-strong) !important; background: var(--ui-hover) !important; }
#root #app-container .chrome-toolbar-button:not(:disabled):active,
#root #app-container .chrome-toolbar-button[aria-pressed="true"] { background: var(--ui-sunken) !important; }
#root #app-container .chrome-toolbar-button-primary { border-color: var(--ui-accent-strong) !important; background: var(--ui-accent-dark) !important; color: var(--ui-accent-dark-ink) !important; }
#root #app-container .chrome-toolbar-button-danger { border-color: var(--ui-danger-border) !important; background: var(--ui-danger) !important; }
:is(.chrome-menu-button, .chrome-menu-item, #root #app-container .chrome-menu-button, #root #app-container .chrome-menu-item):disabled { cursor: default !important; opacity: .5 !important; }

:is(.chrome-menu-dropdown, #root #app-container .chrome-menu-dropdown) { display: none; position: absolute; z-index: 40; top: 100%; left: 0; min-width: 11rem; padding: .25rem; border: 1px solid var(--ui-border); border-radius: 6px; background: var(--ui-surface) !important; box-shadow: 0 8px 20px rgb(0 0 0 / 24%) !important; }
:is(.chrome-menu, #root #app-container .chrome-menu):hover > .chrome-menu-dropdown,
:is(.chrome-menu, #root #app-container .chrome-menu):focus-within > .chrome-menu-dropdown { display: block; }
:is(.chrome-menu-item, #root #app-container .chrome-menu-item)[hidden] { display: none !important; }

#root #app-container [role="tablist"]:not(.profile-tabs):not(.aero-tabs) { display: flex; align-items: end; gap: .25rem; overflow-y: hidden; border-bottom: 1px solid var(--ui-border); }
#root #app-container button[role="tab"]:not(.profile-tab):not(.aero-tab) { position: relative; margin: 0; padding: .45rem .7rem; border: 1px solid transparent !important; border-radius: 6px 6px 0 0 !important; background: transparent !important; color: var(--ui-muted-ink) !important; box-shadow: none !important; }
#root #app-container button[role="tab"]:not(.profile-tab):not(.aero-tab):not(:disabled):hover { background: var(--ui-hover) !important; color: var(--ui-ink) !important; }
#root #app-container button[role="tab"]:not(.profile-tab):not(.aero-tab)[aria-selected="true"],
#root #app-container button[role="tab"]:not(.profile-tab):not(.aero-tab).is-active { border-color: var(--ui-border) !important; border-bottom-color: var(--ui-surface) !important; background: var(--ui-surface) !important; color: var(--ui-ink) !important; }
#root #app-container button[role="tab"]:not(.profile-tab):not(.aero-tab):focus-visible { outline: 2px solid var(--ui-accent) !important; outline-offset: -2px; }
#root #app-container [role="tabpanel"] { border: 1px solid var(--ui-border); border-top: 0; background: var(--ui-surface) !important; color: var(--ui-ink); box-shadow: none !important; }
#root #app-container [role="tabpanel"][hidden] { display: none !important; }

:is(#root #app-container .chrome-titlebar button, #root #app-container .widget-titlebar button, .chrome-titlebar .chrome-button) { border-color: transparent !important; background: transparent !important; color: inherit !important; box-shadow: none !important; }
:is(#root #app-container .chrome-titlebar button, #root #app-container .widget-titlebar button, .chrome-titlebar .chrome-button):not(:disabled):hover { border-color: var(--ui-border) !important; background: var(--ui-hover) !important; }
.chrome-field { border: 1px solid var(--ui-border); border-radius: min(var(--shell-radius, 8px), 6px); background: var(--ui-field); color: var(--ui-field-ink); box-shadow: none; }
.chrome-field::placeholder { color: var(--ui-field-muted); opacity: 1; }
select.chrome-field option { background: var(--ui-surface); color: var(--ui-ink); }
/* Native selects need the same quiet, flat surface as text fields.  Draw the
 * disclosure chevron in CSS so it tracks every profile's field colors. */
#root #app-container select,
.theme-editor select {
  appearance: none !important;
  min-height: 2rem;
  padding: .35rem 2rem .35rem .55rem !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: min(var(--shell-radius, 8px), 6px) !important;
  background-color: var(--ui-field) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23909aa5' stroke-linecap='round' stroke-width='1.5'/%3E%3C/svg%3E") !important;
  background-position: calc(100% - .55rem) 50% !important;
  background-repeat: no-repeat !important;
  background-size: .75rem .5rem !important;
  color: var(--ui-field-ink) !important;
  box-shadow: none !important;
  font: inherit !important;
  cursor: pointer;
}
#root #app-container select:hover,
.theme-editor select:hover { border-color: var(--ui-accent-strong) !important; }
#root #app-container select:focus-visible,
.theme-editor select:focus-visible { outline: 2px solid var(--ui-accent) !important; outline-offset: 2px; }
#root #app-container select:disabled,
.theme-editor select:disabled { cursor: default; opacity: .5; }
#root #app-container select option,
.theme-editor select option { background: var(--ui-surface); color: var(--ui-ink); }
.chrome-row { border: 1px solid var(--ui-border); background: var(--ui-raised); color: var(--ui-ink); box-shadow: none; }
.chrome-muted { color: var(--ui-muted-ink); }
.theme-layout { column-gap: var(--shell-space, 1rem); row-gap: var(--shell-space, 1rem); }

/* Glass surfaces share accent reflections while keeping content opaque. */
:root,
.theme-scope {
  --ui-highlight: color-mix(in srgb, var(--ui-surface), #fff 9%);
  --ui-light: color-mix(in srgb, var(--ui-surface), #fff 4%);
  --ui-raised: color-mix(in srgb, var(--ui-surface), #fff 3%);
  --ui-hover: color-mix(in srgb, var(--ui-surface), var(--ui-ink) 8%);
  --ui-sunken: color-mix(in srgb, var(--ui-surface), #000 28%);
  --ui-dark: color-mix(in srgb, var(--ui-surface), #000 48%);
  --ui-border: color-mix(in srgb, var(--ui-accent) 28%, var(--ui-surface));
  --ui-glass-edge: color-mix(in srgb, var(--ui-accent) 32%, rgb(255 255 255 / 48%));
  --ui-glass-sheen: linear-gradient(160deg, rgb(255 255 255 / 4%), color-mix(in srgb, var(--ui-accent) 3%, transparent) 38%, transparent 62%);
  --ui-button-sheen: none;
  --ui-button-shadow: none;
  --ui-glass-shadow: inset 0 1px var(--ui-glass-edge), inset 0 -1px rgb(0 0 0 / 22%), 0 8px 24px rgb(0 0 0 / 18%);
  --ui-edge-highlight: var(--ui-glass-edge);
  --ui-edge-shadow: rgb(0 0 0 / 72%);
}

.chrome-window,
:is(.chrome-menu-dropdown,#root #app-container .chrome-menu-dropdown),
#root #app-container [role="tabpanel"] {
  border-radius: var(--shell-radius, 14px) !important;
  background-color: var(--shell-surface-glass) !important;
  background-image: var(--ui-glass-sheen) !important;
  box-shadow: var(--ui-glass-shadow) !important;
}

.chrome-titlebar,
#root #app-container .chrome-toolbar,
:is(.chrome-menubar,#root #app-container .chrome-menubar) {
  border-color: var(--ui-border) !important;
  border-radius: 14px 14px 0 0 !important;
  background-color: color-mix(in srgb,var(--ui-surface) 82%,transparent) !important;
  background-image: var(--ui-glass-sheen) !important;
  box-shadow: inset 0 1px var(--ui-edge-highlight), inset 0 -1px var(--ui-edge-shadow) !important;
  letter-spacing: .035em;
}

:is(
  .chrome-button, #root #app-container .chrome-toolbar-button,
  #root #app-container button:not(.theme-color-swatch):not(.chrome-toolbar-button):not(.chrome-menu-button):not(.chrome-menu-item):not(.hertz-tab):not(.hertz-object-tab):not(.profile-tab):not(.aero-tab),
  #root .shell-confirm-actions button, .shell-entry-card button,
  #root :is(#shell-session-actions,#shell-profile-actions,#shell-profile-owner-actions) button,
  #root :is(.shell-rail-mobile-toggle,#search-toggle,#shell-profile-mode-button)
) {
  border-radius: var(--chrome-control-radius, 6px) !important;
  background-color: var(--chrome-button-fill, var(--ui-raised)) !important;
  border: 1px solid var(--chrome-button-border, var(--ui-border)) !important;
  background-image: var(--ui-button-sheen) !important;
  box-shadow: none !important;
  font-weight: 650;
  letter-spacing: .025em;
}

:is(
  .chrome-button, #root #app-container .chrome-toolbar-button,
  #root #app-container button:not(.theme-color-swatch):not(.chrome-toolbar-button):not(.chrome-menu-button):not(.chrome-menu-item):not(.hertz-tab):not(.hertz-object-tab):not(.profile-tab):not(.aero-tab),
  #root .shell-confirm-actions button, .shell-entry-card button,
  #root :is(#shell-session-actions,#shell-profile-actions,#shell-profile-owner-actions) button,
  #root :is(.shell-rail-mobile-toggle,#search-toggle,#shell-profile-mode-button)
):not(:disabled):hover {
  background-image: var(--ui-button-sheen) !important;
  background-color: color-mix(in srgb, var(--chrome-button-fill, var(--ui-raised)), var(--ui-ink) 9%) !important;
  border-color: var(--chrome-button-border, var(--ui-accent-strong)) !important;
  box-shadow: none !important;
}
:is(
  .chrome-button, #root #app-container .chrome-toolbar-button,
  #root #app-container button:not(.theme-color-swatch):not(.chrome-toolbar-button):not(.chrome-menu-button):not(.chrome-menu-item):not(.hertz-tab):not(.hertz-object-tab):not(.profile-tab):not(.aero-tab),
  #root .shell-confirm-actions button, .shell-entry-card button,
  #root :is(#shell-session-actions,#shell-profile-actions,#shell-profile-owner-actions) button,
  #root :is(.shell-rail-mobile-toggle,#search-toggle,#shell-profile-mode-button)
):not(:disabled):active {
  background-image: var(--ui-button-sheen) !important;
  background-color: color-mix(in srgb, var(--chrome-button-fill, var(--ui-raised)), #000 18%) !important;
  box-shadow: none !important;
}
#root #app-container .chrome-toolbar-button:disabled { opacity: .5; cursor: default !important; }
#root #app-container .chrome-toolbar-button:focus-visible { outline: 2px solid var(--ui-accent) !important; outline-offset: 2px; }
#root #app-container .chrome-toolbar-button[aria-pressed="true"] { --chrome-button-fill: color-mix(in srgb,var(--ui-accent-dark),#000 20%); background-color: var(--ui-accent-dark) !important; color: var(--ui-accent-dark-ink) !important; border-color: var(--ui-accent-strong) !important; }
:is(.chrome-menu-button,.chrome-menu-item,#root #app-container .chrome-menu-button,#root #app-container .chrome-menu-item):not(:disabled):hover,
:is(.chrome-menu-button,.chrome-menu-item,#root #app-container .chrome-menu-button,#root #app-container .chrome-menu-item):not(:disabled):focus-visible { background-image: var(--ui-button-sheen) !important; }

.chrome-field,
#root #app-container select,
.theme-editor select {
  border-radius: 8px !important;
  box-shadow: inset 1px 1px rgb(0 0 0 / 72%), inset -1px -1px rgb(255 255 255 / 2.5%) !important;
}
.chrome-row {
  border-radius: var(--chrome-row-radius, 12px) !important;
  box-shadow: var(--chrome-row-shadow, inset 1px 1px rgb(0 0 0 / 72%), inset -1px -1px rgb(255 255 255 / 2.5%)) !important;
}

/* Segmented rails keep native range semantics, including app-defined steps. */
:root input[type="range"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  height: 1.75rem;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 3px !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  accent-color: var(--ui-accent);
  --range-offline: color-mix(in srgb, var(--ui-ink) 24%, var(--ui-surface));
  --range-online: var(--ui-accent);
  --range-glow: color-mix(in srgb, var(--ui-accent) 48%, transparent);
}
:root input[type="range"]::-webkit-slider-runnable-track {
  height: .65rem;
  border-radius: 3px;
  background: repeating-linear-gradient(to right, transparent 0 6px, var(--ui-surface) 6px 9px),
    linear-gradient(to right, var(--range-online) 0 var(--range-fill, 0%), var(--range-offline) var(--range-fill, 0%) 100%);
}
:root input[type="range"]::-moz-range-track {
  height: .65rem;
  border: 0;
  border-radius: 3px;
  background: repeating-linear-gradient(to right, transparent 0 6px, var(--ui-surface) 6px 9px),
    linear-gradient(to right, var(--range-online) 0 var(--range-fill, 0%), var(--range-offline) var(--range-fill, 0%) 100%);
}
:root input[type="range"]::-moz-range-progress {
  background: transparent;
}
:root input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: .75rem;
  height: 1.25rem;
  margin-top: -.3rem;
  border: 1px solid var(--ui-accent-strong);
  border-radius: 3px;
  background: var(--ui-accent);
  box-shadow: 0 0 8px var(--range-glow), 0 1px 3px rgb(0 0 0 / 35%);
}
:root input[type="range"]::-moz-range-thumb {
  width: .75rem;
  height: 1.25rem;
  box-sizing: border-box;
  border: 1px solid var(--ui-accent-strong);
  border-radius: 3px;
  background: var(--ui-accent);
  box-shadow: 0 0 8px var(--range-glow), 0 1px 3px rgb(0 0 0 / 35%);
}
:root input[type="range"]:enabled:hover { filter: brightness(1.12); }
:root input[type="range"]:disabled {
  --range-online: var(--range-offline);
  --range-glow: transparent;
}
:root input[type="range"]:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 3px; }
:root input[type="range"]:disabled { opacity: .38; cursor: default; }
@media (forced-colors: active) {
  :root input[type="range"] { appearance: auto !important; -webkit-appearance: auto !important; }
}

/* Command labels stay crisp above the translucent window face. */
.chrome-window > .chrome-body { background: transparent; }
@media (prefers-reduced-motion: reduce) {
  :is(
  .chrome-button, #root #app-container .chrome-toolbar-button,
  #root #app-container button:not(.theme-color-swatch):not(.chrome-toolbar-button):not(.chrome-menu-button):not(.chrome-menu-item):not(.hertz-tab):not(.hertz-object-tab):not(.profile-tab):not(.aero-tab),
  #root .shell-confirm-actions button, .shell-entry-card button,
  #root :is(#shell-session-actions,#shell-profile-actions,#shell-profile-owner-actions) button,
  #root :is(.shell-rail-mobile-toggle,#search-toggle,#shell-profile-mode-button)
) { transition: none !important; }
}

/* Preserve semantic fills underneath the shared button reflection. */
:is(.chrome-button-primary,.chrome-toolbar-button-primary,.calendar-primary-button,.tasks-primary-button,.hertz-btn-primary,.shell-confirm-actions .primary){--chrome-button-fill:color-mix(in srgb,var(--ui-accent-dark),#000 20%);--chrome-button-border:var(--ui-accent-strong)}
:is(.chrome-button-danger,.chrome-toolbar-button-danger,.calendar-event-item-btn-delete,.tasks-danger-button,.hertz-btn-danger,.images-delete,.posts-delete-btn,.luck-item-remove,.notepad-modal-danger,.task-remove-btn,.tasks-board-remove-btn,.widget-gallery-remove,.danger){--chrome-button-fill:var(--ui-danger);--chrome-button-border:var(--ui-danger-border)}

/* A frosted navigation rail with raised, reflective Aero tabs. */
#root #app-container :is(.profile-tabs,.aero-tabs){
  display:flex;flex-wrap:wrap;justify-content:center;align-items:center;
  padding:.45rem;gap:.35rem;border:1px solid var(--ui-glass-edge);border-radius:18px;
  background:var(--ui-glass-sheen),color-mix(in srgb,var(--ui-surface) 76%,transparent);
  box-shadow:var(--ui-glass-shadow);backdrop-filter:blur(16px) saturate(135%);
  -webkit-backdrop-filter:blur(16px) saturate(135%);
}
#root #app-container :is(.profile-tabs,.aero-tabs) :is([role=tab],.aero-tab){
  position:relative;margin:0;font:inherit;cursor:pointer;color:var(--ui-ink)!important;
  border:1px solid transparent!important;min-height:2.75rem;padding:.6rem 1.15rem;
  background:linear-gradient(180deg,rgb(255 255 255/.14),rgb(255 255 255/.03) 48%,rgb(0 0 0/.06) 49%,transparent),var(--ui-raised)!important;
  border-color:transparent!important;border-radius:12px!important;
  box-shadow:inset 0 1px rgb(255 255 255/.14)!important;
  transition:background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease;
}
#root #app-container :is(.profile-tabs,.aero-tabs) :is([role=tab],.aero-tab):hover{
  background-color:var(--ui-hover)!important;border-color:var(--ui-glass-edge)!important;
  box-shadow:inset 0 1px var(--ui-glass-edge),0 2px 8px rgb(0 0 0/.14)!important;
}
#root #app-container :is(.profile-tabs,.aero-tabs) :is([role=tab],.aero-tab)[aria-selected=true]{
  background-color:var(--ui-accent-dark)!important;color:var(--ui-accent-dark-ink)!important;
  border-color:var(--ui-accent-strong)!important;
  box-shadow:inset 0 1px var(--ui-glass-edge),inset 0 -2px var(--ui-accent),0 2px 8px rgb(0 0 0/.22),0 0 16px color-mix(in srgb,var(--ui-accent) 22%,transparent)!important;
}
#root #app-container :is(.profile-tabs,.aero-tabs) :is([role=tab],.aero-tab):active{box-shadow:inset 0 2px 5px rgb(0 0 0/.25)!important}
@media(prefers-reduced-motion:reduce){#root #app-container :is(.profile-tabs,.aero-tabs) :is([role=tab],.aero-tab){transition:none}}

#root #app-container :is(.profile-tabs,.aero-tabs) :is([role=tab],.aero-tab):focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}

/* Shared navigation bars follow the clear shell header. Important declarations
   in this layer take precedence over older app-specific important chrome rules,
   without changing app layout, scrolling, or the contents of tab panels. */
@layer blurred-navigation {
  :is(#root #app-container,.header-editor-modal) :is([role="tablist"],.profile-tabs,.aero-tabs,.chrome-toolbar,.chrome-menubar,.chrome-titlebar,.war-room-breadcrumbs,.settings-breadcrumb,.friends-toolbar,.bio-editor-toolbar,.mail-reader-toolbar,.war-room-inbox-toolbar) {
    border:0!important;border-radius:0!important;box-shadow:none!important;
    background:transparent!important;backdrop-filter:blur(20px) saturate(145%)!important;
    -webkit-backdrop-filter:blur(20px) saturate(145%)!important;
    padding:2px!important;gap:2px!important;min-height:36px;
    color:#fff!important;text-shadow:0 1px 2px #000,0 0 2px #000!important;
  }
  :is(#root #app-container,.header-editor-modal) :is([role="tab"],.aero-tab,.chrome-toolbar-button),
  :is(#root #app-container,.header-editor-modal) :is(.chrome-toolbar,.chrome-menubar,.chrome-titlebar,.war-room-breadcrumbs,.settings-breadcrumb,.friends-toolbar,.bio-editor-toolbar,.mail-reader-toolbar,.war-room-inbox-toolbar) :is(button,a):not(.chrome-menu-item):not(.theme-color-swatch) {
    border:0!important;border-radius:0!important;box-shadow:none!important;
    background:var(--blurred-control-fill,transparent)!important;color:#fff!important;
    text-shadow:0 1px 2px #000,0 0 2px #000!important;
    margin:0!important;padding:4px 6px!important;min-height:32px;
    font:inherit;letter-spacing:normal;top:auto!important;
    transition:var(--blurred-bar-transition,background-color 140ms ease-out)!important;
  }
  :is(#root #app-container,.header-editor-modal) :is([role="tab"],.aero-tab,.chrome-toolbar-button):is([aria-selected="true"],[aria-pressed="true"],.is-active),
  :is(#root #app-container,.header-editor-modal) :is(.chrome-toolbar,.chrome-menubar,.chrome-titlebar,.war-room-breadcrumbs,.settings-breadcrumb,.friends-toolbar,.bio-editor-toolbar,.mail-reader-toolbar,.war-room-inbox-toolbar) :is(button,a):not(.chrome-menu-item):not(.theme-color-swatch):is([aria-selected="true"],[aria-pressed="true"],.is-active),
  #root #app-container .settings-breadcrumb [aria-current="page"] {
    background:color-mix(in srgb,var(--ui-accent,#829fff) 32%,transparent)!important;
    font-weight:650;
  }
  :is(#root #app-container,.header-editor-modal) :is([role="tab"],.aero-tab,.chrome-toolbar-button):not(:disabled):not([aria-disabled="true"]):is(:hover,:focus-visible),
  :is(#root #app-container,.header-editor-modal) :is(.chrome-toolbar,.chrome-menubar,.chrome-titlebar,.war-room-breadcrumbs,.settings-breadcrumb,.friends-toolbar,.bio-editor-toolbar,.mail-reader-toolbar,.war-room-inbox-toolbar) :is(button,a):not(.chrome-menu-item):not(.theme-color-swatch):not(:disabled):not([aria-disabled="true"]):is(:hover,:focus-visible) {
    background:var(--blurred-control-hover,rgb(127 127 127/.24))!important;
  }
  :is(#root #app-container,.header-editor-modal) :is([role="tab"],.aero-tab,.chrome-toolbar-button):not(:disabled):not([aria-disabled="true"]):active,
  :is(#root #app-container,.header-editor-modal) :is(.chrome-toolbar,.chrome-menubar,.chrome-titlebar,.war-room-breadcrumbs,.settings-breadcrumb,.friends-toolbar,.bio-editor-toolbar,.mail-reader-toolbar,.war-room-inbox-toolbar) :is(button,a):not(.chrome-menu-item):not(.theme-color-swatch):not(:disabled):not([aria-disabled="true"]):active {
    background:var(--blurred-control-pressed,rgb(127 127 127/.4))!important;
  }
  :is(#root #app-container,.header-editor-modal) :is(.chrome-toolbar-button-primary,.chrome-toolbar .chrome-button-primary) {
    --blurred-control-fill:color-mix(in srgb,var(--ui-accent,#829fff) 32%,transparent);
    --blurred-control-hover:color-mix(in srgb,var(--ui-accent,#829fff) 50%,transparent);
    --blurred-control-pressed:color-mix(in srgb,var(--ui-accent,#829fff) 65%,transparent);
  }
  :is(#root #app-container,.header-editor-modal) :is(.chrome-toolbar-button-danger,.chrome-toolbar .chrome-button-danger,.chrome-toolbar .danger) {
    --blurred-control-fill:rgb(180 30 30/.32);
    --blurred-control-hover:rgb(180 30 30/.5);
    --blurred-control-pressed:rgb(180 30 30/.65);
  }
  :is(#root #app-container,.header-editor-modal) :is([role="tab"],.aero-tab,.chrome-toolbar-button):focus-visible,
  :is(#root #app-container,.header-editor-modal) :is(.chrome-toolbar,.chrome-menubar,.chrome-titlebar,.war-room-breadcrumbs,.settings-breadcrumb,.friends-toolbar,.bio-editor-toolbar,.mail-reader-toolbar,.war-room-inbox-toolbar) :is(button,a):focus-visible {
    outline:2px solid var(--ui-accent,#829fff)!important;outline-offset:-2px!important;
  }
  @media(prefers-reduced-motion:reduce) {
    :is(#root #app-container,.header-editor-modal) {--blurred-bar-transition:none}
  }
}


/* Flat controls: solid surfaces, restrained borders, no glass or elevation. */
:root,.theme-scope{--ui-button-sheen:none;--ui-button-shadow:none}
:is(.chrome-button,#root #app-container button:not(.theme-color-swatch),#root .shell-confirm-actions button,.shell-entry-card button,.homepage-jump,#root .hertz-player-button,#root .hertz-player-preview),
:is(.chrome-button,#root #app-container button:not(.theme-color-swatch),#root .shell-confirm-actions button,.shell-entry-card button,.homepage-jump,#root .hertz-player-button,#root .hertz-player-preview):is(:hover,:active,:focus-visible){
 box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
#root #app-container :is(.profile-tabs,.aero-tabs) :is([role=tab],.aero-tab){background-image:none!important}
.homepage-landing .homepage-jump{background:var(--ui-raised)!important;border-color:var(--ui-border);border-radius:6px}
.homepage-landing .homepage-jump:hover{background:var(--ui-hover)!important;border-color:var(--ui-accent)}

@layer neutral-buttons {
 :is(button,.chrome-button,.homepage-jump,[role="button"],input[type="button"],input[type="submit"],input[type="reset"]):not(.theme-color-swatch){
  --chrome-button-fill:var(--ui-raised);--chrome-button-border:var(--ui-border);--chrome-control-radius:var(--ui-control-radius);
  --chrome-control-transition:none;--blurred-bar-transition:none;
  --blurred-control-fill:var(--ui-raised);--blurred-control-hover:var(--ui-hover);--blurred-control-pressed:var(--ui-highlight);
  background-color:var(--ui-raised)!important;border-color:var(--ui-border)!important;border-radius:var(--ui-control-radius)!important;
  color:#ededed!important;box-shadow:none!important;text-shadow:none!important;
  transition:none!important;animation:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 }
 :is(button,.chrome-button,.homepage-jump,[role="button"],input[type="button"],input[type="submit"],input[type="reset"]):not(.theme-color-swatch):not(:disabled):not([aria-disabled="true"]):hover{background-color:var(--ui-hover)!important;border-color:var(--ui-border)!important}
 :is(button,.chrome-button,.homepage-jump,[role="button"],input[type="button"],input[type="submit"],input[type="reset"]):not(.theme-color-swatch):not(:disabled):not([aria-disabled="true"]):active{background-color:var(--ui-highlight)!important}
 :is(button,.chrome-button,.homepage-jump,[role="button"]):not(.theme-color-swatch):is([aria-pressed="true"],[aria-selected="true"],.is-active),
 :is(.chrome-button-primary,.chrome-toolbar-button-primary,.shell-confirm-actions .primary):not(.theme-color-swatch){background-color:var(--ui-accent-dark)!important;border-color:var(--ui-accent-strong)!important}
 :is(.chrome-button-primary,.chrome-toolbar-button-primary,.shell-confirm-actions .primary):not(.theme-color-swatch):not(:disabled):not([aria-disabled="true"]):hover{background-color:var(--ui-accent-mid)!important;border-color:var(--ui-accent)!important}
 :is(button,.chrome-button,.homepage-jump,[role="button"],input[type="button"],input[type="submit"],input[type="reset"]):focus-visible{outline:2px solid var(--ui-accent)!important}
 :is(button,.chrome-button,.homepage-jump,[role="button"]) :is(img,span),:is(button,.chrome-button,.homepage-jump,[role="button"])::before,:is(button,.chrome-button,.homepage-jump,[role="button"])::after{transition:none!important;animation:none!important}
 /* Provider branding uses Google’s light button palette inside the shared button layer. */
#root #app-container .auth-card .google-auth-button:not([hidden]) {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:40px; padding:0 12px!important; border:1px solid #747775!important; border-radius:4px!important;
  background:#fff!important; color:#1f1f1f!important; font:500 14px/20px "Google Sans",Roboto,Arial,sans-serif;
  text-decoration:none; cursor:pointer;
}
 #shell-header :is(button,a)>img,#shell-header .initial{transform:none!important}
 #shell-profile-button .initial{background:var(--ui-highlight)!important;color:#ededed!important}
}

@layer neutral-buttons {
 #shell-header :is(#shell-community-link,#shell-apps-link,#shell-session-actions button,#shell-notif-button)>img{opacity:1!important;filter:brightness(0) invert(1)!important}
 #shell-header :is(#shell-community-link,#shell-apps-link,#shell-session-actions button,#shell-notif-button)::before{content:none!important}
}

/* Dark charcoal surfaces lightly tinted by the shared accent. */
@layer neutral-platform {
 :root,.theme-scope {
  --platform-surface-mode:neutral;
  --shell-surface:var(--ui-surface)!important;--shell-surface-ink:#ededed!important;
  --shell-surface-glass:var(--ui-surface)!important;--shell-ink:#ededed!important;
  --shell-field:var(--ui-field)!important;--shell-field-ink:#ededed!important;
  --ui-control-radius:10px;
  --shell-icon-filter:brightness(0) invert(1)!important;
  --ui-surface:color-mix(in srgb,#222 76%,var(--ui-accent-dark))!important;--ui-ink:#ededed!important;--ui-muted-ink:#aaa!important;
  --ui-highlight:color-mix(in srgb,#454545 76%,var(--ui-accent-dark))!important;--ui-light:var(--ui-raised)!important;
  --ui-raised:color-mix(in srgb,#292929 76%,var(--ui-accent-dark))!important;--ui-hover:color-mix(in srgb,#383838 76%,var(--ui-accent-dark))!important;
  --ui-sunken:var(--ui-field)!important;--ui-dark:color-mix(in srgb,#181818 90%,var(--ui-accent-dark))!important;
  --ui-border:color-mix(in srgb,#484848 80%,var(--ui-accent-dark))!important;--ui-grid:var(--ui-hover)!important;
  --ui-field:color-mix(in srgb,#1c1c1c 82%,var(--ui-accent-dark))!important;--ui-field-ink:#ededed!important;--ui-field-muted:#aaa!important;
  --ui-glass-edge:var(--ui-border)!important;--ui-glass-sheen:none!important;--ui-glass-shadow:none!important;
  --ui-edge-highlight:transparent!important;--ui-edge-shadow:transparent!important;
  --ui-button-sheen:none!important;--ui-button-shadow:none!important;
  --profile-surface:var(--ui-surface)!important;--profile-ink:#ededed!important;
 }
 /* Layout, scroll ownership and authored media backgrounds stay app-owned. */
 *,*::before,*::after{
  box-shadow:none!important;text-shadow:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;transition:none!important;
 }
 :is(.chrome-window,.chrome-menu-dropdown,.chrome-row,.shell-entry-card,.auth-card,
 .homepage-project,.posts-card,.community-draft-row,.hertz-player,
 .settings-area-node,.settings-block,.widget,.notification-item,
 .shell-confirm-dialog,.shell-image-viewer-dialog,dialog,
 [role="dialog"],[role="tabpanel"]){
  background-color:var(--ui-surface)!important;background-image:none!important;border-color:var(--ui-border)!important;color:#ededed!important;border-radius:var(--shell-radius)!important;
 }
 :is(.chrome-titlebar,.widget-titlebar,.chrome-toolbar,.chrome-menubar,
 [role="tablist"],.profile-tabs,.aero-tabs,.friends-toolbar,.bio-editor-toolbar,
 .mail-reader-toolbar,.war-room-inbox-toolbar,.war-room-breadcrumbs,.settings-breadcrumb,
 #shell-header){
  background-color:var(--ui-surface)!important;background-image:none!important;color:#ededed!important;border-radius:var(--ui-control-radius)!important;
 }
 #shell-header{
  border-radius:0 0 var(--shell-radius) var(--shell-radius)!important;
  background-image:linear-gradient(105deg,var(--ui-accent-dark),var(--shell-background) 40%,var(--ui-surface) 80%)!important;
  border-bottom-color:color-mix(in srgb,var(--ui-accent) 50%,var(--ui-surface))!important;
 }
 :is(input:not([type="color"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]),textarea,select,.chrome-field,[contenteditable="true"]){
  background-color:var(--ui-field)!important;background-image:none!important;border-color:var(--ui-border)!important;color:#ededed!important;border-radius:var(--ui-control-radius)!important;
  caret-color:#ededed!important;accent-color:var(--ui-accent);
 }
 :is(input,textarea)::placeholder{color:#aaa!important;opacity:1}
 :is(input[type="checkbox"],input[type="radio"],input[type="range"],progress){accent-color:var(--ui-accent)!important}
 :is(a,input,textarea,select,[contenteditable="true"],[tabindex]):focus-visible{outline-color:var(--ui-accent)!important}
 :is(.chrome-titlebar,.widget-titlebar){--profile-titlebar-start:var(--ui-raised);--profile-titlebar-end:var(--ui-raised)}
 dialog::backdrop,.shell-confirm-backdrop{background:rgb(0 0 0/.72)!important}
 ::selection{background:var(--ui-accent-dark);color:#fff}
}

@layer neutral-platform {
 :is(.messages-page,.friends-page,.calendar-page,.mindmap-page,.images-page,.notepad-page,.hertz-page,
 .skillbot-panel,.event-chain-compose-card,.event-chain-event,.cs-hero,.cs-card,
 .hertz-upload-chooser,.settings-node-icon,.shell-confirm-titlebar,
 .notification-skeleton,.signup-card,.login-card){
  background-color:var(--ui-surface)!important;background-image:none!important;border-color:var(--ui-border)!important;color:#ededed!important;border-radius:var(--shell-radius)!important;
 }
 :is(.signup-card,.login-card)::before,.hertz-player::before,.skillbot-world::before{
  background:var(--ui-raised)!important;
 }
 .hertz-upload-progress-bar{background:#aaa!important}
 input[type="range"]::-webkit-slider-thumb{border-radius:50%!important;box-shadow:none!important;background:#aaa!important}
 input[type="range"]::-moz-range-thumb{border-radius:50%!important;box-shadow:none!important;background:#aaa!important}
 input[type="range"]::-webkit-slider-runnable-track{border-radius:999px!important;box-shadow:none!important}
 input[type="range"]::-moz-range-track{border-radius:999px!important;box-shadow:none!important}
 ::-webkit-scrollbar-thumb{border-radius:999px!important;box-shadow:none!important}
 :is(figure img,.posts-card img,.images-card img){border-radius:var(--ui-control-radius)}
}

@layer neutral-platform {
 .posts-page{background:transparent!important}
 .hertz-player::before{content:none!important;display:none!important;background:none!important}
}
