:root {
  --ink: #25234d;
  --muted: #78758f;
  --pink: #ff4f9a;
  --purple: #6a5cff;
  --orange: #ffb13b;
  --cyan: #2bd7e8;
  --mint: #42d392;
  --cream: #fff9ed;
  --paper: #ffffff;
  --soft: #f7f7ff;
  --shadow: 0 28px 70px rgba(37, 35, 77, .16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

#timeForm {
  scroll-margin-top: 108px;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #ffffff;
}

button,
input,
select {
  font: inherit;
}

button {
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

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

.page-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 79, 154, .12), transparent 18rem),
    radial-gradient(circle at 86% 16%, rgba(43, 215, 232, .15), transparent 20rem),
    linear-gradient(180deg, #ffffff 0%, #fbfbff 48%, #fff9ed 100%);
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(860px, 92vh);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.82) 34%, rgba(255,255,255,.2) 72%),
    var(--mood-bg, url("assets/kaffee-bg.png"));
  background-size: cover;
  background-position: center right;
  opacity: .96;
  z-index: 0;
  transition: background-image .45s ease, opacity .45s ease;
}

.page-shell::after {
  content: "";
  position: absolute;
  top: min(760px, 82vh);
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fbfbff 62%, #fff9ed);
  z-index: 1;
  pointer-events: none;
}

body.bgphase-fruehmorgens .page-shell,
body.bgphase-morgens .page-shell {
  --mood-bg: image-set(url("assets/morgen-bg.webp") type("image/webp"), url("assets/morgen-bg.png") type("image/png"));
}

body.bgphase-vormittags .page-shell,
body.bgphase-nachmittag .page-shell {
  --mood-bg: image-set(url("assets/kaffee-bg.webp") type("image/webp"), url("assets/kaffee-bg.png") type("image/png"));
}

body.bgphase-mittags .page-shell,
body.bgphase-frueher-nachmittag .page-shell {
  --mood-bg: image-set(url("assets/mittag-bg.webp") type("image/webp"), url("assets/mittag-bg.png") type("image/png"));
}

body.bgphase-abend .page-shell,
body.bgphase-spaeter-abend .page-shell,
body.bgphase-sehr-spaeter-abend .page-shell {
  --mood-bg: image-set(url("assets/feierabend-bg.webp") type("image/webp"), url("assets/feierabend-bg.png") type("image/png"));
}

body.mood-feierabend .finish-time {
  background: linear-gradient(135deg, #ff4f9a, #ffb13b 52%, #6a5cff);
  box-shadow: 0 28px 70px rgba(255,79,154,.26);
}

body.mood-feierabend .mood-icon {
  background: linear-gradient(135deg, #ffcf5a, #ff6b7c);
}

body.mood-kaffee .mood-icon {
  background: linear-gradient(135deg, #2bd7e8, #6a5cff);
}

.parallax-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sun,
.cloud,
.glass-shape,
.wave {
  position: absolute;
  will-change: transform;
  transform: translate3d(0, calc(var(--scroll, 0) * 1px), 0);
}

.sun {
  top: 90px;
  right: 8vw;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffcf5a, #ff6b7c 58%, #6a5cff);
  opacity: .18;
  transform: translate3d(0, calc(var(--scroll, 0) * .12px), 0);
}

.cloud {
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 55px rgba(37,35,77,.08);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud-a {
  top: 210px;
  left: 5vw;
  width: 190px;
  height: 54px;
  transform: translate3d(calc(var(--scroll, 0) * -.06px), calc(var(--scroll, 0) * .18px), 0);
}

.cloud-a::before { width: 74px; height: 74px; left: 28px; bottom: 16px; }
.cloud-a::after { width: 94px; height: 94px; right: 34px; bottom: 8px; }

.cloud-b {
  top: 620px;
  right: 4vw;
  width: 230px;
  height: 64px;
  opacity: .58;
  transform: translate3d(calc(var(--scroll, 0) * .08px), calc(var(--scroll, 0) * -.08px), 0);
}

.cloud-b::before { width: 86px; height: 86px; left: 36px; bottom: 18px; }
.cloud-b::after { width: 104px; height: 104px; right: 44px; bottom: 12px; }

.glass-shape {
  top: 470px;
  left: 8vw;
  width: 80px;
  height: 112px;
  border: 5px solid rgba(106,92,255,.18);
  border-top-width: 10px;
  border-radius: 15px 15px 28px 28px;
  transform: rotate(-10deg) translate3d(0, calc(var(--scroll, 0) * .16px), 0);
}

.wave {
  left: -10vw;
  right: -10vw;
  height: 120px;
  border-radius: 50%;
  border-top: 4px solid rgba(43,215,232,.16);
}

.wave-a { bottom: 120px; transform: translate3d(calc(var(--scroll, 0) * -.08px), 0, 0); }
.wave-b { bottom: 70px; border-color: rgba(255,177,59,.18); transform: translate3d(calc(var(--scroll, 0) * .1px), 0, 0); }

main {
  position: relative;
  z-index: 2;
}

.app-header {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid rgba(106,92,255,.1);
  border-radius: 26px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 18px 45px rgba(37,35,77,.08);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: width .22s ease, padding .22s ease, border-radius .22s ease, box-shadow .22s ease;
}

body.header-compact .app-header {
  width: min(980px, calc(100% - 24px));
  padding: 7px 9px;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(37,35,77,.12);
}

.brand img {
  display: block;
  width: min(300px, 58vw);
  height: auto;
  max-height: 76px;
  object-fit: contain;
  transition: width .22s ease;
}

body.header-compact .brand img {
  width: min(230px, 48vw);
  max-height: 58px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(247,247,255,.86);
  transition: gap .22s ease, padding .22s ease;
}

.nav-dropdown {
  position: relative;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 210px;
  padding: 10px;
  border: 1px solid rgba(106,92,255,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 45px rgba(37,35,77,.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-submenu a,
.nav-submenu .nav-button {
  justify-content: flex-start;
  width: 100%;
  text-align: left;
  border-radius: 12px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 4px;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
  background: rgba(247,247,255,.92);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

body.mobile-menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.mobile-menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.mobile-menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

body.header-compact .top-nav {
  gap: 5px;
  padding: 5px;
}

.top-nav a,
.nav-button {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  padding: 9px 14px;
  border-radius: 999px;
  transition: padding .22s ease, font-size .22s ease;
}

body.header-compact .top-nav a,
body.header-compact .nav-button {
  padding: 7px 10px;
  font-size: .88rem;
}

.nav-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.top-nav a:hover,
.nav-button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
}

.top-nav .nav-calculator-link {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 9px 20px rgba(255,79,154,.22);
}

.top-nav .nav-calculator-link:hover,
.top-nav .nav-calculator-link:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #e93d89, #f59b22);
  box-shadow: 0 12px 25px rgba(255,79,154,.3);
}

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 156px 0 34px;
}

.hero-copy {
  max-width: 780px;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pink);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow.light { color: var(--purple); }

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 10px 0 14px;
  max-width: 900px;
  font-size: clamp(2.45rem, 7vw, 5.9rem);
  line-height: .92;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy > p {
  max-width: 720px;
  color: #5d5b72;
  font-size: 1.18rem;
  line-height: 1.65;
}

.hero-subheadline {
  margin-bottom: 15px;
}

.hero-calculator-cta {
  display: inline-flex;
  width: auto;
  min-height: 46px;
  margin-bottom: 14px;
  padding: 11px 18px;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(106,92,255,.2);
}

.local-privacy-card {
  max-width: 760px;
  margin-top: 0;
  padding: 17px 18px;
  border: 1px solid rgba(106,92,255,.14);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(247,247,255,.9)),
    #fff;
  box-shadow: 0 16px 34px rgba(37,35,77,.09);
  backdrop-filter: blur(14px);
}

.privacy-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1px 2px;
}

.privacy-card-title strong,
.privacy-card-title span {
  display: block;
}

.privacy-card-title strong {
  color: var(--ink);
  font-size: .95rem;
}

.privacy-card-title div > span {
  margin-top: 1px;
  color: var(--muted);
  font-size: .75rem;
}

.privacy-shield {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 8px 18px rgba(106,92,255,.2);
  font-weight: 900;
}

.privacy-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.privacy-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 52px;
  padding: 9px 10px;
  border: 1px solid rgba(106,92,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}

.privacy-facts strong,
.privacy-facts span {
  display: block;
}

.privacy-fact-icon {
  display: grid !important;
  place-items: center;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  font-size: .76rem !important;
  font-weight: 950;
}

.privacy-facts li:nth-child(2) .privacy-fact-icon {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
}

.privacy-facts li:nth-child(3) .privacy-fact-icon {
  background: linear-gradient(135deg, #398c9a, var(--mint));
}

.privacy-facts li:nth-child(4) .privacy-fact-icon {
  background: linear-gradient(135deg, var(--orange), #ff6b7c);
}

.privacy-facts strong {
  color: var(--ink);
  font-size: .76rem;
}

.privacy-facts span {
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: .67rem;
  line-height: 1.25;
}

.hero-copy .local-privacy-card p {
  max-width: none;
  margin: 11px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(106,92,255,.1);
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.35;
}

.hero-copy {
  padding: 24px 0 4px;
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, .78fr);
  gap: 24px;
  align-items: stretch;
}

.calculator-panel,
.result-panel,
.chart-panel,
.week-list,
.balance-card,
.tips-grid article {
  border: 1px solid rgba(106,92,255,.12);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.calculator-panel,
.result-panel {
  min-width: 0;
  border-radius: 28px;
  padding: 28px;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.panel-intro {
  flex: 1 0 100%;
  margin: 2px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.3;
}

.panel-intro strong {
  color: var(--ink);
}

.panel-head h2,
.section-title h2,
.balance-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 900;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.form-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(106,92,255,.12);
  border-radius: 24px;
  background: rgba(255,255,255,.68);
}

.current-entry {
  gap: 16px;
  padding: 20px;
  border-color: rgba(255,79,154,.18);
  background:
    radial-gradient(circle at 100% 0, rgba(255,177,59,.16), transparent 12rem),
    rgba(255,255,255,.78);
}

.form-card-head h3 {
  margin: 4px 0 0;
  font-size: 1.28rem;
  font-weight: 900;
}

.form-card-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 750;
  line-height: 1.45;
}

.step-one-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(106,92,255,.12);
  border-radius: 15px;
  background: rgba(255,255,255,.62);
}

.step-one-inline strong {
  display: block;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 900;
  line-height: 1.2;
}

.step-one-inline strong span {
  color: var(--muted);
  font-weight: 800;
}

.step-one-inline p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.25;
}

.work-model-soft-trigger {
  min-height: 36px;
  padding: 7px 11px;
  white-space: nowrap;
  color: var(--purple);
  background: rgba(106,92,255,.08);
  font-size: .75rem;
}

.work-model-soft-trigger:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
}

.current-entry .form-card-head h3 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  color: var(--pink);
  background: none;
}

.daily-model-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .72fr);
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(106,92,255,.12);
  border-radius: 22px;
  background: rgba(247,247,255,.72);
}

.daily-target-field {
  margin: 0;
}

.daily-target-field > span {
  color: #25234d;
  font-size: .92rem;
  font-weight: 900;
}

.daily-target-field input {
  min-height: 54px;
  font-size: 1.2rem;
  font-weight: 900;
}

.primary-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.time-priority-field {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 18px;
  border-radius: 26px;
  border: 2px solid rgba(255,79,154,.22);
  background:
    radial-gradient(circle at 100% 0, rgba(255,79,154,.1), transparent 9rem),
    #fff;
  box-shadow: 0 22px 46px rgba(37,35,77,.12);
}

.time-priority-field span {
  color: #25234d;
  font-size: 1.02rem;
  font-weight: 950;
}

.time-input-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 74px;
  border: 2px solid rgba(255,79,154,.28);
  border-radius: 20px;
  background: #fff9fd;
  padding: 0 14px;
}

.time-choice-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  display: block;
  max-height: 300px;
  padding: 8px;
  overflow: auto;
  border: 1px solid rgba(106,92,255,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 55px rgba(37,35,77,.18);
}

.time-choice-group + .time-choice-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(106,92,255,.1);
}

.time-choice-group h4 {
  position: sticky;
  top: -8px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  padding: 5px 4px;
  color: var(--muted);
  background: rgba(255,255,255,.96);
  font-size: .7rem;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.time-choice-group h4 span {
  color: var(--purple);
  font-size: .74rem;
}

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

.time-choice-menu[hidden] {
  display: none;
}

.time-choice-menu button {
  min-height: 30px;
  padding: 5px 3px;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
  background: #f7f7ff;
  cursor: pointer;
  font-size: .7rem;
  line-height: 1;
  font-weight: 750;
}

.time-choice-menu button.is-half-hour {
  color: #4b4770;
  background: #efeffb;
  font-weight: 850;
}

.time-choice-menu button.is-full-hour {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #398c9a);
  font-weight: 900;
}

.time-choice-menu button:hover,
.time-choice-menu button:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  outline: none;
}

.empty-day-row.is-free-day {
  background: linear-gradient(135deg, rgba(66,211,146,.1), rgba(43,215,232,.06));
  border: 1px solid rgba(66,211,146,.18);
}

.empty-day-row.is-free-day .day-pill {
  color: #fff;
  background: linear-gradient(135deg, var(--mint), #398c9a);
}

.month-day-card.is-free-day,
.month-day-card.free-day-row {
  background: linear-gradient(135deg, rgba(255,177,59,.14), rgba(66,211,146,.1));
  border: 1px solid rgba(255,177,59,.22);
}

.month-day-card.is-free-day .day-pill,
.month-day-card.free-day-row .day-pill {
  background: linear-gradient(135deg, var(--orange), var(--mint));
  box-shadow: 0 6px 14px rgba(255,177,59,.18);
}

.time-picker-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--pink);
  background: rgba(255,79,154,.1);
  cursor: pointer;
}

.time-picker-button:hover,
.time-picker-button:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  outline: none;
}

.time-picker-button svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.time-priority-field input {
  min-height: 56px;
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: none;
}

.time-priority-field input[type="time"]::-webkit-datetime-edit {
  min-width: 0;
  padding: 0;
}

.time-priority-field input[type="time"]::-webkit-calendar-picker-indicator {
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: .55;
}

.time-priority-field input:focus {
  box-shadow: none;
}

.time-input-help {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #5d5978;
  background: rgba(106,92,255,.08);
  font-size: .8rem;
  font-weight: 850;
}

.support-fields {
  padding: 12px;
  border-radius: 20px;
  background: rgba(247,247,255,.72);
}

.support-fields label span {
  color: #6f6b83;
}

.compact-fields {
  gap: 10px;
}

.single-field {
  grid-template-columns: 1fr;
}

.work-model-trigger {
  width: 100%;
  min-height: 54px;
  margin-bottom: 0;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 18px 35px rgba(106,92,255,.2);
}

.step-helper {
  margin: 0 0 14px;
  padding: 11px 14px;
  border-radius: 18px;
  color: #4a4763;
  background: rgba(43,215,232,.1);
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.45;
}

.input-week-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 7px;
}

.input-week-nav .ghost-action {
  min-height: 36px;
  padding: 7px 9px;
  font-size: .74rem;
}

.weekday-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 6px;
  margin-bottom: 9px;
}

.weekday-picker button {
  display: grid;
  place-items: center;
  gap: 1px;
  min-height: 74px;
  border: 1px solid rgba(106,92,255,.16);
  border-radius: 14px;
  color: var(--ink);
  background: #f7f7ff;
  cursor: pointer;
  font-weight: 900;
}

.weekday-picker button.is-weekend {
  border-style: dashed;
  border-color: rgba(255,177,59,.42);
  background: #fffaf0;
}

.weekday-picker button.is-rest-day {
  color: #8f8aa5;
  background: #f0f0f6;
  border-color: rgba(120,117,143,.16);
  opacity: .34;
  filter: grayscale(.9);
  box-shadow: none;
}

.weekday-picker button.is-rest-day:hover {
  opacity: .58;
  filter: grayscale(.45);
}

.weekday-picker button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 16px 34px rgba(255,79,154,.22);
  opacity: 1;
  filter: none;
}

.weekday-picker button.is-focus {
  outline: 3px solid rgba(43,215,232,.38);
  outline-offset: 2px;
}

.weekday-picker button.has-event {
  border-color: rgba(255,177,59,.55);
  background: #fff7e8;
}

.weekday-picker button.is-stale-event {
  filter: grayscale(1);
  opacity: .56;
}

.weekday-picker button.has-event.is-active {
  color: #fff;
  background: linear-gradient(135deg, #ffb13b, #ff4f9a);
}

.weekday-picker span,
.weekday-picker em,
.weekday-picker small {
  font-style: normal;
  font-size: .7rem;
  font-weight: 800;
  opacity: .78;
}

.weekday-picker small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekday-picker .day-entry-status {
  padding: 1px 5px;
  border-radius: 999px;
  font-size: .6rem;
  line-height: 1.25;
  opacity: 1;
  background: rgba(255,255,255,.62);
}

.weekday-picker .day-entry-status.has-entry {
  color: #244b39;
  background: rgba(66,211,146,.18);
}

.weekday-picker .day-entry-status.is-empty {
  color: #78758f;
  background: rgba(217,216,232,.48);
}

.weekday-picker button.is-active .day-entry-status,
.weekday-picker button.has-event.is-active .day-entry-status {
  color: #fff;
  background: rgba(255,255,255,.2);
}

.target-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 20px;
  background: #f1f0ff;
}

.target-mode button {
  min-height: 42px;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.target-mode button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 14px 28px rgba(106,92,255,.18);
}

.workday-settings {
  display: grid;
  gap: 9px;
}

.workday-settings > span {
  color: var(--ink);
  font-size: .9rem;
  font-weight: 900;
}

.workday-settings p {
  margin: -3px 0 2px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.4;
}

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

.workday-check {
  display: block;
  position: relative;
  font-size: .82rem;
}

.workday-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.workday-check.is-today::before {
  content: "Heute";
  position: absolute;
  left: 50%;
  top: -11px;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 8px 18px rgba(43,215,232,.18);
  font-size: .58rem;
  font-weight: 900;
  transform: translateX(-50%);
}

.workday-check span {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 58px;
  padding: 7px 4px;
  border: 1px solid rgba(106,92,255,.16);
  border-radius: 14px;
  color: var(--ink);
  background: #fbfbff;
  cursor: pointer;
  font-weight: 900;
}

.workday-check.is-today span {
  border-color: rgba(43,215,232,.45);
  box-shadow: 0 0 0 3px rgba(43,215,232,.1);
}

.workday-check b {
  display: none;
}

.workday-check strong {
  font-size: .9rem;
  line-height: 1;
}

.workday-check small {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 850;
  line-height: 1.1;
}

.workday-check input:checked + span {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.workday-check input:checked + span small {
  color: rgba(255,255,255,.82);
}

.target-summary {
  margin: 0;
  padding: 12px 14px;
  border-radius: 18px;
  color: #25234d;
  background: rgba(66,211,146,.13);
  font-size: .92rem;
  line-height: 1.45;
  font-weight: 800;
}

.holiday-status,
.day-holiday-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 18px;
  color: #523300;
  background: #fff7e8;
  font-size: .9rem;
  line-height: 1.45;
  font-weight: 800;
}

.day-holiday-note {
  display: grid;
  gap: 8px;
  color: #25234d;
  background: rgba(255,255,255,.68);
}

.day-event-pill {
  display: block;
  padding: 9px 11px;
  border-radius: 16px;
  font-size: .86rem;
  line-height: 1.35;
}

.day-event-pill strong {
  display: inline-block;
  margin-right: 7px;
  font-weight: 900;
}

.day-event-pill.is-public {
  color: #523300;
  background: linear-gradient(135deg, #fff1cf, #ffe3a3);
  border: 1px solid rgba(255,177,59,.42);
  box-shadow: 0 10px 22px rgba(255,177,59,.12);
}

.day-event-pill.is-school {
  color: #6f6b83;
  background: #f4f4fb;
  border: 1px solid rgba(106,92,255,.1);
  font-size: .8rem;
}

.day-event-pill.is-bridge {
  color: #244b39;
  background: rgba(66,211,146,.14);
  border: 1px solid rgba(66,211,146,.28);
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
  font-size: .9rem;
}

input,
select {
  width: 100%;
  border: 1px solid #ecebfa;
  border-radius: 16px;
  padding: .72rem .9rem;
  color: var(--ink);
  background: #fbfbff;
  box-shadow: none;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(106,92,255,.55);
  box-shadow: 0 0 0 .22rem rgba(106,92,255,.12);
}

.input-unit {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid #ecebfa;
  border-radius: 16px;
  background: #fbfbff;
}

.input-unit input {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.input-unit span {
  padding-right: 14px;
  color: var(--muted);
  font-weight: 800;
}

.worked-output {
  display: block;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(106,92,255,.14);
  border-radius: 18px;
  color: #25234d;
  background: linear-gradient(135deg, rgba(106,92,255,.08), rgba(43,215,232,.12));
  font-weight: 900;
  line-height: 1.45;
}

.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.quick-row button,
.ghost-action,
.primary-action {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.quick-row button {
  padding: 8px 13px;
  color: var(--purple);
  background: rgba(106,92,255,.1);
}

.quick-row button:hover {
  color: #fff;
  background: var(--purple);
}

.break-presets {
  margin: 0;
}

.break-presets button.is-legal {
  color: #fff;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  box-shadow: 0 10px 22px rgba(43,215,232,.16);
}

.break-presets button.is-selected {
  outline: 3px solid rgba(255,79,154,.22);
  outline-offset: 2px;
}

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

.day-actions {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) repeat(2, minmax(145px, 1fr));
  margin-top: 2px;
  padding: 12px;
  border: 1px solid rgba(106,92,255,.1);
  border-radius: 20px;
  background: rgba(247,247,255,.72);
}

.day-actions button {
  min-height: 48px;
}

.primary-action,
.ghost-action {
  padding: .9rem 1.25rem;
}

.primary-action {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 18px 35px rgba(255,79,154,.24);
}

.ghost-action {
  color: var(--purple);
  background: #fff;
  border: 2px solid rgba(106,92,255,.16);
}

.vacation-action {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255,177,59,.2), rgba(66,211,146,.2));
  border-color: rgba(255,177,59,.36);
}

.vacation-action:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--mint));
}

.comp-time-action {
  color: #25234d;
  background: linear-gradient(135deg, rgba(106,92,255,.14), rgba(43,215,232,.18));
  border-color: rgba(106,92,255,.24);
}

.comp-time-action:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
}

.comp-time-action:disabled {
  cursor: not-allowed;
  opacity: .52;
  transform: none;
}

.storage-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(66,211,146,.1);
  font-size: .92rem;
  line-height: 1.45;
}

.legal-break-preview,
.live-work-preview {
  margin: 14px 0 0;
  padding: 11px 14px;
  border-radius: 18px;
  color: #8b8a9c;
  background: #f1f1f6;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.45;
}

.legal-break-preview.is-warning {
  color: #8a1f12;
  background: #fff1f0;
  border: 1px solid rgba(220,38,38,.24);
}

.validation-message {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  color: #8a1f12;
  background: #fff1f0;
  border: 1px solid rgba(220,38,38,.28);
  font-size: .9rem;
  font-weight: 850;
  line-height: 1.4;
}

.validation-message[hidden] {
  display: none;
}

.validation-message.is-success {
  color: #244b39;
  background: rgba(66,211,146,.14);
  border-color: rgba(66,211,146,.32);
}

.live-work-preview {
  margin-top: 8px;
  color: #25234d;
  background: rgba(43,215,232,.13);
  border: 1px solid rgba(43,215,232,.22);
}

.stamp-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 2px;
  font-size: 1.03rem;
  background: linear-gradient(135deg, #2bd7e8, #42d392);
  box-shadow: 0 18px 35px rgba(43,215,232,.2);
}

.stamp-action.is-clocked-in {
  background: linear-gradient(135deg, #ff4f9a, #ffb13b);
  box-shadow: 0 18px 35px rgba(255,79,154,.24);
}

.button-icon {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,.72);
  font-weight: 900;
}

.button-icon svg {
  width: 1.08rem;
  height: 1.08rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.result-panel {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 18px;
  background:
    radial-gradient(circle at 90% 0, rgba(255,177,59,.2), transparent 15rem),
    rgba(255,255,255,.86);
}

.mood-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
}

.mood-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  font-size: 1.9rem;
}

.mood-card h2 {
  margin: 4px 0 5px;
  font-size: 1.5rem;
  font-weight: 900;
}

.mood-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.finish-time {
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(145deg, #2d315b, #3b4770);
  box-shadow: 0 20px 44px rgba(37,35,77,.18);
  transition: background .35s ease, box-shadow .35s ease;
}

body.dayphase-morning .finish-time {
  background: linear-gradient(145deg, #26345a, #365d78);
}

body.dayphase-midday .finish-time {
  background: linear-gradient(145deg, #24556a, #277b77);
}

body.dayphase-near-finish .finish-time {
  background: linear-gradient(145deg, #744c76, #b35b72);
  box-shadow: 0 22px 48px rgba(179,91,114,.22);
}

body.dayphase-finished .finish-time {
  background: linear-gradient(145deg, #a94672, #d17658);
  box-shadow: 0 22px 50px rgba(209,118,88,.23);
}

body.dayphase-overtime .finish-time {
  background: linear-gradient(145deg, #34304f, #704356);
  box-shadow: 0 22px 50px rgba(52,48,79,.24);
}

.selected-day-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px 0 6px;
  padding: 0;
  border-bottom: 0;
  background: transparent;
  opacity: .78;
}

.selected-day-strip span {
  margin-bottom: 1px;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.selected-day-strip strong {
  margin: 0;
  font-size: .76rem;
  line-height: 1.2;
  font-weight: 800;
}

.compact-action {
  min-height: 26px;
  padding: 5px 9px;
  color: #25234d;
  background: rgba(255,255,255,.9);
  font-size: .72rem;
}

.finish-time span {
  display: block;
  font-weight: 800;
  color: rgba(255,255,255,.72);
}

.finish-time strong {
  display: block;
  margin: 2px 0 8px;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: .9;
  font-weight: 900;
}

.finish-clock-row {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  min-width: 0;
  margin: 2px 0 12px;
}

.finish-clock-row #finishTime {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.finish-time.is-free-day-state .finish-clock-row {
  align-items: center;
}

.finish-time.is-free-day-state #finishTime {
  font-size: clamp(1.85rem, 4.5vw, 3.15rem);
  line-height: 1.02;
}

.finish-clock-suffix {
  margin-bottom: 5px;
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  font-weight: 800;
}

.finish-clock-suffix[hidden] {
  display: none;
}

.finish-time .selected-day-strip span {
  color: rgba(255,255,255,.58);
  font-size: .62rem;
}

.finish-time .selected-day-strip strong {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: .76rem;
  line-height: 1.2;
  font-weight: 800;
}

.finish-countdown {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 0 0 10px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #25234d;
  background: rgba(255,255,255,.82);
  font-weight: 900;
  letter-spacing: 0;
}

.finish-countdown.is-free-time {
  color: #244b39;
  background: rgba(255,255,255,.9);
}

.leisure-burst {
  display: inline-grid;
  place-items: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  margin: 0 0 1px auto;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 19px;
  background: rgba(255,255,255,.17);
  box-shadow: inset 0 1px rgba(255,255,255,.2), 0 12px 24px rgba(0,0,0,.12);
  font-size: 1.85rem;
  animation: leisureFloat 2.2s ease-in-out infinite;
}

@keyframes leisureFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: .82; }
  50% { transform: translateY(-4px) scale(1.04); opacity: 1; }
}

.finish-time p {
  margin: 0;
  color: rgba(255,255,255,.82);
}

.finish-time.is-finished-state {
  background: linear-gradient(145deg, #a94672, #d17658);
}

.finish-time.is-finished-state #finishTime {
  font-size: clamp(2.35rem, 6vw, 3.8rem);
  line-height: 1;
}

.finish-time.is-finished-state .leisure-burst {
  display: none;
}

.finish-celebration {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 13px;
}

.finish-celebration[hidden] {
  display: none;
}

.finish-celebration span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 13px;
  color: #fff;
  background: rgba(255,255,255,.14);
  font-size: 1.15rem;
  animation: finishCelebrationFloat 2.8s ease-in-out infinite;
}

.finish-celebration span:nth-child(2) {
  animation-delay: -.7s;
}

.finish-celebration span:nth-child(3) {
  animation-delay: -1.4s;
}

.finish-celebration span:nth-child(4) {
  animation-delay: -2.1s;
}

@keyframes finishCelebrationFloat {
  0%, 100% { transform: translateY(0); opacity: .72; }
  50% { transform: translateY(-4px); opacity: 1; }
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mini-grid div {
  position: relative;
  padding: 15px;
  border-radius: 18px;
  background: #f7f7ff;
}

.mini-grid span {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}

.mini-grid strong {
  display: block;
  min-width: 0;
  margin-top: 4px;
  font-size: 1.1rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.free-day-mini-icon {
  position: absolute;
  top: 9px;
  right: 10px;
  font-size: 1.15rem;
  animation: leisureFloat 2.8s ease-in-out infinite;
}

.free-day-mini-icon[hidden] {
  display: none;
}

.overtime-hint {
  margin: -4px 0 0;
  padding: 12px 14px;
  border-radius: 18px;
  color: var(--muted);
  background: #f7f7ff;
  font-size: .9rem;
  line-height: 1.45;
  font-weight: 800;
}

.overtime-hint.is-strong {
  color: #244b39;
  background: rgba(66,211,146,.14);
  border: 1px solid rgba(66,211,146,.28);
}

.vacation-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.vacation-summary span {
  padding: 10px 12px;
  border-radius: 16px;
  color: var(--muted);
  background: rgba(66,211,146,.1);
  font-size: .82rem;
  font-weight: 800;
}

.vacation-summary strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.legal-warning {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,177,59,.35);
  background: #fff7e8;
  color: #523300;
}

.legal-warning strong {
  font-size: 1.04rem;
  font-weight: 900;
}

.legal-warning span {
  line-height: 1.48;
  font-weight: 750;
}

.legal-warning.is-danger {
  border-color: rgba(220,38,38,.28);
  background: #fff1f0;
  color: #8a1f12;
}

.legal-warning.is-hidden {
  display: none;
}

.week-section,
.balance-section,
.legal-explainer,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
}

.section-title {
  max-width: 760px;
  margin-bottom: 22px;
}

.week-title-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 14px;
  max-width: none;
}

.chart-panel .week-title-row {
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(106,92,255,.1);
}

.week-nav-button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 14px 28px rgba(106,92,255,.18);
  cursor: pointer;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.week-nav-button:hover {
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.section-title p,
.balance-card p,
.tips-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.week-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.chart-panel,
.week-list,
.balance-card {
  border-radius: 28px;
  padding: 22px;
}

.chart-panel {
  position: relative;
  border: 1px solid rgba(106,92,255,.12);
  background:
    radial-gradient(circle at 96% 0, rgba(43,215,232,.16), transparent 16rem),
    rgba(255,255,255,.84);
  box-shadow: var(--shadow);
}

.chart-tooltip {
  position: absolute;
  z-index: 8;
  display: grid;
  gap: 3px;
  width: min(250px, calc(100% - 24px));
  padding: 11px 13px;
  border-radius: 16px;
  color: #fff;
  background: rgba(37,35,77,.94);
  box-shadow: 0 18px 42px rgba(37,35,77,.25);
  font-size: .82rem;
  line-height: 1.35;
  pointer-events: none;
}

.chart-tooltip[hidden] {
  display: none;
}

.chart-tooltip strong {
  font-size: .94rem;
}

.chart-tooltip span,
.chart-tooltip small {
  color: rgba(255,255,255,.82);
  font-weight: 750;
}

.chart-tooltip b {
  color: #fff;
}

.month-chart-tooltip {
  position: fixed;
  z-index: 1000;
  max-height: min(360px, calc(100vh - 24px));
  overflow: auto;
  pointer-events: none;
}

.week-chart-tooltip {
  position: fixed;
  z-index: 2147483000;
  max-height: min(360px, calc(100vh - 24px));
  overflow: auto;
  pointer-events: none;
}

.add-entry-button {
  margin-top: 16px;
}

.week-bottom-nav {
  display: grid;
  grid-template-columns: 52px minmax(0, max-content) 52px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(106,92,255,.12);
}

.week-bottom-nav .ghost-action {
  justify-self: center;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
}

.week-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.chart-panel .week-list {
  margin-top: 16px;
  padding: 0;
}

.chart-panel .calendar-week {
  min-height: 430px;
  padding: 14px;
  border: 1px solid rgba(106,92,255,.1);
}

.week-overtime-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.week-overtime-strip span {
  padding: 10px 12px;
  border-radius: 16px;
  color: var(--muted);
  background: #f7f7ff;
  font-size: .8rem;
  font-weight: 800;
}

.week-overtime-strip strong {
  display: block;
  color: var(--ink);
  font-size: .98rem;
}

.week-day-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.week-day-detail-grid .day-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 228px;
  height: 228px;
  min-width: 0;
  max-width: 100%;
  padding: 14px;
  overflow: hidden;
  box-sizing: border-box;
}

.week-day-card.is-holiday-day,
.week-day-card.holiday-row,
.week-day-card.is-weekend-day,
.week-day-card.weekend-row {
  border: 1px solid rgba(255,207,90,.24);
  background: linear-gradient(135deg, rgba(255,207,90,.16), rgba(255,249,237,.86));
}

.week-day-card.is-holiday-day .day-pill,
.week-day-card.holiday-row .day-pill,
.week-day-card.is-weekend-day .day-pill,
.week-day-card.weekend-row .day-pill {
  color: #fff !important;
  background: linear-gradient(135deg, #d88914, #ffb13b);
}

.week-day-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.week-day-card-head > div {
  min-width: 0;
}

.week-day-card-head strong,
.week-day-card-head span {
  display: block;
}

.week-day-card-head strong {
  color: var(--ink);
  font-size: .92rem;
  font-weight: 900;
}

.week-day-card-head div > span {
  margin-top: 2px;
  color: var(--muted);
  font-size: .75rem;
}

.week-day-detail-grid .week-day-card .day-pill {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 14px;
}

.week-day-card-content {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin-top: 13px;
}

.week-day-card-content > strong {
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.week-day-card-content small {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.42;
  font-weight: 700;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.week-day-status {
  max-width: 100%;
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  color: #4b4770 !important;
  background: rgba(106,92,255,.1);
  font-size: .66rem !important;
  font-weight: 900 !important;
  overflow-wrap: anywhere;
  white-space: normal;
}

.week-day-balance {
  width: fit-content;
  margin-top: 3px;
  padding: 5px 8px;
  border-radius: 9px;
  font-size: .72rem !important;
}

.week-day-balance.is-positive {
  color: #176642;
  background: rgba(66,211,146,.14);
}

.week-day-balance.is-negative {
  color: #9a3412;
  background: rgba(255,177,59,.16);
}

.week-day-card-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid rgba(106,92,255,.09);
}

.week-day-card-actions button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: .68rem;
  font-weight: 850;
  max-width: 100%;
}

.week-day-card-actions .entry-text-button {
  display: inline-flex;
  width: auto;
  padding: 0 10px;
  gap: 6px;
}

.week-day-card-actions svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-tooltip-button::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 7px);
  z-index: 30;
  width: max-content;
  max-width: 180px;
  padding: 6px 8px;
  border-radius: 8px;
  color: #fff;
  background: rgba(37,35,77,.96);
  box-shadow: 0 10px 24px rgba(37,35,77,.2);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity .15s ease, transform .15s ease;
}

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

.day-delete-button {
  color: #9f2d22;
  background: #fff1f0;
}

.day-edit-button {
  color: var(--purple);
  background: rgba(106,92,255,.09);
}

.day-delete-button:hover,
.day-delete-button:focus-visible {
  color: #fff;
  background: #b42318;
}

.day-edit-button:hover,
.day-edit-button:focus-visible {
  color: #fff;
  background: var(--purple);
}

.result-panel.is-unplanned-free .daily-status-card {
  background: linear-gradient(135deg, rgba(66,211,146,.14), rgba(43,215,232,.1));
}

.result-panel.is-unplanned-free .finish-time {
  min-height: 218px;
}

.week-event-info-grid {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}

.week-event-info-grid {
  margin-top: 8px;
}

.week-event-card {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: .8rem;
  line-height: 1.35;
}

.week-event-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: .86rem;
  font-weight: 900;
}

.week-event-card span {
  color: inherit;
  font-weight: 750;
}

.holiday-info-card {
  color: #523300;
  background: #fff7d6;
  border: 1px solid rgba(255,177,59,.28);
}

.bridge-info-card {
  color: #244b39;
  background: rgba(66,211,146,.14);
  border: 1px solid rgba(66,211,146,.28);
}

.month-week-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  margin-top: 18px;
  overflow: visible;
}

.month-week-list .calendar-week {
  align-self: start;
  grid-template-rows: minmax(58px, auto) auto;
  height: auto;
}

.month-week-list .calendar-week-head {
  align-self: start;
  min-height: 52px;
  margin: 0;
  padding: 5px 4px 3px;
}

.month-calendar-week .calendar-week-head {
  flex-wrap: nowrap;
}

.month-calendar-week .week-delete {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 9px;
}

.month-calendar-week .week-delete svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.month-day-grid {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.month-day-grid .week-day-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "head"
    "content"
    "actions";
  grid-template-rows: 30px minmax(0, 1fr) 33px;
  align-items: center;
  gap: 4px;
  min-width: 0;
  height: 112px;
  min-height: 112px;
  padding: 8px 9px 7px;
  border-radius: 13px;
  overflow: visible;
}

.month-day-grid .week-day-card-head {
  grid-area: head;
  gap: 7px;
}

.month-day-grid .week-day-card-head .day-pill {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 10px;
  font-size: .7rem;
}

.month-day-grid .week-day-card-head strong {
  font-size: .78rem;
}

.month-day-grid .week-day-card-head div > span {
  margin-top: 0;
  font-size: .66rem;
}

.month-day-grid .week-day-card-content {
  grid-area: content;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  margin-top: 0;
  text-align: left;
  overflow: hidden;
}

.month-day-grid .week-day-card-content > strong {
  font-size: .73rem;
  line-height: 1.15;
}

.month-day-grid .week-day-card-content small {
  display: none;
}

.month-day-grid .week-day-status {
  max-width: 110px;
  padding: 2px 5px;
  font-size: .56rem !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.month-day-grid .week-day-balance {
  margin-top: 1px;
  padding: 2px 5px;
  font-size: .6rem !important;
}

.month-day-grid .week-day-card-actions {
  grid-area: actions;
  gap: 5px;
  margin-top: 0;
  padding-top: 5px;
}

.month-day-grid .week-day-card-actions button {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  border-radius: 8px;
}

.month-day-grid .week-day-card-actions svg {
  width: 13px;
  height: 13px;
}

.month-day-card::after {
  content: attr(data-card-tooltip);
  position: absolute;
  left: 8px;
  bottom: calc(100% + 6px);
  z-index: 35;
  display: block;
  width: max-content;
  max-width: min(260px, calc(100vw - 40px));
  padding: 7px 9px;
  border-radius: 9px;
  color: #fff;
  background: rgba(37,35,77,.96);
  box-shadow: 0 12px 28px rgba(37,35,77,.24);
  font-size: .68rem;
  font-weight: 750;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity .15s ease, transform .15s ease;
}

.month-day-card:focus::after,
.month-day-card:focus-visible::after,
.month-day-card.is-tooltip-open::after {
  opacity: 1;
  transform: translateY(0);
}

.month-day-card:focus,
.month-day-card:focus-visible,
.month-day-card.is-tooltip-open {
  z-index: 40;
  outline: 2px solid rgba(106,92,255,.32);
  outline-offset: 2px;
}

@media (hover: hover) {
  .month-day-card:hover {
    z-index: 40;
  }

  .month-day-card:hover::after {
    opacity: 1;
    transform: translateY(0);
  }
}

.month-calendar-week {
  overflow: visible;
}

.day-row {
  display: grid;
  grid-template-columns: 46px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #f7f7ff;
}

.day-row.has-event,
.event-row.is-public-event {
  background: #fff7e8;
}

.event-row.is-school-event {
  color: #3f3b73;
  background: linear-gradient(135deg, rgba(106,92,255,.16), rgba(106,92,255,.07));
  border: 1px solid rgba(106,92,255,.18);
}

.empty-day-row {
  background: rgba(247,247,255,.62);
  border: 1px dashed rgba(106,92,255,.16);
}

.empty-day-row .day-pill {
  color: var(--muted);
  background: #ecebfa;
}

.vacation-row {
  background: linear-gradient(135deg, rgba(66,211,146,.15), rgba(43,215,232,.08));
  border: 1px solid rgba(66,211,146,.22);
}

.vacation-row .day-pill {
  color: #fff;
  background: linear-gradient(135deg, var(--mint), #1dbe7d);
}

.comp-time-row {
  background: linear-gradient(135deg, rgba(217,216,232,.5), rgba(247,247,255,.7));
  border: 1px solid rgba(169,166,200,.24);
}

.comp-time-row .day-pill {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
}

.day-row.is-stale-event,
.holiday-list.is-stale .holiday-month {
  filter: grayscale(1);
  opacity: .55;
}

.week-list.has-stale-events .event-row {
  border: 1px dashed rgba(180,35,24,.35);
}

.day-row strong {
  font-weight: 900;
}

.day-row span {
  color: var(--muted);
  font-weight: 800;
  font-size: .82rem;
}

.day-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #4d3fd1, #167f9a);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  box-sizing: border-box;
}

.week-day-card-head .day-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.week-day-card-head .day-pill,
.week-day-card-head .day-pill * {
  color: #fff !important;
}

.entry-worked-output {
  display: block;
  margin: 2px 0 10px;
  padding: 12px 14px;
  border: 1px solid rgba(106,92,255,.12);
  border-radius: 14px;
  color: var(--ink);
  background: #f7f7ff;
  font-size: .92rem;
  font-weight: 900;
}

.success-action {
  position: relative;
  overflow: visible;
}

.success-action.is-success-burst {
  animation: actionSuccessPulse .7s ease;
}

.action-particle {
  position: absolute;
  left: 50%;
  top: 45%;
  z-index: 3;
  pointer-events: none;
  animation: actionParticle 1s ease-out var(--particle-delay, 0ms) forwards;
}

@keyframes actionSuccessPulse {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.035); }
}

@keyframes actionParticle {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.7); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--particle-x)), -52px) rotate(18deg) scale(1.05); }
}

.vacation-success-popover {
  width: min(440px, calc(100% - 28px));
  text-align: center;
}

.vacation-success-popover h2 {
  margin: 6px 0;
}

.vacation-success-popover p {
  margin: 4px 0;
  color: var(--muted);
}

.vacation-success-remaining {
  color: var(--purple) !important;
  font-weight: 900;
}

.vacation-scene {
  position: relative;
  display: grid;
  place-items: center;
  height: 116px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(43,215,232,.15), rgba(255,177,59,.15));
}

.vacation-palm {
  z-index: 2;
  font-size: 4rem;
  animation: vacationPalm 2.8s ease-in-out infinite;
}

.vacation-cloud {
  position: absolute;
  color: rgba(255,255,255,.94);
  font-size: 2rem;
  filter: drop-shadow(0 8px 12px rgba(37,35,77,.08));
  animation: vacationCloud 6s linear infinite;
}

.cloud-one {
  top: 12px;
  left: -40px;
}

.cloud-two {
  right: -45px;
  bottom: 16px;
  animation-delay: -3s;
}

@keyframes vacationPalm {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-4px); }
}

@keyframes vacationCloud {
  from { transform: translateX(0); }
  to { transform: translateX(480px); }
}

.calendar-week {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  overflow: visible;
}

.calendar-week-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 8px 4px;
}

.calendar-week-head strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 900;
}

.calendar-week-head span {
  color: var(--muted);
  font-weight: 800;
  font-size: .85rem;
}

.tiny-delete,
.icon-button {
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.tiny-delete {
  padding: 7px 10px;
  border-radius: 999px;
  color: #b42318;
  background: #fff1f0;
  font-size: .78rem;
}

.tiny-delete:hover,
.tiny-delete:focus-visible {
  color: #fff;
  background: #b42318;
}

.week-delete {
  flex: 0 0 auto;
  padding-inline: 13px;
}

.week-delete:disabled {
  color: #8f8aa5;
  background: #efeff5;
  box-shadow: none;
  cursor: not-allowed;
  opacity: .55;
}

.week-delete:disabled:hover,
.week-delete:disabled:focus-visible {
  color: #8f8aa5;
  background: #efeff5;
}

.empty-state {
  padding: 18px;
  border-radius: 22px;
  color: var(--muted);
  background: #f7f7ff;
  font-weight: 800;
}

.month-archive {
  position: relative;
  overflow: visible;
  margin-top: 22px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(106,92,255,.12);
  background: rgba(255,255,255,.8);
  box-shadow: var(--shadow);
}

.export-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(180px, 230px) minmax(0, auto);
  gap: 10px;
  align-items: end;
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(106,92,255,.14);
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(240,239,255,.82));
}

.mobile-export-open,
.export-close {
  display: none;
}

.export-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: rgba(106,92,255,.1);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 900;
}

.export-intro {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(210px, .55fr) minmax(0, 1.45fr);
  column-gap: 18px;
  align-items: start;
}

.export-intro .eyebrow,
.export-intro h3 {
  grid-column: 1;
}

.export-intro p {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.export-panel select {
  min-height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid rgba(106,92,255,.28);
  border-radius: 16px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,247,255,.94)),
    linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 24px rgba(37,35,77,.08);
  font-weight: 850;
  appearance: none;
}

.export-panel h3 {
  margin: 2px 0 0;
  font-size: 1.05rem;
}

.export-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.export-panel label {
  margin: 0;
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.export-beta {
  grid-column: 1 / -1;
  padding: 8px 10px;
  border-radius: 13px;
  background: #fff8df;
  font-size: .76rem;
}

.balance-section.pwa-section {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 34px;
}

.pwa-section > .section-title,
.pwa-section > .pwa-install-card {
  grid-column: 1 / -1;
  width: 100%;
}

.pwa-section > .section-title {
  max-width: none;
  margin-bottom: 0;
}

.pwa-section > .section-title p {
  max-width: 850px;
}

.pwa-install-card {
  width: 100%;
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(106,92,255,.12);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
}

.pwa-local-note {
  margin: 0 0 18px;
  padding: 13px 15px;
  border-radius: 17px;
  color: #45425f;
  background: rgba(66,211,146,.11);
  font-size: .9rem;
  line-height: 1.45;
}

.pwa-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  width: min(100%, 340px);
  gap: 6px;
  padding: 6px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #f0efff;
}

.pwa-tabs button {
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.pwa-tabs button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
}

.pwa-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pwa-steps li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 18px;
  border-radius: 22px;
  background: #fbfbff;
  border: 1px solid rgba(106,92,255,.1);
}

.pwa-illustration {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, var(--purple), #398c9a);
  font-size: 1.15rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(106,92,255,.18);
}

.pwa-steps h3 {
  margin: 1px 0 6px;
  font-size: 1rem;
}

.pwa-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.holiday-control-panel {
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(106,92,255,.12);
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.holiday-action-row {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  justify-content: start;
  gap: 14px;
  align-items: end;
}

.holiday-state-select {
  display: grid;
  min-width: 0;
  max-width: 360px;
}

.holiday-state-select select {
  width: 100%;
  min-width: 0;
  padding-right: 2.7rem;
  border-color: rgba(106,92,255,.18);
  background:
    linear-gradient(135deg, rgba(106,92,255,.12), rgba(43,215,232,.12)),
    linear-gradient(45deg, transparent 50%, var(--purple) 50%) right 1.15rem center / 7px 7px no-repeat,
    linear-gradient(135deg, var(--purple) 50%, transparent 50%) right .78rem center / 7px 7px no-repeat,
    #fbfbff;
  appearance: none;
  -webkit-appearance: none;
  font-weight: 850;
}

.jump-button {
  margin-top: 12px;
}

.holiday-state-select span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 900;
}

.holiday-auto-note {
  margin: 0;
  padding: 11px 13px;
  border-radius: 16px;
  color: #4a4763;
  background: rgba(66,211,146,.1);
  border: 1px solid rgba(66,211,146,.18);
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.35;
}

.holiday-overview-status {
  margin: 0;
  padding: 11px 14px;
  border-radius: 18px;
  color: #4a4763;
  background: #f7f7ff;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.45;
}

.holiday-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.holiday-month {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.holiday-month h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

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

.holiday-compact-item {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 16px;
  border: 1px solid rgba(106,92,255,.12);
  background: rgba(255,255,255,.84);
}

.holiday-compact-item.is-public {
  border-color: rgba(255,177,59,.24);
  background: #fff7e8;
}

.holiday-compact-item.is-school {
  background: #f7f7ff;
}

.holiday-compact-item time {
  color: var(--purple);
  font-size: .78rem;
  font-weight: 900;
}

.holiday-compact-item strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.holiday-compact-item span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.holiday-compact-item em {
  position: relative;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--purple);
  font-size: .72rem;
  font-style: normal;
  font-weight: 900;
}

.holiday-compact-item.is-public em {
  background: var(--orange);
}

.holiday-info-chip {
  cursor: help;
}

.holiday-info-chip::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: min(260px, 70vw);
  padding: 10px 12px;
  border-radius: 14px;
  color: #fff;
  background: #25234d;
  box-shadow: 0 18px 42px rgba(37,35,77,.24);
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
  white-space: normal;
}

.holiday-info-chip:hover::after,
.holiday-info-chip:focus::after {
  opacity: 1;
  transform: translateY(0);
}

.section-title.compact {
  margin-bottom: 12px;
}

.section-title.compact h2 {
  font-size: 1.45rem;
}

.balance-section {
  display: grid;
  grid-template-columns: .82fr 1fr;
  gap: 22px;
  padding-bottom: 80px;
}

.balance-card {
  min-height: 250px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,177,59,.26), transparent 14rem),
    rgba(255,255,255,.86);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tips-grid article {
  border-radius: 24px;
  padding: 20px;
}

.tips-grid span {
  color: var(--pink);
  font-weight: 900;
}

.tips-grid h3 {
  margin: 8px 0 8px;
  font-size: 1.2rem;
  font-weight: 900;
}

.legal-explainer {
  padding-top: 28px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.legal-grid article,
.source-card,
.site-footer {
  border: 1px solid rgba(106,92,255,.12);
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.legal-grid article,
.source-card {
  border-radius: 24px;
  padding: 22px;
}

.legal-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 24px;
  color: #4a4763;
  background: rgba(43,215,232,.12);
  font-size: .95rem;
  line-height: 1.55;
  font-weight: 750;
}

.legal-note strong {
  color: #25234d;
  white-space: nowrap;
}

.legal-disclaimer {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 24px;
  color: #4a4763;
  background: rgba(247,247,255,.86);
  border: 1px solid rgba(106,92,255,.12);
}

.legal-grid h3,
.legal-disclaimer h3,
.source-card h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
  font-weight: 900;
}

.legal-grid p,
.legal-disclaimer p,
.source-card p {
  color: var(--muted);
  line-height: 1.62;
}

.legal-disclaimer p {
  max-width: 920px;
  font-size: .92rem;
}

.popover-backdrop .feedback-popover {
  width: min(720px, 100%);
  max-width: 720px;
  gap: 16px;
  padding: 28px;
  background:
    radial-gradient(circle at 90% 4%, rgba(255,207,90,.28), transparent 11rem),
    radial-gradient(circle at 8% 0, rgba(43,215,232,.18), transparent 12rem),
    #fff;
}

.feedback-popover .panel-head {
  align-items: flex-start;
  margin: -6px -6px 2px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(240,239,255,.9), rgba(255,249,237,.96));
}

.feedback-popover h2 {
  margin-bottom: 6px;
  font-size: clamp(1.9rem, 4vw, 2.55rem);
  line-height: 1.02;
}

.feedback-intro {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.feedback-popover label {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border-radius: 20px;
  background: rgba(247,247,255,.78);
  border: 1px solid rgba(106,92,255,.1);
}

.feedback-popover label span {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.feedback-popover input,
.feedback-popover select,
.feedback-popover textarea {
  width: 100%;
  border: 1px solid rgba(106,92,255,.22);
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 20px rgba(37,35,77,.05);
}

.feedback-popover input:focus,
.feedback-popover select:focus,
.feedback-popover textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(106,92,255,.13);
}

.feedback-popover textarea {
  min-height: 190px;
  padding: 16px;
  line-height: 1.55;
  resize: vertical;
}

.feedback-popover .popover-final-action {
  min-height: 54px;
  font-size: 1rem;
}

.thanks-popover {
  width: min(520px, 100%);
  text-align: center;
  overflow: hidden;
}

.thanks-popover h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
}

.thanks-popover p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.55;
}

.thanks-animation {
  position: relative;
  height: 172px;
  margin: -4px -4px 4px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(43,215,232,.18), rgba(255,249,237,.94)),
    radial-gradient(circle at 50% 98%, rgba(66,211,146,.28), transparent 42%);
  overflow: hidden;
}

.thanks-sun {
  position: absolute;
  top: 18px;
  right: 50px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffcf5a, #ff6b7c);
  box-shadow: 0 0 0 14px rgba(255,207,90,.16);
  animation: thanksSun 3.6s ease-in-out infinite;
}

.thanks-bike,
.thanks-glass,
.thanks-couch {
  position: absolute;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 14px 30px rgba(37,35,77,.12);
  font-size: 1.7rem;
}

.thanks-bike {
  left: 42px;
  bottom: 34px;
  animation: thanksBike 3.4s ease-in-out infinite;
}

.thanks-glass {
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  animation: thanksFloat 2.8s ease-in-out infinite;
}

.thanks-couch {
  right: 44px;
  bottom: 30px;
  animation: thanksFloat 3.2s ease-in-out infinite .25s;
}

@keyframes thanksSun {
  50% { transform: translateY(6px) scale(1.05); }
}

@keyframes thanksBike {
  0%, 100% { transform: translateX(-6px) rotate(-2deg); }
  50% { transform: translateX(10px) rotate(2deg); }
}

@keyframes thanksFloat {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}

.thanks-couch {
  transform: none;
}

.thanks-couch {
  animation-name: thanksCouch;
}

@keyframes thanksCouch {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
}

.source-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.source-card h3 {
  flex-basis: 100%;
}

.source-card a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--purple);
  background: #f1f0ff;
  text-decoration: none;
  font-weight: 900;
}

.source-card a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
  padding: 24px;
  border-radius: 28px;
}

.site-footer img {
  width: 280px;
  max-width: 70vw;
  height: auto;
}

.site-footer p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-actions button,
.footer-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 13px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: #f7f7ff;
  text-decoration: none;
  cursor: pointer;
  font-weight: 900;
}

.footer-actions button:hover,
.footer-actions a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.footer-actions .footer-calculator-link {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 9px 20px rgba(106,92,255,.2);
}

.footer-actions .footer-calculator-link:hover,
.footer-actions .footer-calculator-link:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.footer-actions .is-consent-rejected {
  color: #7c2d12;
  background: #fff2cf;
  box-shadow: inset 0 0 0 1px rgba(255,177,59,.34);
}

.footer-popover {
  width: min(640px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  overscroll-behavior: contain;
}

.footer-popover.is-privacy {
  width: min(860px, 100%);
}

.footer-popover p {
  color: var(--muted);
  line-height: 1.65;
}

.homepage-help {
  display: grid;
  gap: 14px;
}

.copy-url-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.copy-url-group input {
  font-weight: 800;
}

@media (max-width: 980px) {
  .month-week-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculator-shell,
  .form-columns,
  .week-layout,
  .holiday-action-row,
  .balance-section,
  .legal-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-actions {
    justify-content: flex-start;
  }

  .top-nav {
    display: none;
  }

  .legal-note {
    display: grid;
  }

  .legal-note strong {
    white-space: normal;
  }

  .week-title-row {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
  }

  .week-bottom-nav {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
  }

  .week-nav-button {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 680px) {
body {
    padding-top: 0;
  }

  .app-header {
    top: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: calc(100% - 20px);
    padding: 7px 8px;
    border-radius: 20px;
  }

  .brand img {
    width: min(210px, 56vw);
    max-height: 54px;
  }

  .menu-toggle {
    display: grid;
  }

  .top-nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    max-height: 0;
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: max-height .24s ease, opacity .2s ease, transform .2s ease, margin-top .2s ease, padding .2s ease;
  }

  body.mobile-menu-open .top-nav {
    max-height: 620px;
    margin-top: 8px;
    padding: 8px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .top-nav a,
  .nav-button,
  body.header-compact .top-nav a,
  body.header-compact .nav-button {
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    font-size: .95rem;
  }

  .nav-dropdown {
    display: grid;
    gap: 6px;
  }

  .nav-dropdown > .nav-button {
    display: none;
  }

  .nav-submenu {
    position: static;
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .app-header,
  .hero,
  .week-section,
  .balance-section,
  .legal-explainer,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding-top: 112px;
  }

  .calculator-panel,
  .result-panel,
  .chart-panel,
  .week-list,
  .balance-card {
    padding: 18px;
    border-radius: 22px;
  }

  .result-panel .mini-grid,
  .result-panel .overtime-hint,
  .result-panel .vacation-summary,
  .result-panel .legal-warning,
  .result-panel .mood-card {
    display: none;
  }

  .chart-panel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .month-archive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #weekChart,
  #monthChart {
    width: 760px;
    max-width: none;
  }

  .chart-panel .week-list,
  .week-bottom-nav,
  .month-week-list {
    display: none;
  }

  .mobile-export-open {
    display: inline-flex;
    justify-self: start;
    margin-top: 12px;
  }

  .export-panel {
    display: none;
  }

  body.export-panel-open .export-panel {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 120;
    display: grid;
    max-height: min(82vh, 680px);
    overflow: auto;
    padding: 44px 14px 14px;
    border-radius: 24px;
    box-shadow: 0 32px 90px rgba(37,35,77,.28);
  }

  body.export-panel-open .export-close {
    display: grid;
    place-items: center;
  }

  .field-grid,
  .step-one-inline,
  .daily-model-row,
  .primary-time-grid,
  .input-week-nav,
  .target-mode,
  .mini-grid,
  .vacation-summary,
  .week-overtime-strip,
  .tips-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .pwa-steps {
    grid-template-columns: 1fr;
  }

  .local-privacy-card ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weekday-picker {
    grid-template-columns: repeat(5, minmax(54px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .workday-checkboxes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .copy-url-group {
    grid-template-columns: 1fr;
  }

  .holiday-auto-note {
    max-width: none;
    min-width: 0;
  }

  .holiday-state-select {
    max-width: none;
  }

  .day-row {
    grid-template-columns: 42px 1fr;
  }

  .day-row > strong,
  .day-row .tiny-delete {
    justify-self: start;
    grid-column: 2;
  }

  .finish-time strong {
    font-size: clamp(2.45rem, 12vw, 3.6rem);
  }

  .finish-clock-row {
    align-items: center;
  }

  .leisure-burst {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    border-radius: 17px;
    font-size: 1.65rem;
  }

  .entry-time-grid {
    grid-template-columns: 1fr;
  }
}

.popover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(37,35,77,.42);
  backdrop-filter: blur(12px);
}

.popover-backdrop[hidden] {
  display: none;
}

.consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: end center;
  padding: 22px;
  background: rgba(37,35,77,.48);
  backdrop-filter: blur(12px);
}

.consent-backdrop[hidden] {
  display: none;
}

.consent-popover {
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(106,92,255,.16);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(37,35,77,.28);
}

.consent-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.consent-head h2 {
  margin: 5px 0 8px;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1.08;
}

.consent-popover > p {
  color: var(--muted);
  line-height: 1.55;
}

.consent-options,
#consentToolList {
  display: grid;
  gap: 10px;
}

.consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid rgba(106,92,255,.13);
  border-radius: 18px;
  background: #fbfbff;
}

.consent-option.is-required {
  background: rgba(66,211,146,.09);
  border-color: rgba(66,211,146,.24);
}

.consent-option strong {
  display: block;
  margin-bottom: 4px;
}

.consent-option p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.consent-option-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
  font-size: .76rem;
  font-weight: 800;
}

.consent-option-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #514c85;
  background: #efedff;
}

.consent-option-meta a {
  color: var(--purple);
}

.consent-switch {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.consent-switch input {
  width: 22px;
  height: 22px;
  accent-color: var(--purple);
}

.consent-required-label {
  padding: 7px 10px;
  border-radius: 999px;
  color: #227453;
  background: rgba(66,211,146,.16);
  font-size: .76rem;
  font-weight: 900;
  white-space: nowrap;
}

.consent-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.consent-actions button {
  width: 100%;
  min-height: 48px;
}

.consent-reject {
  color: var(--ink);
  border-color: rgba(37,35,77,.25);
  background: #fff;
}

.consent-footnote {
  margin: 12px 0 0;
  text-align: center;
  font-size: .78rem;
}

.consent-empty {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 15px;
  background: #f7f7ff;
  font-size: .88rem;
}

.entry-popover {
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(106,92,255,.16);
  background: #fff;
  box-shadow: 0 28px 80px rgba(37,35,77,.25);
}

.popover-backdrop .footer-popover {
  width: min(640px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  overscroll-behavior: contain;
}

.popover-backdrop.is-privacy .footer-popover {
  width: min(860px, 100%);
}

#entryPopover .entry-popover {
  width: min(680px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  overscroll-behavior: contain;
}

.correction-popover .panel-head {
  flex-wrap: nowrap;
  align-items: flex-start;
}

.correction-popover .panel-head > div {
  flex: 1 1 auto;
  min-width: 0;
}

.correction-popover .panel-head .icon-button {
  flex: 0 0 38px;
}

.entry-time-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.entry-time-grid > label:last-child {
  grid-column: 1 / -1;
}

.entry-date-display {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .9rem;
}

.compact-time-shell {
  min-height: 58px;
  padding: 0 10px;
  border-width: 1px;
  border-color: rgba(106,92,255,.18);
  background: #fbfbff;
}

.compact-time-shell input {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1.15rem;
  font-weight: 900;
  box-shadow: none;
}

.correction-popover.is-correction .popover-weekdays {
  display: none;
}

.correction-popover.is-correction .manual-entry-field {
  display: none;
}

@media (max-width: 700px) {
  .step-one-inline {
    grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
    gap: 6px;
  }

  .step-one-inline p {
    max-width: 170px;
  }

  .work-model-soft-trigger {
    max-width: 128px;
    white-space: normal;
    line-height: 1.15;
  }

  .input-week-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .input-week-nav .ghost-action {
    padding-inline: 5px;
    font-size: .67rem;
  }

  .weekday-picker {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 54px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 3px;
  }

  .calendar-week-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .calendar-week-head > div {
    flex: 1 1 100%;
    min-width: 0;
  }

  .calendar-week-head .week-delete {
    max-width: 100%;
  }

  .month-week-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .month-day-grid,
  .month-day-grid .week-day-card {
    width: 100%;
    max-width: 100%;
  }

  .export-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .export-intro .eyebrow,
  .export-intro h3,
  .export-intro p {
    grid-column: 1;
    grid-row: auto;
  }

  .local-privacy-card {
    padding: 14px;
  }

  .privacy-facts {
    gap: 8px;
    margin-top: 10px;
  }

  .privacy-facts li {
    min-height: 48px;
    padding: 8px;
  }

  .hero-copy .local-privacy-card p {
    margin-top: 9px;
    padding-top: 8px;
  }

  .entry-time-grid {
    grid-template-columns: 1fr;
  }

  .entry-time-grid > label:last-child {
    grid-column: auto;
  }

  .day-actions {
    grid-template-columns: 1fr;
  }

  .consent-backdrop {
    align-items: end;
    padding: 10px;
  }

  .consent-popover {
    max-height: calc(100vh - 20px);
    padding: 20px;
    border-radius: 22px;
  }

  .consent-option {
    grid-template-columns: 1fr auto;
    padding: 13px;
  }

  .consent-actions {
    grid-template-columns: 1fr;
  }
}

.work-model-popover {
  width: min(640px, 100%);
}

.popover-weekdays {
  margin-bottom: 0;
}

.popover-weekdays button {
  min-height: 58px;
}

.entry-popover .panel-head {
  margin-bottom: 0;
}

.popover-final-action {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--ink);
  background: #f7f7ff;
  font-size: 1.3rem;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
