.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  background: #1e293b;
  color: var(--color-link-on-dark);
  height: var(--footer-row-min-height);
  min-height: var(--footer-row-min-height);
}

body.homepage-search-front .bottom-nav {
  z-index: 80;
}

body.homepage-search-front .bottom-sheet:not(.open):not(.closing),
body.homepage-search-front .sheet-overlay {
  display: none;
  pointer-events: none;
}

.browser-iphone .bottom-nav {
  transform: none;
  transform-origin: bottom center;
  will-change: auto;
}

.bottom-nav-inner {
  width: var(--ks-home-shell-fluid);
  margin-inline: auto;
  height: var(--footer-row-min-height);
  min-height: var(--footer-row-min-height);
  padding: 0 var(--ks-page-margin-desktop);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: var(--ks-space-24);
}

.bottom-nav-controls {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 32px;
  position: relative;
  z-index: 112;
}

.footer-brand,
.bottom-nav a {
  color: var(--color-link-on-dark);
}

.mobile-page-copyright {
  display: none;
  width: min(calc(100vw - (var(--ks-page-margin-mobile) * 2)), var(--ks-container-max));
  margin: 0 auto;
  padding: 0 var(--ks-page-margin-mobile);
  box-sizing: border-box;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: #111111;
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: auto;
  pointer-events: none;
}

.footer-brand {
  justify-self: start;
  white-space: nowrap;
  position: relative;
  z-index: 112;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
}

.bottom-nav-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  row-gap: var(--ks-space-8);
  justify-self: center;
}

.bottom-nav .v-divider {
  display: none;
}

.stopwatch-search-active .bottom-nav .v-divider {
  background: rgba(255, 107, 107, 0.58);
}

.bottom-menu-btn {
  display: none;
  justify-self: end;
  margin-right: 0;
  position: relative;
  z-index: 112;
  width: 27px;
  min-width: 27px;
  min-height: 16px;
  height: 16px;
  padding: 0;
  align-items: center;
  justify-items: center;
}

.theme-toggle {
  color: var(--color-link-on-dark);
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.theme-toggle__option {
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  opacity: 0.92;
}

.theme-toggle__switch {
  position: relative;
  width: 38px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: var(--ks-color-primary-500);
  appearance: none;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background-color var(--ks-transition-fast), border-color var(--ks-transition-fast);
}

.theme-toggle__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform var(--ks-transition-fast);
}

.theme-toggle__switch:checked {
  background: var(--ks-color-accent-green);
  border-color: rgba(255, 255, 255, 0.38);
}

.theme-toggle__switch:checked::after {
  transform: translateX(18px);
}

.theme-toggle--sheet {
  width: auto;
  justify-content: center;
  color: #1e293b;
  padding: 4px 0 12px;
  margin-right: 0;
}

.bottom-nav.bottom-nav--sheet-open .bottom-nav-inline {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.bottom-nav.bottom-nav--sheet-open .bottom-menu-btn {
  justify-self: end;
}

.sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--footer-row-min-height);
  background: rgba(0, 0, 0, 0.45);
  z-index: 98;
}

.time-search-active .sheet-overlay {
  background: transparent;
}

.stopwatch-search-active .sheet-overlay {
  background: transparent;
}

.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--footer-row-min-height);
  z-index: 100;
  height: calc(75vh - var(--footer-row-min-height));
  background: #f8fafc;
  color: #1e293b;
  border-top-left-radius: var(--ks-shell-radius-card-lg);
  border-top-right-radius: var(--ks-shell-radius-card-lg);
  box-shadow: none;
  transform: translateY(100%);
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.time-search-active .bottom-menu-btn .hamburger span,
.time-search-active .bottom-menu-btn .top-menu-hamburger span,
.time-search-active .bottom-menu-btn:hover .hamburger span {
  background: #ffffff;
}

.stopwatch-search-active .bottom-menu-btn .hamburger span,
.stopwatch-search-active .bottom-menu-btn .top-menu-hamburger span,
.stopwatch-search-active .bottom-menu-btn:hover .hamburger span {
  background: #ff6b6b;
}

.screensaver-127-active .bottom-menu-btn .hamburger span,
.screensaver-127-active .bottom-menu-btn .top-menu-hamburger span,
.screensaver-127-active .bottom-menu-btn:hover .hamburger span {
  background: #ffb703;
}

.world-time-map-active .bottom-menu-btn .hamburger span,
.world-time-map-active .bottom-menu-btn .top-menu-hamburger span,
.world-time-map-active .bottom-menu-btn:hover .hamburger span,
.world-time-map-active .bottom-menu-btn:hover .top-menu-hamburger span,
.world-time-map-active .bottom-menu-btn:focus-visible .hamburger span,
.world-time-map-active .bottom-menu-btn:focus-visible .top-menu-hamburger span {
  background: #00a1ce;
}

.time-search-active .bottom-sheet {
  background: var(--ks-color-accent-yellow);
  box-shadow: none;
}

.stopwatch-search-active .bottom-sheet {
  background: #ff6b6b;
  box-shadow: none;
}

.screensaver-127-active .bottom-sheet {
  background: #ffb703;
  box-shadow: none;
}

.bottom-sheet.open {
  transform: translateY(0);
}

.bottom-sheet.closing {
  pointer-events: none;
  transition: transform 0.75s cubic-bezier(0.12, 0.72, 0.2, 1);
}

.bottom-sheet-handle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding-top: 20px;
  padding-bottom: 4px;
  flex: 0 0 auto;
  color: inherit;
}

.bottom-sheet-grabber {
  width: var(--ks-sheet-handle-width);
  height: var(--ks-sheet-handle-height);
  border-radius: var(--ks-sheet-handle-radius);
  background: var(--ks-sheet-handle-fill);
  box-shadow: var(--ks-shadow-sheet-handle);
  margin: 0 auto;
  display: block;
  flex: 0 0 auto;
}

.time-search-active .bottom-sheet-grabber {
  background: var(--ks-sheet-handle-fill);
  height: var(--ks-sheet-handle-height);
}

.stopwatch-search-active .bottom-sheet-grabber {
  background: var(--ks-sheet-handle-fill);
  height: var(--ks-sheet-handle-height);
}

.screensaver-127-active .bottom-sheet-grabber {
  background: var(--ks-sheet-handle-fill);
  height: var(--ks-sheet-handle-height);
}

.bottom-sheet-prompt {
  margin: 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 400;
  color: #1e293b;
  touch-action: none;
  display: block;
  flex: 0 0 auto;
}

.time-search-active .bottom-sheet-prompt {
  color: #ffffff;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.stopwatch-search-active .bottom-sheet-prompt {
  color: #e6f6fb;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.screensaver-127-active .bottom-sheet-prompt {
  color: #00a1ce;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.bottom-sheet-close {
  display: none;
  position: absolute;
  right: 30px;
  bottom: calc(var(--space-sm) + ((var(--footer-row-min-height) + var(--space-md) - 32px) / 2) - 10px);
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.bottom-sheet-close__glyph {
  position: relative;
  width: 12px;
  height: 12px;
  display: inline-block;
}

.bottom-sheet-close__glyph::before,
.bottom-sheet-close__glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transform-origin: center center;
}

.bottom-sheet-close__glyph::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.bottom-sheet-close__glyph::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 var(--ks-space-24) var(--ks-space-16);
  border-bottom: 0;
}

.sheet-header h2 {
  margin: 0;
  font-size: 1rem;
}

.sheet-links a {
  display: flex;
  align-items: center;
  min-height: var(--footer-row-min-height);
  padding: 0 var(--ks-space-24);
  border-bottom: 0;
  color: #1e293b;
  font-weight: 500;
  --ripple-dot-color: #1e293b;
}

.time-search-active .sheet-links a,
.time-search-active .sheet-header h2 {
  color: #ffffff;
  background: transparent;
  transition: none;
}

.stopwatch-search-active .sheet-links a,
.stopwatch-search-active .sheet-links a:hover,
.stopwatch-search-active .sheet-links a:focus-visible,
.stopwatch-search-active .sheet-header h2 {
  color: #e6f6fb;
  background: transparent;
  transition: none;
}

.screensaver-127-active .sheet-links a,
.screensaver-127-active .sheet-links a:hover,
.screensaver-127-active .sheet-links a:focus-visible,
.screensaver-127-active .sheet-header h2 {
  color: #00a1ce;
  background: transparent;
  transition: none;
}

.sheet-links a:hover {
  color: #1e293b;
  font-weight: 500;
  background: #ffffff;
}

.time-search-active .sheet-links a:hover,
.time-search-active .sheet-links a:focus-visible {
  color: #ffffff;
  background: transparent;
}

.time-search-active .bottom-nav-inline a:hover,
.time-search-active .bottom-nav-inline a:focus-visible,
.time-search-active .bottom-nav a:hover,
.time-search-active .bottom-nav a:focus-visible {
  color: #ffffff;
  background: transparent;
}

.stopwatch-search-active .bottom-nav-inline a:hover,
.stopwatch-search-active .bottom-nav-inline a:focus-visible,
.stopwatch-search-active .bottom-nav a:hover,
.stopwatch-search-active .bottom-nav a:focus-visible {
  color: #ff6b6b;
  background: transparent;
}

.screensaver-127-active .bottom-nav-inline a:hover,
.screensaver-127-active .bottom-nav-inline a:focus-visible,
.screensaver-127-active .bottom-nav a:hover,
.screensaver-127-active .bottom-nav a:focus-visible {
  color: #ffb703;
  background: transparent;
}

.bottom-sheet-dismiss-zone {
  flex: 1 1 auto;
  min-height: 80px;
  display: block;
  cursor: grab;
  touch-action: none;
}

.bottom-nav-inline a {
  padding: var(--ks-space-8) 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 400;
  transition: background-color 180ms ease;
}

.bottom-nav-inline a:hover {
  color: #7f95b8;
  font-weight: 400;
  background: transparent;
}

.bottom-menu-btn {
  transition: background-color 180ms ease;
}

.bottom-menu-btn:hover {
  background: transparent;
}

.bottom-menu-btn:hover .hamburger span {
  background: #ffffff;
}

@media (min-width: 768px) and (max-width: 980px) {
  body {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
  }

  main {
    flex: 1 0 auto;
  }

  .bottom-nav-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    row-gap: 0;
    justify-items: stretch;
    text-align: left;
    padding: 0 32px 0 var(--ks-page-margin-desktop);
  }

  .bottom-nav-inline {
    display: none;
  }

  .footer-brand {
    display: none;
  }

  .bottom-nav-controls {
    grid-column: 2;
    justify-self: end;
    margin-left: 0;
    gap: 32px;
  }

  .theme-toggle {
    margin-right: 0;
  }

  .bottom-menu-btn {
    display: inline-grid;
  }

  .mobile-page-copyright {
    display: block;
    margin: 24px auto calc(var(--footer-row-min-height) + 24px);
  }
}

@media (min-width: 981px) and (max-width: 1320px) {
  body {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
  }

  main {
    flex: 1 0 auto;
  }

  .bottom-nav-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 20px;
    row-gap: 0;
    text-align: left;
  }

  .bottom-nav-inline {
    display: none;
  }

  .footer-brand {
    display: none;
  }

  .bottom-nav-controls {
    grid-column: 2;
    justify-self: end;
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    gap: 32px;
  }

  .theme-toggle {
    margin-right: 0;
  }

  .bottom-menu-btn {
    display: inline-grid;
    color: var(--color-link-on-dark);
    margin-right: 0;
    margin-left: 0;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
  }

  .bottom-menu-btn .hamburger span,
  .bottom-menu-btn .top-menu-hamburger span {
    background: #ffffff;
  }

  .mobile-page-copyright {
    display: block;
    margin: 24px auto calc(var(--footer-row-min-height) + 24px);
  }
}

@media (min-width: 1321px) {
  .bottom-nav-inline {
    justify-self: end;
    gap: 32px;
  }
}

@media (max-width: 767px) {
  body {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
  }

  main {
    flex: 1 0 auto;
  }

  .bottom-nav-inner {
    grid-template-columns: 1fr auto;
    padding: 0 36px;
    column-gap: 0;
  }

  .footer-brand {
    display: none;
  }

  .footer-brand {
    font-size: 14px;
  }

  .mobile-page-copyright {
    display: block;
    width: min(calc(100vw - 72px), var(--ks-container-max));
    padding: 0 36px;
    margin: 24px auto calc(var(--footer-row-min-height) + 24px);
  }

  .bottom-nav-inline {
    display: none;
  }

  .bottom-menu-btn {
    display: inline-grid;
    color: var(--color-link-on-dark);
    margin-right: 0;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    justify-self: auto;
  }

  .bottom-nav-controls {
    justify-self: end;
    gap: 32px;
  }

  .bottom-menu-btn .hamburger span {
    background: #ffffff;
  }

  .bottom-sheet-close {
    right: 30px;
    bottom: calc(var(--space-sm) + ((var(--footer-row-min-height) + var(--space-md) - 32px) / 2) - 10px);
  }
}

html.theme-dark .bottom-sheet {
  background: #121926;
  color: #e7eef8;
}

html.theme-dark .bottom-sheet-prompt,
html.theme-dark .sheet-header h2,
html.theme-dark .sheet-links a,
html.theme-dark .menu-label,
html.theme-dark .theme-toggle--sheet {
  color: #e7eef8;
}

html.theme-dark .menu-dots i {
  background: rgba(231, 238, 248, 0.6);
}

html.theme-dark .bottom-nav {
  background: #0b1220;
}

html.theme-dark .footer-brand,
html.theme-dark .bottom-nav a,
html.theme-dark .theme-toggle {
  color: #eef4fb;
}

html.theme-dark .mobile-page-copyright {
  color: #eef4fb;
}

body.footer-brand-in-bar .mobile-page-copyright {
  display: none !important;
}

body.footer-brand-in-bar .bottom-nav .footer-brand {
  display: inline-flex !important;
}

html.theme-dark .theme-toggle__option {
  color: #ffffff;
}

html.theme-dark .theme-toggle__switch {
  background: var(--ks-color-primary-500);
  border-color: rgba(255, 255, 255, 0.32);
}

html.theme-dark .theme-toggle__switch:checked {
  background: var(--ks-color-accent-green);
  border-color: rgba(255, 255, 255, 0.38);
}

html.theme-dark .theme-toggle__switch::after {
  background: #f8fbff;
}

html.theme-dark .bottom-menu-btn .hamburger span,
html.theme-dark .bottom-menu-btn .top-menu-hamburger span {
  background: #ffffff;
}

html.theme-dark .sheet-links a:hover,
html.theme-dark .sheet-links a:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

@media (max-width: 359px) {
  .footer-brand {
    font-size: 14px;
  }
}

.send-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 92;
}

.send-sheet {
  --send-sheet-base-y: 100%;
  --send-sheet-drag-y: 0px;
  --send-sheet-width: calc((((var(--container-max) - (11 * var(--grid-gutter))) / 12) * 10) + (9 * var(--grid-gutter)));
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 93;
  width: min(calc(100% - (var(--grid-gutter) * 2)), var(--send-sheet-width));
  height: min(66vh, 500px);
  background: #ffffff;
  color: #111827;
  border-top-left-radius: var(--ks-shell-radius-card-lg);
  border-top-right-radius: var(--ks-shell-radius-card-lg);
  transform: translate(-50%, calc(var(--send-sheet-base-y) + var(--send-sheet-drag-y)));
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.send-sheet.open {
  --send-sheet-base-y: 0px;
}

@media (max-width: 1023px) {
  .send-sheet {
    --send-sheet-width: calc(100% - 50px);
    width: var(--send-sheet-width);
  }
}

@media (max-width: 767px) {
  .send-sheet {
    left: 0;
    --send-sheet-width: 100%;
    width: var(--send-sheet-width);
    transform: translate(0, calc(var(--send-sheet-base-y) + var(--send-sheet-drag-y)));
  }
}

.send-sheet-grabber {
  width: var(--ks-sheet-handle-width);
  height: var(--ks-sheet-handle-height);
  border-radius: var(--ks-sheet-handle-radius);
  background: var(--ks-sheet-handle-fill);
  box-shadow: var(--ks-shadow-sheet-handle);
  margin: 20px auto 6px;
  color: inherit;
}

.send-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px var(--space-lg) 0;
}

.send-sheet-header h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.send-sheet-close {
  appearance: none;
  border: 1px solid var(--color-card-border);
  background: #ffffff;
  color: #111827;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
}

.send-sheet-search {
  padding: 10px var(--space-lg) 0;
}

.send-sheet-search input {
  width: 100%;
  height: 42px;
  border: 1px solid #9ca3af;
  border-radius: var(--radius-pill);
  padding: 0 16px;
  font-size: 1rem;
  outline: none;
}

.send-people-row {
  margin-top: 20px;
  padding: 0 var(--space-lg);
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.send-people-row::-webkit-scrollbar {
  display: none;
}

.send-person-item {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex: 0 0 auto;
  min-width: 76px;
}

.send-person-avatar {
  width: auto;
  min-width: 58px;
  height: 58px;
  padding: 5px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--color-button-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
  white-space: nowrap;
}

.send-person-name {
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.2;
  color: #111827;
}

.send-sheet-divider {
  margin: 20px 0 0;
  border-top: 1px solid #d1d5db;
}

.send-options-row {
  margin-top: 20px;
  padding: 0 var(--space-lg) 10px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.send-options-row::-webkit-scrollbar {
  display: none;
}

.send-option-item {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex: 0 0 auto;
}

.send-option-circle {
  width: auto;
  min-width: 56px;
  height: 56px;
  padding: 5px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--color-button-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.send-option-label {
  color: #111827;
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}
