:root {
  --bg: #f8f9ff;
  --surface: #ffffff;
  --surface-soft: #eff4ff;
  --surface-muted: #e6eeff;
  --surface-strong: #dce9ff;
  --surface-dim: #ccdbf3;
  --text: #0d1c2e;
  --text-soft: #5d6979;
  --text-faint: #7c8798;
  --line-soft: rgba(114, 122, 105, 0.14);
  --primary: #366800;
  --primary-strong: #4d821d;
  --primary-soft: #cee8b2;
  --primary-glow: #b7f481;
  --shadow-soft: 0 10px 30px rgba(13, 28, 46, 0.06);
  --shadow-card: 0 20px 44px rgba(13, 28, 46, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --location-meta-size: 0.96rem;
}

body.dark-mode {
  --bg: #111317;
  --surface: #181b20;
  --surface-soft: #20242b;
  --surface-muted: #252a32;
  --surface-strong: #303640;
  --surface-dim: #3a414d;
  --text: #f1f3f6;
  --text-soft: #b6bec8;
  --text-faint: #8c95a1;
  --line-soft: rgba(255, 255, 255, 0.08);
  --primary: #69717d;
  --primary-strong: #838c99;
  --primary-soft: #2f353d;
  --primary-glow: #adb4be;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.22);
  --shadow-card: 0 20px 44px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(183, 244, 129, 0.16), transparent 20%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.5;
}

body.dark-mode {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.07), transparent 18%),
    linear-gradient(180deg, #0c0e12 0%, var(--bg) 100%);
}

body.dark-mode .boot_main_bar,
body.dark-mode .boot_chip,
body.dark-mode .boot_line,
body.dark-mode .boot_card,
body.dark-mode .boot_sidebar_card {
  background: rgba(32, 36, 43, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.dark-mode .boot_chip::after,
body.dark-mode .boot_line::after,
body.dark-mode .boot_card::after,
body.dark-mode .boot_sidebar_card::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.boot_shell {
  min-height: 100vh;
}

.boot_main_bar {
  min-height: 44px;
  border-radius: 20px;
  background: rgba(230, 238, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(194, 201, 182, 0.14);
}

.boot_main_panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

.boot_chip,
.boot_line,
.boot_card,
.boot_sidebar_card {
  position: relative;
  overflow: hidden;
  background: rgba(230, 238, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(194, 201, 182, 0.16);
}

.boot_chip::after,
.boot_line::after,
.boot_card::after,
.boot_sidebar_card::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  animation: bootShimmer 1.4s ease-in-out infinite;
}

.boot_chip {
  width: 138px;
  height: 28px;
  border-radius: 999px;
}

.boot_line {
  width: min(760px, 82%);
  border-radius: 18px;
}

.boot_line--lg {
  height: 64px;
}

.boot_line--md {
  height: 140px;
  width: min(620px, 70%);
}

.boot_grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.boot_card {
  min-height: 128px;
  border-radius: 24px;
}

.boot_sidebar_card {
  min-height: 54px;
  border-radius: 16px;
}

@keyframes bootShimmer {
  100% {
    transform: translateX(100%);
  }
}

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

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

.icon_svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 auto;
  vertical-align: middle;
}

.icon_svg img {
  width: 100%;
  height: 100%;
  display: block;
}

.head_bar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(194, 201, 182, 0.25);
}

body.dark-mode .head_bar {
  background: rgba(14, 16, 20, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.topbar_shell {
  max-width: 1520px;
  min-height: 74px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand_mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--text);
  flex-shrink: 0;
}

.brand_mark_text {
  display: inline-block;
}

.brand_mark_icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand_mark_core {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand_mark_logo {
  width: 100%;
  height: 100%;
  display: block;
}

.topbar_nav {
  min-width: 0;
  flex: 1;
}

.nav_menus {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav_menus--top {
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav_menus--top::-webkit-scrollbar {
  display: none;
}

.nav_menus a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.nav_menus a:hover,
.nav_menus a.is-active {
  color: var(--primary);
}

.nav_menus--top a.is-active {
  box-shadow: inset 0 -2px 0 var(--primary);
  border-radius: 0;
}

.topbar_actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.sidebar_toggle_button {
  display: none;
}

@media (min-width: 1181px) {
  .sidebar_toggle_button {
    display: none !important;
  }
}

.icon_button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease, color 180ms ease;
}

.icon_button:hover {
  background: rgba(230, 238, 255, 0.85);
  color: var(--text);
  transform: translateY(-1px);
}

body.dark-mode .icon_button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.content {
  max-width: 1520px;
  margin: 0 auto;
  padding: 28px;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.lside-bar {
  position: sticky;
  top: 104px;
  align-self: start;
}

.sidebar_backdrop {
  display: none;
}

.sidebar_shell {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar_mobile_head {
  display: none;
}

.sidebar_group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar_caption {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 700;
  color: var(--text-faint);
}

.sidebar_links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar_link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.sidebar_link:hover {
  background: rgba(230, 238, 255, 0.9);
  color: var(--text);
}

.sidebar_link.is-active {
  background: linear-gradient(135deg, rgba(206, 232, 178, 0.95), rgba(183, 244, 129, 0.72));
  color: #274d00;
  box-shadow: var(--shadow-soft);
}

.sidebar_link.is-current {
  cursor: default;
  pointer-events: none;
}

body.dark-mode .sidebar_link:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.dark-mode .sidebar_link.is-active {
  background: linear-gradient(135deg, rgba(79, 87, 99, 0.95), rgba(103, 112, 124, 0.78));
  color: #f5f7fa;
}

.sidebar_icon_svg {
  width: 1.32rem;
  height: 1.32rem;
  flex: 0 0 1.32rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar_icon_svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sidebar_icon_svg img {
  width: 100%;
  height: 100%;
  display: block;
}

body.dark-mode .icon_svg img,
body.dark-mode .sidebar_icon_svg img {
  filter: brightness(0) saturate(100%) invert(91%) sepia(8%) saturate(234%) hue-rotate(180deg) brightness(102%) contrast(95%);
  opacity: 0.92;
}

body.dark-mode .sidebar_link:hover .sidebar_icon_svg img,
body.dark-mode .sidebar_link.is-active .sidebar_icon_svg img,
body.dark-mode .icon_button:hover .icon_svg img,
body.dark-mode .fixed_item .icon_action_button:hover .icon_svg img,
body.dark-mode .dynamic_item .control_toggle_button.is-active .icon_svg img {
  opacity: 1;
}

.sidebar_promo {
  padding: 24px;
  border-radius: 28px;
  background: rgba(239, 244, 255, 0.85);
  box-shadow: inset 0 0 0 1px rgba(194, 201, 182, 0.16);
}

body.dark-mode .sidebar_promo {
  background: rgba(32, 36, 43, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.promo_icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
}

.sidebar_promo h4 {
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.sidebar_promo p {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.promo_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: var(--shadow-soft);
}

.content_primary {
  min-width: 0;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: calc(100vh - 220px);
}

.main_0 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  flex-wrap: nowrap;
  padding: 2px 8px;
  border-radius: 18px;
  background: rgba(239, 244, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(194, 201, 182, 0.14);
}

body.dark-mode .main_0 {
  background: rgba(32, 36, 43, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.dynamic_item,
.fixed_item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dynamic_item {
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  margin-right: auto;
}

.dynamic_item > div,
.dynamic_item form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

.dynamic_item .icon_svg {
  width: 1.34rem;
  height: 1.34rem;
  color: currentColor;
  cursor: pointer;
}

.icon_button .icon_svg,
.nav_icon .icon_svg {
  width: 1.2rem;
  height: 1.2rem;
}

.dynamic_item select,
.dynamic_item input,
.dynamic_item button {
  min-height: 30px;
  padding: 0 8px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

body.dark-mode .dynamic_item select,
body.dark-mode .dynamic_item input,
body.dark-mode .dynamic_item button {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.dynamic_item button {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.fixed_item {
  flex: 0 0 auto;
  gap: 8px;
  justify-content: flex-end;
  margin-left: auto;
}

#close-fullscreen {
  display: none;
}

.main.FULLSCREEN #fullscreen {
  display: none;
}

.main.FULLSCREEN #close-fullscreen {
  display: inline-flex;
}

.main.FULLSCREEN {
  position: relative;
  min-height: 100vh;
  gap: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 253, 255, 0.98));
}

body.dark-mode .main.FULLSCREEN {
  background: linear-gradient(180deg, rgba(16, 18, 22, 0.98), rgba(20, 23, 28, 0.98));
}

.main.FULLSCREEN .main_0 {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 30;
  width: auto;
  min-height: auto;
  padding: 0;
  gap: 0;
  background: transparent;
  box-shadow: none;
}

.main.FULLSCREEN .fixed_item {
  margin-left: 0;
  padding: 10px 14px;
  border-radius: 22px;
  background: rgba(239, 244, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(194, 201, 182, 0.14);
}

body.dark-mode .main.FULLSCREEN .fixed_item {
  background: rgba(28, 32, 38, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.fixed_item .icon_action_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(239, 244, 255, 0.92);
  color: var(--text-soft);
  cursor: pointer;
}

body.dark-mode .fixed_item .icon_action_button {
  background: rgba(255, 255, 255, 0.05);
}

.fixed_item .icon_svg {
  width: 1.15rem;
  height: 1.15rem;
}

.ui_toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.9);
  color: #f8fafc;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2000;
}

.ui_toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.dark-mode .ui_toast {
  background: rgba(229, 231, 235, 0.92);
  color: #111827;
}

#night_day.icon_action_button {
  width: 38px;
  height: 38px;
}

#night_day .icon_svg {
  width: 1.48rem;
  height: 1.48rem;
}

.main_1 {
  position: relative;
  overflow: hidden;
  min-height: 48vh;
  padding: 56px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 253, 255, 0.98));
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark-mode .main_1 {
  background: linear-gradient(180deg, rgba(24, 27, 32, 0.98), rgba(20, 23, 28, 0.98));
}

.main_1_fixed {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 0 0 auto;
}

.main_1_inner {
  position: relative;
  z-index: 1;
  width: calc(100% / var(--page-zoom, 1));
  min-height: calc(100% / var(--page-zoom, 1));
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: scale(var(--page-zoom, 1));
  transform-origin: center center;
}

.main.FULLSCREEN .main_1 {
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  padding: 32px;
  border-radius: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.main.FULLSCREEN .main_1_inner {
  width: calc(100% / var(--page-zoom, 1));
  min-height: calc(100% / var(--page-zoom, 1));
  height: calc(100% / var(--page-zoom, 1));
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  align-self: center;
  justify-self: center;
}

.main.FULLSCREEN .clock_dashboard {
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.main.FULLSCREEN .hero_header,
.main.FULLSCREEN .hero_title--center {
  flex: 0 0 auto;
}

.main.FULLSCREEN .hero_title--center {
  margin-top: auto;
  margin-bottom: 10px;
}

.main.FULLSCREEN .hero_time_row {
  flex: 0 1 auto;
  align-self: center;
  align-content: center;
  display: grid;
  place-items: center;
  grid-template-columns: 1.8ch 1fr 1.4ch;
  margin-top: 0;
  margin-bottom: auto;
}

.main.FULLSCREEN .hero_metrics {
  flex: 0 0 auto;
  margin-top: auto;
}

.main.FULLSCREEN .main_extra,
.main.FULLSCREEN .main_description,
.main.FULLSCREEN .dynamic_item {
  display: none;
}

.main_1::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 244, 129, 0.22), transparent 62%);
  pointer-events: none;
}

body.dark-mode .main_1::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 62%);
}

.main[data-page="calc"] .main_1_inner,
.main[data-page="timer"] .main_1_inner,
.main[data-page="stopwatch"] .main_1_inner,
.main[data-page="qrcode"] .main_1_inner,
.main[data-page="day-counter"] .main_1_inner,
.main[data-page="myip"] .main_1_inner,
.main[data-page="server-time"] .main_1_inner,
.main[data-page="time-timer"] .main_1_inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.main[data-page="qrcode"] .main_1,
.main[data-page="server-time"] .main_1 {
  flex-direction: column;
  justify-content: flex-start;
}

.main[data-page="qrcode"] .main_1_inner,
.main[data-page="server-time"] .main_1_inner {
  flex: 1 1 auto;
}

.main.FULLSCREEN[data-page="qrcode"] .main_1,
.main.FULLSCREEN[data-page="server-time"] .main_1 {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  justify-items: center;
}

.main.FULLSCREEN[data-page="qrcode"] .main_1_fixed,
.main.FULLSCREEN[data-page="server-time"] .main_1_fixed {
  width: 100%;
}

.main.FULLSCREEN[data-page="qrcode"] .main_1_inner,
.main.FULLSCREEN[data-page="server-time"] .main_1_inner {
  height: auto;
  min-height: 0;
  align-self: center;
  justify-self: center;
  margin: 0;
}

.main.FULLSCREEN[data-page="qrcode"] .main_1_inner {
  width: calc(100% / var(--page-zoom, 1));
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.main.FULLSCREEN[data-page="server-time"] .main_1_inner {
  width: calc(100% / var(--page-zoom, 1));
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.main.FULLSCREEN[data-page="qrcode"] .main_1 {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.main.FULLSCREEN[data-page="server-time"] .main_1 {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.main.FULLSCREEN[data-page="qrcode"] .main_1_fixed {
  width: 100%;
  flex: 0 0 auto;
}

.main.FULLSCREEN[data-page="server-time"] .main_1_fixed {
  width: 100%;
  flex: 0 0 auto;
}

.main.FULLSCREEN[data-page="qrcode"] .main_1_inner {
  flex: 1 1 auto;
  width: calc(100% / var(--page-zoom, 1));
  height: auto;
  min-height: 0;
  margin: 0 auto;
  align-self: center;
  justify-self: auto;
}

.main.FULLSCREEN[data-page="qrcode"] .main_1_inner {
  position: relative;
  width: 100%;
  transform: none;
}

.main.FULLSCREEN[data-page="server-time"] .main_1_inner {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  margin: 0 auto;
  align-self: center;
  justify-self: auto;
  position: relative;
  width: 100%;
  transform: none;
}

.main[data-page="qrcode"] .main_1,
.main[data-page="day-counter"] .main_1,
.main[data-page="myip"] .main_1 {
  min-height: clamp(520px, 58vh, 680px);
}

.main[data-page="calc"] .main_1_inner > *,
.main[data-page="timer"] .main_1_inner > *,
.main[data-page="stopwatch"] .main_1_inner > *,
.main[data-page="qrcode"] .main_1_inner > *,
.main[data-page="day-counter"] .main_1_inner > *,
.main[data-page="myip"] .main_1_inner > *,
.main[data-page="server-time"] .main_1_inner > *,
.main[data-page="time-timer"] .main_1_inner > * {
  position: relative;
  z-index: 1;
}

.main[data-page="timer"] .main_1 .clock,
.main[data-page="stopwatch"] .main_1 .clock,
.main[data-page="day-counter"] .main_1 .clock,
.main[data-page="myip"] .main_1 .ip,
.main[data-page="time-timer"] .main_1 .clock {
  width: 100%;
  text-align: center;
}

.main[data-page="server-time"] .main_1 .url_form,
.main[data-page="qrcode"] .main_1 .qr_form,
.main[data-page="calc"] .main_1 #input {
  width: min(100%, 960px);
  margin-left: auto;
  margin-right: auto;
}

.main[data-page="server-time"] .main_1 .time_borad,
.main[data-page="qrcode"] .main_1 #qrcode,
.main[data-page="calc"] .main_1 #container,
.main[data-page="calc"] .main_1 .history {
  margin-left: auto;
  margin-right: auto;
}

.main[data-page="server-time"] .main_1 .time_borad,
.main[data-page="qrcode"] .main_1 #qrcode,
.main[data-page="time-timer"] .main_1 .clock {
  width: 100%;
}

.bttm_ad,
.left_ad,
.rside-bar,
.content_2,
.bfixed-bar {
  display: none;
}

.main_bttm {
  display: none;
  padding: 24px 8px 0;
}

.ad_slot_shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.ad_slot_label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
}

.ad_slot_frame {
  min-height: 96px;
  border-radius: 20px;
  background: rgba(230, 238, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(194, 201, 182, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.ad_slot_shell.is-ready .ad_slot_frame {
  min-height: 100px;
  padding: 0;
  overflow: hidden;
}

.ad_slot_placeholder {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  text-align: center;
}

body.dark-mode .ad_slot_frame {
  background: rgba(32, 36, 43, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.dark-mode .ad_slot_placeholder,
body.dark-mode .ad_slot_label {
  color: rgba(241, 243, 246, 0.58);
}

.main_extra {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.main_description {
  padding: 28px 8px 0;
  display: grid;
  gap: 10px;
}

.desc_title {
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.desc_content {
  max-width: 84ch;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.desc_alarm_notice {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--text-faint);
  font-size: 0.95em;
}

.footer {
  max-width: 1520px;
  margin: 40px auto 0;
  padding: 30px 28px 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(194, 201, 182, 0.2);
}

.footer_branding {
  display: grid;
  gap: 4px;
}

.footer_mark {
  font-family: "Manrope", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.footer_branding p,
.footer_links a,
.multilingual label {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.fixed_item .font_scale_button {
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.fixed_item .font_scale_button:disabled {
  opacity: 0.45;
  cursor: default;
}

.footer_links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer_links a:hover {
  color: var(--primary);
}

.multilingual {
  display: flex;
  align-items: center;
  gap: 12px;
}

#lang_list {
  min-height: 40px;
  padding: 0 12px;
  border: none;
  border-radius: 12px;
  background: rgba(239, 244, 255, 0.9);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(194, 201, 182, 0.14);
}

body.dark-mode #lang_list {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.dark-mode #lang_list option {
  background: #1c2026;
  color: var(--text);
}

.nav_bar_bttm {
  display: none;
}

.main input[type="text"],
.main input[type="date"],
.main input[type="number"],
.main select,
.main textarea {
  min-height: 48px;
  padding: 0 16px;
  border: none;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(194, 201, 182, 0.18);
}

.main button {
  min-height: 48px;
  padding: 0 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.main button:hover,
.promo_button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.clock_dashboard {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
}

.clock_dashboard .hero_header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.hero_badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(206, 232, 178, 0.95);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero_title {
  margin-top: 18px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero_title--center {
  margin-top: 0;
  text-align: center;
}

.hero_title .accent {
  color: var(--primary);
}

.hero_meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  padding-top: 8px;
}

.hero_location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-family: "Inter", sans-serif;
  font-size: var(--location-meta-size);
  font-weight: 500;
}

.hero_time_row {
  display: grid;
  grid-template-columns: 1.8ch 1fr 1.4ch;
  align-items: end;
  justify-content: center;
  justify-items: center;
  column-gap: 40px;
  width: fit-content;
  margin: 0 auto;
}

.clock_dashboard #time {
  font-family: "Manrope", sans-serif;
  font-size: clamp(5rem, 13vw, 10.5rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.08em;
  color: var(--text);
  text-align: center;
  min-width: 4.35ch;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.clock_dashboard #apm {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.8rem, 4.2vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--primary);
  width: 1.8ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.clock_dashboard #msec {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #55606f;
  width: 1.4ch;
  text-align: left;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  cursor: pointer;
}

.clock_dashboard #date {
  display: block;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-align: center;
}

.clock_dashboard #utcOffset {
  color: var(--text-faint);
  font-size: 0.88rem;
  white-space: pre-line;
}

.hero_metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(194, 201, 182, 0.18);
}

.metric_card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border-radius: 22px;
  background: var(--surface-soft);
  text-align: center;
}

.metric_label {
  margin-bottom: 10px;
  color: var(--text-faint);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.dark-mode .hero_badge {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.metric_value {
  font-family: "Manrope", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.metric_sub {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.city_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.city_card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  height: auto;
  padding: 20px;
  border-radius: 30px;
  background: var(--surface-muted);
  box-shadow: var(--shadow-soft);
  cursor: grab;
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 180ms ease;
}

.city_card--loading {
  opacity: 0.78;
}

.city_card--loading .city_name,
.city_card--loading .city_country,
.city_card--loading .city_time,
.city_card--loading .city_card_foot small {
  color: var(--text-faint);
}

.city_card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.city_card.is-dragging {
  opacity: 0.62;
  cursor: grabbing;
}

.city_card.is-drop-target {
  box-shadow: 0 0 0 2px rgba(54, 104, 0, 0.22), var(--shadow-card);
}

.city_card_head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.city_card_actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.city_name {
  font-family: "Manrope", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.city_country {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.city_delta {
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

body.dark-mode .city_delta {
  background: rgba(255, 255, 255, 0.06);
}

.city_time {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.08em;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.city_card_foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.city_card_foot small {
  color: var(--text-faint);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.city_arrow {
  color: var(--text-soft);
}

.main .city_remove_button {
  position: static;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--primary);
  box-shadow: none;
  transform: none;
  cursor: pointer;
  z-index: 2;
}

body.dark-mode .main .city_remove_button {
  background: rgba(255, 255, 255, 0.06);
}

.main .city_remove_button:hover {
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary-strong);
  filter: none;
  transform: none;
}

body.dark-mode .main .city_remove_button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.main .city_remove_button .icon_svg {
  width: 1rem;
  height: 1rem;
}

.city_open_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.city_open_button:hover {
  background: rgba(255, 255, 255, 1);
}

body.dark-mode .city_open_button {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f3f6;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.dark-mode .city_open_button:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

body.dark-mode .hero_location .icon_svg,
body.dark-mode .city_card_actions .icon_svg,
body.dark-mode .city_card_foot .icon_svg {
  color: #d7dde5;
  opacity: 0.96;
}

body.dark-mode .hero_location .icon_svg img,
body.dark-mode .city_card_actions .icon_svg img,
body.dark-mode .city_card_foot .icon_svg img {
  filter: brightness(0) saturate(100%) invert(96%) sepia(4%) saturate(419%) hue-rotate(181deg) brightness(93%) contrast(92%);
  opacity: 1;
}

body.dark-mode .main .city_remove_button {
  background: rgba(255, 255, 255, 0.06);
  color: #e8edf4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.dark-mode .main .city_remove_button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.promo_grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
}

.feature_panel,
.status_panel {
  border-radius: 32px;
  overflow: hidden;
  min-height: 240px;
}

.feature_panel {
  position: relative;
  padding: 38px;
  background-color: #14253a;
  background-image:
    linear-gradient(rgba(13, 28, 46, 0.24), rgba(13, 28, 46, 0.64)),
    var(--monthly-feature-bg, url("/assets/img/monthly-panels/bg-01.webp"));
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, cover;
  color: #fff;
  display: flex;
  align-items: flex-end;
}

.feature_panel h3,
.status_panel h3 {
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 8px;
}

.feature_panel p,
.status_panel p {
  max-width: 38ch;
  font-size: 0.95rem;
}

.feature_panel .promo_button {
  width: auto;
  margin-top: 20px;
  border: none;
  cursor: pointer;
}

.status_panel {
  padding: 38px;
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.status_icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  margin-bottom: 18px;
}

.status_icon .icon_svg,
.status_icon .icon_svg img {
  width: 1.5rem;
  height: 1.5rem;
}

body.dark-mode .status_panel {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.dark-mode .status_icon {
  background: rgba(255, 255, 255, 0.08);
  color: #dce2ea;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.dark-mode .status_icon .icon_svg img {
  filter: brightness(0) saturate(100%) invert(95%) sepia(5%) saturate(371%) hue-rotate(180deg) brightness(91%) contrast(94%);
  opacity: 1;
}

.status_chip {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.status_chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.city_modal[hidden] {
  display: none;
}

.city_modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.city_modal_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 28, 46, 0.28);
  backdrop-filter: blur(8px);
}

.city_modal_panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 560px);
  margin: 10vh auto 0;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-card);
}

.city_modal_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.city_modal_header h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.city_modal_close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text-soft);
  cursor: pointer;
}

.city_modal_label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.city_modal_search,
.city_modal_select {
  width: 100%;
}

.city_modal_search {
  margin-bottom: 16px;
}

.city_modal_note {
  margin-top: 10px;
  color: var(--text-faint);
  font-size: 0.78rem;
  line-height: 1.5;
}

.city_modal_actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.city_modal_secondary,
.city_modal_primary {
  min-width: 120px;
  min-height: 44px;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
}

.city_modal_secondary {
  background: var(--surface-soft);
  color: var(--text);
}

.city_modal_primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
}

.extra_container,
.utc_pop,
.utc_time,
.utc_nations,
.market_pop {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}

.utc_pop a,
.utc_time a,
.market_pop a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(239, 244, 255, 0.95);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.utc_nations {
  display: grid;
  gap: 14px;
  width: 100%;
}

.utcn_list {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(239, 244, 255, 0.9);
}

#utcn_title {
  margin-bottom: 10px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

#utcn_content {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.mini-note {
  color: var(--text-soft);
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  .main[data-page="qrcode"] .main_1,
  .main[data-page="day-counter"] .main_1,
  .main[data-page="myip"] .main_1 {
    min-height: clamp(460px, 54vh, 600px);
  }

  .content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sidebar_toggle_button {
    display: inline-flex;
  }

  .lside-bar {
    position: static;
    display: none;
    width: 100%;
    margin-top: 0;
  }

  body.sidebar-open .sidebar_backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(13, 28, 46, 0.18);
    backdrop-filter: blur(6px);
  }

  body.sidebar-open .lside-bar {
    display: block;
    position: fixed;
    top: 92px;
    left: 20px;
    right: 20px;
    z-index: 70;
  }

  .sidebar_shell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
    max-height: calc(100vh - 120px);
    overflow: auto;
  }

  body.dark-mode .sidebar_shell {
    background: rgba(24, 27, 32, 0.98);
  }

  .sidebar_mobile_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }

  .sidebar_mobile_head strong {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-faint);
  }

  .sidebar_close_button {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    background: rgba(230, 238, 255, 0.9);
    color: var(--text-soft);
    cursor: pointer;
  }

  body.dark-mode .sidebar_close_button {
    background: rgba(255, 255, 255, 0.06);
  }

  .sidebar_close_button .icon_svg {
    width: 1.12rem;
    height: 1.12rem;
  }

  .sidebar_promo {
    height: 100%;
  }
}

@media (max-width: 900px) {
  .topbar_shell {
    padding: 0 18px;
  }

  .brand_mark {
    gap: 10px;
    font-size: 1.65rem;
  }

  .brand_mark_icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand_mark_core {
    width: 34px;
    height: 34px;
  }

  .topbar_nav {
    display: none;
  }

  .content {
    padding: 20px 18px;
  }

  .sidebar_shell {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  body.sidebar-open .lside-bar {
    left: 16px;
    right: 16px;
    top: 86px;
  }

  .main_1 {
    padding: 32px 24px;
  }

  .hero_header,
  .hero_metrics,
  .city_grid,
  .promo_grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .clock_dashboard .hero_header {
    display: grid;
  }

  .hero_meta {
    justify-items: start;
  }

  .footer {
    padding: 28px 18px 44px;
    flex-direction: column;
    align-items: flex-start;
  }

  .multilingual {
    flex-wrap: wrap;
  }

  .nav_bar_bttm {
    position: sticky;
    bottom: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(194, 201, 182, 0.25);
  }

  .nav_bar_bttm .nav_menus {
    display: none;
    flex-wrap: wrap;
  }

  .nav_bar_bttm .nav_menus.toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .main[data-page="qrcode"] .main_1,
  .main[data-page="day-counter"] .main_1,
  .main[data-page="myip"] .main_1 {
    min-height: clamp(380px, 46vh, 520px);
  }

  .brand_mark {
    font-size: 1.7rem;
  }

  .main_0 {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .dynamic_item {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .clock_dashboard #time {
    font-size: clamp(4rem, 20vw, 6rem);
  }

  .clock_dashboard #apm {
    font-size: 2.2rem;
  }

  .clock_dashboard #msec {
    font-size: 1.6rem;
  }

  .city_card,
  .feature_panel,
  .status_panel {
    padding: 24px;
  }
}
