html {
  background: #dbeafe;
}

html.theme-dark {
  background: #020617;
}

:root {
  color-scheme: light;
  --bg-main: radial-gradient(circle at top, #eff6ff, #dbeafe 52%, #bfdbfe 100%);
  --bg-solid: #dbeafe;
  --bg-start: #eff6ff;
  --bg-end: #bfdbfe;
  --text-main: #0f172a;
  --brand-icon: #0f172a;
  --date-color: #0f172a;
  --clock-label-color: #1d4ed8;
  --clock-time-color: #0f172a;
  --percent-color: #0f172a;
  --percent-charging-color: #22c55e;
  --charging-active: #22c55e;
  --charging-idle: #9ca3af;
  --charging-text-color: #ffffff;
  --brand-text: #0f172a;
  --text-muted: rgba(30, 64, 175, 0.95);
  --panel-bg: rgba(255, 255, 255, 0.82);
  --panel-border: rgba(15, 23, 42, 0.14);
  --panel-shadow: 0 12px 30px rgba(59, 130, 246, 0.16);
  --control-bg: rgba(255, 255, 255, 0.92);
  --control-border: rgba(15, 23, 42, 0.16);
  --control-text: #0f172a;
  --timezone-menu-bg: rgba(255, 255, 255, 0.92);
  --timezone-menu-text: #0f172a;
  --timezone-menu-highlight: #dbeafe;
  --battery-shell: #0f172a;
  --battery-inner: #f8fafc;
  --bubble-tint: rgba(15, 23, 42, 0.48);
  --clock-glow: 0 0 16px rgba(29, 78, 216, 0.3);
  --brand-shadow: drop-shadow(0 0 16px rgba(21, 128, 61, 0.34));
  --percent-shadow: 0 0 18px currentColor;
  --hint-color: rgba(30, 64, 175, 0.95);
  --accent-main: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.24);
  --battery-critical: #7f1d1d;
  --battery-critical-glow: rgba(127, 29, 29, 0.9);
}

html.theme-dark {
  color-scheme: dark;
  --bg-main: radial-gradient(circle at top, #020617, #000000);
  --bg-solid: #020617;
  --bg-start: #020617;
  --bg-end: #000000;
  --text-main: #ffffff;
  --date-color: #ffffff;
  --brand-text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --panel-bg: rgba(2, 6, 23, 0.28);
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  --control-bg: rgba(15, 23, 42, 0.88);
  --control-border: rgba(255, 255, 255, 0.2);
  --control-text: #ffffff;
  --timezone-menu-bg: rgba(15, 23, 42, 0.88);
  --timezone-menu-text: #ffffff;
  --timezone-menu-highlight: rgba(59, 130, 246, 0.24);
  --battery-shell: #ffffff;
  --battery-inner: #020617;
  --bubble-tint: rgba(255, 255, 255, 0.5);
  --clock-glow: 0 0 16px rgba(96, 165, 250, 0.35);
  --brand-shadow: drop-shadow(0 0 18px rgba(34, 197, 94, 0.2));
  --percent-shadow: 0 0 20px currentColor;
  --hint-color: rgba(255, 255, 255, 0.5);
  --battery-critical: #7f1d1d;
  --battery-critical-glow: rgba(127, 29, 29, 0.9);
}

body {
  margin: 0;
  height: 100vh;
  background: var(--bg-main);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text-main);
  cursor: default;
  overflow: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.fullscreen-idle {
  cursor: none;
}

.brand-mark {
  position: fixed;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-text);
  text-decoration: none;
  z-index: 20;
}

.brand-mark img {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: contain;
  filter: var(--brand-shadow);
}

.brand-logo-glyph {
  display: none;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
  color: var(--brand-icon);
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

.brand-mark.has-custom-icon img {
  display: none;
}

.brand-mark.has-custom-icon .brand-logo-glyph {
  display: inline-flex;
}

.brand-mark.has-custom-image img {
  display: block;
}

.brand-mark.has-custom-image .brand-logo-glyph {
  display: none;
}

#brandLogoText {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  width: min(1200px, calc(100vw - 48px));
  margin: 0 auto;
}

.battery-panel {
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  width: fit-content;
  max-width: min(100%, 980px);
  padding: 44px 56px 36px;
  border: 1px solid var(--panel-border);
  border-radius: 32px;
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(14px);
  margin: 0 auto;
}

body.no-battery .battery-panel {
  min-height: 280px;
  padding: 34px 54px;
}

body.no-battery .clock-panel {
  position: static;
  transform: none;
  width: 100%;
  gap: 12px;
}

body.no-battery .clock-time {
  font-size: clamp(54px, 10vw, 110px);
}

body.no-battery .battery-left,
body.no-battery .battery-right,
body.no-battery .percent {
  display: none;
}

.percent {
  font-size: clamp(80px, 20vw, 160px);
  font-weight: bold;
  color: var(--percent-color);
  text-shadow: var(--percent-shadow);
  transition: color 0.4s ease;
}

.display-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: min(1200px, calc(100vw - 48px));
}

.percent.low-battery-alert {
  animation: batteryBlink 1s ease-in-out infinite;
}

@keyframes batteryBlink {
  0% {
    color: var(--battery-critical);
    text-shadow: 0 0 16px var(--battery-critical-glow);
  }
  50% {
    color: var(--battery-critical);
    text-shadow: 0 0 28px var(--battery-critical-glow);
  }
  100% {
    color: var(--battery-critical);
    text-shadow: 0 0 16px var(--battery-critical-glow);
  }
}

/* ===== Batterie gauche (horizontale) ===== */
.battery-left {
  width: 170px;
  height: 70px;
  border: 5px solid var(--battery-shell);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.battery-left::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 20px;
  width: 12px;
  height: 30px;
  background: var(--battery-shell);
  border-radius: 3px;
}

.fill-left {
  height: 100%;
  width: 100%;
  background: var(--charging-idle);
  transition: background 0.4s ease;
}

.bolt {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--charging-text-color);
  overflow: hidden;
  padding: 0 12px;
  white-space: nowrap;
  text-align: center;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== Batterie droite (verticale) ===== */
.battery-right {
  width: 80px;
  height: 170px;
  border: 6px solid var(--battery-shell);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background: var(--battery-inner);
  isolation: isolate;
}

.battery-right::after {
  content: "";
  position: absolute;
  top: -18px;
  left: 25%;
  width: 40%;
  height: 14px;
  background: var(--battery-shell);
  border-radius: 4px;
}

.fill-right {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  transition: height 0.6s ease, background 0.4s ease;
  z-index: 1;
}

.battery-bubbles {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 100%);
}

.battery-bubble {
  position: absolute;
  bottom: -18px;
  border-radius: 999px;
  background: var(--bubble-color, var(--bubble-tint));
  opacity: 0.88;
  filter: blur(0.4px);
  animation-name: bubbleRise;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.battery-bubble:nth-child(1) {
  left: 14%;
  width: 12px;
  height: 12px;
  animation-duration: 3.6s;
  animation-delay: 0.1s;
}

.battery-bubble:nth-child(2) {
  left: 34%;
  width: 9px;
  height: 9px;
  animation-duration: 3s;
  animation-delay: 1.2s;
}

.battery-bubble:nth-child(3) {
  left: 54%;
  width: 14px;
  height: 14px;
  animation-duration: 4.2s;
  animation-delay: 0.7s;
}

.battery-bubble:nth-child(4) {
  left: 72%;
  width: 10px;
  height: 10px;
  animation-duration: 3.4s;
  animation-delay: 1.7s;
}

.battery-bubble:nth-child(5) {
  left: 24%;
  width: 7px;
  height: 7px;
  animation-duration: 2.8s;
  animation-delay: 2.1s;
}

.battery-bubble:nth-child(6) {
  left: 62%;
  width: 8px;
  height: 8px;
  animation-duration: 3.1s;
  animation-delay: 2.5s;
}

@keyframes bubbleRise {
  0% {
    transform: translateY(0) scale(0.7);
    opacity: 0;
  }
  20% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-182px) scale(1.2);
    opacity: 0;
  }
}


.clock-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(560px, calc(100vw - 40px));
}

.clock-date {
  margin: 0;
  font-size: clamp(42px, 5.4vw, 62px);
  font-weight: 700;
  color: var(--date-color);
  text-align: center;
  text-shadow: var(--clock-glow);
  line-height: 1.04;
}

.clock-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 600;
  color: var(--clock-label-color);
  text-align: center;
  order: 1;
}

.clock-time {
  font-size: clamp(30px, 3.8vw, 42px);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.05;
  color: var(--clock-time-color);
  text-shadow: var(--clock-glow);
  order: 2;
}

.controls-panel {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: min(320px, calc(100vw - 32px));
  z-index: 20;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

:fullscreen .controls-panel {
  top: 28px;
  right: 28px;
  opacity: 0;
  pointer-events: none;
}

:-webkit-full-screen .controls-panel {
  top: 28px;
  right: 28px;
  opacity: 0;
  pointer-events: none;
}

:fullscreen .brand-mark,
:-webkit-full-screen .brand-mark {
  opacity: 0;
  pointer-events: none;
}

.timezone-combobox,
.timezone-picker {
  width: 100%;
}

.timezone-search-field {
  width: 100%;
}

.timezone-toggle,
.timezone-search-input,
.timezone-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background: var(--timezone-menu-bg);
  color: var(--timezone-menu-text);
  font-size: 14px;
  text-align: center;
  outline: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.timezone-toggle {
  cursor: pointer;
}

.timezone-dropdown {
  display: none;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--control-border);
  border-radius: 20px;
  background: var(--timezone-menu-bg);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.timezone-dropdown.is-open {
  display: grid;
  gap: 8px;
}

.timezone-results {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
}

.timezone-result {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--control-border);
  border-radius: 14px;
  background: transparent;
  color: var(--timezone-menu-text);
  text-align: left;
  cursor: pointer;
}

.timezone-result:hover,
.timezone-result.is-active {
  background: var(--timezone-menu-highlight);
}

.timezone-empty {
  padding: 10px 12px;
  color: var(--timezone-menu-text);
  opacity: 0.7;
}

.timezone-search-input:focus,
.timezone-toggle:focus,
.timezone-select:focus {
  border-color: var(--accent-main);
}

.theme-controls {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 20;
  transition: opacity 0.2s ease;
}

.palette-button,
.theme-switch {
  position: relative;
  display: grid;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background: var(--control-bg);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
  isolation: isolate;
}

.palette-button {
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.palette-button:hover {
  transform: translateY(-1px);
}

.palette-button[aria-expanded="true"] {
  color: var(--control-text);
  border-color: var(--control-border);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.palette-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.palette-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.theme-switch {
  grid-template-columns: 1fr 1fr;
  width: 148px;
}

.theme-switch-thumb {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.95), rgba(251, 146, 60, 0.9));
  box-shadow: 0 6px 18px rgba(251, 146, 60, 0.28);
  transition: transform 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
  z-index: -1;
}

html.theme-dark .theme-switch-thumb {
  transform: translateX(100%);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(15, 23, 42, 0.95));
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.3);
}

.theme-option {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.22s ease, transform 0.22s ease;
}

.theme-option:hover {
  transform: translateY(-1px);
}

.theme-option[aria-pressed="true"] {
  color: #ffffff;
}

.theme-option:focus-visible {
  outline: 2px solid var(--accent-main);
  outline-offset: 2px;
}

:fullscreen .theme-controls,
:-webkit-full-screen .theme-controls {
  opacity: 0;
  pointer-events: none;
}

.palette-panel {
  position: fixed;
  right: 18px;
  bottom: 84px;
  display: grid;
  gap: 10px;
  min-width: 280px;
  max-height: min(78vh, 720px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--control-border);
  border-radius: 20px;
  background: var(--control-bg);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  box-sizing: border-box;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.palette-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.palette-actions {
  display: grid;
  grid-template-columns: 44px 44px 1fr;
  gap: 8px;
}

.palette-action-button {
  min-height: 40px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background: var(--control-bg);
  color: var(--control-text);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.palette-action-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.palette-reset-button {
  padding: 0 14px;
  font-size: 13px;
}

.palette-section {
  display: grid;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--panel-border);
}

.palette-section-title {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--control-text);
  opacity: 0.74;
}

.palette-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--control-text);
  font-size: 14px;
  font-weight: 600;
}

.palette-field.is-disabled {
  opacity: 0.48;
}

.palette-field-text,
.palette-field-number {
  align-items: center;
}

.palette-field-toggle {
  align-items: center;
}

.palette-field-toggle input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--accent-main);
}

.palette-field input[type="color"] {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--control-border);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
}

.palette-field input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.palette-field input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}

.palette-field input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 50%;
}

.palette-field input[type="text"],
.palette-field input[type="number"],
.palette-field input[type="time"],
.palette-field input[type="date"],
.palette-select {
  width: 150px;
  padding: 9px 12px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background: var(--control-bg);
  color: var(--control-text);
  font-size: 13px;
  box-sizing: border-box;
}

.palette-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  text-align: center;
}

.palette-field-reset {
  width: 100%;
  min-height: 34px;
  margin-top: -4px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background: transparent;
  color: var(--control-text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.palette-field-reset.is-hidden {
  display: none;
}

.hint-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.warning-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.warning-chip {
  position: absolute;
  padding: 12px 18px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.86);
  color: #ffffff;
  font-size: clamp(16px, 2vw, 28px);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(127, 29, 29, 0.48);
  animation: warningFloat 2.6s ease forwards;
}

@keyframes warningFloat {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-22px) scale(1.04);
  }
}

.hint-group {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 40;
}

.hint {
  color: var(--hint-color);
  font-size: 14px;
}

body.device-tablet {
  min-height: 100vh;
  padding: 28px 0 120px;
  overflow: auto;
  align-items: flex-start;
}

body.device-tablet .container {
  width: min(1000px, calc(100vw - 36px));
}

body.device-tablet .battery-panel {
  gap: 34px;
  padding: 44px 34px 30px;
}

body.device-tablet .clock-panel {
  width: min(560px, calc(100vw - 56px));
}

body.device-tablet .controls-panel {
  top: 18px;
  right: 18px;
  width: min(320px, calc(100vw - 36px));
}

body.device-tablet .theme-controls {
  right: 18px;
  bottom: 18px;
}

body.device-tablet .palette-panel {
  right: 18px;
}

body.no-battery.device-tablet .battery-panel {
  min-height: 300px;
}

body.device-mobile {
  min-height: 100vh;
  padding: 18px 0 132px;
  overflow: auto;
  align-items: flex-start;
}

body.device-mobile .brand-mark {
  top: 12px;
  left: 12px;
  gap: 10px;
}

body.device-mobile .brand-mark img {
  width: 42px;
  height: 42px;
}

body.device-mobile .brand-logo-glyph {
  width: 42px;
  height: 42px;
  font-size: 26px;
}

body.device-mobile #brandLogoText {
  max-width: 180px;
  font-size: 11px;
  letter-spacing: 0.09em;
}

body.device-mobile .container {
  width: calc(100vw - 20px);
}

body.device-mobile .battery-panel {
  width: 100%;
  gap: 22px;
  padding: 34px 18px 22px;
  border-radius: 26px;
}

body.device-mobile .clock-panel {
  width: 100%;
}

body.device-mobile .clock-label {
  font-size: 11px;
  letter-spacing: 0.13em;
}

body.device-mobile .clock-time {
  font-size: clamp(26px, 8vw, 36px);
}

body.device-mobile .clock-date {
  font-size: clamp(34px, 10vw, 46px);
}

body.device-mobile .battery-left {
  width: min(190px, 56vw);
  height: 66px;
}

body.device-mobile .battery-right {
  width: 72px;
  height: 152px;
}

body.device-mobile .percent {
  font-size: clamp(72px, 24vw, 112px);
}

body.device-mobile .controls-panel {
  top: 12px;
  right: 12px;
  width: min(220px, calc(100vw - 24px));
}

body.device-mobile .timezone-select {
  padding: 10px 12px;
  font-size: 13px;
}

body.device-mobile .timezone-toggle,
body.device-mobile .timezone-search-input {
  padding: 10px 12px;
  font-size: 13px;
}

body.device-mobile .theme-controls {
  right: 12px;
  bottom: 14px;
}

body.device-mobile .theme-switch {
  width: 132px;
}

body.device-mobile .palette-button {
  width: 50px;
  height: 50px;
}

body.device-mobile .palette-panel {
  right: 12px;
  bottom: 74px;
  min-width: 250px;
}

body.device-mobile .hint-group {
  bottom: 86px;
  width: calc(100vw - 24px);
}

body.device-mobile .hint {
  text-align: center;
  font-size: 13px;
}

body.no-battery.device-mobile .battery-panel {
  min-height: 220px;
  padding: 28px 18px;
}

body.no-battery.device-mobile .clock-time {
  font-size: clamp(34px, 12vw, 54px);
}

@media (max-width: 900px) {
  body {
    height: auto;
    min-height: 100vh;
    padding: 24px 0 90px;
    overflow: auto;
  }

  .brand-mark {
    top: 12px;
    left: 12px;
    gap: 10px;
  }

  .brand-mark img {
    width: 46px;
    height: 46px;
  }

  #brandLogoText {
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .container,
  .battery-panel {
    gap: 28px;
  }

  .battery-panel {
    margin-top: 24px;
    padding: 36px 28px 20px;
  }

  .timezone-select {
    width: 100%;
  }

  .controls-panel {
    top: 12px;
    right: 12px;
    width: min(280px, calc(100vw - 24px));
  }

  :fullscreen .controls-panel {
    top: 20px;
    right: 12px;
  }

  :-webkit-full-screen .controls-panel {
    top: 20px;
    right: 12px;
  }

  .theme-controls {
    right: 12px;
    bottom: 12px;
  }

  .theme-switch {
    width: 136px;
  }

  .palette-panel {
    right: 12px;
  }
}
