:root {
  --bg: #f3f4f6;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --panel-3: #eef1f5;
  --text: #171717;
  --muted: #5f6672;
  --line: #d9dee7;
  --line-strong: #c7ceda;
  --black: #111111;
  --pink: #ec008c;
  --pink-dark: #c00073;
  --sage: #80aa8d;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
}

body[data-theme="dark"] {
  --bg: #101217;
  --panel: #171a21;
  --panel-2: #20242d;
  --panel-3: #292f3a;
  --text: #f5f7fb;
  --muted: #b3bbc9;
  --line: #303642;
  --line-strong: #444c5b;
  --black: #f5f7fb;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #ffffff 0, #f7f8fa 170px, var(--bg) 420px),
    var(--bg);
}

body[data-theme="dark"] {
  background:
    linear-gradient(180deg, #11141a 0, #151922 180px, var(--bg) 430px),
    var(--bg);
}

button,
input {
  font: inherit;
}

select {
  font: inherit;
}

button[hidden],
[hidden] {
  display: none !important;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 14%, rgba(236, 0, 140, 0.13), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #eef1f5 100%);
}

.login-card {
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.login-card img {
  width: 150px;
  height: auto;
}

.login-card h1 {
  font-size: 34px;
}

.login-card label {
  display: grid;
  gap: 7px;
}

.login-card label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.login-card input {
  min-height: 50px;
  padding: 0 14px;
  border: 2px solid #2c2f35;
  border-radius: 8px;
  outline: none;
  background: #fbfcfe;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.login-card input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 0, 140, 0.12);
}

.login-card button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--black);
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.login-error {
  min-height: 18px;
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 800;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(8px);
}

body[data-theme="dark"] .store-header {
  background: rgba(18, 21, 28, 0.94);
}

.store-header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 86px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 70px;
}

.brand img {
  display: block;
  width: auto;
  max-width: 150px;
  max-height: 60px;
  object-fit: contain;
}

.brand-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--black);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

body[data-theme="dark"] .brand-nav {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.user-chip,
.theme-toggle,
.logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: #3d4653;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

body[data-theme="dark"] .user-chip,
body[data-theme="dark"] .theme-toggle,
body[data-theme="dark"] .logout,
body[data-theme="dark"] .status {
  color: var(--text);
}

.user-chip {
  gap: 8px;
}

.user-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 0, 140, 0.12);
}

.theme-toggle,
.logout {
  cursor: pointer;
}

.theme-toggle:hover,
.logout:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.page-title {
  display: grid;
  gap: 6px;
  padding: 8px 0 22px;
}

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

.eyebrow {
  margin: 0;
  color: var(--pink);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.02;
  letter-spacing: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  max-width: 340px;
  min-height: 36px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: #3d4653;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body[data-theme="dark"] .status {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.search-band {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

body[data-theme="dark"] .search-band,
body[data-theme="dark"] .calendar-card,
body[data-theme="dark"] .summary-grid > div,
body[data-theme="dark"] .product,
body[data-theme="dark"] .login-card {
  background: var(--panel);
}

.live-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.15fr);
  gap: 14px;
  margin-bottom: 14px;
}

.weather-card,
.calendar-card {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

body[data-theme="dark"] .calendar-card {
  color: var(--text);
}

.weather-card {
  position: relative;
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: 22px;
  isolation: isolate;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
  border-radius: 30px;
  background: #2f74b7;
  box-shadow: 0 24px 46px rgba(20, 34, 55, 0.2);
}

.weather-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.2) 0 38px, transparent 90px),
    linear-gradient(180deg, #2872ba 0%, #67a5d8 100%);
}

.weather-card.sunny::before {
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 232, 120, 0.9) 0 40px, rgba(255, 217, 80, 0.23) 41px 112px, transparent 113px),
    linear-gradient(180deg, #2370ba 0%, #74b2e2 100%);
}

.weather-card.cloudy::before,
.weather-card.fog::before {
  background:
    radial-gradient(circle at 80% 22%, rgba(255, 255, 255, 0.28) 0 46px, transparent 110px),
    linear-gradient(180deg, #607b98 0%, #98acbf 100%);
}

.weather-card.rainy::before,
.weather-card.storm::before {
  background:
    radial-gradient(circle at 75% 18%, rgba(210, 230, 255, 0.22) 0 44px, transparent 118px),
    linear-gradient(180deg, #2d4d70 0%, #557088 100%);
}

.weather-card.night::before,
.weather-card.night-cloudy::before,
.weather-card.night-rainy::before {
  background:
    radial-gradient(circle at 79% 20%, rgba(255, 255, 255, 0.92) 0 24px, rgba(255, 255, 255, 0.14) 25px 80px, transparent 82px),
    linear-gradient(180deg, #071327 0%, #17233f 50%, #333052 100%);
}

.weather-card.night-cloudy::before {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.62) 0 24px, rgba(255, 255, 255, 0.1) 25px 86px, transparent 88px),
    linear-gradient(180deg, #111a2d 0%, #28344b 56%, #43465e 100%);
}

.weather-card.night-rainy::before {
  background:
    radial-gradient(circle at 80% 20%, rgba(218, 232, 255, 0.55) 0 22px, rgba(218, 232, 255, 0.08) 23px 84px, transparent 86px),
    linear-gradient(180deg, #07111f 0%, #1c2a3f 55%, #273243 100%);
}

.weather-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 64%);
}

.weather-card > *:not(.weather-scene) {
  position: relative;
  z-index: 2;
}

.weather-main {
  display: grid;
  gap: 6px;
}

.weather-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 30px;
  font-weight: 950;
  line-height: 1.05;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.weather-location-arrow {
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%);
  background: rgba(255, 255, 255, 0.9);
}

.weather-now {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.weather-card strong,
.weather-now strong {
  display: block;
  margin: 0;
  font-size: clamp(58px, 8vw, 88px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 7px 24px rgba(0, 0, 0, 0.16);
}

.weather-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.05;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.weather-range {
  font-size: 20px !important;
  font-weight: 850 !important;
}

.weather-symbol {
  position: relative;
  display: inline-block;
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.2));
}

.weather-symbol::before,
.weather-symbol::after {
  content: "";
  position: absolute;
  display: block;
}

.weather-symbol.sunny::before {
  inset: 18px;
  border-radius: 50%;
  background: #ffd233;
  box-shadow: 0 0 0 7px rgba(255, 210, 51, 0.18), 0 0 24px rgba(255, 223, 92, 0.88);
}

.weather-symbol.sunny::after {
  inset: 5px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #ffd233 0 8deg, transparent 8deg 22deg);
  -webkit-mask: radial-gradient(circle, transparent 0 30px, #000 31px);
  mask: radial-gradient(circle, transparent 0 30px, #000 31px);
}

.weather-symbol.cloudy::before,
.weather-symbol.fog::before,
.weather-symbol.rainy::before,
.weather-symbol.storm::before,
.weather-symbol.night-cloudy::before,
.weather-symbol.night-rainy::before {
  left: 12px;
  top: 30px;
  width: 48px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 15px -9px 0 rgba(255, 255, 255, 0.84), -8px -5px 0 rgba(255, 255, 255, 0.74);
}

.weather-symbol.fog::after {
  left: 8px;
  right: 8px;
  bottom: 10px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 9px 0 rgba(255, 255, 255, 0.52);
}

.weather-symbol.rainy::after,
.weather-symbol.night-rainy::after {
  left: 23px;
  top: 57px;
  width: 5px;
  height: 16px;
  border-radius: 999px;
  background: #95dcff;
  transform: rotate(16deg);
  box-shadow: 16px -2px 0 #95dcff, 32px 0 0 #95dcff;
}

.weather-symbol.storm::after {
  left: 33px;
  top: 48px;
  width: 20px;
  height: 30px;
  background: #ffd13d;
  clip-path: polygon(40% 0, 100% 0, 63% 44%, 100% 44%, 18% 100%, 43% 55%, 8% 55%);
}

.weather-symbol.night::before {
  left: 18px;
  top: 10px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: transparent;
  box-shadow: -12px 8px 0 #fff4cf;
}

.weather-symbol.night-cloudy::after,
.weather-symbol.night-rainy::before {
  opacity: 0.95;
}

.weather-symbol-small {
  width: 34px;
  height: 30px;
  flex: 0 0 34px;
  transform: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

.weather-hour .weather-symbol-small {
  width: 34px;
  height: 30px;
  flex-basis: 34px;
}

.weather-symbol-small.sunny::before {
  inset: 9px;
  box-shadow: 0 0 0 4px rgba(255, 210, 51, 0.18), 0 0 12px rgba(255, 223, 92, 0.78);
}

.weather-symbol-small.sunny::after {
  inset: 2px;
  -webkit-mask: radial-gradient(circle, transparent 0 13px, #000 14px);
  mask: radial-gradient(circle, transparent 0 13px, #000 14px);
}

.weather-symbol-small.cloudy::before,
.weather-symbol-small.fog::before,
.weather-symbol-small.rainy::before,
.weather-symbol-small.storm::before,
.weather-symbol-small.night-cloudy::before,
.weather-symbol-small.night-rainy::before {
  left: 6px;
  top: 12px;
  width: 22px;
  height: 11px;
  box-shadow: 7px -4px 0 rgba(255, 255, 255, 0.84), -4px -2px 0 rgba(255, 255, 255, 0.74);
}

.weather-symbol-small.fog::after {
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 2px;
  box-shadow: 0 5px 0 rgba(255, 255, 255, 0.48);
}

.weather-symbol-small.rainy::after,
.weather-symbol-small.night-rainy::after {
  left: 11px;
  top: 24px;
  width: 2px;
  height: 7px;
  box-shadow: 8px -1px 0 #95dcff, 16px 0 0 #95dcff;
}

.weather-symbol-small.storm::after {
  left: 14px;
  top: 20px;
  width: 9px;
  height: 13px;
}

.weather-symbol-small.night::before {
  left: 9px;
  top: 4px;
  width: 19px;
  height: 19px;
  box-shadow: -5px 3px 0 #fff4cf;
}

.weather-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}

.weather-meta span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 900;
}

.weather-hourly {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(58px, 1fr);
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 8px 0 2px;
}

.weather-hourly::-webkit-scrollbar {
  display: none;
}

.weather-hour {
  display: grid;
  justify-items: center;
  grid-template-rows: 16px 30px 18px 14px;
  align-content: center;
  row-gap: 3px;
  min-height: 88px;
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  color: #ffffff;
  overflow: hidden;
}

.weather-hour-time,
.weather-hour-rain {
  min-height: 15px;
  font-size: 11px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.86);
}

.weather-hour strong {
  margin: 0;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
  text-shadow: none;
}

.weather-hour-rain:empty {
  visibility: hidden;
}

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

.weather-scene span {
  position: absolute;
  left: 18%;
  top: 34%;
  width: 72px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 24px -8px 0 rgba(255, 255, 255, 0.1), -18px 3px 0 rgba(255, 255, 255, 0.08);
  animation: cloudFloat 14s ease-in-out infinite;
}

.weather-card.cloudy .weather-scene span,
.weather-card.fog .weather-scene span,
.weather-card.night-cloudy .weather-scene span {
  opacity: 0.34;
  scale: 0.76;
}

.weather-card.cloudy .weather-scene,
.weather-card.fog .weather-scene,
.weather-card.night-cloudy .weather-scene {
  -webkit-mask: linear-gradient(90deg, transparent 0 44%, #000 62%);
  mask: linear-gradient(90deg, transparent 0 44%, #000 62%);
}

.weather-card.cloudy .particle-1,
.weather-card.fog .particle-1,
.weather-card.night-cloudy .particle-1,
.weather-card.cloudy .particle-8,
.weather-card.fog .particle-8,
.weather-card.night-cloudy .particle-8,
.weather-card.cloudy .particle-13,
.weather-card.fog .particle-13,
.weather-card.night-cloudy .particle-13 {
  top: 76%;
}

.weather-card.sunny .weather-scene span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 235, 160, 0.34);
  box-shadow: 0 0 38px rgba(255, 232, 122, 0.62);
  animation: shimmer 4s ease-in-out infinite;
}

.weather-card.night .weather-scene span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.72);
  animation: shimmer 3.6s ease-in-out infinite;
}

.weather-card.night-cloudy .weather-scene span {
  width: 68px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 21px -6px 0 rgba(255, 255, 255, 0.08);
}

.weather-card.rainy .weather-scene span,
.weather-card.storm .weather-scene span,
.weather-card.night-rainy .weather-scene span {
  top: -20px;
  width: 3px;
  height: 42px;
  border-radius: 999px;
  background: rgba(162, 218, 255, 0.74);
  box-shadow: none;
  transform: rotate(12deg);
  animation: rainDrop 1.05s linear infinite;
}

.particle-1 { left: 7%; top: 18%; animation-delay: 0s; }
.particle-2 { left: 22%; top: 62%; animation-delay: 0.12s; }
.particle-3 { left: 38%; top: 26%; animation-delay: 0.24s; }
.particle-4 { left: 55%; top: 68%; animation-delay: 0.36s; }
.particle-5 { left: 70%; top: 34%; animation-delay: 0.48s; }
.particle-6 { left: 84%; top: 74%; animation-delay: 0.6s; }
.particle-7 { left: 14%; top: 79%; animation-delay: 0.72s; }
.particle-8 { left: 31%; top: 44%; animation-delay: 0.84s; }
.particle-9 { left: 48%; top: 84%; animation-delay: 0.96s; }
.particle-10 { left: 64%; top: 18%; animation-delay: 1.08s; }
.particle-11 { left: 78%; top: 54%; animation-delay: 1.2s; }
.particle-12 { left: 91%; top: 28%; animation-delay: 1.32s; }
.particle-13 { left: 4%; top: 48%; animation-delay: 1.44s; }
.particle-14 { left: 27%; top: 8%; animation-delay: 1.56s; }
.particle-15 { left: 43%; top: 58%; animation-delay: 1.68s; }
.particle-16 { left: 59%; top: 5%; animation-delay: 1.8s; }
.particle-17 { left: 75%; top: 88%; animation-delay: 1.92s; }
.particle-18 { left: 88%; top: 9%; animation-delay: 2.04s; }

@keyframes rainDrop {
  to {
    transform: translateY(330px) rotate(12deg);
  }
}

@keyframes cloudFloat {
  50% {
    transform: translateX(18px);
  }
}

@keyframes shimmer {
  50% {
    opacity: 0.45;
    transform: scale(1.18);
  }
}

.calendar-card {
  padding: 16px;
}

.calendar-head {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  gap: 10px;
  align-items: center;
}

.calendar-head button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
}

.calendar-head button:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.calendar-head strong {
  display: block;
  margin-top: 2px;
  font-size: 24px;
  text-transform: none;
}

.calendar-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px auto;
  gap: 8px;
  margin-top: 12px;
}

.calendar-controls select,
.calendar-controls button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  padding: 0 10px;
}

.calendar-controls select:focus,
.calendar-controls button:hover {
  border-color: var(--pink);
  outline: none;
  color: var(--pink);
}

.calendar-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.calendar-metrics span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: #3d4653;
  font-size: 12px;
  font-weight: 900;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.calendar-grid span {
  display: grid;
  min-height: 30px;
  place-items: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.calendar-weekday {
  color: var(--pink);
}

.calendar-day {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
}

.calendar-day.workday {
  background: #edf7f0;
  border-color: #cfe5d6;
}

.calendar-day.closed {
  background: #eef1f5;
  color: #7a828e;
}

.calendar-day.holiday {
  background: #fff0fa;
  border-color: #f2cfe5;
  color: var(--pink-dark);
}

.calendar-day.today {
  background: var(--black);
  border-color: var(--black);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.calendar-day.past:not(.today) {
  opacity: 0.68;
}

.holiday-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.holiday-list span {
  padding: 6px 8px;
  border-radius: 8px;
  background: #fff0fa;
  color: var(--pink-dark);
}

body[data-theme="dark"] .holiday-list span {
  background: rgba(236, 0, 140, 0.14);
  color: #ff86d4;
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box span,
.metric-label,
.settings-panel label,
.quote-price span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 2px solid #2c2f35;
  border-radius: 8px;
  outline: none;
  background: #fbfcfe;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  box-shadow: inset 0 2px 5px rgba(15, 23, 42, 0.07);
}

body[data-theme="dark"] .search-box input,
body[data-theme="dark"] .login-card input {
  border-color: var(--line-strong);
  background: #11141a;
  color: var(--text);
}

.search-box input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 0, 140, 0.12);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.labor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.labor-row > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.labor-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.05);
}

body[data-theme="dark"] .filter,
body[data-theme="dark"] .labor-option {
  background: var(--panel-2);
  color: var(--text);
}

.filter.active {
  border-color: var(--black);
  background: var(--black);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

body[data-theme="dark"] .filter.active,
body[data-theme="dark"] .labor-option.active,
body[data-theme="dark"] .calendar-day.today {
  background: var(--pink);
  border-color: var(--pink);
  color: #ffffff;
}

.labor-option {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.05);
}

.labor-option.active {
  border-color: var(--black);
  background: var(--black);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  margin-top: 14px;
}

.summary-grid > div,
.refresh,
.settings {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.summary-grid > div {
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

body[data-theme="dark"] .summary-grid > div,
body[data-theme="dark"] .quote-price,
body[data-theme="dark"] .brand-group {
  background: linear-gradient(180deg, #1b1f28 0%, #151922 100%);
}

.summary-grid strong {
  font-size: 24px;
  color: #15181d;
}

body[data-theme="dark"] .summary-grid strong,
body[data-theme="dark"] .brand-group,
body[data-theme="dark"] h2 {
  color: var(--text);
}

.refresh,
.settings-toggle,
.settings-panel button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--black);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.refresh {
  align-self: stretch;
  min-width: 168px;
  box-shadow: 0 10px 20px rgba(17, 17, 17, 0.18);
}

.refresh:hover,
.settings-toggle:hover,
.settings-panel button:hover {
  background: var(--pink);
}

.results {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.brand-group {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border: 1px solid #e3e7ef;
  border-left: 5px solid var(--pink);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f6f9 100%);
  color: #111827;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.brand-group strong {
  font-size: 15px;
  font-weight: 950;
}

.brand-group span {
  color: #68717e;
  font-size: 12px;
  font-weight: 900;
}

body[data-theme="dark"] .brand-group span {
  color: var(--muted);
}

.model-group {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -2px 0 -2px 16px;
  padding: 6px 12px;
  border: 1px solid #e8ecf3;
  border-left: 4px solid #29a5d8;
  border-radius: 8px;
  background: #ffffff;
  color: #242a33;
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.06);
}

.model-group strong {
  font-size: 13px;
  font-weight: 950;
}

.model-group span {
  color: #68717e;
  font-size: 11px;
  font-weight: 900;
}

body[data-theme="dark"] .model-group {
  border-color: var(--line);
  background: #151922;
  color: var(--text);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .model-group span {
  color: var(--muted);
}

.product {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.product-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px;
}

.product-tags,
.title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.title-row {
  margin-top: 9px;
}

.pill,
.quality-badge,
.provider-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 8px;
  background: #f0f2f6;
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  border: 1px solid #e5e8ee;
}

.quality-badge.original {
  background: #edf7f0;
  border-color: #cfe5d6;
  color: #237245;
}

.quality-badge.alternativo {
  background: #fff8e7;
  border-color: #f2e0aa;
  color: #8a5b00;
}

.provider-badge {
  max-width: min(440px, 100%);
  overflow: hidden;
  background: #eef3fb;
  color: #334155;
  text-overflow: ellipsis;
  white-space: nowrap;
}

h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.meta {
  margin: 0;
  color: #68717e;
  font-size: 14px;
  font-weight: 700;
}

.source-line {
  margin: 7px 0 0;
  color: #7a828e;
  font-size: 12px;
  font-weight: 800;
}

.quote-price {
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid #e5e8ee;
  background: linear-gradient(180deg, #fbfcfe 0%, #f0f2f6 100%);
  color: #5c6470;
  font-size: 13px;
  text-align: right;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.quote-price span {
  font-weight: 800;
}

.quote-price strong {
  color: var(--pink-dark);
  font-size: 32px;
  line-height: 1;
}

.empty {
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(236, 22, 140, 0.12), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(41, 165, 216, 0.08), transparent 26%),
    linear-gradient(180deg, #fff8fc 0%, #ffffff 42%, #f5f6fa 100%);
}

.store-header {
  border-bottom-color: #ebeef4;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.store-header-inner {
  width: min(1320px, calc(100% - 32px));
}

.brand-nav {
  color: #070707;
  letter-spacing: 0;
}

.user-chip,
.logout,
.status {
  border-color: #e8ecf3;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.06);
}

.user-chip {
  color: #242b36;
}

.status {
  color: #4b5565;
}

.logout:hover {
  border-color: var(--pink);
  background: var(--pink);
  color: #ffffff;
}

.shell {
  width: min(1320px, calc(100% - 32px));
}

.page-title {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 2px 0 14px;
  padding: 24px 26px;
  border: 1px solid #070707;
  border-radius: 8px;
  background: #070707;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(7, 7, 7, 0.16);
}

.page-title .eyebrow {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.page-title h1 {
  color: #ffffff;
  font-size: clamp(34px, 4vw, 56px);
}

.support-button {
  position: relative;
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: center;
  align-content: center;
  column-gap: 10px;
  row-gap: 4px;
  min-width: 210px;
  min-height: 56px;
  padding: 10px 18px;
  border: 1px solid rgba(236, 0, 140, 0.62);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(236, 0, 140, 0.22), rgba(255, 255, 255, 0.06)),
    #141414;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(236, 0, 140, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.support-button::before {
  content: "?";
  display: inline-flex;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: center;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pink);
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 0 0 5px rgba(236, 0, 140, 0.18);
}

.support-button::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 5;
  width: max-content;
  max-width: min(330px, 82vw);
  padding: 10px 12px;
  border: 1px solid rgba(236, 0, 140, 0.38);
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.support-button span,
.support-button strong {
  display: block;
  line-height: 1;
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

.support-button span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.support-button strong {
  margin-top: 4px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.support-button:hover {
  border-color: var(--pink);
  background:
    linear-gradient(135deg, rgba(236, 0, 140, 0.34), rgba(255, 255, 255, 0.08)),
    #171717;
  box-shadow: 0 16px 34px rgba(236, 0, 140, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.support-button:hover::after,
.support-button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.live-grid {
  grid-template-columns: minmax(310px, 0.9fr) minmax(420px, 1.1fr);
}

.calendar-card,
.search-band,
.summary-grid > div,
.product,
.empty {
  border-color: #e8ecf3;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.weather-card,
.calendar-card {
  min-height: 250px;
}

.calendar-card,
.search-band {
  border-left: 8px solid var(--pink);
}

.weather-card {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: #2f74b7;
  color: #ffffff;
}

.weather-card.night,
.weather-card.night-cloudy,
.weather-card.night-rainy {
  border-color: rgba(255, 255, 255, 0.18);
}

.calendar-day.today {
  background: var(--pink);
  border-color: var(--pink);
}

.search-band {
  padding: 22px;
}

.search-box input {
  min-height: 60px;
  border-color: #070707;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 18px rgba(15, 23, 42, 0.06);
}

.search-box input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 22, 140, 0.14), 0 8px 22px rgba(0, 0, 0, 0.08);
}

body[data-theme="dark"] .calendar-card,
body[data-theme="dark"] .search-band,
body[data-theme="dark"] .summary-grid > div,
body[data-theme="dark"] .product,
body[data-theme="dark"] .empty {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

body[data-theme="dark"] .search-box input {
  border-color: var(--line-strong);
  background: #11141a;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 6px 18px rgba(0, 0, 0, 0.2);
}

.filter,
.labor-option {
  border-color: #e6e6ea;
  background: #ffffff;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

body[data-theme="dark"] .filter,
body[data-theme="dark"] .labor-option {
  border-color: var(--line);
  background: var(--panel-2);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.filter:hover,
.labor-option:hover {
  border-color: rgba(236, 22, 140, 0.42);
  color: var(--pink-dark);
}

.filter.active,
.labor-option.active,
.refresh,
.settings-toggle,
.settings-panel button {
  background: #070707;
  border-color: #070707;
  box-shadow: 0 8px 18px rgba(7, 7, 7, 0.18);
}

.filter.active:hover,
.labor-option.active:hover,
.refresh:hover,
.settings-toggle:hover,
.settings-panel button:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: #ffffff;
}

.summary-grid > div {
  border-left: 6px solid var(--pink);
  background: #ffffff;
}

body[data-theme="dark"] .summary-grid > div {
  background: var(--panel);
}

.summary-grid > div:nth-child(2) {
  border-left-color: #29a5d8;
}

.summary-grid > div:nth-child(3) {
  border-left-color: #ffe156;
}

.summary-grid strong {
  color: #070707;
  font-size: 27px;
  line-height: 1;
}

body[data-theme="dark"] .summary-grid strong {
  color: var(--text);
}

.product {
  border-left: 8px solid var(--pink);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.product:hover {
  border-color: #e6e6ea;
  border-left-color: var(--pink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.pill {
  background: #ffe3f3;
  border-color: rgba(236, 22, 140, 0.28);
  color: var(--pink);
}

.quality-badge.original {
  background: #d8f5df;
  border-color: #bce8c7;
  color: #126438;
}

.quality-badge.alternativo {
  background: #fff7d6;
  border-color: #f2df8a;
  color: #745200;
}

.provider-badge {
  background: #e8f6fc;
  border-color: rgba(41, 165, 216, 0.24);
  color: #176b87;
}

.quote-price {
  min-width: 230px;
  border-color: #e6e6ea;
  background: #ffffff;
  box-shadow: inset 6px 0 0 #ec168c, 0 6px 18px rgba(0, 0, 0, 0.06);
}

body[data-theme="dark"] .quote-price {
  border-color: var(--line);
  background: #11141a;
  box-shadow: inset 6px 0 0 #ec168c, 0 6px 18px rgba(0, 0, 0, 0.24);
}

.quote-price strong {
  color: var(--pink);
  font-size: 34px;
}

.login-screen {
  background:
    radial-gradient(circle at 12% 10%, rgba(236, 22, 140, 0.12), transparent 30%),
    linear-gradient(180deg, #fff7fc 0%, #ffffff 45%, #f7f7fb 100%);
}

body[data-theme="dark"] .login-screen {
  background:
    radial-gradient(circle at 12% 10%, rgba(236, 22, 140, 0.18), transparent 30%),
    linear-gradient(180deg, #11141a 0%, #151922 48%, #101217 100%);
}

.login-card {
  border-color: #e6e6ea;
  border-left: 8px solid var(--pink);
  box-shadow: 0 18px 46px rgba(7, 7, 7, 0.14);
}

@media (max-width: 780px) {
  body {
    background: linear-gradient(180deg, #fff7fc 0%, #ffffff 230px, #f3f4f6 100%);
  }

  body[data-theme="dark"] {
    background: linear-gradient(180deg, #11141a 0%, #151922 230px, #101217 100%);
  }

  .store-header-inner {
    width: min(100% - 18px, 1180px);
    min-height: 72px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 8px 0;
  }

  .brand {
    min-height: 48px;
  }

  .brand img {
    max-width: 116px;
    max-height: 48px;
  }

  .brand-nav {
    display: none;
  }

  .header-actions {
    display: contents;
  }

  .user-chip {
    display: none;
  }

  .logout {
    grid-column: 2;
    justify-self: end;
    min-height: 40px;
    padding: 0 12px;
  }

  .status {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    min-height: 34px;
    padding: 8px 10px;
    font-size: 12px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shell {
    display: flex;
    width: min(100% - 18px, 1180px);
    flex-direction: column;
    gap: 12px;
    padding: 12px 0 28px;
  }

  .page-title {
    grid-template-columns: 1fr;
    order: 1;
    margin: 0;
    padding: 16px;
  }

  .support-button {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    margin-top: 4px;
    padding: 10px 14px;
  }

  .support-button strong {
    font-size: 17px;
  }

  .page-title .eyebrow {
    min-height: 24px;
    padding: 0 8px;
    font-size: 11px;
  }

  .page-title h1 {
    font-size: 30px;
    line-height: 1.05;
  }

  .search-band {
    order: 2;
    padding: 14px;
    border-left-width: 6px;
  }

  .search-box input {
    min-height: 52px;
    padding: 0 12px;
    font-size: 16px;
  }

  .search-box input::placeholder {
    color: #727b87;
    font-size: 15px;
  }

  .labor-row {
    display: grid;
    gap: 8px;
    margin-top: 12px;
  }

  .labor-switch,
  .filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
  }

  .filter,
  .labor-option {
    width: 100%;
    min-height: 40px;
    padding: 0 8px;
    font-size: 14px;
    text-align: center;
  }

  .summary-grid {
    order: 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 0;
  }

  .summary-grid > div {
    min-height: 70px;
    padding: 12px;
    border-left-width: 5px;
  }

  .summary-grid > div:nth-child(3) {
    grid-column: 1 / -1;
  }

  .summary-grid strong {
    font-size: 20px;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  .refresh {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    min-height: 46px;
  }

  .results {
    order: 4;
    gap: 10px;
    margin-top: 0;
  }

  .live-grid {
    order: 5;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
  }

  .weather-card,
  .calendar-card {
    min-height: auto;
  }

  .weather-card {
    gap: 12px;
    padding: 17px;
    border-radius: 24px;
  }

  .weather-now strong {
    font-size: 58px;
  }

  .weather-card p {
    font-size: 22px;
  }

  .weather-location {
    font-size: 25px;
  }

  .weather-range {
    font-size: 17px !important;
  }

  .weather-symbol {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .weather-hourly {
    grid-auto-columns: minmax(54px, 60px);
  }

  .weather-hour {
    min-height: 82px;
    border-radius: 16px;
  }

  .weather-hour strong {
    font-size: 15px;
  }

  .weather-meta span {
    font-size: 11px;
  }

  .calendar-card {
    padding: 14px;
    border-left-width: 6px;
  }

  .calendar-head {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .calendar-head strong {
    font-size: 19px;
    line-height: 1.15;
  }

  .calendar-controls {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 7px;
  }

  .calendar-controls button {
    grid-column: 1 / -1;
  }

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

  .calendar-metrics span {
    padding: 7px 6px;
    font-size: 11px;
    text-align: center;
  }

  .calendar-grid {
    gap: 4px;
  }

  .calendar-grid span {
    min-height: 32px;
    border-radius: 7px;
    font-size: 12px;
  }

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

  .holiday-list span {
    width: 100%;
  }

  .product {
    border-left-width: 6px;
  }

  .brand-group {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding: 9px 12px;
  }

  .model-group {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    margin-left: 8px;
    padding: 8px 10px;
  }

  .product-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .product-tags,
  .title-row {
    gap: 6px;
  }

  .title-row {
    display: grid;
    margin-top: 8px;
  }

  h2 {
    font-size: 18px;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .provider-badge {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .meta,
  .source-line {
    overflow-wrap: anywhere;
  }

  .quote-price {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 14px;
    text-align: left;
  }

  .quote-price strong {
    font-size: 31px;
  }
}

@media (max-width: 430px) {
  .store-header-inner,
  .shell {
    width: min(100% - 14px, 1180px);
  }

  .brand img {
    max-width: 106px;
  }

  .page-title h1 {
    font-size: 27px;
  }

  .labor-switch {
    grid-template-columns: 1fr;
  }

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

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid > div,
  .summary-grid > div:nth-child(3) {
    grid-column: 1;
  }

  .calendar-controls,
  .calendar-metrics {
    grid-template-columns: 1fr;
  }

  .calendar-grid span {
    min-height: 30px;
    font-size: 11px;
  }

  .pill,
  .quality-badge,
  .provider-badge {
    min-height: 24px;
    padding: 0 8px;
    font-size: 11px;
  }

  .quote-price strong {
    font-size: 29px;
  }
}
