﻿:root {
  color-scheme: dark;
  --bg: #02030a;
  --text: #f8fafc;
  --muted: rgba(248, 250, 252, 0.7);
  --stroke: rgba(255, 255, 255, 0.18);
  --panel: rgba(7, 9, 18, 0.72);
  --panel-strong: rgba(10, 12, 23, 0.9);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.48);
  --icon-size: 78px;
  --cell-size: 116px;
  --cell-gap: 20px;
  --grid-min: var(--cell-size);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: #02030a;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body,
.desktop,
.app-grid,
.page-swipe-stage,
.page-swipe-panel,
.favorite-dock,
.page-switcher {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

body:has(dialog[open]) {
  overflow-x: clip;
}

html:has(dialog[open]) {
  overflow-x: clip;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.space-backdrop,
#starfield,
.space-photo,
.space-shade {
  position: fixed;
  inset: 0;
}

.space-backdrop {
  z-index: 0;
  overflow: hidden;
  background: #02030a;
}

.space-photo {
  background-position: center;
  background-size: cover;
  transform: scale(1.08);
  animation: spaceDrift 42s ease-in-out infinite alternate;
  filter: saturate(0.95) contrast(1.04) brightness(0.72);
}

html[data-mobile-navigation="false"] .space-photo {
  background-image: url("/assets/nasa-carina-nebula.jpg");
}

html[data-mobile-navigation="false"] body[data-background-image="deep"] .space-photo {
  background-image: url("/assets/webb-deep-field-smacs0723.jpg");
  filter: saturate(0.94) contrast(1.08) brightness(0.64);
}

html[data-mobile-navigation="false"] body[data-background-image="orbit"] .space-photo {
  background-image: url("/assets/cosmic-bg.png");
  filter: saturate(0.88) contrast(1.08) brightness(0.7);
}

.space-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.58)),
    radial-gradient(circle at 50% 46%, transparent 0, rgba(0, 0, 0, 0.22) 58%, rgba(0, 0, 0, 0.6) 100%);
}

body[data-background-tone="dim"] .space-photo {
  filter: saturate(0.88) contrast(1.02) brightness(0.54);
}

body[data-background-image="deep"][data-background-tone="dim"] .space-photo {
  filter: saturate(0.88) contrast(1.06) brightness(0.46);
}

body[data-background-image="orbit"][data-background-tone="dim"] .space-photo {
  filter: saturate(0.86) contrast(1.04) brightness(0.5);
}

body[data-background-tone="dim"] .space-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.7)),
    radial-gradient(circle at 50% 46%, transparent 0, rgba(0, 0, 0, 0.32) 56%, rgba(0, 0, 0, 0.72) 100%);
}

body[data-background-tone="bright"] .space-photo {
  filter: saturate(1.02) contrast(1.06) brightness(0.86);
}

body[data-background-image="deep"][data-background-tone="bright"] .space-photo {
  filter: saturate(1.02) contrast(1.08) brightness(0.78);
}

body[data-background-image="orbit"][data-background-tone="bright"] .space-photo {
  filter: saturate(0.98) contrast(1.1) brightness(0.82);
}

body[data-background-focus="soft"] .space-photo {
  filter: saturate(0.9) contrast(1.02) brightness(0.68) blur(1.2px);
}

body[data-background-focus="soft"][data-background-tone="dim"] .space-photo {
  filter: saturate(0.84) contrast(1) brightness(0.5) blur(1.2px);
}

body[data-background-focus="soft"][data-background-tone="bright"] .space-photo {
  filter: saturate(0.98) contrast(1.04) brightness(0.82) blur(1px);
}

body[data-background-focus="crisp"] .space-photo {
  filter: saturate(1.04) contrast(1.12) brightness(0.74);
}

body[data-background-focus="crisp"][data-background-tone="dim"] .space-photo {
  filter: saturate(0.96) contrast(1.1) brightness(0.56);
}

body[data-background-focus="crisp"][data-background-tone="bright"] .space-photo {
  filter: saturate(1.08) contrast(1.14) brightness(0.9);
}

body[data-background-tone="bright"] .space-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.46)),
    radial-gradient(circle at 50% 46%, transparent 0, rgba(0, 0, 0, 0.16) 58%, rgba(0, 0, 0, 0.54) 100%);
}

body[data-motion="still"] .space-photo {
  animation: none;
}

body[data-motion="still"] #starfield {
  display: none;
}

html[data-mobile-navigation="true"] .space-photo,
body[data-mobile-navigation="true"] .space-photo {
  display: none;
  background-image: none;
  animation: none;
  transform: scale(1.08);
}

html[data-mobile-navigation="true"] #starfield,
body[data-mobile-navigation="true"] #starfield {
  opacity: 0.92;
}

#starfield {
  z-index: 1;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  opacity: 0.82;
}

body[data-star-density="low"] #starfield {
  opacity: 0.48;
}

body[data-star-density="high"] #starfield {
  opacity: 1;
}

.desktop {
  --desktop-pad-top: clamp(70px, 5.9vw, 86px);
  --desktop-pad-x: clamp(18px, 4vw, 44px);
  --desktop-pad-bottom: 126px;
  --page-stage-bottom: var(--desktop-pad-bottom);
  --mobile-grid-bottom-reserve: var(--desktop-pad-bottom);
  --mobile-grid-tail-space: 48px;
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--desktop-pad-top) var(--desktop-pad-x) var(--desktop-pad-bottom);
  overflow-x: clip;
  touch-action: pan-y;
}

.top-bar {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  pointer-events: none;
  transform: translateY(-50%);
}

.top-search {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 13;
  width: min(760px, calc(100vw - 40px));
  min-height: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  transform: translateX(-50%);
}

.google-search-form,
.site-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  background: rgba(8, 10, 20, 0.52);
  color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  overflow: hidden;
}

.google-search-form input,
.site-search-form input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  background: transparent;
  color: #fff;
  outline: 0;
}

.google-search-form input::placeholder,
.site-search-form input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.google-search-form button,
.site-search-form button,
.quick-search-button {
  width: 64px;
  min-width: 64px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.quick-search-button {
  min-width: 64px;
}

.google-search-form button:hover,
.google-search-form button:focus-visible,
.site-search-form button:hover,
.site-search-form button:focus-visible,
.quick-search-button:hover,
.quick-search-button:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  transform: translateY(-1px);
}

.glass-button,
.time-widget,
.weather-widget,
.control-panel,
.weather-dialog,
.login-dialog,
.toast {
  border: 1px solid var(--stroke);
  background: rgba(8, 10, 20, 0.42);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

.glass-button {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: #fff;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.glass-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.3);
}

#settingsToggle {
  width: 42px;
  min-height: 92px;
  padding: 10px 8px;
  gap: 0;
  border-right: 0;
  border-radius: 18px 0 0 18px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(4, 6, 14, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.08;
  opacity: 0.46;
  pointer-events: auto;
  letter-spacing: 0;
  transform: translateX(12px);
  flex-direction: column;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

#settingsToggle span {
  display: block;
  width: 1em;
  transform: translateX(-6px);
}

#settingsToggle:hover,
#settingsToggle:focus-visible,
#settingsToggle[aria-expanded="true"] {
  transform: translateX(0);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(10, 14, 28, 0.48);
  color: #fff;
  opacity: 1;
}

.time-widget,
.weather-widget {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  touch-action: none;
  user-select: none;
}

.time-widget {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  padding: 18px;
}

.time-main {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.time-glow {
  position: absolute;
  inset: -120px auto auto -100px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: rgba(186, 230, 253, 0.18);
  filter: blur(14px);
}

.time-date,
.time-clock,
.time-zone {
  position: relative;
  z-index: 1;
  margin: 0;
}

.time-date {
  color: var(--muted);
  font-size: 0.9rem;
}

.time-clock {
  margin-top: 6px;
  font-size: clamp(3.2rem, 5.8vw, 5.1rem);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.time-zone {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time-widget.is-tool-active {
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  padding: 16px;
}

.time-widget.is-tool-active .time-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 24px;
  opacity: 0.72;
}

.time-widget.is-tool-active .time-date {
  display: none;
}

.time-widget.is-tool-active .time-clock {
  margin-top: 0;
  font-size: 1.08rem;
  line-height: 1;
  font-weight: 650;
}

.time-widget.is-tool-active .time-zone {
  margin-top: 0;
  font-size: 0.72rem;
  text-align: right;
}

.time-widget-panel,
.world-clock-list {
  position: relative;
  z-index: 1;
  min-height: 0;
}

.world-clock-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-self: end;
  margin-top: 12px;
}

.world-clock {
  min-width: 0;
  padding: 8px 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.world-clock span,
.world-clock strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.world-clock span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
}

.world-clock strong {
  margin-top: 3px;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}

.clock-live-panel {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  align-self: end;
  margin-top: 12px;
  padding: 9px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.clock-live-panel--immersive {
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  align-self: stretch;
  gap: 8px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.clock-live-actions {
  display: grid;
  gap: 6px;
}

.clock-live-topline {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, 0.74);
}

.clock-live-topline span {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clock-live-topline span {
  color: #fff;
  font-weight: 720;
}

.clock-live-value {
  align-self: center;
  min-width: 0;
  overflow: hidden;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 0.92;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clock-live-progress {
  --progress: 0;
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.clock-live-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--progress) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, #fff, rgba(125, 211, 252, 0.9));
  transition: width 180ms linear;
}

.clock-live-actions button {
  min-height: 27px;
  min-width: 50px;
  padding: 0 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.74rem;
}

.desktop-item[data-size="2x2"] .clock-live-panel {
  grid-template-columns: 1fr;
  align-items: stretch;
  padding: 8px;
}

.desktop-item[data-size="2x2"] .clock-live-panel--immersive {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 7px;
  margin-top: 8px;
  padding: 0;
}

.desktop-item[data-size="2x2"] .time-widget {
  padding: 15px;
}

.desktop-item[data-size="2x2"] .time-clock {
  font-size: clamp(2.8rem, 4.6vw, 3.5rem);
}

.desktop-item[data-size="2x2"] .time-widget.is-tool-active .time-clock {
  font-size: 0.96rem;
}

.desktop-item[data-size="2x2"] .time-widget.is-tool-active .time-zone {
  font-size: 0.66rem;
}

.desktop-item[data-size="2x2"] .time-date,
.desktop-item[data-size="2x2"] .time-zone {
  font-size: 0.78rem;
}

.desktop-item[data-size="2x2"] .clock-live-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.desktop-item[data-size="2x2"] .clock-live-value {
  font-size: clamp(2.15rem, 5vw, 3.15rem);
}

.desktop-item[data-size="2x2"] .world-clock-list {
  grid-template-columns: 1fr;
  gap: 6px;
}

.desktop-item[data-size="2x2"] .world-clock:nth-child(n + 3) {
  display: none;
}

.weather-widget {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  padding: 15px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 8px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(121, 160, 196, 0.86), rgba(57, 104, 157, 0.82) 42%, rgba(18, 45, 91, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -78px 120px rgba(5, 16, 38, 0.34),
    0 22px 56px rgba(0, 0, 0, 0.34);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.weather-widget::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 10, 22, 0.34), transparent 58%),
    linear-gradient(180deg, transparent 0 42%, rgba(5, 10, 22, 0.42) 75%, rgba(5, 10, 22, 0.56));
}

body:not(.is-page-hover-muted):not(.is-page-visual-quiet):not(.is-page-quiet-held):not(.is-page-swap-committing):not(.is-page-swap-locked):not(.is-page-post-swipe-settled) .weather-widget:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, rgba(132, 174, 210, 0.9), rgba(62, 112, 169, 0.84) 42%, rgba(18, 45, 91, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -78px 120px rgba(5, 16, 38, 0.36),
    0 26px 66px rgba(0, 0, 0, 0.42);
}

.weather-widget[data-condition="clear"] {
  background:
    linear-gradient(180deg, rgba(104, 185, 238, 0.96), rgba(64, 139, 220, 0.88) 45%, rgba(22, 76, 158, 0.98) 100%);
}

.weather-widget[data-condition="clear"][data-daytime="night"] {
  background:
    linear-gradient(180deg, rgba(31, 47, 92, 0.98), rgba(13, 23, 55, 0.96) 48%, rgba(6, 13, 34, 0.98) 100%);
}

.weather-widget[data-condition="cloud"] {
  background:
    linear-gradient(180deg, rgba(142, 174, 202, 0.94), rgba(86, 124, 164, 0.86) 44%, rgba(31, 65, 118, 0.98) 100%);
}

.weather-widget[data-condition="rain"],
.weather-widget[data-condition="storm"] {
  background:
    linear-gradient(180deg, rgba(116, 132, 148, 0.96), rgba(61, 76, 96, 0.94) 45%, rgba(18, 30, 52, 0.98) 100%);
}

.weather-widget[data-condition="storm"] {
  background:
    linear-gradient(180deg, rgba(80, 91, 112, 0.98), rgba(37, 47, 70, 0.98) 45%, rgba(10, 17, 34, 0.99) 100%);
}

.weather-widget[data-condition="snow"] {
  background:
    linear-gradient(180deg, rgba(189, 215, 230, 0.96), rgba(107, 149, 184, 0.9) 44%, rgba(39, 77, 130, 0.98) 100%);
}

.weather-widget[data-condition="fog"] {
  background:
    linear-gradient(180deg, rgba(184, 195, 201, 0.96), rgba(119, 134, 148, 0.92) 44%, rgba(52, 70, 96, 0.98) 100%);
}

.weather-widget:focus-visible,
.app-link:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(147, 197, 253, 0.8);
  outline-offset: 3px;
}

.weather-hero {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.weather-hero > div {
  min-width: 0;
}

.weather-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: 1.05rem;
}

.weather-city,
.weather-desc,
.weather-temp {
  margin: 0;
}

.weather-city {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.08;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-desc {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.66rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-temp {
  font-size: clamp(3.25rem, 5.8vw, 4.35rem);
  line-height: 0.86;
  font-weight: 760;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.weather-reading {
  position: relative;
  z-index: 2;
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.weather-reading-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  justify-items: end;
  padding: 5px 6px;
  border-radius: 11px;
  background: rgba(5, 10, 22, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  text-align: right;
}

.weather-reading-copy span {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.76);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-reading-copy span:first-child {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 720;
}

.weather-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  min-height: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.weather-trend-line {
  position: absolute;
  inset: 13px 12px 9px;
  z-index: 0;
  display: block;
  width: calc(100% - 18px);
  height: calc(100% - 10px);
  overflow: hidden;
  pointer-events: none;
}

.weather-trend-line polyline {
  fill: none;
  stroke: rgba(226, 240, 255, 0.5);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
}

.weather-hour {
  --temp-offset: 0.5;
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 4px 3px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.weather-hour span,
.weather-hour strong {
  font-size: 0.62rem;
  line-height: 1.12;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-hour strong {
  margin-top: 0;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.weather-meta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  color: rgba(255, 255, 255, 0.78);
  min-width: 0;
}

.weather-meta span {
  min-height: 22px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 0.58rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.weather-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 46%);
  opacity: 0.82;
}

.weather-sun,
.weather-moon,
.weather-cloud,
.weather-rain,
.weather-snow,
.weather-fog {
  position: absolute;
  display: block;
}

.weather-sun {
  right: 20px;
  top: 22px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff7c2 0 32%, #ffd56a 53%, rgba(255, 184, 68, 0.2) 72%, transparent 74%);
  box-shadow:
    0 0 32px rgba(255, 217, 120, 0.62),
    0 0 76px rgba(255, 187, 75, 0.32);
  opacity: 0;
  transform: scale(0.92);
}

.weather-moon {
  right: 28px;
  top: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f8fafc;
  box-shadow:
    inset -16px 2px 0 rgba(190, 204, 226, 0.45),
    0 0 34px rgba(226, 236, 255, 0.35);
  opacity: 0;
}

.weather-widget[data-condition="clear"][data-daytime="day"] .weather-sun,
.weather-widget[data-condition="cloud"][data-daytime="day"] .weather-sun {
  opacity: 1;
}

.weather-widget[data-condition="clear"][data-daytime="night"] .weather-moon,
.weather-widget[data-condition="cloud"][data-daytime="night"] .weather-moon {
  opacity: 1;
}

.weather-cloud {
  width: 124px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  filter: blur(0.1px);
  opacity: 0;
  mix-blend-mode: screen;
  box-shadow:
    26px -18px 0 7px rgba(255, 255, 255, 0.78),
    58px -11px 0 3px rgba(255, 255, 255, 0.66),
    0 14px 22px rgba(18, 36, 74, 0.14);
}

.weather-cloud--one {
  left: 18px;
  top: 62px;
}

.weather-cloud--two {
  right: 8px;
  top: 92px;
  width: 104px;
  height: 38px;
  opacity: 0;
  transform: scale(0.88);
}

.weather-widget[data-condition="cloud"] .weather-cloud,
.weather-widget[data-condition="rain"] .weather-cloud,
.weather-widget[data-condition="storm"] .weather-cloud,
.weather-widget[data-condition="snow"] .weather-cloud,
.weather-widget[data-condition="fog"] .weather-cloud {
  opacity: 0.86;
}

.weather-widget[data-condition="rain"] .weather-cloud,
.weather-widget[data-condition="storm"] .weather-cloud {
  background: rgba(78, 91, 112, 0.82);
  box-shadow:
    26px -18px 0 7px rgba(96, 110, 130, 0.84),
    58px -11px 0 3px rgba(69, 83, 104, 0.78),
    0 18px 28px rgba(12, 22, 42, 0.24);
}

.weather-widget[data-condition="storm"] .weather-cloud {
  background: rgba(50, 61, 80, 0.92);
  box-shadow:
    26px -18px 0 7px rgba(62, 74, 94, 0.94),
    58px -11px 0 3px rgba(43, 54, 74, 0.9),
    0 20px 32px rgba(4, 8, 18, 0.34);
}

.weather-rain,
.weather-snow {
  left: 34px;
  right: 36px;
  top: 104px;
  height: 136px;
  opacity: 0;
}

.weather-rain {
  background:
    repeating-linear-gradient(105deg, rgba(219, 236, 255, 0.82) 0 2px, transparent 2px 16px);
  transform: skewX(-8deg);
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 76%, transparent 100%);
}

.weather-widget[data-condition="rain"] .weather-rain {
  opacity: 0.44;
}

.weather-widget[data-condition="rain"][data-severity="heavy"] .weather-rain,
.weather-widget[data-condition="rain"][data-severity="storm"] .weather-rain,
.weather-widget[data-condition="storm"] .weather-rain {
  opacity: 0.58;
  background:
    repeating-linear-gradient(105deg, rgba(230, 243, 255, 0.9) 0 2px, transparent 2px 10px);
}

.weather-snow {
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 34% 36%, rgba(255, 255, 255, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 58% 18%, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 44%, rgba(255, 255, 255, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 24%, rgba(255, 255, 255, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 20% 68%, rgba(255, 255, 255, 0.82) 0 2px, transparent 3px),
    radial-gradient(circle at 66% 76%, rgba(255, 255, 255, 0.82) 0 2px, transparent 3px);
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 84%, transparent 100%);
}

.weather-widget[data-condition="snow"] .weather-snow {
  opacity: 0.82;
}

.weather-fog {
  left: 14px;
  right: 14px;
  top: 76px;
  height: 132px;
  opacity: 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 16px, rgba(255, 255, 255, 0.34) 16px 20px, transparent 20px 36px);
  filter: blur(1px);
}

.weather-widget[data-condition="fog"] .weather-fog {
  opacity: 0.88;
}

.weather-updated {
  position: relative;
  z-index: 2;
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.64rem;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-item[data-size="1x1"] .weather-strip,
.desktop-item[data-size="1x1"] .weather-reading-copy,
.desktop-item[data-size="1x1"] .weather-meta,
.desktop-item[data-size="1x1"] .weather-updated {
  display: none;
}

.desktop-item[data-size="1x1"] .weather-widget {
  padding: 14px;
  gap: 5px;
  grid-template-rows: auto minmax(0, 1fr);
}

.desktop-item[data-size="1x1"] .weather-temp {
  font-size: 2.35rem;
}

.desktop-item[data-size="1x1"] .weather-icon {
  width: 30px;
  height: 30px;
}

.desktop-item[data-size="1x1"] .weather-sun {
  width: 50px;
  height: 50px;
  right: 12px;
  top: 18px;
}

.desktop-item[data-size="1x1"] .weather-cloud {
  transform: scale(0.7);
  transform-origin: left top;
}

.desktop-item[data-size="2x2"] .weather-widget {
  padding: 12px;
  gap: 6px;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.desktop-item[data-size="2x2"] .weather-widget::after {
  background:
    linear-gradient(90deg, rgba(5, 10, 22, 0.42), rgba(5, 10, 22, 0.12) 56%, rgba(5, 10, 22, 0.3)),
    linear-gradient(180deg, transparent 0 36%, rgba(5, 10, 22, 0.54) 74%, rgba(5, 10, 22, 0.68));
}

.desktop-item[data-size="2x2"] .weather-temp {
  font-size: clamp(3rem, 4.7vw, 3.7rem);
  line-height: 0.82;
}

.desktop-item[data-size="2x2"] .weather-city {
  font-size: 0.78rem;
}

.desktop-item[data-size="2x2"] .weather-desc,
.desktop-item[data-size="2x2"] .weather-reading-copy {
  font-size: 0.6rem;
}

.desktop-item[data-size="2x2"] .weather-reading {
  align-self: stretch;
  grid-template-columns: minmax(0, auto) minmax(74px, 1fr);
  gap: 8px;
  align-items: end;
}

.desktop-item[data-size="2x2"] .weather-reading-copy {
  align-self: end;
  padding: 4px 5px;
  background: rgba(5, 10, 22, 0.34);
}

.desktop-item[data-size="2x2"] .weather-reading-copy span:nth-child(3) {
  display: none;
}

.desktop-item[data-size="2x2"] .weather-meta {
  display: none;
}

.desktop-item[data-size="2x2"] .weather-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding-top: 6px;
}

.desktop-item[data-size="2x2"] .weather-hour {
  padding: 4px 2px 3px;
  border-radius: 10px;
}

.desktop-item[data-size="2x2"] .weather-hour span,
.desktop-item[data-size="2x2"] .weather-hour strong {
  font-size: 0.5rem;
}

.desktop-item[data-size="2x2"] .weather-hour strong {
  font-size: 0.64rem;
}

.desktop-item[data-size="2x2"] .weather-meta span {
  min-height: 21px;
  padding: 0 3px;
  border-radius: 8px;
  font-size: 0.5rem;
}

.desktop-item[data-size="2x2"] .weather-updated {
  font-size: 0.52rem;
}

.desktop-item[data-size="2x2"] .weather-cloud {
  opacity: 0.55;
}

.desktop-item[data-size="2x2"] .weather-cloud--one {
  left: 20px;
  top: 62px;
}

.desktop-item[data-size="2x2"] .weather-cloud--two {
  right: 4px;
  top: 86px;
  transform: scale(0.78);
}

.desktop-item[data-size="2x2"] .weather-rain,
.desktop-item[data-size="2x2"] .weather-snow {
  left: 78px;
  right: 18px;
  top: 92px;
  height: 118px;
  mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 68%, transparent 100%);
}

.desktop-item[data-size="2x2"] .weather-widget[data-condition="rain"] .weather-rain {
  opacity: 0.34;
}

.desktop-item[data-size="2x2"] .weather-widget[data-condition="rain"][data-severity="heavy"] .weather-rain,
.desktop-item[data-size="2x2"] .weather-widget[data-condition="rain"][data-severity="storm"] .weather-rain,
.desktop-item[data-size="2x2"] .weather-widget[data-condition="storm"] .weather-rain {
  opacity: 0.44;
}

.desktop-item[data-size="3x2"] .weather-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.desktop-item[data-size="3x2"] .weather-widget,
.desktop-item[data-size="4x2"] .weather-widget {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.desktop-item[data-size="4x2"] .weather-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.app-grid {
  --icon-size: 78px;
  --grid-min: var(--cell-size);
  --page-swipe-x: 0px;
  --page-swipe-progress: 0;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--cell-size));
  grid-auto-rows: var(--cell-size);
  gap: var(--cell-gap);
  align-items: stretch;
  justify-items: stretch;
  padding: 0 0 48px;
  opacity: 1;
  transform: translate3d(var(--page-swipe-x), 0, 0);
  transform-origin: center center;
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.page-swipe-stage {
  --icon-size: 78px;
  --grid-min: var(--cell-size);
  --page-track-x: 0px;
  --page-preview-opacity: 0;
  position: fixed;
  z-index: 8;
  inset: var(--desktop-pad-top) var(--desktop-pad-x) var(--page-stage-bottom);
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  contain: layout paint style;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.page-swipe-stage.is-visible {
  opacity: var(--page-preview-opacity);
}

.page-swipe-stage.is-visible:not(.is-settling):not(.is-finishing):not(.is-handoff) {
  transition: none;
}

.page-swipe-track {
  width: 100%;
  height: 100%;
  display: flex;
  transform: translate3d(var(--page-track-x), 0, 0);
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  backface-visibility: hidden;
}

.page-swipe-panel {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--cell-size));
  grid-auto-rows: var(--cell-size);
  gap: var(--cell-gap);
  align-items: stretch;
  justify-items: stretch;
  overflow: hidden;
  padding: 0 0 48px;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.page-swipe-stage .app-tile,
.page-swipe-stage .desktop-item,
.page-swipe-stage .empty-page {
  pointer-events: none;
}

.page-swipe-stage.is-settling {
  transition: opacity 220ms ease;
}

.page-swipe-stage.is-settling .page-swipe-track {
  transition: transform 360ms cubic-bezier(0.18, 1.04, 0.24, 1);
}

.page-swipe-stage.is-finishing {
  transition: opacity 160ms ease;
}

.page-swipe-stage.is-finishing .page-swipe-track {
  transition: transform 240ms cubic-bezier(0.2, 1, 0.22, 1);
}

.page-swipe-stage.is-handoff {
  transition: none;
}

.page-swipe-stage.is-swap-ready {
  transition: none;
}

.app-grid.is-page-swiping {
  transition: none;
  will-change: transform;
  cursor: grabbing;
}

.page-swipe-stage.is-visible:not(.is-settling):not(.is-finishing):not(.is-handoff) .page-swipe-track {
  transition: none;
}

.app-grid.is-page-swiping,
.app-grid.is-page-finishing {
  opacity: 0 !important;
  pointer-events: none;
}

.app-grid.is-page-handoff {
  opacity: 0 !important;
  transition: none;
  pointer-events: none;
}

.app-grid.is-page-swap-hidden {
  opacity: 0 !important;
  transition: none !important;
  pointer-events: none !important;
}

body.is-page-swiping .app-grid:not(.is-page-handoff) {
  opacity: 0 !important;
  pointer-events: none;
}

.app-grid.is-page-settling {
  will-change: transform;
  transition: transform 360ms cubic-bezier(0.18, 1.04, 0.24, 1);
}

.app-grid.is-page-finishing {
  will-change: transform;
  transition: transform 240ms cubic-bezier(0.2, 1, 0.22, 1);
}

.empty-page {
  grid-column: 1 / -1;
  min-height: min(320px, calc(100vh - 320px));
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.62);
  pointer-events: none;
  animation: rise 320ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.empty-page strong {
  font-size: clamp(1.18rem, 2.6vw, 1.72rem);
  font-weight: 720;
  letter-spacing: 0;
}

.empty-page-actions {
  display: inline-flex;
  gap: 8px;
  pointer-events: auto;
}

.empty-page-actions .mini-button {
  min-height: 32px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.13);
}

.page-switcher {
  position: fixed;
  left: 50%;
  bottom: 148px;
  z-index: 13;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 96px;
  max-width: min(360px, calc(100vw - 48px));
  min-height: 29px;
  padding: 5px 8px;
  overflow: visible;
  border-radius: 999px;
  opacity: 0.72;
  background: rgba(7, 9, 18, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  transform: translateX(-50%);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  scrollbar-width: none;
}

.page-switcher:hover,
.page-switcher:focus-within,
body.is-page-swiping .page-switcher {
  opacity: 1;
  background: rgba(7, 9, 18, 0.2);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(1.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.14);
}

.page-switcher::-webkit-scrollbar {
  display: none;
}

.page-switcher button {
  position: relative;
  width: 7px;
  height: 7px;
  min-width: 7px;
  min-height: 7px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  color: transparent;
  font-size: 0;
  line-height: 0;
  transition: width 180ms cubic-bezier(0.2, 0.9, 0.2, 1), background 160ms ease, opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

body.is-page-swiping .page-switcher,
body.is-page-handoff .page-switcher,
body.is-page-hover-muted .page-switcher,
body.is-page-visual-quiet .page-switcher,
body.is-page-quiet-held .page-switcher,
body.is-page-swap-committing .page-switcher,
body.is-page-swap-locked .page-switcher,
body.is-page-post-swipe-settled .page-switcher,
body.is-page-swiping .page-switcher *,
body.is-page-handoff .page-switcher *,
body.is-page-hover-muted .page-switcher *,
body.is-page-visual-quiet .page-switcher *,
body.is-page-quiet-held .page-switcher *,
body.is-page-swap-committing .page-switcher *,
body.is-page-swap-locked .page-switcher *,
body.is-page-post-swipe-settled .page-switcher * {
  transition: none !important;
  animation: none !important;
}

body.is-page-hover-muted .page-switcher,
body.is-page-visual-quiet .page-switcher,
body.is-page-quiet-held .page-switcher,
body.is-page-swap-committing .page-switcher,
body.is-page-swap-locked .page-switcher,
body.is-page-post-swipe-settled .page-switcher {
  opacity: 0.72;
  background: rgba(7, 9, 18, 0.08);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
}

.page-switcher button:hover,
.page-switcher button:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.page-tooltip {
  position: fixed;
  z-index: 14;
  min-width: max-content;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 10, 20, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  font-size: 0.68rem;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -100%) translateY(3px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.page-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, -100%) translateY(0);
}

.page-switcher button span,
.page-switcher button small {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page-switcher button[aria-current="true"] {
  width: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.page-switcher:hover button[aria-current="true"],
.page-switcher:focus-within button[aria-current="true"],
body.is-page-swiping .page-switcher button[aria-current="true"] {
  background: rgba(255, 255, 255, 0.9);
}

body.is-page-hover-muted .page-switcher button:hover,
body.is-page-hover-muted .page-switcher button:focus-visible,
body.is-page-visual-quiet .page-switcher button:hover,
body.is-page-visual-quiet .page-switcher button:focus-visible,
body.is-page-quiet-held .page-switcher button:hover,
body.is-page-quiet-held .page-switcher button:focus-visible,
body.is-page-swap-committing .page-switcher button:hover,
body.is-page-swap-committing .page-switcher button:focus-visible,
body.is-page-swap-locked .page-switcher button:hover,
body.is-page-swap-locked .page-switcher button:focus-visible,
body.is-page-post-swipe-settled .page-switcher button:hover,
body.is-page-post-swipe-settled .page-switcher button:focus-visible {
  background: rgba(255, 255, 255, 0.32);
  transform: none;
}

body.is-page-hover-muted .page-switcher button[aria-current="true"],
body.is-page-hover-muted .page-switcher:hover button[aria-current="true"],
body.is-page-hover-muted .page-switcher:focus-within button[aria-current="true"],
body.is-page-visual-quiet .page-switcher button[aria-current="true"],
body.is-page-visual-quiet .page-switcher:hover button[aria-current="true"],
body.is-page-visual-quiet .page-switcher:focus-within button[aria-current="true"],
body.is-page-quiet-held .page-switcher button[aria-current="true"],
body.is-page-quiet-held .page-switcher:hover button[aria-current="true"],
body.is-page-quiet-held .page-switcher:focus-within button[aria-current="true"],
body.is-page-swap-committing .page-switcher button[aria-current="true"],
body.is-page-swap-committing .page-switcher:hover button[aria-current="true"],
body.is-page-swap-committing .page-switcher:focus-within button[aria-current="true"],
body.is-page-swap-locked .page-switcher button[aria-current="true"],
body.is-page-swap-locked .page-switcher:hover button[aria-current="true"],
body.is-page-swap-locked .page-switcher:focus-within button[aria-current="true"],
body.is-page-post-swipe-settled .page-switcher button[aria-current="true"],
body.is-page-post-swipe-settled .page-switcher:hover button[aria-current="true"],
body.is-page-post-swipe-settled .page-switcher:focus-within button[aria-current="true"] {
  width: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
  transform: none;
}

.page-switcher .page-overview-trigger {
  width: 19px;
  height: 19px;
  min-width: 19px;
  min-height: 19px;
  display: grid;
  place-items: center;
  margin-right: 3px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.8) 2px, transparent 2px) 4px 4px / 5px 5px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.8) 2px, transparent 2px) 10px 4px / 5px 5px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.8) 2px, transparent 2px) 4px 10px / 5px 5px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.8) 2px, transparent 2px) 10px 10px / 5px 5px no-repeat,
    rgba(255, 255, 255, 0.1);
  opacity: 0.9;
}

.page-switcher .page-overview-trigger:hover,
.page-switcher .page-overview-trigger:focus-visible {
  width: 19px;
  background-color: rgba(255, 255, 255, 0.18);
  opacity: 1;
}

.favorite-dock {
  --dock-item-size: 66px;
  --dock-item-gap: 12px;
  --dock-safe-pad: clamp(22px, calc(14px + var(--dock-count) * 2px), 38px);
  --dock-hover-room: clamp(14px, calc((var(--dock-count) - 4) * 8px), 38px);
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 12;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: var(--dock-item-gap);
  width: min(
    calc((var(--dock-count) * var(--dock-item-size)) + ((var(--dock-count) - 1) * var(--dock-item-gap)) + (var(--dock-safe-pad) * 2) + var(--dock-hover-room)),
    calc(100vw - 28px)
  );
  min-width: min(
    max(266px, calc((var(--dock-count) * 62px) + ((var(--dock-count) - 1) * 10px) + 64px)),
    calc(100vw - 28px)
  );
  max-width: min(1380px, calc(100vw - 28px));
  min-height: 104px;
  padding: 18px var(--dock-safe-pad) 12px;
  overflow-x: clip;
  overflow-y: visible;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(7, 9, 18, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 20px 64px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(26px) saturate(1.26);
  -webkit-backdrop-filter: blur(26px) saturate(1.26);
  transform: translateX(-50%);
  transition: opacity 180ms ease, transform 180ms ease;
  scrollbar-width: none;
}

.favorite-dock::-webkit-scrollbar {
  display: none;
}

.favorite-dock::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2), transparent 54%);
  opacity: 0.7;
}

.favorite-dock.is-empty {
  width: min(280px, calc(100vw - 28px));
  justify-content: center;
}

.dock-empty-hint {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.74rem;
  white-space: nowrap;
}

body.is-panel-open .page-switcher {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
}

.favorite-dock.is-dock-reordering {
  overflow-x: auto;
  overflow-y: visible;
}

.favorite-dock.is-dock-remove-target {
  overflow-x: auto;
  overflow-y: visible;
  border-color: rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045)),
    rgba(12, 10, 18, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 20px 64px rgba(0, 0, 0, 0.44),
    0 0 0 5px rgba(255, 255, 255, 0.045);
  transform: translateX(-50%) translateY(2px) scale(0.985);
}

.favorite-dock.is-dock-drop-target {
  overflow-x: auto;
  overflow-y: visible;
  border-color: rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08)),
    rgba(12, 16, 30, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 24px 76px rgba(0, 0, 0, 0.5),
    0 0 0 6px rgba(255, 255, 255, 0.07);
  transform: translateX(-50%) translateY(-4px) scale(1.02);
}

.dock-link {
  --dock-scale: 1;
  --dock-lift: 0px;
  width: var(--dock-item-size);
  flex: 0 0 var(--dock-item-size);
  display: grid;
  justify-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  transform: translateY(var(--dock-lift)) scale(var(--dock-scale));
  transform-origin: center bottom;
  transition: transform 180ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 160ms ease, color 160ms ease;
  will-change: transform;
  z-index: 1;
}

.favorite-dock.is-editing .dock-link,
.favorite-dock.is-dock-pending .dock-link,
.favorite-dock.is-dock-reordering .dock-link {
  cursor: grab;
}

.favorite-dock.is-dock-reordering .dock-link.is-dock-dragging {
  opacity: 0.58;
  transform: translateY(-7px) scale(1.08);
}

.favorite-dock.is-dock-remove-target .dock-link.is-dock-dragging {
  opacity: 0.28;
  transform: translateY(-18px) scale(0.92);
}

.dock-link img {
  width: 66px;
  height: 66px;
  padding: 10px;
  border-radius: 17px;
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px rgba(15, 23, 42, 0.055),
    0 10px 24px rgba(0, 0, 0, 0.32);
  transition: box-shadow 180ms ease, filter 180ms ease;
}

body:not(.is-page-hover-muted):not(.is-page-visual-quiet):not(.is-page-quiet-held):not(.is-page-swap-committing):not(.is-page-swap-locked):not(.is-page-post-swipe-settled) .favorite-dock:not(.is-mobile-lite) .dock-link:hover,
body:not(.is-page-hover-muted):not(.is-page-visual-quiet):not(.is-page-quiet-held):not(.is-page-swap-committing):not(.is-page-swap-locked):not(.is-page-post-swipe-settled) .favorite-dock:not(.is-mobile-lite) .dock-link:focus-visible {
  color: #fff;
}

body:not(.is-page-hover-muted):not(.is-page-visual-quiet):not(.is-page-quiet-held):not(.is-page-swap-committing):not(.is-page-swap-locked):not(.is-page-post-swipe-settled) .favorite-dock:not(.is-mobile-lite) .dock-link:hover img,
body:not(.is-page-hover-muted):not(.is-page-visual-quiet):not(.is-page-quiet-held):not(.is-page-swap-committing):not(.is-page-swap-locked):not(.is-page-post-swipe-settled) .favorite-dock:not(.is-mobile-lite) .dock-link:focus-visible img {
  filter: brightness(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(15, 23, 42, 0.09),
    inset 0 0 0 1px rgba(15, 23, 42, 0.065),
    0 15px 30px rgba(0, 0, 0, 0.38);
}

.favorite-dock.is-mobile-lite .dock-link,
.favorite-dock.is-mobile-lite .dock-link:hover,
.favorite-dock.is-mobile-lite .dock-link:focus-visible {
  color: rgba(255, 255, 255, 0.78);
  transform: none !important;
  transition: opacity 160ms ease;
}

.favorite-dock.is-mobile-lite .dock-link img,
.favorite-dock.is-mobile-lite .dock-link:hover img,
.favorite-dock.is-mobile-lite .dock-link:focus-visible img {
  filter: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px rgba(15, 23, 42, 0.055),
    0 10px 24px rgba(0, 0, 0, 0.32);
  transition: none;
}

.icon-fallback {
  display: grid;
  place-items: center;
  color: #10131f;
  font-weight: 800;
  line-height: 1;
}

.dock-link .icon-fallback {
  width: 66px;
  height: 66px;
  border-radius: 17px;
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px rgba(15, 23, 42, 0.055),
    0 10px 24px rgba(0, 0, 0, 0.32);
  font-size: 1.32rem;
}

.dock-link span {
  width: var(--dock-item-size);
  max-width: var(--dock-item-size);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  text-align: center;
}

body[data-dock-labels="hide"] .dock-link {
  width: 74px;
  flex-basis: 74px;
  gap: 0;
}

body[data-dock-labels="hide"] .dock-link span {
  display: none;
}

.page-manager {
  gap: 10px;
}

.preference-manager {
  gap: 9px;
}

.preference-grid {
  display: grid;
  gap: 8px;
}

.preference-grid label {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.preference-grid span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
}

.preference-grid select {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: 0;
}

.preference-grid option {
  background: #10131f;
  color: #fff;
}

.page-list {
  display: grid;
  gap: 6px;
}

.page-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.page-list-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  width: 100%;
  min-height: 38px;
  padding: 5px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.page-list-row[aria-current="true"] .page-list-main {
  background: rgba(255, 255, 255, 0.17);
  color: #fff;
}

.page-list-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.page-list-meta span,
.page-list-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-list-meta small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.66rem;
  font-weight: 500;
}

.page-list-preview {
  display: inline-flex !important;
  align-items: center;
  min-width: 54px;
  max-width: 72px;
  overflow: hidden;
}

.page-list-preview-icon,
.page-list-preview-empty,
.page-list-preview-more {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid !important;
  place-items: center;
  border-radius: 5px;
  background: #fff;
  color: #111827;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.page-list-preview-icon + .page-list-preview-icon,
.page-list-preview-more {
  margin-left: -6px;
}

.page-list-preview img {
  width: 58%;
  height: 58%;
  object-fit: contain;
}

.page-list-preview .icon-fallback {
  width: 58%;
  height: 58%;
  color: #111827;
  font-size: 0.58rem;
}

.page-list-preview-empty,
.page-list-preview-more {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  box-shadow: none;
}

.page-list-controls {
  display: inline-flex;
  gap: 4px;
}

.page-move-button {
  width: 26px;
  min-height: 26px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
}

.page-move-button:disabled {
  opacity: 0.28;
  cursor: default;
}

.current-page-contents {
  display: grid;
  gap: 6px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.current-page-contents-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.88);
}

.current-page-contents-header strong,
.current-page-contents-header span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-page-contents-header strong {
  min-width: 0;
  font-size: 0.8rem;
}

.current-page-contents-header span {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.66rem;
}

.current-page-site-list {
  display: grid;
  gap: 5px;
  max-height: 188px;
  overflow-y: auto;
  padding-right: 1px;
  scrollbar-width: none;
}

.current-page-site-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.current-page-site {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-width: 0;
  min-height: 34px;
  padding: 4px 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
}

.current-page-site-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--tile-tint, #fff);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.current-page-site-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.current-page-site-icon .icon-fallback {
  width: 18px;
  height: 18px;
  color: #111827;
  font-size: 0.72rem;
}

.current-page-site-copy {
  display: grid;
  min-width: 0;
}

.current-page-site-copy strong,
.current-page-site-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-page-site-copy strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
}

.current-page-site-copy small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.62rem;
}

.current-page-site-actions {
  display: inline-flex;
  gap: 4px;
}

.current-page-site-actions .mini-button {
  min-height: 24px;
  padding: 0 7px;
  border-radius: 8px;
  font-size: 0.66rem;
}

.current-page-empty {
  margin: 0;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
}

.page-editor {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.desktop-item {
  min-width: 0;
  min-height: 0;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 420ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  cursor: grab;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease;
}

.app-grid[data-scale="compact"],
.page-swipe-stage[data-scale="compact"] {
  --icon-size: 62px;
}

.app-grid[data-scale="large"],
.page-swipe-stage[data-scale="large"] {
  --icon-size: 96px;
}

.app-tile {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.92);
  transform: translateY(10px);
  opacity: 0;
  animation: rise 420ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease;
}

.app-grid.is-reordering .app-tile,
.app-grid.is-reordering .desktop-item {
  animation: none !important;
  opacity: 1;
}

.app-grid .is-render-settled,
.page-swipe-stage .is-render-settled {
  animation: none !important;
  opacity: 1;
  transform: none;
}

body.is-page-visual-quiet #appGrid.is-grid-swap-render .app-tile,
body.is-page-visual-quiet #appGrid.is-grid-swap-render .desktop-item,
body.is-page-visual-quiet #appGrid.is-grid-swap-render .empty-page,
body.is-page-swap-committing #appGrid.is-grid-swap-render .app-tile,
body.is-page-swap-committing #appGrid.is-grid-swap-render .desktop-item,
body.is-page-swap-committing #appGrid.is-grid-swap-render .empty-page {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

body.is-page-swiping #appGrid,
body.is-page-handoff #appGrid,
body.is-page-swap-committing #appGrid,
body.is-page-swap-committing #appGrid > .app-tile,
body.is-page-swap-committing #appGrid > .desktop-item,
body.is-page-swap-committing #appGrid > .empty-page,
body.is-page-swap-stabilizing #appGrid,
body.is-page-swap-stabilizing #appGrid > .app-tile,
body.is-page-swap-stabilizing #appGrid > .desktop-item,
body.is-page-swap-stabilizing #appGrid > .empty-page,
body.is-page-swap-locked #appGrid,
body.is-page-swap-locked #appGrid > .app-tile,
body.is-page-swap-locked #appGrid > .desktop-item,
body.is-page-swap-locked #appGrid > .empty-page,
body.is-page-post-swipe-settled #appGrid,
body.is-page-post-swipe-settled #appGrid > .app-tile,
body.is-page-post-swipe-settled #appGrid > .desktop-item,
body.is-page-post-swipe-settled #appGrid > .empty-page,
body.is-page-swap-committing .page-swipe-stage,
body.is-page-swap-committing .page-swipe-stage > .page-swipe-track,
body.is-page-swap-committing .page-swipe-stage .page-swipe-panel > .app-tile,
body.is-page-swap-committing .page-swipe-stage .page-swipe-panel > .desktop-item,
body.is-page-swap-committing .page-swipe-stage .page-swipe-panel > .empty-page {
  transition: none !important;
  animation: none !important;
}

body.is-page-visual-quiet #appGrid,
body.is-page-visual-quiet #appGrid > .app-tile,
body.is-page-visual-quiet #appGrid > .desktop-item,
body.is-page-visual-quiet #appGrid > .empty-page,
body.is-page-visual-quiet #favoriteDock,
body.is-page-visual-quiet #favoriteDock *,
body.is-page-swap-committing #appGrid,
body.is-page-swap-committing #appGrid > .app-tile,
body.is-page-swap-committing #appGrid > .desktop-item,
body.is-page-swap-committing #appGrid > .empty-page,
body.is-page-swap-committing #favoriteDock,
body.is-page-swap-committing #favoriteDock *,
body.is-page-swap-stabilizing #appGrid,
body.is-page-swap-stabilizing #appGrid > .app-tile,
body.is-page-swap-stabilizing #appGrid > .desktop-item,
body.is-page-swap-stabilizing #appGrid > .empty-page,
body.is-page-swap-stabilizing #favoriteDock,
body.is-page-swap-stabilizing #favoriteDock *,
body.is-page-swap-locked #appGrid,
body.is-page-swap-locked #appGrid > .app-tile,
body.is-page-swap-locked #appGrid > .desktop-item,
body.is-page-swap-locked #appGrid > .empty-page,
body.is-page-swap-locked #favoriteDock,
body.is-page-swap-locked #favoriteDock *,
body.is-page-post-swipe-settled #appGrid,
body.is-page-post-swipe-settled #appGrid > .app-tile,
body.is-page-post-swipe-settled #appGrid > .desktop-item,
body.is-page-post-swipe-settled #appGrid > .empty-page,
body.is-page-post-swipe-settled #favoriteDock,
body.is-page-post-swipe-settled #favoriteDock * {
  transition: none !important;
  animation: none !important;
}

body.is-page-quiet-held #appGrid,
body.is-page-quiet-held #appGrid > .app-tile,
body.is-page-quiet-held #appGrid > .desktop-item,
body.is-page-quiet-held #appGrid > .empty-page,
body.is-page-quiet-held #favoriteDock,
body.is-page-quiet-held #favoriteDock *,
body.is-page-quiet-held .page-swipe-stage > .page-swipe-track,
body.is-page-quiet-held .page-swipe-stage .page-swipe-panel > .app-tile,
body.is-page-quiet-held .page-swipe-stage .page-swipe-panel > .desktop-item,
body.is-page-quiet-held .page-swipe-stage .page-swipe-panel > .empty-page {
  animation: none !important;
}

body.is-page-visual-quiet .app-link,
body.is-page-visual-quiet .time-widget,
body.is-page-visual-quiet .weather-widget,
body.is-page-visual-quiet .dock-link,
body.is-page-visual-quiet .dock-link img,
body.is-page-visual-quiet .app-link:active,
body.is-page-visual-quiet .time-widget:active,
body.is-page-visual-quiet .weather-widget:active,
body.is-page-visual-quiet .dock-link:hover,
body.is-page-visual-quiet .dock-link:hover img,
body.is-page-visual-quiet .app-link:hover,
body.is-page-visual-quiet .time-widget:hover,
body.is-page-visual-quiet .weather-widget:hover,
body.is-page-visual-quiet .dock-link:focus-visible,
body.is-page-visual-quiet .dock-link:focus-visible img,
body.is-page-visual-quiet .app-link:focus-visible,
body.is-page-visual-quiet .time-widget:focus-visible,
body.is-page-visual-quiet .weather-widget:focus-visible,
body.is-page-swap-committing .app-link,
body.is-page-swap-committing .time-widget,
body.is-page-swap-committing .weather-widget,
body.is-page-swap-committing .dock-link,
body.is-page-swap-committing .dock-link img,
body.is-page-swap-stabilizing .app-link,
body.is-page-swap-stabilizing .time-widget,
body.is-page-swap-stabilizing .weather-widget,
body.is-page-swap-stabilizing .dock-link,
body.is-page-swap-stabilizing .dock-link img,
body.is-page-swap-locked .app-link,
body.is-page-swap-locked .time-widget,
body.is-page-swap-locked .weather-widget,
body.is-page-swap-locked .dock-link,
body.is-page-swap-locked .dock-link img,
body.is-page-swap-committing .app-link:active,
body.is-page-swap-committing .time-widget:active,
body.is-page-swap-committing .weather-widget:active,
body.is-page-swap-committing .dock-link:hover,
body.is-page-swap-committing .dock-link:hover img,
body.is-page-swap-committing .app-link:hover,
body.is-page-swap-committing .time-widget:hover,
body.is-page-swap-committing .weather-widget:hover,
body.is-page-swap-committing .dock-link:focus-visible,
body.is-page-swap-committing .dock-link:focus-visible img,
body.is-page-swap-committing .app-link:focus-visible,
body.is-page-swap-committing .time-widget:focus-visible,
body.is-page-swap-committing .weather-widget:focus-visible,
body.is-page-swap-stabilizing .app-link:active,
body.is-page-swap-stabilizing .time-widget:active,
body.is-page-swap-stabilizing .weather-widget:active,
body.is-page-swap-stabilizing .dock-link:hover,
body.is-page-swap-stabilizing .dock-link:hover img,
body.is-page-swap-stabilizing .app-link:hover,
body.is-page-swap-stabilizing .time-widget:hover,
body.is-page-swap-stabilizing .weather-widget:hover,
body.is-page-swap-stabilizing .dock-link:focus-visible,
body.is-page-swap-stabilizing .dock-link:focus-visible img,
body.is-page-swap-stabilizing .app-link:focus-visible,
body.is-page-swap-stabilizing .time-widget:focus-visible,
body.is-page-swap-stabilizing .weather-widget:focus-visible,
body.is-page-swap-locked .app-link:active,
body.is-page-swap-locked .time-widget:active,
body.is-page-swap-locked .weather-widget:active,
body.is-page-swap-locked .dock-link:hover,
body.is-page-swap-locked .dock-link:hover img,
body.is-page-swap-locked .app-link:hover,
body.is-page-swap-locked .time-widget:hover,
body.is-page-swap-locked .weather-widget:hover,
body.is-page-swap-locked .dock-link:focus-visible,
body.is-page-swap-locked .dock-link:focus-visible img,
body.is-page-swap-locked .app-link:focus-visible,
body.is-page-swap-locked .time-widget:focus-visible,
body.is-page-swap-locked .weather-widget:focus-visible,
body.is-page-post-swipe-settled .app-link,
body.is-page-post-swipe-settled .time-widget,
body.is-page-post-swipe-settled .weather-widget,
body.is-page-post-swipe-settled .dock-link,
body.is-page-post-swipe-settled .dock-link img,
body.is-page-post-swipe-settled .app-link:active,
body.is-page-post-swipe-settled .time-widget:active,
body.is-page-post-swipe-settled .weather-widget:active,
body.is-page-post-swipe-settled .dock-link:hover,
body.is-page-post-swipe-settled .dock-link:hover img,
body.is-page-post-swipe-settled .app-link:hover,
body.is-page-post-swipe-settled .time-widget:hover,
body.is-page-post-swipe-settled .weather-widget:hover,
body.is-page-post-swipe-settled .dock-link:focus-visible,
body.is-page-post-swipe-settled .dock-link:focus-visible img,
body.is-page-post-swipe-settled .app-link:focus-visible,
body.is-page-post-swipe-settled .time-widget:focus-visible,
body.is-page-post-swipe-settled .weather-widget:focus-visible {
  transform: none !important;
  filter: none !important;
  outline: none !important;
  transition: none !important;
}

body.is-page-visual-quiet .app-link,
body.is-page-visual-quiet .app-link:active,
body.is-page-visual-quiet .app-link:hover,
body.is-page-visual-quiet .app-link:focus-visible,
body.is-page-swap-committing .app-link,
body.is-page-swap-committing .app-link:active,
body.is-page-swap-committing .app-link:hover,
body.is-page-swap-committing .app-link:focus-visible,
body.is-page-swap-stabilizing .app-link,
body.is-page-swap-stabilizing .app-link:active,
body.is-page-swap-stabilizing .app-link:hover,
body.is-page-swap-stabilizing .app-link:focus-visible,
body.is-page-swap-locked .app-link,
body.is-page-swap-locked .app-link:active,
body.is-page-swap-locked .app-link:hover,
body.is-page-swap-locked .app-link:focus-visible,
body.is-page-post-swipe-settled .app-link,
body.is-page-post-swipe-settled .app-link:active,
body.is-page-post-swipe-settled .app-link:hover,
body.is-page-post-swipe-settled .app-link:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(15, 23, 42, 0.075),
    inset 0 0 0 1px rgba(15, 23, 42, 0.045),
    0 10px 22px rgba(0, 0, 0, 0.28);
}

body.is-page-visual-quiet .time-widget,
body.is-page-visual-quiet .time-widget:active,
body.is-page-visual-quiet .time-widget:hover,
body.is-page-visual-quiet .time-widget:focus-visible,
body.is-page-swap-committing .time-widget,
body.is-page-swap-committing .time-widget:active,
body.is-page-swap-committing .time-widget:hover,
body.is-page-swap-committing .time-widget:focus-visible,
body.is-page-swap-stabilizing .time-widget,
body.is-page-swap-stabilizing .time-widget:active,
body.is-page-swap-stabilizing .time-widget:hover,
body.is-page-swap-stabilizing .time-widget:focus-visible,
body.is-page-swap-locked .time-widget,
body.is-page-swap-locked .time-widget:active,
body.is-page-swap-locked .time-widget:hover,
body.is-page-swap-locked .time-widget:focus-visible,
body.is-page-post-swipe-settled .time-widget,
body.is-page-post-swipe-settled .time-widget:active,
body.is-page-post-swipe-settled .time-widget:hover,
body.is-page-post-swipe-settled .time-widget:focus-visible,
body.is-page-hover-muted .time-widget,
body.is-page-hover-muted .time-widget:hover,
body.is-page-hover-muted .time-widget:focus-visible,
body.is-page-quiet-held .time-widget,
body.is-page-quiet-held .time-widget:hover,
body.is-page-quiet-held .time-widget:focus-visible {
  background: rgba(8, 10, 20, 0.42);
  box-shadow: var(--shadow);
}

body.is-page-visual-quiet .weather-widget,
body.is-page-visual-quiet .weather-widget:active,
body.is-page-visual-quiet .weather-widget:hover,
body.is-page-visual-quiet .weather-widget:focus-visible,
body.is-page-swap-committing .weather-widget,
body.is-page-swap-committing .weather-widget:active,
body.is-page-swap-committing .weather-widget:hover,
body.is-page-swap-committing .weather-widget:focus-visible,
body.is-page-swap-stabilizing .weather-widget,
body.is-page-swap-stabilizing .weather-widget:active,
body.is-page-swap-stabilizing .weather-widget:hover,
body.is-page-swap-stabilizing .weather-widget:focus-visible,
body.is-page-swap-locked .weather-widget,
body.is-page-swap-locked .weather-widget:active,
body.is-page-swap-locked .weather-widget:hover,
body.is-page-swap-locked .weather-widget:focus-visible,
body.is-page-post-swipe-settled .weather-widget,
body.is-page-post-swipe-settled .weather-widget:active,
body.is-page-post-swipe-settled .weather-widget:hover,
body.is-page-post-swipe-settled .weather-widget:focus-visible,
body.is-page-hover-muted .weather-widget,
body.is-page-hover-muted .weather-widget:hover,
body.is-page-hover-muted .weather-widget:focus-visible,
body.is-page-quiet-held .weather-widget,
body.is-page-quiet-held .weather-widget:hover,
body.is-page-quiet-held .weather-widget:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -78px 120px rgba(5, 16, 38, 0.34),
    0 22px 56px rgba(0, 0, 0, 0.34);
}

body.is-page-visual-quiet .dock-link img,
body.is-page-visual-quiet .dock-link:hover img,
body.is-page-visual-quiet .dock-link:focus-visible img,
body.is-page-swap-committing .dock-link img,
body.is-page-swap-committing .dock-link:hover img,
body.is-page-swap-committing .dock-link:focus-visible img,
body.is-page-swap-stabilizing .dock-link img,
body.is-page-swap-stabilizing .dock-link:hover img,
body.is-page-swap-stabilizing .dock-link:focus-visible img,
body.is-page-swap-locked .dock-link img,
body.is-page-swap-locked .dock-link:hover img,
body.is-page-swap-locked .dock-link:focus-visible img,
body.is-page-post-swipe-settled .dock-link img,
body.is-page-post-swipe-settled .dock-link:hover img,
body.is-page-post-swipe-settled .dock-link:focus-visible img,
body.is-page-hover-muted .dock-link img,
body.is-page-hover-muted .dock-link:hover img,
body.is-page-hover-muted .dock-link:focus-visible img,
body.is-page-quiet-held .dock-link img,
body.is-page-quiet-held .dock-link:hover img,
body.is-page-quiet-held .dock-link:focus-visible img {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px rgba(15, 23, 42, 0.055),
    0 10px 24px rgba(0, 0, 0, 0.32);
}

.app-grid.is-reordering::before,
.app-grid.is-reordering::after {
  content: "";
  position: fixed;
  top: 18%;
  bottom: 22%;
  z-index: 2;
  width: 72px;
  pointer-events: none;
  opacity: 0.22;
  transition: opacity 180ms ease;
}

.app-grid.is-reordering::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.26), transparent);
}

.app-grid.is-reordering::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.26), transparent);
}

.app-tile.is-dragging,
.desktop-item.is-dragging {
  opacity: 0;
  pointer-events: none;
}

.app-tile.is-dragging.is-placeholder,
.desktop-item.is-dragging.is-placeholder {
  opacity: 0.18;
}

.app-tile.is-placeholder .app-link,
.desktop-item.is-placeholder > .time-widget,
.desktop-item.is-placeholder > .weather-widget {
  border: 1px dashed rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.app-tile.is-selected .app-link,
.desktop-item.is-selected > .time-widget,
.desktop-item.is-selected > .weather-widget {
  outline: 3px solid rgba(147, 197, 253, 0.86);
  outline-offset: 5px;
}

body.is-page-hover-muted .app-tile.is-selected .app-link,
body.is-page-hover-muted .desktop-item.is-selected > .time-widget,
body.is-page-hover-muted .desktop-item.is-selected > .weather-widget,
body.is-page-visual-quiet .app-tile.is-selected .app-link,
body.is-page-visual-quiet .desktop-item.is-selected > .time-widget,
body.is-page-visual-quiet .desktop-item.is-selected > .weather-widget,
body.is-page-swap-committing .app-tile.is-selected .app-link,
body.is-page-swap-committing .desktop-item.is-selected > .time-widget,
body.is-page-swap-committing .desktop-item.is-selected > .weather-widget,
body.is-page-swap-locked .app-tile.is-selected .app-link,
body.is-page-swap-locked .desktop-item.is-selected > .time-widget,
body.is-page-swap-locked .desktop-item.is-selected > .weather-widget {
  outline: none !important;
}

body.is-page-post-swipe-settled .app-tile.is-selected .app-link,
body.is-page-post-swipe-settled .desktop-item.is-selected > .time-widget,
body.is-page-post-swipe-settled .desktop-item.is-selected > .weather-widget {
  outline: none !important;
}

.app-grid.is-editing .app-link,
.app-grid.is-editing .time-widget,
.app-grid.is-editing .weather-widget {
  cursor: grab;
}

body[data-motion="ambient"]:not(.is-page-hover-muted):not(.is-page-visual-quiet):not(.is-page-quiet-held):not(.is-page-swap-committing):not(.is-page-swap-locked):not(.is-page-post-swipe-settled) .app-grid.is-editing:not(.is-reordering) .app-tile:not(.is-pressing):not(.is-dragging) .app-link,
body[data-motion="ambient"]:not(.is-page-hover-muted):not(.is-page-visual-quiet):not(.is-page-quiet-held):not(.is-page-swap-committing):not(.is-page-swap-locked):not(.is-page-post-swipe-settled) .app-grid.is-editing:not(.is-reordering) .desktop-item:not(.is-pressing):not(.is-dragging) > .time-widget,
body[data-motion="ambient"]:not(.is-page-hover-muted):not(.is-page-visual-quiet):not(.is-page-quiet-held):not(.is-page-swap-committing):not(.is-page-swap-locked):not(.is-page-post-swipe-settled) .app-grid.is-editing:not(.is-reordering) .desktop-item:not(.is-pressing):not(.is-dragging) > .weather-widget {
  animation: editWiggle 1680ms ease-in-out infinite;
  animation-delay: calc((var(--item-index, 0) % 6) * -150ms);
  transform-origin: center center;
}

body:not(.is-page-hover-muted):not(.is-page-visual-quiet):not(.is-page-quiet-held):not(.is-page-swap-committing):not(.is-page-swap-locked):not(.is-page-post-swipe-settled) .app-tile.is-pressing .app-link,
body:not(.is-page-hover-muted):not(.is-page-visual-quiet):not(.is-page-quiet-held):not(.is-page-swap-committing):not(.is-page-swap-locked):not(.is-page-post-swipe-settled) .desktop-item.is-pressing > .time-widget,
body:not(.is-page-hover-muted):not(.is-page-visual-quiet):not(.is-page-quiet-held):not(.is-page-swap-committing):not(.is-page-swap-locked):not(.is-page-post-swipe-settled) .desktop-item.is-pressing > .weather-widget {
  transform: scale(0.97);
  filter: brightness(1.08);
}

.app-favorite-toggle {
  position: absolute;
  z-index: 3;
  top: -6px;
  right: calc(50% - var(--icon-size) / 2 - 6px);
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(8, 10, 20, 0.68);
  color: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.36);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.86);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease, color 160ms ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.app-grid.is-editing .app-favorite-toggle {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.app-favorite-toggle[data-favorite="true"] {
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
}

.app-favorite-toggle:hover,
.app-favorite-toggle:focus-visible {
  color: #fff;
  background: rgba(59, 130, 246, 0.9);
}

.app-favorite-toggle[data-favorite="true"]:hover,
.app-favorite-toggle[data-favorite="true"]:focus-visible {
  color: #111827;
  background: #fff;
}

.app-tile--2x1 .app-favorite-toggle,
.app-tile--2x2 .app-favorite-toggle {
  top: 10px;
  right: 10px;
}

.app-link {
  position: relative;
  width: var(--icon-size);
  height: var(--icon-size);
  max-width: 100%;
  max-height: 100%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(15, 23, 42, 0.075),
    inset 0 0 0 1px rgba(15, 23, 42, 0.045),
    0 10px 22px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

.app-tile--1x1 {
  align-content: center;
}

.app-tile--2x1 .app-link,
.app-tile--2x2 .app-link {
  width: 100%;
  height: 100%;
  border-radius: 18px;
}

.app-tile--2x1 .app-link img,
.app-tile--2x2 .app-link img {
  width: min(72px, 42%);
  height: min(72px, 42%);
}

.app-tile--2x1,
.app-tile--2x2 {
  align-content: stretch;
}

.app-tile--2x1 .app-name,
.app-tile--2x2 .app-name {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  width: auto;
  text-align: left;
  font-weight: 700;
  color: #111827;
  text-shadow: none;
}

body:not(.is-page-hover-muted):not(.is-page-visual-quiet):not(.is-page-quiet-held):not(.is-page-swap-committing):not(.is-page-swap-locked):not(.is-page-post-swipe-settled) .app-link:hover {
  transform: translateY(-7px) scale(1.04);
  filter: brightness(1.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(15, 23, 42, 0.09),
    inset 0 0 0 1px rgba(15, 23, 42, 0.06),
    0 16px 30px rgba(0, 0, 0, 0.34);
}

body.is-page-hover-muted .app-link,
body.is-page-hover-muted .time-widget,
body.is-page-hover-muted .weather-widget,
body.is-page-hover-muted .dock-link,
body.is-page-hover-muted .dock-link img,
body.is-page-hover-muted .app-link:hover,
body.is-page-hover-muted .time-widget:hover,
body.is-page-hover-muted .weather-widget:hover,
body.is-page-hover-muted .dock-link:hover,
body.is-page-hover-muted .dock-link:hover img,
body.is-page-hover-muted .app-link:focus-visible,
body.is-page-hover-muted .time-widget:focus-visible,
body.is-page-hover-muted .weather-widget:focus-visible,
body.is-page-hover-muted .dock-link:focus-visible,
body.is-page-hover-muted .dock-link:focus-visible img {
  transform: none !important;
  filter: none !important;
  outline: none !important;
  transition: none !important;
}

body.is-page-hover-muted .app-link,
body.is-page-hover-muted .app-link:hover,
body.is-page-hover-muted .app-link:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(15, 23, 42, 0.075),
    inset 0 0 0 1px rgba(15, 23, 42, 0.045),
    0 10px 22px rgba(0, 0, 0, 0.28);
}

.app-link:active {
  transform: translateY(-1px) scale(0.96);
}

body.is-page-hover-muted .app-link:active,
body.is-page-hover-muted .time-widget:active,
body.is-page-hover-muted .weather-widget:active,
body.is-page-hover-muted .dock-link:active,
body.is-page-hover-muted .dock-link:active img {
  transform: none;
  filter: none;
}

body.is-page-quiet-held .app-link,
body.is-page-quiet-held .time-widget,
body.is-page-quiet-held .weather-widget,
body.is-page-quiet-held .dock-link,
body.is-page-quiet-held .dock-link img,
body.is-page-quiet-held .app-link:hover,
body.is-page-quiet-held .time-widget:hover,
body.is-page-quiet-held .weather-widget:hover,
body.is-page-quiet-held .dock-link:hover,
body.is-page-quiet-held .dock-link:hover img,
body.is-page-quiet-held .app-link:active,
body.is-page-quiet-held .time-widget:active,
body.is-page-quiet-held .weather-widget:active,
body.is-page-quiet-held .dock-link:active,
body.is-page-quiet-held .dock-link:active img,
body.is-page-quiet-held .app-link:focus-visible,
body.is-page-quiet-held .time-widget:focus-visible,
body.is-page-quiet-held .weather-widget:focus-visible,
body.is-page-quiet-held .dock-link:focus-visible,
body.is-page-quiet-held .dock-link:focus-visible img {
  transform: none !important;
  filter: none !important;
  outline: none !important;
  transition: none !important;
}

.app-link img {
  width: 58%;
  height: 58%;
  object-fit: contain;
  filter: none;
  pointer-events: none;
}

.app-fallback {
  font-size: calc(var(--icon-size) * 0.34);
  font-weight: 800;
}

.app-name {
  width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.86);
  user-select: none;
}

.drag-ghost {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: var(--ghost-width, var(--icon-size));
  height: var(--ghost-height, var(--icon-size));
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--ghost-radius, 16px);
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 24px 54px rgba(0, 0, 0, 0.46);
  pointer-events: none;
  transform: translate3d(var(--ghost-x, 0), var(--ghost-y, 0), 0) scale(1.035);
  overflow: hidden;
  will-change: transform;
  transition: transform 90ms linear;
}

.drag-ghost.is-widget {
  background: transparent;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.48);
}

.drag-ghost.is-widget .time-widget,
.drag-ghost.is-widget .weather-widget {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.drag-ghost.is-widget .weather-widget:hover {
  transform: none;
}

.drag-ghost img {
  width: 58%;
  height: 58%;
  object-fit: contain;
  filter: none;
}

.drag-ghost .icon-fallback {
  width: 58%;
  height: 58%;
  font-size: 1rem;
}

.drag-ghost strong {
  font-size: 1rem;
}

.control-panel {
  --panel-open-bottom: 190px;
  position: fixed;
  z-index: 9;
  left: 50%;
  right: auto;
  bottom: 14px;
  width: min(690px, calc(100vw - 28px));
  max-height: min(40vh, 330px);
  padding: 8px;
  overflow: auto;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(7, 9, 18, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 20px 70px rgba(0, 0, 0, 0.44);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px) scale(0.985);
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
}

.control-panel.is-open {
  bottom: var(--panel-open-bottom);
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.control-panel > .field-group,
.control-panel > .weather-form,
.control-panel > .batch-tools,
.control-panel > .site-form,
.control-panel > .saved-list,
.control-panel > .inspector-card,
.control-panel > .panel-tabs {
  min-width: 0;
}

.control-panel.is-open {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}

.control-panel .eyebrow {
  display: none;
}

.panel-header {
  grid-row: 1;
}

.panel-tabs {
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding: 2px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
}

.panel-tabs button {
  min-height: 26px;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
}

.panel-tabs button[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.panel-section {
  min-width: 0;
}

.panel-section[hidden] {
  display: none !important;
}

.control-panel[data-active-tab="list"] .saved-list {
  max-height: min(34vh, 360px);
  overflow-y: auto;
  padding-right: 2px;
}

.desktop-setting {
  margin-bottom: 0;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.038);
}

.desktop-setting.weather-form {
  padding-top: 7px;
  border-top: 0;
}

.desktop-setting .field-group:last-child {
  margin-bottom: 0;
}

.preference-manager {
  display: grid;
  gap: 8px;
}

.preference-manager summary,
.batch-tools summary,
.maintenance-tools summary {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  user-select: none;
}

.preference-manager summary::-webkit-details-marker,
.batch-tools summary::-webkit-details-marker,
.maintenance-tools summary::-webkit-details-marker {
  display: none;
}

.preference-manager summary::after,
.batch-tools summary::after,
.maintenance-tools summary::after {
  content: "＋";
  margin-left: auto;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.74rem;
}

.preference-manager[open] summary::after,
.batch-tools[open] summary::after,
.maintenance-tools[open] summary::after {
  content: "－";
}

.batch-tools,
.maintenance-tools {
  display: grid;
  gap: 7px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.batch-tools[open],
.maintenance-tools[open] {
  background: rgba(255, 255, 255, 0.052);
}

.data-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
  border: 0;
}

.panel-header,
.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 0;
}

.control-panel .panel-header {
  align-items: center;
}

.control-panel .panel-header > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.panel-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  align-items: center;
}

.panel-actions .mini-button {
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.64rem;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.76);
}

.panel-actions #undoEdit,
.panel-actions #redoEdit {
  width: 27px;
  min-width: 27px;
  padding: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0;
}

.panel-actions #undoEdit::before {
  content: "↶";
  font-size: 0.9rem;
}

.panel-actions #redoEdit::before {
  content: "↷";
  font-size: 0.9rem;
}

.panel-actions #closePanel {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.panel-actions #logoutAdmin {
  color: rgba(255, 255, 255, 0.58);
}

.panel-actions .mini-button.danger {
  min-width: 54px;
  background: rgba(248, 250, 252, 0.92);
  color: #070915;
  font-weight: 760;
}

.panel-header h1,
.dialog-header h2,
.eyebrow {
  margin: 0;
}

.panel-header h1,
.dialog-header h2 {
  font-size: 0.98rem;
  line-height: 1.1;
}

.control-panel .panel-header h1 {
  flex: 0 0 auto;
  font-size: 0.86rem;
}

.eyebrow {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.panel-status {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.62rem;
  line-height: 1.35;
}

.control-panel .panel-status {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}

.weather-dialog #closeWeather:focus-visible,
.time-dialog #closeTime:focus-visible,
.login-dialog .icon-button:focus-visible,
.page-overview-dialog .icon-button:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.64);
  outline-offset: 2px;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.field-group {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
}

.form-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.74);
}

.form-toolbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.inline-submit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.batch-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin: -2px 0 8px;
}

.batch-options .toggle-field {
  min-height: 36px;
  align-self: end;
  white-space: nowrap;
}

label {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.8rem;
}

input,
textarea,
select {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  padding: 0 10px;
  outline: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

select option {
  background: #10131f;
  color: #fff;
}

textarea {
  min-height: 64px;
  resize: vertical;
  padding-top: 9px;
  line-height: 1.45;
}

input[type="color"] {
  padding: 4px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 5px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
}

.segmented button {
  min-height: 31px;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
}

.segmented button[aria-checked="true"] {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.weather-form,
.batch-form,
.site-form {
  padding-bottom: 0;
  border-bottom: 0;
  margin-bottom: 0;
}

.site-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 9px;
}

.site-form .form-toolbar,
.site-form input[type="hidden"],
.site-form .field-row {
  grid-column: 1 / -1;
}

.site-form .field-group {
  margin-bottom: 0;
}

.site-icon-editor {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.site-icon-input {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.site-meta-status {
  display: block;
  min-height: 14px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.64rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-meta-status[hidden] {
  display: none;
}

.site-icon-preview {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 10px 22px rgba(0, 0, 0, 0.22);
}

.site-icon-preview img {
  width: 58%;
  height: 58%;
  object-fit: contain;
}

.site-icon-preview-fallback {
  color: #10131f;
  font-weight: 820;
  font-size: 0.94rem;
}

.batch-form {
  display: grid;
  gap: 7px;
  padding-top: 3px;
  margin-top: 0;
}

.weather-form {
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-field {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
}

.toggle-field input {
  width: 42px;
  min-height: 24px;
  height: 24px;
  flex: 0 0 auto;
  appearance: none;
  border-radius: 999px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 160ms ease;
}

.toggle-field input::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  transition: transform 160ms ease;
}

.toggle-field input:checked {
  background: rgba(125, 211, 252, 0.78);
}

.toggle-field input:checked::before {
  transform: translateX(18px);
}

.inspector-card {
  display: grid;
  gap: 5px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.042);
  margin-bottom: 0;
}

#itemInspector[data-inspector-mode="desktop"] {
  grid-template-columns: minmax(108px, 0.7fr) minmax(210px, 1.34fr) minmax(162px, 0.88fr);
  gap: 7px;
  align-items: stretch;
  padding: 6px;
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.026);
}

#itemInspector[data-inspector-mode="desktop"] .inspector-title {
  display: grid;
  align-content: center;
  gap: 1px;
  min-width: 0;
  padding: 2px 4px 2px 2px;
}

#itemInspector[data-inspector-mode="desktop"] .inspector-title strong {
  font-size: 0.84rem;
}

#itemInspector[data-inspector-mode="desktop"] .inspector-title span {
  font-size: 0.62rem;
}

.inspector-title strong,
.inspector-title span,
.inspector-site strong,
.inspector-site span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspector-title span,
.inspector-site span,
.inspector-text {
  color: var(--muted);
  font-size: 0.78rem;
}

.inspector-text {
  margin: 0;
  line-height: 1.45;
}

.desktop-inspector-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

#itemInspector[data-inspector-mode="desktop"] .desktop-inspector-stats,
#itemInspector[data-inspector-mode="desktop"] .desktop-inspector-actions {
  align-self: center;
}

.desktop-inspector-stat {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.065);
}

#itemInspector[data-inspector-mode="desktop"] .desktop-inspector-stat {
  min-height: 38px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.043);
}

.desktop-inspector-stat small,
.desktop-inspector-stat strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-inspector-stat small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.64rem;
}

.desktop-inspector-stat strong {
  color: #fff;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.desktop-inspector-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.desktop-inspector-actions .mini-button {
  min-height: 26px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 0.68rem;
}

#itemInspector[data-inspector-mode="desktop"] .desktop-inspector-actions .mini-button {
  min-height: 38px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.68rem;
}

.inspector-site {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.inspector-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.inspector-icon img {
  width: 58%;
  height: 58%;
  object-fit: contain;
}

.inspector-icon .icon-fallback {
  width: 58%;
  height: 58%;
  font-size: 1.08rem;
}

.inspector-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inspector-control {
  display: grid;
  gap: 6px;
}

.inspector-control > span,
.inspector-color > span,
.inspector-page-picker > span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.inspector-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 4px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
}

.inspector-segmented button {
  min-height: 28px;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
}

.inspector-segmented button[aria-checked="true"] {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.inspector-dock-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.inspector-dock-control[data-favorite="true"] {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.inspector-dock-control span,
.inspector-dock-control strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspector-dock-control span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
}

.inspector-dock-control strong {
  margin-top: 1px;
  color: #fff;
  font-size: 0.82rem;
}

.inspector-dock-actions {
  display: grid;
  grid-template-columns: minmax(50px, auto) repeat(2, 28px);
  gap: 4px;
  align-items: center;
}

.inspector-dock-actions .mini-button {
  min-height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 0.74rem;
}

.inspector-dock-actions .icon-mini {
  width: 28px;
  min-width: 28px;
  padding: 0;
}

.inspector-dock-toggle[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
}

.inspector-color {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inspector-page-picker {
  display: grid;
  gap: 6px;
}

.inspector-page-picker select {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: 0;
}

.inspector-page-picker option {
  background: #10131f;
  color: #fff;
}

.inspector-color input {
  width: 40px;
  min-height: 30px;
  padding: 3px;
}

.submit-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: #f8fafc;
  color: #060713;
  font-weight: 700;
  font-size: 0.9rem;
}

.full-width {
  width: 100%;
}

.saved-list {
  display: grid;
  gap: 7px;
}

.saved-bulk-tools {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.saved-bulk-tools[open] {
  background: rgba(255, 255, 255, 0.055);
}

.saved-bulk-summary {
  min-width: 0;
  min-height: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  color: #fff;
}

.saved-bulk-summary::-webkit-details-marker {
  display: none;
}

.saved-bulk-summary::after {
  content: "＋";
  margin-left: auto;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.74rem;
}

.saved-bulk-tools[open] > .saved-bulk-summary::after {
  content: "－";
}

.saved-bulk-copy,
.saved-bulk-actions {
  min-width: 0;
}

.saved-bulk-summary strong,
.saved-bulk-summary span,
.saved-bulk-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-bulk-summary strong {
  color: #fff;
  font-size: 0.8rem;
}

.saved-bulk-summary span,
.saved-bulk-copy span {
  color: var(--muted);
  font-size: 0.68rem;
}

.saved-bulk-tools:not([open]) > .saved-bulk-copy,
.saved-bulk-tools:not([open]) > .saved-bulk-actions {
  display: none;
}

.saved-bulk-actions {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) repeat(3, auto);
  gap: 5px;
  align-items: center;
}

.saved-bulk-actions select {
  width: 100%;
  min-height: 28px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
}

.saved-bulk-actions .mini-button {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 9px;
  font-size: 0.72rem;
}

.dock-manager {
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.dock-manager-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dock-manager-header strong {
  color: #fff;
  font-size: 0.82rem;
}

.dock-manager-header span,
.dock-manager-empty {
  color: var(--muted);
  font-size: 0.7rem;
}

.dock-manager-list {
  display: grid;
  gap: 5px;
}

.dock-manager-empty {
  margin: 0;
  padding: 5px 2px 3px;
}

.dock-manager-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.dock-manager-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
}

.dock-manager-icon img {
  width: 58%;
  height: 58%;
  object-fit: contain;
}

.dock-manager-icon .icon-fallback {
  width: 58%;
  height: 58%;
  color: #111827;
  font-size: 0.82rem;
}

.dock-manager-copy {
  min-width: 0;
}

.dock-manager-copy strong,
.dock-manager-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dock-manager-copy strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
}

.dock-manager-copy span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.66rem;
}

.dock-manager-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 4px;
}

.dock-manager-actions .mini-button {
  min-height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 0.7rem;
}

.dock-manager-actions .icon-mini {
  width: 26px;
  min-width: 26px;
  padding: 0;
}

.saved-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.46fr);
  gap: 7px;
}

.saved-filter input,
.saved-filter select {
  width: 100%;
  min-height: 34px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
}

.deploy-status {
  display: grid;
}

.deploy-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(134, 239, 172, 0.18);
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.07);
}

.deploy-card--warn {
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(251, 191, 36, 0.07);
}

.deploy-copy {
  min-width: 0;
}

.deploy-copy strong,
.deploy-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deploy-copy strong {
  color: #fff;
  font-size: 0.82rem;
}

.deploy-copy span,
.deploy-empty {
  color: var(--muted);
  font-size: 0.72rem;
}

.deploy-tags {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.deploy-tags span {
  min-height: 22px;
  padding: 4px 7px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.66rem;
  line-height: 1.1;
}

.deploy-empty {
  margin: 0;
  padding: 7px 2px;
}

.backup-list {
  display: grid;
  gap: 6px;
}

.backup-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.backup-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.backup-actions .mini-button {
  min-width: 46px;
  white-space: nowrap;
}

.backup-copy {
  min-width: 0;
}

.backup-copy strong,
.backup-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-copy strong {
  color: #fff;
  font-size: 0.82rem;
}

.backup-copy span,
.backup-empty {
  color: var(--muted);
  font-size: 0.72rem;
}

.backup-empty {
  margin: 0;
  padding: 7px 2px;
}

.saved-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(96px, 0.34fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.saved-empty {
  margin: 0;
  padding: 12px 4px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.saved-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
}

.saved-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.saved-icon .icon-fallback {
  width: 20px;
  height: 20px;
  font-size: 0.88rem;
}

.saved-copy {
  min-width: 0;
}

.saved-copy strong,
.saved-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
}

.saved-copy .saved-meta {
  color: rgba(255, 255, 255, 0.82);
}

.saved-page-select {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.saved-page-select span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.62rem;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-page-select select {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
}

.item-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
  max-width: 154px;
}

.saved-more-actions {
  position: relative;
  min-width: 0;
}

.saved-more-actions summary {
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.84rem;
  list-style: none;
  cursor: pointer;
}

.saved-more-actions summary::-webkit-details-marker {
  display: none;
}

.saved-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
  min-width: 0;
  margin-top: 5px;
}

.mini-button {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.84rem;
}

.mini-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.icon-mini {
  width: 30px;
  padding: 0;
}

.mini-button.danger {
  color: #fecaca;
}

.item-info-popover {
  position: fixed;
  z-index: 8;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(8, 10, 20, 0.76);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  transition: opacity 160ms ease, transform 160ms ease;
}

.item-info-popover.is-menu {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  max-width: calc(100vw - 24px);
  padding: 10px;
  border-radius: 16px;
  background: rgba(10, 12, 22, 0.84);
}

.item-info-popover.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.info-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #fff;
}

.item-info-popover.is-menu .info-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.info-icon img {
  width: 58%;
  height: 58%;
  object-fit: contain;
}

.info-icon .icon-fallback {
  width: 58%;
  height: 58%;
  font-size: 1.08rem;
}

.info-copy {
  min-width: 0;
}

.info-copy strong,
.info-copy span,
.info-copy a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-copy span,
.info-copy a {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
}

.info-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  justify-content: flex-end;
}

.info-action {
  min-height: 32px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.info-action[data-info-action="open"] {
  background: #f8fafc;
  color: #060713;
}

.info-action[data-info-action="delete"] {
  color: #fecaca;
}

.weather-dialog,
.page-overview-dialog,
.login-dialog {
  z-index: 6;
  width: min(680px, calc(100vw - 34px));
  max-height: min(760px, calc(100vh - 34px));
  overflow: auto;
  padding: 24px;
  border-radius: 28px;
  color: #fff;
  background: var(--panel-strong);
}

.search-dialog {
  position: fixed;
  inset: 68px auto auto 50%;
  z-index: 7;
  width: min(560px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  height: min(520px, calc(100dvh - 92px));
  max-height: calc(100dvh - 92px);
  margin: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(9, 12, 22, 0.88);
  color: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(28px) saturate(1.18);
  -webkit-backdrop-filter: blur(28px) saturate(1.18);
  transform: translateX(-50%);
}

.search-dialog::backdrop {
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
}

.confirm-dialog {
  z-index: 8;
  width: min(360px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(9, 12, 22, 0.9);
  color: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(28px) saturate(1.18);
}

.confirm-dialog::backdrop {
  background: rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(8px);
}

.confirm-shell {
  display: grid;
  gap: 9px;
  padding: 18px;
}

.confirm-shell h2,
.confirm-shell p {
  margin: 0;
}

.confirm-shell h2 {
  font-size: 1.05rem;
  line-height: 1.2;
}

.confirm-shell p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  line-height: 1.55;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.search-shell {
  display: grid;
  grid-template-rows: max-content minmax(0, 1fr);
  gap: 8px;
  height: 100%;
  min-height: 0;
}

.search-shell input {
  min-height: 46px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1rem;
}

.search-results {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 0;
  overflow-y: auto;
}

.search-result {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(118px, auto) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 54px;
  padding: 8px;
  border-radius: 14px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.search-result:hover,
.search-result:focus-visible,
.search-result[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.12);
}

.search-result[aria-selected="true"] {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.search-result:active {
  transform: scale(0.995);
}

.search-result-icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #fff;
}

.search-result-icon--page {
  color: #11131d;
  font-size: 1rem;
  font-weight: 820;
  letter-spacing: 0;
}

.search-result-icon--google {
  color: #11131d;
  font-size: 1.18rem;
  font-weight: 820;
  letter-spacing: 0;
}

.search-result-icon--page::after {
  content: "";
  position: absolute;
  inset: 8px 9px auto;
  height: 3px;
  border-radius: 999px;
  background: rgba(17, 19, 29, 0.18);
}

.search-result-icon img {
  width: 58%;
  height: 58%;
  object-fit: contain;
}

.search-result-fallback {
  color: #10131f;
  font-size: 1rem;
  font-weight: 800;
}

.search-result-copy,
.search-result-copy strong,
.search-result-copy span,
.search-result-meta,
.search-result-pill,
.search-result-actions {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-copy span,
.search-result-meta,
.search-empty {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
}

.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.search-result-actions {
  display: inline-flex;
  gap: 5px;
  justify-content: flex-end;
  overflow: visible;
}

.search-result-action {
  min-width: 36px;
  min-height: 28px;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.search-result-action:hover,
.search-result-action:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

.search-result-action--open {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.search-result-pill {
  max-width: 96px;
  min-height: 22px;
  padding: 4px 7px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  line-height: 1.1;
}

.search-empty {
  margin: 0;
  padding: 20px 10px 22px;
  text-align: center;
}

.page-overview-dialog {
  width: min(520px, calc(100vw - 28px));
  max-height: min(620px, calc(100dvh - 34px));
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(9, 12, 22, 0.88);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(28px) saturate(1.18);
  -webkit-backdrop-filter: blur(28px) saturate(1.18);
}

.page-overview-shell {
  display: grid;
  gap: 10px;
}

.page-overview-shell .dialog-header {
  min-height: 28px;
}

.page-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  max-height: min(520px, calc(100dvh - 120px));
  overflow-y: auto;
}

.page-overview-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  min-height: 118px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.page-overview-card:hover,
.page-overview-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.page-overview-card[aria-current="true"] {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.page-overview-card-header,
.page-overview-card-header strong,
.page-overview-card-header small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-overview-card-header strong {
  font-size: 0.96rem;
}

.page-overview-card-header small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
}

.page-overview-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 34px;
  align-content: start;
}

.page-overview-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
}

.page-overview-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.page-overview-icon .icon-fallback {
  width: 20px;
  height: 20px;
  color: #10131f;
  font-size: 0.82rem;
}

.page-overview-icon--empty {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.62);
  font-size: 1.2rem;
}

.page-overview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.page-overview-actions .mini-button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.76rem;
}

.login-dialog {
  width: min(420px, calc(100vw - 34px));
}

.weather-dialog {
  width: min(640px, calc(100vw - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  padding: 0;
  overflow: hidden;
  border-radius: 32px;
  background: #071021;
}

.weather-dialog .dialog-header {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin-bottom: 0;
  pointer-events: none;
}

.weather-dialog .dialog-header h2 {
  display: none;
}

.weather-dialog .eyebrow {
  display: none;
}

.weather-dialog #closeWeather {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  pointer-events: auto;
  background: rgba(5, 8, 16, 0.42);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.weather-dialog::backdrop,
.page-overview-dialog::backdrop,
.login-dialog::backdrop {
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(8px);
}

dialog.time-dialog {
  position: fixed;
  z-index: 6;
  inset: auto;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  margin: 0;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  width: min(720px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  min-width: 0;
  min-height: 0;
  height: min(610px, calc(100dvh - 28px));
  block-size: min(610px, calc(100dvh - 28px));
  max-height: calc(100dvh - 18px);
  max-block-size: calc(100dvh - 18px);
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025)),
    rgba(8, 11, 21, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(24px) saturate(1.16);
  -webkit-backdrop-filter: blur(24px) saturate(1.16);
  align-content: start;
  align-items: start;
  justify-items: stretch;
  grid-template-rows: max-content minmax(0, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  gap: 18px;
}

dialog.time-dialog[open] {
  display: inline-grid;
}

dialog.time-dialog::backdrop {
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
}

.time-dialog .dialog-header {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  justify-content: flex-end;
  min-height: 0;
  margin: 0;
}

.time-dialog #closeTime {
  width: 38px;
  height: 38px;
  font-size: 1.24rem;
}

.time-tool-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 7px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  margin-right: 56px;
}

.time-tool-tabs button {
  min-height: 46px;
  border-radius: 15px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  line-height: 1;
}

.time-tool-tabs button[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.time-tool-content {
  display: grid;
  width: 100%;
  height: 100%;
  block-size: 100%;
  flex: 0 0 auto;
  align-self: stretch;
  min-block-size: 0;
  min-height: 0;
  max-height: none;
  overflow-y: hidden;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 0;
  align-content: stretch;
  align-items: stretch;
  grid-template-rows: minmax(0, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  scrollbar-width: none;
}

.time-tool-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.time-tool-shell {
  display: grid;
  grid-auto-rows: minmax(0, auto);
  width: 100%;
  height: 100%;
  block-size: 100%;
  gap: 16px;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  align-content: stretch;
  align-items: stretch;
  overflow: hidden;
}

.time-tool-shell:has(> [data-clock-value]) {
  grid-template-rows: minmax(230px, 1fr) max-content max-content;
}

.time-tool-shell--world {
  align-content: stretch;
}

.time-tool-shell--timer {
  grid-template-rows: minmax(230px, 1fr) max-content max-content;
}

dialog.time-dialog[data-time-tool="pomodoro"] .time-tool-shell {
  grid-template-rows: minmax(190px, 1fr) max-content max-content max-content;
}

dialog.time-dialog[data-time-tool="world"] .time-tool-shell {
  grid-template-rows: 112px minmax(0, 1fr);
  gap: 16px;
}

.time-tool-shell > span {
  color: var(--muted);
}

.time-tool-shell > strong {
  overflow: hidden;
  align-self: center;
  justify-self: center;
  font-size: clamp(6rem, 8vw, 8.2rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
}

.time-tool-shell p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.clock-progress-view {
  --progress: 0;
  position: relative;
  height: 10px;
  margin: 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.095);
  border: 0;
}

.clock-progress-view span {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--progress) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(94, 234, 212, 0.85), rgba(191, 219, 254, 0.96), rgba(255, 255, 255, 0.9));
  transition: width 180ms linear;
}

.pomodoro-stage-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.pomodoro-stage {
  position: relative;
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
  min-height: 126px;
  padding: 6px 0 14px;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.44);
  text-align: left;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.pomodoro-stage[aria-pressed="true"] {
  color: #fff;
  background: transparent;
}

.pomodoro-stage[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.pomodoro-stage:hover {
  transform: translateY(-1px);
  color: #fff;
}

.pomodoro-stage span {
  overflow: hidden;
  font-size: 1.12rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pomodoro-stage strong {
  overflow: hidden;
  font-size: clamp(3.8rem, 5.6vw, 4.8rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clock-duration-form,
.pomodoro-form {
  display: grid;
  gap: 18px;
  align-items: end;
}

.clock-duration-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pomodoro-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.time-stepper-form {
  align-items: stretch;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.clock-duration-form label,
.pomodoro-form label {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0;
  background: transparent;
}

.clock-duration-form label span,
.pomodoro-form label span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
}

.clock-duration-form input,
.pomodoro-form input {
  min-height: 50px;
  border-radius: 18px;
}

.number-stepper {
  min-width: 0;
}

.number-stepper-control {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  min-height: 42px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.number-stepper-control button {
  min-width: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.095);
  color: #fff;
  font-size: 1.46rem;
  transition: background 160ms ease;
}

.number-stepper-control button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.number-stepper-control input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  font-size: 1.22rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  outline: 0;
}

.number-stepper-control input::-webkit-outer-spin-button,
.number-stepper-control input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.time-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.time-actions {
  justify-content: flex-end;
  justify-self: end;
  gap: 12px;
  margin-top: 0;
  padding-bottom: 2px;
}

.time-actions .submit-button,
.time-actions .mini-button {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 1.04rem;
}

.timezone-cities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: stretch;
  height: 100%;
  min-height: 0;
}

.timezone-city {
  display: grid;
  align-content: space-between;
  min-width: 0;
  min-height: 0;
  padding: 4px 2px 12px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.115);
  border-radius: 0;
  background: transparent;
}

.timezone-primary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 0 2px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.timezone-primary span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.12rem;
}

.timezone-primary strong {
  overflow: hidden;
  font-size: clamp(5.2rem, 8.2vw, 7rem);
  line-height: 0.86;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timezone-city-header {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.timezone-city-label,
.timezone-city-rhythm {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timezone-city-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}

.timezone-city-rhythm {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
}

.timezone-city strong {
  display: block;
  margin-top: 18px;
  overflow: hidden;
  font-size: clamp(2.16rem, 3.1vw, 2.66rem);
  line-height: 0.98;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.weather-detail {
  display: grid;
  gap: 0;
  max-height: min(760px, calc(100dvh - 28px));
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0;
  scrollbar-width: thin;
}

.weather-detail > .weather-desc:last-child {
  margin: 0;
  padding: 0 18px 14px;
  background: #080e1b;
  color: rgba(188, 199, 217, 0.56);
  font-size: 0.62rem;
}

.weather-manager {
  display: grid;
  position: absolute;
  left: 16px;
  top: 13px;
  right: 74px;
  z-index: 3;
  gap: 0;
  padding: 0;
  background: transparent;
}

.weather-manager-inner {
  display: block;
  min-width: 0;
}

.weather-city-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  max-width: min(100%, 340px);
  padding-bottom: 2px;
  scrollbar-width: none;
}

.weather-city-tabs::-webkit-scrollbar {
  display: none;
}

.weather-city-tabs button {
  position: relative;
  min-height: 27px;
  flex: 0 0 74px;
  display: grid;
  gap: 1px;
  align-content: center;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.weather-city-tabs button.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
}

.weather-city-tabs button.is-default::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.7;
}

.weather-city-tabs button:not(.is-active):hover,
.weather-city-tabs button:not(.is-active):focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-1px);
}

.weather-city-tabs button strong,
.weather-city-tabs button span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-city-tabs button strong {
  padding-right: 6px;
  font-size: 0.66rem;
}

.weather-city-tabs button span {
  display: none;
  color: currentColor;
  font-size: 0.58rem;
  opacity: 0.62;
}

.weather-city-tabs button em {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.weather-add-city {
  display: grid;
  grid-template-columns: 27px 0 0;
  gap: 0;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  transition: grid-template-columns 180ms ease, gap 180ms ease;
}

.weather-add-city.is-expanded {
  grid-template-columns: 27px minmax(102px, 148px) 44px;
  gap: 6px;
}

.weather-add-toggle,
.weather-add-city input,
.weather-add-city button {
  min-height: 27px;
  border-radius: 999px;
  font-size: 0.68rem;
}

.weather-add-toggle {
  width: 27px;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.17);
  color: #fff;
  font-size: 1rem;
}

.weather-add-city input,
.weather-add-city .mini-button {
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  padding-inline: 0;
  transition: opacity 160ms ease, padding 160ms ease;
}

.weather-add-city.is-expanded input,
.weather-add-city.is-expanded .mini-button {
  opacity: 1;
  pointer-events: auto;
}

.weather-add-city.is-expanded input {
  padding-inline: 10px;
}

.weather-add-city.is-expanded .mini-button {
  padding-inline: 10px;
}

.weather-detail-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(112px, 1fr) auto auto;
  gap: 12px;
  min-height: 394px;
  padding: 56px 18px 14px;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(155, 165, 173, 0.9), rgba(111, 122, 134, 0.88) 43%, rgba(54, 68, 90, 0.98) 72%, rgba(17, 28, 49, 1) 100%);
  border: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -170px 160px rgba(2, 6, 23, 0.68);
}

.weather-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 10, 22, 0.24), transparent 56%),
    linear-gradient(180deg, transparent 0 34%, rgba(5, 10, 22, 0.22) 54%, rgba(5, 10, 22, 0.48) 100%);
}

.weather-detail-hero--clear {
  background:
    linear-gradient(180deg, rgba(93, 183, 240, 0.98), rgba(55, 139, 224, 0.9) 44%, rgba(14, 71, 158, 0.98) 100%);
}

.weather-detail-hero--clear[data-daytime="night"] {
  background:
    linear-gradient(180deg, rgba(31, 47, 92, 0.98), rgba(13, 23, 55, 0.96) 48%, rgba(6, 13, 34, 0.98) 100%);
}

.weather-detail-hero--cloud {
  background:
    linear-gradient(180deg, rgba(170, 180, 187, 0.96), rgba(121, 135, 149, 0.92) 42%, rgba(66, 82, 110, 0.98) 72%, rgba(16, 28, 50, 1) 100%);
}

.weather-detail-hero--rain,
.weather-detail-hero--storm {
  background:
    linear-gradient(180deg, rgba(116, 132, 148, 0.98), rgba(61, 76, 96, 0.95) 45%, rgba(16, 28, 50, 0.99) 100%);
}

.weather-detail-hero--storm {
  background:
    linear-gradient(180deg, rgba(80, 91, 112, 0.98), rgba(37, 47, 70, 0.98) 45%, rgba(10, 17, 34, 0.99) 100%);
}

.weather-detail-hero--snow {
  background:
    linear-gradient(180deg, rgba(189, 215, 230, 0.98), rgba(107, 149, 184, 0.92) 44%, rgba(36, 74, 126, 0.98) 100%);
}

.weather-detail-hero--fog {
  background:
    linear-gradient(180deg, rgba(184, 195, 201, 0.98), rgba(119, 134, 148, 0.94) 44%, rgba(49, 68, 94, 0.98) 100%);
}

.weather-detail-clouds {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.weather-detail-clouds span {
  position: absolute;
  display: block;
}

.weather-detail-sun {
  right: 38px;
  top: 42px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff8c9 0 32%, #ffd46b 53%, rgba(255, 184, 68, 0.22) 72%, transparent 74%);
  box-shadow:
    0 0 42px rgba(255, 217, 120, 0.62),
    0 0 110px rgba(255, 187, 75, 0.32);
  opacity: 0;
}

.weather-detail-moon {
  right: 46px;
  top: 42px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #f8fafc;
  box-shadow:
    inset -26px 4px 0 rgba(190, 204, 226, 0.45),
    0 0 48px rgba(226, 236, 255, 0.35);
  opacity: 0;
}

.weather-detail-hero[data-condition="clear"][data-daytime="day"] .weather-detail-sun,
.weather-detail-hero[data-condition="cloud"][data-daytime="day"] .weather-detail-sun {
  opacity: 1;
}

.weather-detail-hero[data-condition="clear"][data-daytime="night"] .weather-detail-moon,
.weather-detail-hero[data-condition="cloud"][data-daytime="night"] .weather-detail-moon {
  opacity: 1;
}

.weather-detail-cloud {
  width: 224px;
  height: 76px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  opacity: 0;
  mix-blend-mode: screen;
  box-shadow:
    48px -34px 0 16px rgba(255, 255, 255, 0.74),
    116px -20px 0 11px rgba(255, 255, 255, 0.62),
    0 18px 32px rgba(18, 36, 74, 0.14);
}

.weather-detail-cloud--one {
  left: 34px;
  top: 80px;
}

.weather-detail-cloud--two {
  right: 8px;
  top: 126px;
  transform: scale(0.8);
  transform-origin: right top;
}

.weather-detail-hero[data-condition="cloud"] .weather-detail-cloud,
.weather-detail-hero[data-condition="rain"] .weather-detail-cloud,
.weather-detail-hero[data-condition="storm"] .weather-detail-cloud,
.weather-detail-hero[data-condition="snow"] .weather-detail-cloud,
.weather-detail-hero[data-condition="fog"] .weather-detail-cloud {
  opacity: 0.68;
}

.weather-detail-hero[data-condition="rain"] .weather-detail-cloud,
.weather-detail-hero[data-condition="storm"] .weather-detail-cloud {
  background: rgba(78, 91, 112, 0.84);
  box-shadow:
    42px -28px 0 12px rgba(96, 110, 130, 0.86),
    98px -18px 0 8px rgba(69, 83, 104, 0.78),
    0 22px 38px rgba(12, 22, 42, 0.24);
}

.weather-detail-rain,
.weather-detail-snow {
  left: 286px;
  right: 22px;
  top: 154px;
  height: 188px;
  opacity: 0;
}

.weather-detail-rain {
  background:
    repeating-linear-gradient(105deg, rgba(230, 243, 255, 0.86) 0 2px, transparent 2px 15px);
  transform: skewX(-8deg);
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 78%, transparent 100%);
}

.weather-detail-hero[data-condition="rain"] .weather-detail-rain,
.weather-detail-hero[data-condition="storm"] .weather-detail-rain {
  opacity: 0.17;
}

.weather-detail-hero[data-condition="rain"][data-severity="heavy"] .weather-detail-rain,
.weather-detail-hero[data-condition="rain"][data-severity="storm"] .weather-detail-rain,
.weather-detail-hero[data-condition="storm"] .weather-detail-rain {
  opacity: 0.23;
  background:
    repeating-linear-gradient(105deg, rgba(235, 246, 255, 0.86) 0 2px, transparent 2px 12px);
}

.weather-detail-snow {
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 255, 255, 0.95) 0 3px, transparent 4px),
    radial-gradient(circle at 34% 36%, rgba(255, 255, 255, 0.9) 0 3px, transparent 4px),
    radial-gradient(circle at 58% 18%, rgba(255, 255, 255, 0.95) 0 3px, transparent 4px),
    radial-gradient(circle at 78% 44%, rgba(255, 255, 255, 0.9) 0 3px, transparent 4px),
    radial-gradient(circle at 92% 24%, rgba(255, 255, 255, 0.9) 0 3px, transparent 4px),
    radial-gradient(circle at 20% 68%, rgba(255, 255, 255, 0.82) 0 3px, transparent 4px),
    radial-gradient(circle at 66% 76%, rgba(255, 255, 255, 0.82) 0 3px, transparent 4px);
}

.weather-detail-hero[data-condition="snow"] .weather-detail-snow {
  opacity: 0.84;
}

.weather-detail-fog {
  left: 20px;
  right: 20px;
  top: 106px;
  height: 250px;
  opacity: 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 20px, rgba(255, 255, 255, 0.34) 20px 25px, transparent 25px 44px);
  filter: blur(1.2px);
}

.weather-detail-hero[data-condition="fog"] .weather-detail-fog {
  opacity: 0.88;
}

.weather-detail-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.weather-detail-topline span,
.weather-detail-summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-detail-topline span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  padding-right: 42px;
}

.weather-detail-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 12px;
  min-width: 0;
}

.weather-detail-temp {
  min-width: max-content;
  font-size: clamp(5.3rem, 9.4vw, 6.6rem);
  line-height: 0.82;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.weather-detail-summary {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 5px 7px 10px;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(12, 18, 32, 0.18), rgba(12, 18, 32, 0));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  line-height: 1.2;
}

.weather-compact-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.weather-compact-meta span {
  min-width: 0;
  display: grid;
  gap: 3px;
  min-height: 34px;
  align-content: center;
  padding: 4px 7px;
  border-radius: 9px;
  background: rgba(7, 10, 18, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.78);
}

.weather-compact-meta strong,
.weather-compact-meta em {
  min-width: 0;
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-compact-meta strong {
  font-size: 0.74rem;
}

.weather-compact-meta em {
  font-size: 0.66rem;
  opacity: 0.72;
}

.weather-hourly-timeline {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 88px;
  padding: 10px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 14px), rgba(0, 0, 0, 0.34) calc(100% - 4px), transparent 100%);
}

.weather-hourly-timeline::-webkit-scrollbar {
  height: 4px;
}

.weather-hourly-timeline::-webkit-scrollbar-track {
  background: transparent;
}

.weather-hourly-timeline::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.weather-hourly-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(24, 58px);
  gap: 8px;
  width: max-content;
  min-width: max(100%, calc((58px * 24) + (8px * 23)));
  padding-right: 22px;
}

.weather-current-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 28px;
  padding: 8px 22px 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
}

.weather-current-actions[hidden] {
  display: none;
}

.weather-current-action-buttons {
  display: inline-flex;
  justify-content: flex-end;
  gap: 6px;
}

.weather-current-action-buttons .mini-button {
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.7rem;
}

.detail-grid,
.forecast-grid {
  display: grid;
  gap: 6px;
}

.detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 12px 24px 10px;
  gap: 8px;
}

.forecast-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: 1fr;
  grid-auto-flow: row;
  gap: 0;
  margin: 0;
  padding: 8px 18px 16px;
  overflow: visible;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(9, 15, 29, 0.98), rgba(8, 14, 27, 1));
  border: 0;
  scrollbar-width: none;
}

.forecast-grid::-webkit-scrollbar {
  display: none;
}

.detail-card {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.085);
}

.detail-card span {
  display: block;
  color: var(--muted);
  font-size: 0.64rem;
}

.detail-card strong {
  display: block;
  margin-top: 3px;
  font-size: 0.82rem;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.weather-hour-card {
  position: relative;
  z-index: 1;
  min-width: 70px;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 7px 6px;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.weather-hour-card--timeline {
  width: 58px;
  min-width: 58px;
  padding: 5px 2px 0;
  background: transparent;
  border: 0;
  scroll-snap-align: start;
}

.weather-hour-card span {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.6rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-hour-card strong {
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.weather-hour-card em,
.weather-hour-card small {
  max-width: 100%;
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-hour-card em {
  font-size: 1.06rem;
}

.weather-hour-card small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.58rem;
}

.weather-day-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(72px, 0.78fr) 48px minmax(126px, 1.4fr) minmax(62px, 0.64fr);
  grid-template-rows: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  justify-items: stretch;
  min-height: 62px;
  padding: 8px 2px;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

.weather-day-card:last-child {
  border-bottom: 0;
}

.weather-day-card span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-day-card strong {
  text-align: center;
}

.weather-day-title {
  display: grid;
  gap: 2px;
  justify-items: start;
  align-content: center;
}

.weather-day-title strong {
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.88rem;
}

.weather-day-title em {
  color: rgba(188, 199, 217, 0.78);
  font-style: normal;
  font-size: 0.68rem;
}

.weather-day-icons {
  display: grid;
  gap: 2px;
  justify-items: center;
  align-content: center;
}

.weather-day-icons strong {
  font-size: 1.32rem;
  line-height: 1;
}

.weather-day-icons small {
  color: #8dbdff;
  display: none;
}

.weather-day-range {
  --range-start: 0%;
  --range-end: 100%;
  position: relative;
  align-self: center;
  justify-self: center;
  width: 100%;
  height: 6px;
  max-width: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.weather-day-range::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--range-start);
  right: calc(100% - var(--range-end));
  min-width: 12px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.92), rgba(251, 191, 36, 0.95));
}

.weather-day-temp {
  display: grid;
  align-content: center;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 0.78rem !important;
}

.weather-day-meta {
  display: block;
  grid-column: 3 / 5;
  max-width: 100%;
  overflow: hidden;
  color: rgba(188, 199, 217, 0.78);
  font-size: 0.66rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-day-meta small {
  color: rgba(188, 199, 217, 0.78);
  font-size: 0.68rem;
}

.weather-day-meta em {
  display: none;
}

.toast {
  position: fixed;
  z-index: 8;
  left: 50%;
  bottom: var(--toast-bottom, 96px);
  max-width: min(440px, calc(100vw - 36px));
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

body.is-panel-open .toast {
  --toast-bottom: min(50vh, 458px);
}

body.is-editing .toast {
  --toast-bottom: 112px;
}

body.is-panel-open.is-editing .toast {
  --toast-bottom: min(50vh, 458px);
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.edit-toolbar {
  position: fixed;
  z-index: 7;
  right: 22px;
  bottom: 112px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 8px 7px 16px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(8, 10, 20, 0.76);
  box-shadow: var(--shadow);
  color: #fff;
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  transition: opacity 180ms ease, transform 180ms ease;
}

.edit-toolbar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.is-panel-open .edit-toolbar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.edit-toolbar span {
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.8);
}

@keyframes rise {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes editWiggle {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-0.32deg);
  }

  50% {
    transform: translate3d(0, -1px, 0) rotate(0.36deg);
  }
}

@keyframes spaceDrift {
  from {
    transform: scale(1.08) translate3d(-1.5%, -1.2%, 0);
  }

  to {
    transform: scale(1.14) translate3d(1.4%, 1%, 0);
  }
}

@media (max-width: 860px) {
  .control-panel {
    max-height: min(62vh, 560px);
  }

  .control-panel.is-open {
    grid-template-columns: 1fr;
  }

  .panel-header,
  .inspector-card,
  .control-panel > .field-group,
  .weather-form,
  .batch-tools,
  .batch-form,
  .site-form,
  .saved-list {
    grid-column: 1;
  }

  #itemInspector[data-inspector-mode="desktop"] {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --cell-size: clamp(72px, calc((100vw - 56px) / 4), 94px);
    --cell-gap: 8px;
  }

  .desktop {
    --desktop-pad-top: calc(44px + var(--safe-top));
    --desktop-pad-x: max(16px, calc(12px + max(var(--safe-left), var(--safe-right))));
    --desktop-pad-bottom: calc(140px + var(--safe-bottom));
    --page-stage-bottom: calc(158px + var(--safe-bottom));
    --mobile-grid-bottom-reserve: calc(158px + var(--safe-bottom));
    --mobile-grid-tail-space: 8px;
    padding: var(--desktop-pad-top) var(--desktop-pad-x) var(--desktop-pad-bottom);
    gap: 14px;
  }

  .top-search {
    display: none;
  }

  #settingsToggle {
    display: none;
  }

  .page-overview-dialog.is-mobile-lite .page-overview-actions {
    display: none;
  }

  .page-switcher {
    bottom: calc(118px + var(--safe-bottom));
    max-width: calc(100vw - max(32px, calc(24px + var(--safe-left) + var(--safe-right))));
    min-height: 30px;
    padding: 5px 9px;
  }

  .favorite-dock {
    --dock-item-size: 56px;
    --dock-item-gap: 10px;
    --dock-safe-pad: clamp(16px, calc(10px + var(--dock-count) * 1px), 26px);
    --dock-hover-room: clamp(9px, calc((var(--dock-count) - 4) * 4px), 20px);
    bottom: calc(12px + var(--safe-bottom));
    width: min(
      calc((var(--dock-count) * var(--dock-item-size)) + ((var(--dock-count) - 1) * var(--dock-item-gap)) + (var(--dock-safe-pad) * 2) + var(--dock-hover-room)),
      calc(100vw - max(24px, calc(24px + var(--safe-left) + var(--safe-right))))
    );
    min-width: min(288px, calc(100vw - max(24px, calc(24px + var(--safe-left) + var(--safe-right)))));
    max-width: calc(100vw - max(24px, calc(24px + var(--safe-left) + var(--safe-right))));
    min-height: 88px;
    padding: 15px var(--dock-safe-pad) 10px;
    border-radius: 24px;
  }

  .search-dialog {
    inset: calc(58px + var(--safe-top)) auto auto 50%;
    width: min(340px, calc(100vw - max(20px, calc(20px + var(--safe-left) + var(--safe-right)))));
    max-width: calc(100vw - max(20px, calc(20px + var(--safe-left) + var(--safe-right))));
    height: min(440px, calc(100dvh - 82px - var(--safe-top) - var(--safe-bottom)));
    max-height: calc(100dvh - 82px - var(--safe-top) - var(--safe-bottom));
    border-radius: 20px;
  }

  .page-overview-dialog {
    width: min(352px, calc(100vw - 18px));
    padding: 10px;
    border-radius: 18px;
  }

  .page-overview-grid {
    grid-template-columns: 1fr;
    max-height: min(520px, calc(100dvh - 110px));
  }

  .page-overview-card {
    min-height: 96px;
  }

  .search-result {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .search-result-meta {
    display: none;
  }

  .search-result-actions {
    gap: 4px;
  }

  .search-result-action {
    min-width: 32px;
    min-height: 28px;
    font-size: 0.64rem;
  }

  .dock-link {
    width: var(--dock-item-size);
    flex-basis: var(--dock-item-size);
    gap: 2px;
  }

  .dock-link img {
    width: 54px;
    height: 54px;
    padding: 8px;
    border-radius: 14px;
  }

  .dock-link .icon-fallback {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    font-size: 1.12rem;
  }

  .dock-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .page-editor {
    grid-template-columns: 1fr;
  }

  .saved-filter,
  .saved-bulk-tools,
  .saved-item {
    grid-template-columns: 1fr;
  }

  .saved-bulk-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .saved-bulk-actions select {
    grid-column: 1 / -1;
  }

  .dock-manager-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .dock-manager-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .saved-item {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
  }

  .saved-page-select,
  .saved-item .item-actions {
    grid-column: 1 / -1;
  }

  .saved-item .item-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .panel-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .panel-tabs::-webkit-scrollbar {
    display: none;
  }

  .panel-tabs button {
    min-width: 62px;
    flex: 0 0 auto;
  }

  .site-form {
    grid-template-columns: 1fr;
  }

  .site-form .field-row {
    grid-template-columns: 1fr auto;
  }

  .preference-grid label {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .glass-button {
    margin-left: auto;
  }

  .time-widget {
    border-radius: 28px;
  }

  .world-clock-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .weather-temp {
    font-size: 3.8rem;
  }

  .time-tool-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .time-tool-tabs button {
    min-height: 44px;
    font-size: 0.9rem;
  }

  dialog.time-dialog {
    width: min(720px, calc(100vw - 18px));
    max-width: calc(100vw - 18px);
    min-height: 0;
    max-height: calc(100dvh - 18px);
    height: min(548px, calc(100dvh - 18px));
    block-size: min(548px, calc(100dvh - 18px));
    padding: 16px;
    border: 0;
    border-radius: 22px;
  }

  .time-tool-content {
    display: grid;
    flex: 0 0 auto;
    height: 100%;
    block-size: 100%;
    max-height: none;
    overflow-y: visible;
    overflow-x: hidden;
  }

  .time-dialog .dialog-header {
    top: 12px;
    right: 12px;
  }

  .clock-duration-form,
  .pomodoro-form {
    gap: 10px;
  }

  .clock-duration-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pomodoro-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .time-tool-shell {
    gap: 13px;
    padding: 0;
  }

  .time-tool-shell:has(> [data-clock-value]),
  .time-tool-shell--timer {
    grid-template-rows: minmax(220px, 1fr) max-content max-content;
  }

  dialog.time-dialog[data-time-tool="pomodoro"] .time-tool-shell {
    grid-template-rows: minmax(198px, 1fr) max-content max-content max-content;
  }

  dialog.time-dialog[data-time-tool="world"] .time-tool-shell {
    grid-template-rows: 102px minmax(0, 1fr);
  }

  .time-tool-shell > strong {
    font-size: clamp(4.4rem, 16vw, 6.2rem);
  }

  .pomodoro-stage-row {
    gap: 16px;
  }

  .pomodoro-stage {
    min-height: 98px;
    padding: 6px 0 13px;
    border-radius: 0;
  }

  .pomodoro-stage strong {
    font-size: clamp(2.25rem, 8vw, 2.9rem);
  }

  .time-stepper-form {
    gap: 14px;
    padding: 0;
  }

  .number-stepper-control {
    min-height: 44px;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .number-stepper-control input {
    min-height: 44px;
    padding: 0 7px;
    font-size: 1.08rem;
  }

  .number-stepper-control button {
    font-size: 1.28rem;
  }

  .time-actions {
    justify-content: flex-end;
    justify-self: end;
    gap: 6px;
  }

  .time-actions .submit-button,
  .time-actions .mini-button {
    min-height: 42px;
  }

  .timezone-cities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .timezone-city {
    min-height: 0;
    padding: 4px 2px 10px;
    border-radius: 0;
  }

  .timezone-city strong {
    margin-top: 10px;
    font-size: clamp(1.52rem, 6vw, 1.86rem);
  }

  .timezone-primary {
    min-height: 70px;
    padding-bottom: 10px;
  }

  .timezone-primary strong {
    font-size: clamp(3.2rem, 14vw, 4.35rem);
  }

  .timezone-primary span,
  .timezone-city-label {
    font-size: 0.82rem;
  }

  .timezone-city-rhythm {
    font-size: 0.68rem;
  }

  .weather-dialog {
    width: min(390px, calc(100vw - 12px));
    max-height: min(700px, calc(100dvh - 12px));
    padding: 0;
    border-radius: 24px;
  }

  .weather-dialog .dialog-header {
    margin-bottom: 6px;
  }

  .weather-detail {
    gap: 0;
    max-height: min(700px, calc(100dvh - 12px));
  }

  .weather-city-tabs button {
    min-height: 29px;
    flex-basis: 68px;
    padding: 4px 8px;
  }

  .weather-manager {
    left: 14px;
    right: 58px;
    top: 13px;
  }

  .weather-manager-inner {
    gap: 6px;
  }

  .weather-add-city {
    max-width: none;
  }

  .weather-add-city.is-expanded {
    grid-template-columns: 27px minmax(72px, 1fr) 38px;
  }

  .weather-detail-hero {
    min-height: 416px;
    padding: 52px 14px 14px;
    border-radius: 0;
    grid-template-rows: auto minmax(96px, 1fr) auto auto;
  }

  .weather-detail-topline span {
    max-width: 160px;
    font-size: 0.75rem;
    padding-right: 38px;
  }

  .weather-detail-main {
    gap: 10px;
    align-items: end;
  }

  .weather-detail-temp {
    font-size: clamp(4.6rem, 22vw, 6.2rem);
  }

  .weather-detail-summary {
    font-size: 0.78rem;
  }

  .weather-detail-summary span {
    white-space: normal;
  }

  .weather-hourly-timeline {
    min-height: 90px;
    margin-right: -4px;
    padding-bottom: 10px;
  }

  .weather-hourly-track {
    grid-template-columns: repeat(24, 60px);
    gap: 8px;
    min-width: max(100%, calc((60px * 24) + (8px * 23)));
    padding-right: 24px;
  }

  .weather-hour-card--timeline {
    width: 60px;
    min-width: 60px;
  }

  .weather-detail-rain,
  .weather-detail-snow {
    left: 62%;
    right: 24px;
    max-width: 118px;
    top: 162px;
    height: 170px;
  }

  .weather-detail-hero[data-condition="rain"] .weather-detail-rain,
  .weather-detail-hero[data-condition="storm"] .weather-detail-rain {
    opacity: 0.13;
  }

  .weather-detail-hero[data-condition="rain"][data-severity="heavy"] .weather-detail-rain,
  .weather-detail-hero[data-condition="rain"][data-severity="storm"] .weather-detail-rain,
  .weather-detail-hero[data-condition="storm"] .weather-detail-rain {
    opacity: 0.18;
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forecast-grid {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    gap: 0;
    margin: 0;
    padding: 10px 14px 14px;
    overflow: visible;
  }

  .app-grid {
    --icon-size: clamp(54px, calc(var(--cell-size) * 0.72), 66px);
    grid-template-columns: repeat(auto-fill, var(--cell-size));
    grid-auto-rows: var(--cell-size);
    gap: var(--cell-gap);
    justify-content: center;
    align-content: start;
    max-height: max(var(--cell-size), calc(100dvh - var(--desktop-pad-top) - var(--mobile-grid-bottom-reserve)));
    padding: 4px 0 var(--mobile-grid-tail-space);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .page-swipe-panel {
    grid-template-columns: repeat(auto-fill, var(--cell-size));
    grid-auto-rows: var(--cell-size);
    gap: var(--cell-gap);
    justify-content: center;
    align-content: start;
    padding: 4px 0 var(--mobile-grid-tail-space);
  }

  .app-grid::-webkit-scrollbar {
    display: none;
  }

  .app-grid .app-tile,
  .page-swipe-stage .app-tile {
    gap: 5px;
    align-content: center;
  }

  .app-grid .app-link,
  .page-swipe-stage .app-link,
  .app-grid .app-tile--2x1 .app-link,
  .app-grid .app-tile--2x2 .app-link,
  .page-swipe-stage .app-tile--2x1 .app-link,
  .page-swipe-stage .app-tile--2x2 .app-link {
    width: var(--icon-size);
    height: var(--icon-size);
    border-radius: 15px;
  }

  .app-grid .app-link img,
  .page-swipe-stage .app-link img,
  .app-grid .app-tile--2x1 .app-link img,
  .app-grid .app-tile--2x2 .app-link img,
  .page-swipe-stage .app-tile--2x1 .app-link img,
  .page-swipe-stage .app-tile--2x2 .app-link img {
    width: 58%;
    height: 58%;
  }

  .app-grid .app-name,
  .page-swipe-stage .app-name,
  .app-grid .app-tile--2x1 .app-name,
  .app-grid .app-tile--2x2 .app-name,
  .page-swipe-stage .app-tile--2x1 .app-name,
  .page-swipe-stage .app-tile--2x2 .app-name {
    position: static;
    width: 100%;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  }

  .control-panel {
    --panel-open-bottom: 106px;
    left: 50%;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-height: min(calc(100dvh - 142px), 540px);
    border-radius: 18px;
    padding: 10px;
  }

  .field-row,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .weather-detail .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weather-detail .weather-day-card {
    min-width: 0;
    grid-template-columns: minmax(58px, 0.72fr) 38px minmax(92px, 1.3fr) minmax(56px, 0.7fr);
    grid-template-rows: 1fr auto;
    gap: 3px 7px;
    min-height: 60px;
  }

  .weather-detail .weather-day-card .weather-day-temp {
    display: grid;
  }

  .submit-button {
    width: 100%;
  }

  .site-form .submit-button {
    width: auto;
  }

  .time-actions .submit-button,
  .time-actions .mini-button {
    width: auto;
  }

  .control-panel .panel-header {
    align-items: flex-start;
  }

  .control-panel .panel-header > div {
    display: grid;
    gap: 2px;
  }
}

@media (max-width: 430px) {
  :root {
    --cell-size: clamp(72px, calc((100vw - 42px) / 4), 88px);
    --cell-gap: 6px;
  }

  .desktop {
    --desktop-pad-top: calc(126px + var(--safe-top));
    --desktop-pad-x: max(12px, calc(10px + max(var(--safe-left), var(--safe-right))));
    --desktop-pad-bottom: calc(186px + var(--safe-bottom));
    --page-stage-bottom: calc(158px + var(--safe-bottom));
    --mobile-grid-bottom-reserve: calc(158px + var(--safe-bottom));
    --mobile-grid-tail-space: 8px;
    padding: var(--desktop-pad-top) var(--desktop-pad-x) var(--desktop-pad-bottom);
  }

  .app-grid {
    --icon-size: clamp(52px, calc(var(--cell-size) * 0.72), 62px);
    padding-bottom: var(--mobile-grid-tail-space);
  }

  .page-swipe-panel {
    padding-bottom: var(--mobile-grid-tail-space);
  }

  .page-switcher {
    bottom: calc(118px + var(--safe-bottom));
  }

  .time-clock {
    font-size: 3.2rem;
  }

  .world-clock {
    padding: 7px;
  }

  .weather-widget {
    padding: 12px;
    gap: 6px;
  }

  .weather-temp {
    font-size: 2.7rem;
  }

  .weather-city {
    font-size: 0.78rem;
  }

  .weather-desc {
    font-size: 0.66rem;
  }

  .weather-reading-copy {
    font-size: 0.62rem;
  }

  .weather-hour {
    padding: 4px 2px 5px;
  }

  .weather-hour span,
  .weather-hour strong {
    font-size: 0.54rem;
  }

  .weather-hour strong {
    font-size: 0.68rem;
  }

  .weather-meta span {
    min-height: 18px;
    padding: 0 4px;
    font-size: 0.52rem;
  }

  .weather-updated {
    font-size: 0.58rem;
  }

  .weather-day-card {
    grid-template-columns: 1fr;
    grid-template-rows: 44px 74px 76px 42px 52px;
    gap: 6px;
    min-height: 294px;
  }

  .weather-day-card .weather-day-temp {
    display: grid;
  }

  .weather-day-card span:last-child {
    display: grid;
  }

  .edit-toolbar {
    bottom: calc(106px + var(--safe-bottom));
    max-width: calc(100vw - max(24px, calc(24px + var(--safe-left) + var(--safe-right))));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
