:root {
  --apple-red: #df2e2e;
  --apple-red-deep: #a21212;
  --apple-green: #4ea71c;
  --apple-green-light: #a6e34f;
  --paper: #fefdf9;
  --ink: #1e2618;
  --muted: #607064;
  --border: rgba(34, 55, 22, 0.14);
  --bg-start: #fff8f3;
  --bg-end: #f2ffe9;
  --header-start: rgba(220, 44, 44, 0.9);
  --header-end: rgba(84, 170, 31, 0.85);
  --drawer-bg: #fefdf9;
  --drawer-link-bg: rgba(78, 167, 28, 0.08);
  --drawer-link-active: rgba(223, 46, 46, 0.14);
  --field-bg: #ffffff;
  --field-text: #1e2618;
  --field-border: rgba(34, 55, 22, 0.18);
  --btn-bg: linear-gradient(120deg, var(--apple-red) 0%, var(--apple-green) 100%);
  --btn-text: #ffffff;
  --btn-danger-bg: linear-gradient(120deg, #7f0f0f, #c12727);
  --btn-hover-shadow: 0 8px 16px rgba(61, 87, 38, 0.16);
  --btn-ghost-bg: transparent;
  --switch-track-off: rgba(120, 132, 122, 0.45);
  --switch-track-on: linear-gradient(120deg, var(--apple-red), var(--apple-green));
  --switch-thumb: #ffffff;
}

html[data-theme='siliPommes'] {
  color-scheme: light;
}

html[data-theme='light'] {
  --paper: #ffffff;
  --ink: #1d232a;
  --muted: #5e6976;
  --border: rgba(37, 52, 71, 0.16);
  --bg-start: #f8fbff;
  --bg-end: #eef4ff;
  --header-start: rgba(67, 120, 247, 0.86);
  --header-end: rgba(69, 184, 171, 0.82);
  --drawer-bg: #ffffff;
  --drawer-link-bg: rgba(69, 184, 171, 0.08);
  --drawer-link-active: rgba(67, 120, 247, 0.14);
  --field-bg: #ffffff;
  --field-text: #1d232a;
  --field-border: rgba(37, 52, 71, 0.24);
  --btn-bg: linear-gradient(120deg, #4378f7 0%, #45b8ab 100%);
  --btn-text: #ffffff;
  --btn-danger-bg: linear-gradient(120deg, #8f1f1f, #d14545);
  --btn-hover-shadow: 0 8px 16px rgba(46, 73, 104, 0.2);
  --btn-ghost-bg: transparent;
  --switch-track-off: rgba(109, 127, 151, 0.46);
  --switch-track-on: linear-gradient(120deg, #4378f7, #45b8ab);
  --switch-thumb: #ffffff;
}

html[data-theme='starwars'] {
  color-scheme: dark;
  --apple-red: #f4b400;
  --apple-green: #3fa9f5;
  --apple-green-light: #73dbff;
  --paper: #161a24;
  --ink: #f8f5d8;
  --muted: #c0b98b;
  --border: rgba(255, 228, 120, 0.22);
  --bg-start: #05070d;
  --bg-end: #131a2a;
  --header-start: rgba(244, 180, 0, 0.33);
  --header-end: rgba(63, 169, 245, 0.4);
  --drawer-bg: #111728;
  --drawer-link-bg: rgba(255, 228, 120, 0.1);
  --drawer-link-active: rgba(244, 180, 0, 0.22);
  --field-bg: #1b2234;
  --field-text: #f8f5d8;
  --field-border: rgba(255, 228, 120, 0.28);
  --btn-bg: linear-gradient(120deg, #f4b400 0%, #f26a2d 100%);
  --btn-text: #1b1403;
  --btn-danger-bg: linear-gradient(120deg, #8b1e1e, #cc3d2b);
  --btn-hover-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  --btn-ghost-bg: rgba(255, 255, 255, 0.06);
  --switch-track-off: rgba(162, 170, 196, 0.35);
  --switch-track-on: linear-gradient(120deg, #f4b400, #3fa9f5);
  --switch-thumb: #fff7d2;
}

html[data-theme='pop'] {
  color-scheme: light;
  --apple-red: #ff2f2f;
  --apple-green: #00cf6a;
  --apple-green-light: #ffe14a;
  --paper: #fffef7;
  --ink: #0f1115;
  --muted: #2f3642;
  --border: rgba(16, 18, 23, 0.28);
  --bg-start: #ffe14a;
  --bg-end: #ffd73a;
  --header-start: rgba(255, 47, 47, 0.92);
  --header-end: rgba(25, 59, 255, 0.9);
  --drawer-bg: #fff7c8;
  --drawer-link-bg: rgba(255, 255, 255, 0.45);
  --drawer-link-active: rgba(0, 207, 106, 0.26);
  --field-bg: #ffffff;
  --field-text: #111318;
  --field-border: rgba(16, 18, 23, 0.3);
  --btn-bg: linear-gradient(120deg, #ff2f2f 0%, #1a3bff 55%, #00cf6a 100%);
  --btn-text: #ffffff;
  --btn-danger-bg: linear-gradient(120deg, #151515, #3b3b3b);
  --btn-hover-shadow: 0 8px 0 rgba(16, 18, 23, 0.22);
  --btn-ghost-bg: #ffffff;
  --switch-track-off: rgba(15, 17, 21, 0.34);
  --switch-track-on: linear-gradient(120deg, #ff2f2f, #1a3bff);
  --switch-thumb: #ffffff;
}

html[data-theme='superMarioBros'] {
  color-scheme: light;
  --apple-red: #e52521;
  --apple-green: #1f9b2f;
  --apple-green-light: #65d95d;
  --paper: #fef7ea;
  --ink: #1d1b1a;
  --muted: #5a4a36;
  --border: rgba(81, 50, 20, 0.35);
  --bg-start: #72c6ff;
  --bg-end: #b7e8ff;
  --header-start: rgba(229, 37, 33, 0.94);
  --header-end: rgba(255, 176, 30, 0.9);
  --drawer-bg: #fff0ca;
  --drawer-link-bg: rgba(255, 255, 255, 0.55);
  --drawer-link-active: rgba(31, 155, 47, 0.26);
  --field-bg: #fffef7;
  --field-text: #1d1b1a;
  --field-border: rgba(81, 50, 20, 0.38);
  --btn-bg: linear-gradient(180deg, #27b43a 0%, #1f9b2f 100%);
  --btn-text: #ffffff;
  --btn-danger-bg: linear-gradient(180deg, #ef3b31 0%, #ce261e 100%);
  --btn-hover-shadow: 0 6px 0 rgba(81, 50, 20, 0.34);
  --btn-ghost-bg: rgba(255, 255, 255, 0.78);
  --switch-track-off: rgba(118, 100, 74, 0.42);
  --switch-track-on: linear-gradient(120deg, #27b43a, #ffb01e);
  --switch-thumb: #fffef7;
}

html[data-theme='concert'] {
  color-scheme: dark;
  --apple-red: #f44336;
  --apple-green: #4fc3f7;
  --apple-green-light: #a8e8ff;
  --paper: #1a1212;
  --ink: #f9ede2;
  --muted: #cfb7aa;
  --border: rgba(255, 190, 150, 0.24);
  --bg-start: #090405;
  --bg-end: #1a0d0f;
  --header-start: rgba(76, 19, 22, 0.9);
  --header-end: rgba(197, 43, 38, 0.86);
  --drawer-bg: #140d0e;
  --drawer-link-bg: rgba(255, 180, 120, 0.1);
  --drawer-link-active: rgba(244, 67, 54, 0.28);
  --field-bg: #25181a;
  --field-text: #f9ede2;
  --field-border: rgba(255, 190, 150, 0.28);
  --btn-bg: linear-gradient(120deg, #c62828 0%, #ff7043 44%, #3fa8ff 100%);
  --btn-text: #fff8e8;
  --btn-danger-bg: linear-gradient(120deg, #6a1212, #b71c1c);
  --btn-hover-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  --btn-ghost-bg: rgba(255, 255, 255, 0.06);
  --switch-track-off: rgba(168, 133, 117, 0.45);
  --switch-track-on: linear-gradient(120deg, #c62828, #ffca28);
  --switch-thumb: #fff6dd;
}

html[data-theme='obsidian'] {
  color-scheme: dark;
  --apple-red: #d4af37;
  --apple-green: #c9a227;
  --apple-green-light: #f0d060;
  --paper: #111014;
  --ink: #f0ead6;
  --muted: #9e9480;
  --border: rgba(212, 175, 55, 0.18);
  --bg-start: #0a090c;
  --bg-end: #1a1620;
  --header-start: rgba(180, 140, 20, 0.4);
  --header-end: rgba(212, 175, 55, 0.32);
  --drawer-bg: #0e0d11;
  --drawer-link-bg: rgba(212, 175, 55, 0.08);
  --drawer-link-active: rgba(212, 175, 55, 0.22);
  --field-bg: #1a1820;
  --field-text: #f0ead6;
  --field-border: rgba(212, 175, 55, 0.22);
  --btn-bg: linear-gradient(120deg, #8b6914 0%, #d4af37 60%, #f0d060 100%);
  --btn-text: #0a090c;
  --btn-danger-bg: linear-gradient(120deg, #5a1010, #a01818);
  --btn-hover-shadow: 0 8px 24px rgba(212, 175, 55, 0.28);
  --btn-ghost-bg: rgba(212, 175, 55, 0.07);
  --switch-track-off: rgba(120, 112, 90, 0.5);
  --switch-track-on: linear-gradient(120deg, #8b6914, #d4af37);
  --switch-thumb: #f0ead6;
}

html[data-theme='terminal'] {
  color-scheme: dark;
  --apple-red: #33ff33;
  --apple-green: #00cc00;
  --apple-green-light: #66ff66;
  --paper: #0c0f0a;
  --ink: #33ff33;
  --muted: #1a8c1a;
  --border: rgba(51, 255, 51, 0.18);
  --bg-start: #050705;
  --bg-end: #080b08;
  --header-start: rgba(0, 80, 0, 0.92);
  --header-end: rgba(0, 120, 0, 0.86);
  --drawer-bg: #080b08;
  --drawer-link-bg: rgba(51, 255, 51, 0.07);
  --drawer-link-active: rgba(51, 255, 51, 0.18);
  --field-bg: #0a0d0a;
  --field-text: #33ff33;
  --field-border: rgba(51, 255, 51, 0.22);
  --btn-bg: linear-gradient(120deg, #004d00 0%, #00aa00 100%);
  --btn-text: #33ff33;
  --btn-danger-bg: linear-gradient(120deg, #330000, #660000);
  --btn-hover-shadow: 0 0 16px rgba(51, 255, 51, 0.35);
  --btn-ghost-bg: rgba(51, 255, 51, 0.06);
  --switch-track-off: rgba(0, 80, 0, 0.5);
  --switch-track-on: linear-gradient(120deg, #004d00, #00cc00);
  --switch-thumb: #33ff33;
}

html[data-theme='slate'] {
  color-scheme: dark;
  --apple-red: #20b2aa;
  --apple-green: #4682b4;
  --apple-green-light: #87ceeb;
  --paper: #1a2332;
  --ink: #e8f4f8;
  --muted: #7aaec9;
  --border: rgba(135, 206, 235, 0.16);
  --bg-start: #0e1720;
  --bg-end: #1a2540;
  --header-start: rgba(32, 178, 170, 0.6);
  --header-end: rgba(70, 130, 180, 0.55);
  --drawer-bg: #121d2c;
  --drawer-link-bg: rgba(135, 206, 235, 0.07);
  --drawer-link-active: rgba(32, 178, 170, 0.2);
  --field-bg: #1e2b3c;
  --field-text: #e8f4f8;
  --field-border: rgba(135, 206, 235, 0.2);
  --btn-bg: linear-gradient(120deg, #20b2aa 0%, #4682b4 100%);
  --btn-text: #ffffff;
  --btn-danger-bg: linear-gradient(120deg, #5a1e2a, #8b2a3a);
  --btn-hover-shadow: 0 8px 20px rgba(32, 178, 170, 0.22);
  --btn-ghost-bg: rgba(135, 206, 235, 0.07);
  --switch-track-off: rgba(80, 120, 160, 0.45);
  --switch-track-on: linear-gradient(120deg, #20b2aa, #4682b4);
  --switch-thumb: #e8f4f8;
}

html[data-theme='synthwave'] {
  color-scheme: dark;
  --apple-red: #ff2d8a;
  --apple-green: #b428f5;
  --apple-green-light: #ff79e8;
  --paper: #1a0f2e;
  --ink: #f8e8ff;
  --muted: #c77dff;
  --border: rgba(200, 100, 255, 0.22);
  --bg-start: #0d0518;
  --bg-end: #1a0a30;
  --header-start: rgba(180, 40, 245, 0.45);
  --header-end: rgba(255, 45, 138, 0.4);
  --drawer-bg: #110820;
  --drawer-link-bg: rgba(200, 100, 255, 0.08);
  --drawer-link-active: rgba(255, 45, 138, 0.22);
  --field-bg: #1f1035;
  --field-text: #f8e8ff;
  --field-border: rgba(200, 100, 255, 0.26);
  --btn-bg: linear-gradient(120deg, #b428f5 0%, #ff2d8a 100%);
  --btn-text: #ffffff;
  --btn-danger-bg: linear-gradient(120deg, #4a0a1a, #8a1030);
  --btn-hover-shadow: 0 0 20px rgba(200, 50, 255, 0.38);
  --btn-ghost-bg: rgba(200, 100, 255, 0.07);
  --switch-track-off: rgba(140, 60, 180, 0.45);
  --switch-track-on: linear-gradient(120deg, #b428f5, #ff2d8a);
  --switch-thumb: #f8e8ff;
}

html[data-theme='verger'] {
  color-scheme: dark;
  --apple-red: #7ed321;
  --apple-green: #3d8b1a;
  --apple-green-light: #b4e85c;
  --paper: #0f1e0a;
  --ink: #d6f5c0;
  --muted: #72a84a;
  --border: rgba(120, 200, 60, 0.2);
  --bg-start: #060e03;
  --bg-end: #0e1c08;
  --header-start: rgba(34, 85, 12, 0.88);
  --header-end: rgba(80, 160, 20, 0.7);
  --drawer-bg: #0b160a;
  --drawer-link-bg: rgba(120, 200, 60, 0.08);
  --drawer-link-active: rgba(126, 211, 33, 0.2);
  --field-bg: #121e0c;
  --field-text: #d6f5c0;
  --field-border: rgba(120, 200, 60, 0.22);
  --btn-bg: linear-gradient(120deg, #2d6b12 0%, #7ed321 100%);
  --btn-text: #060e03;
  --btn-danger-bg: linear-gradient(120deg, #4a1a06, #7a2a0a);
  --btn-hover-shadow: 0 8px 20px rgba(80, 180, 20, 0.28);
  --btn-ghost-bg: rgba(120, 200, 60, 0.07);
  --switch-track-off: rgba(50, 100, 20, 0.5);
  --switch-track-on: linear-gradient(120deg, #2d6b12, #7ed321);
  --switch-thumb: #d6f5c0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background: linear-gradient(145deg, var(--bg-start) 0%, var(--bg-end) 100%);
  overflow-x: hidden;
}

body.drawer-open {
  overflow: hidden;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.45;
}

.bg-orb-red {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--apple-red), transparent 70%);
  top: -90px;
  left: -70px;
}

.bg-orb-green {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--apple-green-light), transparent 72%);
  bottom: -100px;
  right: -90px;
}

.shell-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  backdrop-filter: blur(10px);
  background: linear-gradient(100deg, var(--header-start), var(--header-end));
  color: white;
  position: sticky;
  top: 0;
  z-index: 40;
}

.shell-brand h1 {
  margin: 0;
  font-size: 1rem;
}

.shell-brand {
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

@keyframes heartbeat {
  0%   { transform: scale(1); }
  14%  { transform: scale(1.18); }
  28%  { transform: scale(1); }
  42%  { transform: scale(1.12); }
  56%  { transform: scale(1); }
  100% { transform: scale(1); }
}

.shell-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
  animation: heartbeat 1.6s ease-in-out infinite;
  transform-origin: center;
}

.burger-btn {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.2);
  padding: 0;
  display: grid;
  place-items: center;
}

.burger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: white;
  margin: 2px 0;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 45;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-hover-zone {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 100vh;
  z-index: 44;
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(320px, 90vw);
  background: var(--drawer-bg);
  border: 1px solid var(--border);
  z-index: 50;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.8rem;
  padding: 0.8rem;
  transform: translateX(-104%);
  transition: transform 0.22s ease;
}

.drawer.right {
  right: 0;
  left: auto;
  transform: translateX(104%);
}

.drawer.left {
  left: 0;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-head h3 {
  margin: 0;
}

.drawer-nav {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.drawer-group {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
}

.drawer-group > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.55rem 0.7rem;
  font-weight: 800;
}

.drawer-group > summary::-webkit-details-marker {
  display: none;
}

.drawer-group > summary::after {
  content: '▾';
  float: right;
  transition: transform 0.18s ease;
}

.drawer-group[open] > summary::after {
  transform: rotate(180deg);
}

.drawer-group-links {
  display: grid;
  gap: 0.45rem;
  padding: 0 0.5rem 0.5rem;
}

.drawer-nav a {
  display: block;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  background: var(--drawer-link-bg);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.drawer-nav a.active {
  background: var(--drawer-link-active);
}

.drawer-nav-link {
  margin-bottom: 0.5rem;
}

/* Dashboard widget grid */
.dashboard-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 1rem;
  align-items: start;
}
.dashboard-widget { min-width: 0; }
.dashboard-widget--sm  { grid-column: span 1; }
.dashboard-widget--md  { grid-column: span 2; }
.dashboard-widget--lg  { grid-column: span 3; }
.dashboard-widget--xl  { grid-column: span 4; }
.dashboard-widget .stats-grid { margin: 0; }
.dashboard-widget .card,
.dashboard-widget .weather-card { margin: 0; }
.dashboard-widget .weather-card { height: 100%; box-sizing: border-box; }

@media (max-width: 900px) {
  .dashboard-widgets { grid-template-columns: repeat(2, 1fr); }
  .dashboard-widget--lg,
  .dashboard-widget--xl  { grid-column: span 2; }
}
@media (max-width: 600px) {
  .dashboard-widgets { grid-template-columns: 1fr; }
  .dashboard-widget--sm,
  .dashboard-widget--md,
  .dashboard-widget--lg,
  .dashboard-widget--xl  { grid-column: span 1; }
}

.drawer-footer {
  margin: 0;
  display: grid;
}

.drawer-footer button {
  width: 100%;
}

.theme-list {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.theme-option {
  justify-content: flex-start;
  min-height: 44px;
  gap: 0.65rem;
  width: 100%;
  padding: 0.45rem 0.55rem;
}

.theme-option[data-theme-value='siliPommes'] {
  background: linear-gradient(135deg, #fff8f3 0%, #f2ffe9 100%);
  border: 1px solid rgba(34, 55, 22, 0.18);
  color: #1e2618;
}

.theme-option[data-theme-value='light'] {
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
  border: 1px solid rgba(37, 52, 71, 0.18);
  color: #1d232a;
}

.theme-option[data-theme-value='starwars'] {
  background: linear-gradient(135deg, #0d1322 0%, #172136 56%, #2a1d0f 100%);
  border: 1px solid rgba(255, 228, 120, 0.32);
  color: #f8f5d8;
}

.theme-option[data-theme-value='pop'] {
  background:
    radial-gradient(circle at 14% 24%, rgba(255, 47, 47, 0.98) 0 18%, transparent 19%),
    radial-gradient(circle at 85% 22%, rgba(0, 207, 106, 0.98) 0 17%, transparent 18%),
    radial-gradient(circle at 23% 80%, rgba(26, 59, 255, 0.95) 0 18%, transparent 19%),
    linear-gradient(130deg, #ffe14a 0%, #ffd73a 100%);
  border: 1px solid rgba(0, 0, 0, 0.36);
  color: #0f1115;
}

.theme-option[data-theme-value='superMarioBros'] {
  background:
    radial-gradient(circle at 20% 28%, rgba(255, 255, 255, 0.95) 0 10%, transparent 11%),
    radial-gradient(circle at 62% 24%, rgba(255, 255, 255, 0.95) 0 9%, transparent 10%),
    linear-gradient(180deg, #72c6ff 0 62%, #7fd15a 62% 100%);
  border: 2px solid rgba(81, 50, 20, 0.5);
  color: #1d1b1a;
}

.theme-option[data-theme-value='concert'] {
  background:
    radial-gradient(circle at 18% 72%, rgba(244, 67, 54, 0.48) 0 20%, transparent 21%),
    radial-gradient(circle at 80% 24%, rgba(255, 213, 79, 0.52) 0 21%, transparent 22%),
    linear-gradient(145deg, #130b0c 0%, #321417 56%, #0f0708 100%);
  border: 1px solid rgba(255, 190, 150, 0.36);
  color: #ffe9d3;
}

.theme-option[data-theme-value='obsidian'] {
  background: linear-gradient(135deg, #0a090c 0%, #1a1620 60%, #221c10 100%);
  border: 1px solid rgba(212, 175, 55, 0.38);
  color: #f0ead6;
}

.theme-option[data-theme-value='terminal'] {
  background: #080b08;
  border: 1px solid rgba(51, 255, 51, 0.4);
  color: #33ff33;
  font-family: monospace;
}

.theme-option[data-theme-value='slate'] {
  background: linear-gradient(135deg, #0e1720 0%, #1a2540 100%);
  border: 1px solid rgba(135, 206, 235, 0.3);
  color: #e8f4f8;
}

.theme-option[data-theme-value='synthwave'] {
  background:
    radial-gradient(circle at 20% 50%, rgba(180, 40, 245, 0.5) 0 30%, transparent 31%),
    radial-gradient(circle at 80% 50%, rgba(255, 45, 138, 0.5) 0 30%, transparent 31%),
    linear-gradient(135deg, #0d0518 0%, #1a0a30 100%);
  border: 1px solid rgba(200, 100, 255, 0.5);
  color: #f8e8ff;
}

.theme-option[data-theme-value='verger'] {
  background: linear-gradient(135deg, #060e03 0%, #0e1c08 60%, #1a2e0c 100%);
  border: 1px solid rgba(120, 200, 60, 0.38);
  color: #d6f5c0;
}

.theme-preview {
  width: 50px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.theme-preview.siliPommes {
  background: linear-gradient(145deg, #fff8f3 0%, #f2ffe9 100%);
}

.theme-preview.light {
  background: linear-gradient(145deg, #f8fbff 0%, #eef4ff 100%);
}

.theme-preview.starwars {
  background: linear-gradient(145deg, #05070d 0%, #131a2a 64%, #2f1f11 100%);
}

.theme-preview.pop {
  background:
    radial-gradient(circle at 12% 24%, #ff2f2f 0 17%, transparent 18%),
    radial-gradient(circle at 84% 24%, #00cf6a 0 17%, transparent 18%),
    radial-gradient(circle at 45% 76%, #1a3bff 0 16%, transparent 17%),
    linear-gradient(145deg, #ffe14a 0%, #ffd73a 100%);
}

.theme-preview.superMarioBros {
  background:
    radial-gradient(circle at 18% 30%, #ffffff 0 10%, transparent 11%),
    radial-gradient(circle at 66% 24%, #ffffff 0 10%, transparent 11%),
    linear-gradient(180deg, #72c6ff 0 62%, #7fd15a 62% 100%);
}

.theme-preview.concert {
  background:
    radial-gradient(circle at 16% 72%, rgba(244, 67, 54, 0.58) 0 22%, transparent 23%),
    radial-gradient(circle at 82% 22%, rgba(255, 213, 79, 0.62) 0 23%, transparent 24%),
    linear-gradient(145deg, #130b0c 0%, #321417 56%, #0f0708 100%);
}

.theme-preview.obsidian {
  background: linear-gradient(145deg, #0a090c 0%, #1a1620 60%, #221c10 100%);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: inset 0 0 12px rgba(212, 175, 55, 0.12);
}

.theme-preview.terminal {
  background: #080b08;
  border-color: rgba(51, 255, 51, 0.6);
  box-shadow: inset 0 0 8px rgba(51, 255, 51, 0.15), 0 0 6px rgba(51, 255, 51, 0.2);
}

.theme-preview.slate {
  background: linear-gradient(145deg, #0e1720 0%, #1a2540 100%);
  border-color: rgba(135, 206, 235, 0.4);
}

.theme-preview.synthwave {
  background:
    radial-gradient(circle at 25% 50%, rgba(180, 40, 245, 0.7) 0 35%, transparent 36%),
    radial-gradient(circle at 75% 50%, rgba(255, 45, 138, 0.7) 0 35%, transparent 36%),
    linear-gradient(145deg, #0d0518 0%, #1a0a30 100%);
  border-color: rgba(200, 100, 255, 0.6);
  box-shadow: inset 0 0 10px rgba(180, 40, 245, 0.2), 0 0 8px rgba(255, 45, 138, 0.15);
}

.theme-preview.verger {
  background: linear-gradient(145deg, #060e03 0%, #122008 60%, #1e3010 100%);
  border-color: rgba(120, 200, 60, 0.5);
  box-shadow: inset 0 0 8px rgba(100, 180, 40, 0.12);
}

.theme-label {
  font-weight: 700;
  color: inherit;
}

html[data-theme='siliPommes'] .theme-option[data-theme-value='siliPommes'],
html[data-theme='light'] .theme-option[data-theme-value='light'],
html[data-theme='starwars'] .theme-option[data-theme-value='starwars'],
html[data-theme='pop'] .theme-option[data-theme-value='pop'],
html[data-theme='superMarioBros'] .theme-option[data-theme-value='superMarioBros'],
html[data-theme='concert'] .theme-option[data-theme-value='concert'],
html[data-theme='obsidian'] .theme-option[data-theme-value='obsidian'],
html[data-theme='terminal'] .theme-option[data-theme-value='terminal'],
html[data-theme='slate'] .theme-option[data-theme-value='slate'],
html[data-theme='synthwave'] .theme-option[data-theme-value='synthwave'],
html[data-theme='verger'] .theme-option[data-theme-value='verger'] {
  box-shadow: inset 0 0 0 2px rgba(78, 167, 28, 0.45);
}

/* === OBSIDIAN — or noir, typographie fine === */
html[data-theme='obsidian'] body {
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0.01em;
}

html[data-theme='obsidian'] .shell-topbar {
  background: linear-gradient(100deg, rgba(10, 9, 12, 0.98), rgba(34, 28, 16, 0.96));
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  backdrop-filter: blur(18px);
}

html[data-theme='obsidian'] .shell-brand h1 {
  background: linear-gradient(90deg, #d4af37, #f0d060, #c9a227);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html[data-theme='obsidian'] .card {
  background: rgba(20, 18, 26, 0.9);
  border-color: rgba(212, 175, 55, 0.16);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(212, 175, 55, 0.1);
}

html[data-theme='obsidian'] .drawer {
  background: #0e0d11;
  border-color: rgba(212, 175, 55, 0.18);
}

html[data-theme='obsidian'] h2,
html[data-theme='obsidian'] h3 {
  font-weight: 800;
  letter-spacing: 0.02em;
}

html[data-theme='obsidian'] .bg-orb {
  display: none;
}

/* === TERMINAL — phosphore vert, monospace === */
html[data-theme='terminal'] body {
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: 0.95rem;
}

html[data-theme='terminal'] body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
}

html[data-theme='terminal'] .shell-topbar {
  background: rgba(0, 60, 0, 0.92);
  border-bottom: 1px solid rgba(51, 255, 51, 0.3);
  font-family: monospace;
}

html[data-theme='terminal'] .shell-brand h1 {
  color: #33ff33;
  font-family: monospace;
  text-shadow: 0 0 8px rgba(51, 255, 51, 0.6);
}

html[data-theme='terminal'] .card {
  background: rgba(10, 14, 10, 0.95);
  border-color: rgba(51, 255, 51, 0.18);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(51, 255, 51, 0.06);
}

html[data-theme='terminal'] .drawer {
  background: #080b08;
  border-color: rgba(51, 255, 51, 0.22);
  border-radius: 0;
}

html[data-theme='terminal'] button,
html[data-theme='terminal'] .button-link {
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: monospace;
}

html[data-theme='terminal'] button:hover,
html[data-theme='terminal'] .button-link:hover {
  box-shadow: 0 0 14px rgba(51, 255, 51, 0.4);
}

html[data-theme='terminal'] .bg-orb {
  display: none;
}

html[data-theme='terminal'] h2,
html[data-theme='terminal'] h3 {
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

html[data-theme='terminal'] .badge-ok {
  text-shadow: 0 0 6px currentColor;
}

/* === SLATE — gris ardoise, cyan glacier === */
html[data-theme='slate'] body {
  font-family: 'Manrope', sans-serif;
}

html[data-theme='slate'] .shell-topbar {
  background: linear-gradient(100deg, rgba(14, 23, 32, 0.97), rgba(26, 37, 64, 0.93));
  border-bottom: 1px solid rgba(32, 178, 170, 0.28);
  backdrop-filter: blur(16px);
}

html[data-theme='slate'] .shell-brand h1 {
  background: linear-gradient(90deg, #87ceeb, #20b2aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html[data-theme='slate'] .card {
  background: rgba(26, 35, 50, 0.9);
  border-color: rgba(135, 206, 235, 0.13);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

html[data-theme='slate'] .drawer {
  background: #121d2c;
  border-color: rgba(135, 206, 235, 0.16);
}

html[data-theme='slate'] .bg-orb-red {
  background: rgba(32, 178, 170, 0.5);
}

html[data-theme='slate'] .bg-orb-green {
  background: rgba(70, 130, 180, 0.45);
}

/* === SYNTHWAVE — violet profond, néon rose === */
html[data-theme='synthwave'] body {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
}

html[data-theme='synthwave'] body::before {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40vh;
  z-index: -1;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(180, 40, 245, 0.1) 40px,
      rgba(180, 40, 245, 0.1) 41px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(255, 45, 138, 0.08) 40px,
      rgba(255, 45, 138, 0.08) 41px
    );
  transform: perspective(400px) rotateX(55deg);
  transform-origin: bottom;
}

html[data-theme='synthwave'] .shell-topbar {
  background: linear-gradient(100deg, rgba(13, 5, 24, 0.97), rgba(26, 10, 48, 0.94));
  border-bottom: 1px solid rgba(200, 100, 255, 0.3);
  backdrop-filter: blur(16px);
}

html[data-theme='synthwave'] .shell-brand h1 {
  background: linear-gradient(90deg, #ff2d8a, #b428f5, #ff79e8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  font-family: 'Orbitron', sans-serif;
}

html[data-theme='synthwave'] .card {
  background: rgba(26, 15, 46, 0.9);
  border-color: rgba(200, 100, 255, 0.18);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(180, 40, 245, 0.08);
}

html[data-theme='synthwave'] .drawer {
  background: #110820;
  border-color: rgba(200, 100, 255, 0.22);
}

html[data-theme='synthwave'] h2,
html[data-theme='synthwave'] h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
}

html[data-theme='synthwave'] button,
html[data-theme='synthwave'] .button-link {
  border-radius: 4px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

html[data-theme='synthwave'] button:hover,
html[data-theme='synthwave'] .button-link:hover {
  box-shadow: 0 0 18px rgba(180, 40, 245, 0.45), 0 0 36px rgba(255, 45, 138, 0.2);
}

html[data-theme='synthwave'] .bg-orb-red {
  background: rgba(255, 45, 138, 0.55);
}

html[data-theme='synthwave'] .bg-orb-green {
  background: rgba(180, 40, 245, 0.55);
}

/* === VERGER — forêt sombre, vert électrique === */
html[data-theme='verger'] body {
  font-family: 'Manrope', sans-serif;
}

html[data-theme='verger'] .shell-topbar {
  background: linear-gradient(100deg, rgba(6, 14, 3, 0.97), rgba(20, 40, 10, 0.92));
  border-bottom: 1px solid rgba(120, 200, 60, 0.24);
  backdrop-filter: blur(14px);
}

html[data-theme='verger'] .shell-brand h1 {
  background: linear-gradient(90deg, #7ed321, #b4e85c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html[data-theme='verger'] .card {
  background: rgba(15, 30, 10, 0.92);
  border-color: rgba(100, 180, 40, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

html[data-theme='verger'] .drawer {
  background: #0b160a;
  border-color: rgba(100, 180, 40, 0.18);
}

html[data-theme='verger'] .bg-orb-red {
  background: rgba(80, 180, 20, 0.5);
}

html[data-theme='verger'] .bg-orb-green {
  background: rgba(40, 100, 10, 0.45);
}

.shell-topbar a,
.button-link,
button {
  border: none;
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shell-topbar a,
.shell-topbar button.ghost {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.shell-topbar a.active {
  background: rgba(255, 255, 255, 0.35);
}

html[data-theme='siliPommes'] body {
  position: relative;
}

html[data-theme='siliPommes'] body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(160deg, rgba(255, 248, 243, 0.74) 0%, rgba(242, 255, 233, 0.72) 100%),
    url('https://images.pexels.com/photos/102104/pexels-photo-102104.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=1600&w=2400')
      center / cover no-repeat;
  filter: saturate(1.08) contrast(1.03);
}

html[data-theme='starwars'] body {
  position: relative;
  background: #04070f;
  font-family: 'Orbitron', 'Manrope', sans-serif;
}

html[data-theme='starwars'] body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(2, 4, 9, 0.82) 0%, rgba(2, 6, 14, 0.78) 46%, rgba(5, 10, 20, 0.86) 100%),
    url('https://images.unsplash.com/photo-1462331940025-496dfbfc7564?auto=format&fit=crop&w=2400&q=80') center / cover no-repeat;
  filter: saturate(1.15) contrast(1.06);
}

html[data-theme='starwars'] body::after {
  content: '';
  position: fixed;
  top: -120px;
  right: -120px;
  width: 440px;
  height: 440px;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 35% 38%, rgba(255, 208, 85, 0.95) 0%, rgba(255, 193, 73, 0.68) 18%, rgba(255, 193, 73, 0.02) 42%),
    radial-gradient(circle at 56% 58%, rgba(255, 120, 54, 0.88) 0%, rgba(255, 120, 54, 0.36) 12%, rgba(255, 120, 54, 0) 34%);
  filter: blur(1px);
}

html[data-theme='starwars'] .bg-orb {
  display: none;
}

html[data-theme='starwars'] .shell-topbar {
  border-bottom: 1px solid rgba(255, 215, 102, 0.3);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42), inset 0 -1px 0 rgba(125, 196, 255, 0.26);
}

html[data-theme='starwars'] .shell-brand h1 {
  font-family: 'Audiowide', 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 0 0 16px rgba(255, 210, 95, 0.4);
}

html[data-theme='starwars'] .container {
  padding-top: 1.15rem;
}

html[data-theme='starwars'] .card {
  background:
    linear-gradient(170deg, rgba(23, 30, 46, 0.93) 0%, rgba(15, 21, 34, 0.94) 100%),
    radial-gradient(circle at 88% 9%, rgba(63, 169, 245, 0.2), transparent 35%);
  border-color: rgba(255, 228, 120, 0.34);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(120, 176, 255, 0.14);
}

html[data-theme='starwars'] h2,
html[data-theme='starwars'] h3 {
  font-family: 'Audiowide', 'Orbitron', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html[data-theme='starwars'] button,
html[data-theme='starwars'] .button-link {
  border-radius: 999px;
  border: 1px solid rgba(255, 222, 119, 0.44);
  background:
    linear-gradient(92deg, rgba(244, 180, 0, 0.96) 0%, rgba(242, 106, 45, 0.94) 46%, rgba(63, 169, 245, 0.92) 100%);
  color: #121212;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

html[data-theme='starwars'] button:hover,
html[data-theme='starwars'] .button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

html[data-theme='starwars'] button.ghost {
  background: rgba(12, 18, 30, 0.72);
  color: #f8f5d8;
  border-color: rgba(125, 196, 255, 0.4);
}

html[data-theme='starwars'] .drawer {
  background:
    linear-gradient(165deg, rgba(14, 20, 34, 0.96) 0%, rgba(11, 16, 27, 0.98) 100%),
    radial-gradient(circle at 100% 0%, rgba(63, 169, 245, 0.14), transparent 36%);
  border-color: rgba(255, 228, 120, 0.3);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
}

html[data-theme='starwars'] .drawer-group {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme='starwars'] .drawer-nav a {
  border: 1px solid rgba(125, 196, 255, 0.25);
}

html[data-theme='starwars'] .drawer-nav a.active {
  border-color: rgba(255, 228, 120, 0.46);
  box-shadow: inset 0 0 0 1px rgba(255, 228, 120, 0.18);
}

html[data-theme='starwars'] .theme-option[data-theme-value='starwars'] {
  background:
    linear-gradient(135deg, rgba(8, 12, 22, 0.96) 0%, rgba(17, 26, 44, 0.95) 62%, rgba(41, 26, 12, 0.95) 100%),
    url('https://images.unsplash.com/photo-1462331940025-496dfbfc7564?auto=format&fit=crop&w=800&q=70') center / cover no-repeat;
  background-blend-mode: screen, normal;
}

html[data-theme='starwars'] .daily-toolbar {
  background: linear-gradient(165deg, rgba(14, 20, 34, 0.96), rgba(11, 16, 27, 0.98));
  border: 1px solid rgba(255, 228, 120, 0.26);
}

html[data-theme='starwars'] .weather-card {
  background:
    linear-gradient(168deg, rgba(12, 18, 31, 0.96) 0%, rgba(16, 25, 42, 0.95) 60%, rgba(23, 20, 32, 0.95) 100%),
    radial-gradient(circle at 86% 15%, rgba(63, 169, 245, 0.2), transparent 42%);
  border-color: rgba(255, 228, 120, 0.34);
}

html[data-theme='starwars'] .weather-head p,
html[data-theme='starwars'] .weather-note,
html[data-theme='starwars'] .weather-metrics span {
  color: #d4c892;
}

html[data-theme='starwars'] .weather-head h3,
html[data-theme='starwars'] .weather-metrics strong {
  color: #fff4c2;
}

html[data-theme='starwars'] .weather-metrics p {
  background: rgba(20, 30, 47, 0.92);
  border-color: rgba(125, 196, 255, 0.34);
}

html[data-theme='starwars'] #home-weather-icon {
  background: radial-gradient(circle at 30% 30%, rgba(255, 226, 130, 0.18), rgba(63, 169, 245, 0.1) 58%, transparent 70%);
  border: 1px solid rgba(255, 228, 120, 0.28);
  border-radius: 16px;
  padding: 0.25rem;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4));
}

html[data-theme='concert'] .weather-card {
  background:
    linear-gradient(168deg, rgba(20, 12, 14, 0.96) 0%, rgba(32, 17, 20, 0.95) 52%, rgba(18, 22, 34, 0.94) 100%),
    radial-gradient(circle at 84% 16%, rgba(244, 67, 54, 0.2), transparent 40%);
  border-color: rgba(255, 190, 150, 0.34);
}

html[data-theme='concert'] .weather-head p,
html[data-theme='concert'] .weather-note,
html[data-theme='concert'] .weather-metrics span {
  color: #d9b6a7;
}

html[data-theme='concert'] .weather-head h3,
html[data-theme='concert'] .weather-metrics strong {
  color: #fff0e5;
}

html[data-theme='concert'] .weather-metrics p {
  background: rgba(42, 24, 27, 0.9);
  border-color: rgba(255, 190, 150, 0.32);
}

html[data-theme='concert'] #home-weather-icon {
  background: radial-gradient(circle at 30% 30%, rgba(255, 138, 101, 0.2), rgba(63, 168, 255, 0.08) 58%, transparent 72%);
  border: 1px solid rgba(255, 190, 150, 0.26);
  border-radius: 16px;
  padding: 0.25rem;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

html[data-theme='starwars'] .daily-range,
html[data-theme='starwars'] .daily-filter-pills {
  background: rgba(22, 31, 49, 0.9);
  border-color: rgba(125, 196, 255, 0.34);
}

html[data-theme='starwars'] .daily-trash-dropzone {
  background: rgba(112, 28, 28, 0.45);
  border-color: rgba(255, 136, 104, 0.8);
  color: #ffe6dd;
}

html[data-theme='starwars'] .daily-board-wrap {
  background: rgba(11, 16, 27, 0.98);
  border-color: rgba(255, 228, 120, 0.24);
}

html[data-theme='starwars'] .daily-board thead th {
  background: linear-gradient(180deg, rgba(18, 28, 46, 0.98), rgba(13, 20, 34, 0.98));
  color: #f8f5d8;
  border-bottom-color: rgba(125, 196, 255, 0.25);
}

html[data-theme='starwars'] .daily-board th:first-child,
html[data-theme='starwars'] .daily-board td:first-child {
  background: linear-gradient(180deg, rgba(19, 30, 49, 0.98), rgba(14, 21, 35, 0.98));
}

html[data-theme='starwars'] .daily-day-head {
  background: linear-gradient(180deg, rgba(20, 31, 52, 0.98), rgba(15, 23, 39, 0.98)) !important;
  color: #f8f5d8;
}

html[data-theme='starwars'] .daily-day-head.is-weekend {
  background: linear-gradient(180deg, rgba(30, 24, 42, 0.98), rgba(22, 18, 30, 0.98)) !important;
}

html[data-theme='starwars'] .daily-day-head.is-today {
  box-shadow: inset 0 -2px 0 rgba(244, 180, 0, 0.7);
}

html[data-theme='starwars'] .daily-employee-cell {
  background: linear-gradient(180deg, rgba(20, 32, 52, 0.98), rgba(15, 23, 38, 0.98)) !important;
  border-right-color: rgba(125, 196, 255, 0.26);
}

html[data-theme='starwars'] .daily-employee-inner {
  color: #f8f5d8;
}

html[data-theme='starwars'] .daily-employee-badge {
  background: rgba(244, 67, 54, 0.22);
  color: #ffd8d0;
  border-color: rgba(244, 67, 54, 0.4);
}

html[data-theme='starwars'] .daily-board-cell {
  background: rgba(14, 20, 34, 0.95);
}

html[data-theme='starwars'] .daily-board-cell.is-weekend {
  background: rgba(24, 20, 35, 0.94);
}

html[data-theme='starwars'] .daily-board-cell.is-today {
  box-shadow: inset 0 0 0 2px rgba(244, 180, 0, 0.38);
}

html[data-theme='starwars'] .calendar-empty {
  color: #b7c2da;
}

html[data-theme='starwars'] .daily-ticket h4,
html[data-theme='starwars'] .daily-ticket p {
  color: #2a2418;
}

html[data-theme='starwars'] .daily-ticket.archived {
  background: linear-gradient(165deg, #d2d7df 0%, #bcc4cf 56%, #a8b2bf 100%);
  border-color: rgba(63, 77, 95, 0.44);
  color: #1f2a36;
}

html[data-theme='starwars'] .daily-ticket-modal .modal-head {
  background: linear-gradient(145deg, rgba(19, 30, 50, 0.98), rgba(14, 22, 38, 0.98));
  border-bottom: 1px solid rgba(125, 196, 255, 0.3);
}

html[data-theme='starwars'] .daily-ticket-modal .modal-head h3,
html[data-theme='starwars'] .daily-ticket-modal .modal-head p {
  color: #f8f5d8;
}

html[data-theme='starwars'] .daily-ticket-modal .modal-content {
  background: linear-gradient(180deg, rgba(17, 25, 40, 0.98), rgba(13, 20, 32, 0.98));
  color: #eaf0ff;
}

html[data-theme='starwars'] .ticket-modal-view > p,
html[data-theme='starwars'] .ticket-modal-view section,
html[data-theme='starwars'] .ticket-modal-edit .grid-form.compact,
html[data-theme='starwars'] .daily-ticket .entity-expand {
  background: rgba(22, 33, 53, 0.9);
  border-color: rgba(125, 196, 255, 0.24);
}

html[data-theme='starwars'] .ticket-modal-view [data-ticket-value]:hover {
  background: rgba(244, 180, 0, 0.16);
}

html[data-theme='pop'] body {
  position: relative;
  font-family: 'Bangers', 'Manrope', sans-serif;
  letter-spacing: 0.02em;
  text-transform: none;
}

html[data-theme='pop'] body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 47, 47, 0.95) 0 10%, transparent 11%),
    radial-gradient(circle at 84% 14%, rgba(0, 207, 106, 0.95) 0 9%, transparent 10%),
    radial-gradient(circle at 20% 74%, rgba(26, 59, 255, 0.9) 0 11%, transparent 12%),
    radial-gradient(circle at 78% 80%, rgba(255, 47, 47, 0.92) 0 9%, transparent 10%),
    linear-gradient(140deg, #ffe14a 0%, #ffd73a 100%);
}

html[data-theme='pop'] body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.16) 0 3px,
      rgba(0, 0, 0, 0) 3px 34px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(0, 0, 0, 0.1) 0 2px,
      rgba(0, 0, 0, 0) 2px 28px
    );
  mix-blend-mode: multiply;
}

html[data-theme='pop'] .bg-orb {
  display: none;
}

html[data-theme='pop'] .shell-topbar {
  border-bottom: 3px solid #111318;
  box-shadow: 0 6px 0 rgba(17, 19, 24, 0.24);
}

html[data-theme='pop'] .shell-brand h1 {
  font-family: 'Bangers', 'Manrope', sans-serif;
  letter-spacing: 0.07em;
  font-size: 1.15rem;
  text-shadow: 2px 2px 0 #111318;
}

html[data-theme='pop'] .card {
  border: 3px solid #111318;
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 14%, rgba(0, 207, 106, 0.22) 0 16%, transparent 17%),
    radial-gradient(circle at 8% 78%, rgba(26, 59, 255, 0.18) 0 17%, transparent 18%),
    #fffef7;
  box-shadow: 0 8px 0 rgba(17, 19, 24, 0.22);
}

html[data-theme='pop'] h2,
html[data-theme='pop'] h3 {
  font-family: 'Bangers', 'Manrope', sans-serif;
  letter-spacing: 0.05em;
  color: #111318;
}

html[data-theme='pop'] button,
html[data-theme='pop'] .button-link {
  border: 3px solid #111318;
  border-radius: 16px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background: linear-gradient(120deg, #ff2f2f 0%, #1a3bff 48%, #00cf6a 100%);
  color: #ffffff;
  box-shadow: 0 5px 0 rgba(17, 19, 24, 0.28);
}

html[data-theme='pop'] button:hover,
html[data-theme='pop'] .button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 0 rgba(17, 19, 24, 0.28);
}

html[data-theme='pop'] button.ghost {
  background: #ffffff;
  color: #111318;
}

html[data-theme='pop'] .drawer {
  border: 3px solid #111318;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 47, 47, 0.26) 0 11%, transparent 12%),
    radial-gradient(circle at 78% 74%, rgba(26, 59, 255, 0.24) 0 10%, transparent 11%),
    #fff2aa;
}

html[data-theme='pop'] .drawer-group {
  border: 2px solid #111318;
  background: rgba(255, 255, 255, 0.58);
}

html[data-theme='pop'] .drawer-nav a {
  border: 2px solid #111318;
}

html[data-theme='pop'] .drawer-nav a.active {
  background: rgba(0, 207, 106, 0.24);
}

html[data-theme='pop'] .theme-option[data-theme-value='pop'] {
  background:
    radial-gradient(circle at 14% 24%, rgba(255, 47, 47, 0.98) 0 18%, transparent 19%),
    radial-gradient(circle at 85% 22%, rgba(0, 207, 106, 0.98) 0 17%, transparent 18%),
    radial-gradient(circle at 23% 80%, rgba(26, 59, 255, 0.95) 0 18%, transparent 19%),
    linear-gradient(130deg, #ffe14a 0%, #ffd73a 100%);
}

html[data-theme='superMarioBros'] body {
  position: relative;
  font-family: 'Press Start 2P', 'Manrope', sans-serif;
  letter-spacing: 0.01em;
  image-rendering: pixelated;
}

html[data-theme='superMarioBros'] body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0 14px,
      rgba(255, 255, 255, 0.08) 14px 28px
    ),
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.96) 0 5%, transparent 6%),
    radial-gradient(circle at 22% 17%, rgba(255, 255, 255, 0.96) 0 4.5%, transparent 5.5%),
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.96) 0 5.5%, transparent 6.5%),
    radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.96) 0 4.7%, transparent 5.7%),
    linear-gradient(180deg, #72c6ff 0 72%, #7fd15a 72% 100%);
  animation: marioSkyScroll 18s linear infinite;
}

html[data-theme='superMarioBros'] body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(155, 90, 42, 0.72) 0 8px,
      rgba(174, 108, 55, 0.72) 8px 16px
    );
  background-size: 100% 98px;
  background-position: left calc(100% - 58px);
  background-repeat: no-repeat;
  animation: marioGroundPulse 1.8s steps(2, end) infinite;
}

html[data-theme='superMarioBros'] .bg-orb {
  display: none;
}

html[data-theme='superMarioBros'] .shell-topbar {
  border-bottom: 4px solid #7b2a0f;
  box-shadow: 0 6px 0 rgba(81, 50, 20, 0.34);
  background:
    linear-gradient(180deg, rgba(234, 57, 50, 0.96), rgba(194, 37, 30, 0.98)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 190, 120, 0.2) 0 12px,
      rgba(255, 190, 120, 0) 12px 24px
    );
}

html[data-theme='superMarioBros'] .shell-brand h1 {
  font-family: 'Press Start 2P', 'Manrope', sans-serif;
  font-size: 0.85rem;
  text-shadow: 2px 2px 0 #7b2a0f;
}

html[data-theme='superMarioBros'] .card {
  border: 3px solid #7b4d24;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 247, 227, 0.9)),
    repeating-linear-gradient(
      90deg,
      rgba(194, 122, 62, 0.08) 0 8px,
      rgba(156, 92, 43, 0.08) 8px 16px
    );
  box-shadow: 0 6px 0 rgba(81, 50, 20, 0.3);
  position: relative;
}

html[data-theme='superMarioBros'] .card::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  border: 2px solid #7b4d24;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffd15e, #f0a71d);
  box-shadow: 0 2px 0 rgba(81, 50, 20, 0.35);
  opacity: 0.78;
}

html[data-theme='superMarioBros'] h2,
html[data-theme='superMarioBros'] h3 {
  font-family: 'Press Start 2P', 'Manrope', sans-serif;
  line-height: 1.35;
  color: #7b2a0f;
}

html[data-theme='superMarioBros'] p,
html[data-theme='superMarioBros'] label,
html[data-theme='superMarioBros'] td,
html[data-theme='superMarioBros'] th {
  font-size: 0.86rem;
}

html[data-theme='superMarioBros'] button,
html[data-theme='superMarioBros'] .button-link {
  border: 3px solid #0f5f19;
  border-radius: 9px;
  background: linear-gradient(180deg, #2bc440 0%, #1f9b2f 100%);
  color: #ffffff;
  box-shadow: 0 5px 0 rgba(15, 95, 25, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  position: relative;
}

html[data-theme='superMarioBros'] button::after,
html[data-theme='superMarioBros'] .button-link::after {
  content: '';
  position: absolute;
  top: -8px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffe680 0%, #f7b500 70%, #d37b00 100%);
  box-shadow: 0 0 0 2px rgba(123, 77, 36, 0.22);
  animation: marioCoinBob 1.6s ease-in-out infinite;
}

html[data-theme='superMarioBros'] button:hover,
html[data-theme='superMarioBros'] .button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 0 rgba(15, 95, 25, 0.45);
}

html[data-theme='superMarioBros'] button:active,
html[data-theme='superMarioBros'] .button-link:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 rgba(15, 95, 25, 0.45);
}

html[data-theme='superMarioBros'] button.ghost {
  border-color: #7b4d24;
  background: #fff8df;
  color: #7b2a0f;
  box-shadow: 0 4px 0 rgba(81, 50, 20, 0.35);
}

html[data-theme='superMarioBros'] .drawer {
  border: 3px solid #7b4d24;
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 255, 255, 0.62) 0 12%, transparent 13%),
    linear-gradient(180deg, #fff6dc 0%, #ffe7b4 100%);
  box-shadow: 0 10px 0 rgba(81, 50, 20, 0.32);
}

html[data-theme='superMarioBros'] .drawer-group {
  border: 2px solid #7b4d24;
  background: rgba(255, 255, 255, 0.62);
}

html[data-theme='superMarioBros'] .drawer-nav a {
  border: 2px solid #7b4d24;
}

html[data-theme='superMarioBros'] .drawer-nav a.active {
  background: rgba(31, 155, 47, 0.24);
}

html[data-theme='superMarioBros'] input,
html[data-theme='superMarioBros'] select,
html[data-theme='superMarioBros'] textarea {
  border-width: 2px;
  border-radius: 8px;
}

html[data-theme='superMarioBros'] input:focus,
html[data-theme='superMarioBros'] select:focus,
html[data-theme='superMarioBros'] textarea:focus {
  border-color: rgba(31, 155, 47, 0.9);
  box-shadow: 0 0 0 3px rgba(111, 210, 101, 0.42);
}

html[data-theme='superMarioBros'] .table-wrap table thead th {
  background: linear-gradient(180deg, #ffd15e, #f0a71d);
  color: #5a250c;
  border-bottom: 2px solid #7b4d24;
}

html[data-theme='superMarioBros'] .entity-expand {
  border-width: 2px;
  border-color: rgba(123, 77, 36, 0.55);
  box-shadow: 0 3px 0 rgba(81, 50, 20, 0.2);
}

html[data-theme='superMarioBros'] .stat-card h3 {
  font-family: 'Press Start 2P', 'Manrope', sans-serif;
  font-size: clamp(0.74rem, 1.6vw, 0.96rem);
  line-height: 1.45;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
}

html[data-theme='superMarioBros'] .table-wrap td,
html[data-theme='superMarioBros'] .table-wrap th {
  overflow-wrap: anywhere;
  word-break: break-word;
}

html[data-theme='superMarioBros'] .table-wrap td strong {
  font-family: 'Press Start 2P', 'Manrope', sans-serif;
  font-size: 0.74rem;
  line-height: 1.4;
  font-weight: 800;
  white-space: normal;
  word-break: break-all;
}

html[data-theme='superMarioBros'] .payslip-view .table-wrap td {
  font-family: 'Press Start 2P', 'Manrope', sans-serif;
  font-size: 0.7rem;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
}

html[data-theme='superMarioBros'] .payslip-view .table-wrap th {
  overflow-wrap: anywhere;
  word-break: break-word;
}

html[data-theme='superMarioBros'] .payslip-view .card > p strong {
  font-family: 'Press Start 2P', 'Manrope', sans-serif;
  font-size: 0.72rem;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
}

html[data-theme='superMarioBros'] .theme-option[data-theme-value='superMarioBros'] {
  background:
    radial-gradient(circle at 20% 28%, rgba(255, 255, 255, 0.95) 0 10%, transparent 11%),
    radial-gradient(circle at 62% 24%, rgba(255, 255, 255, 0.95) 0 9%, transparent 10%),
    linear-gradient(180deg, #72c6ff 0 62%, #7fd15a 62% 100%);
}

html[data-theme='superMarioBros'] .auth-card::after {
  display: none;
}

html[data-theme='superMarioBros'] .auth-card .grid-form {
  grid-template-columns: 1fr;
  align-items: stretch;
}

html[data-theme='superMarioBros'] .auth-card label {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

html[data-theme='superMarioBros'] .auth-card input {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
}

html[data-theme='concert'] body {
  position: relative;
  background: #080404;
  font-family: 'Teko', 'Manrope', sans-serif;
  letter-spacing: 0.02em;
}

html[data-theme='concert'] body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(170deg, rgba(7, 4, 5, 0.58) 0%, rgba(26, 8, 9, 0.7) 48%, rgba(12, 6, 7, 0.82) 100%),
    url('https://images.unsplash.com/photo-1470229722913-7c0e2dbbafd3?auto=format&fit=crop&w=2400&q=80') center / cover no-repeat;
  filter: saturate(1.2) contrast(1.08);
  animation: johnnyBackdropZoom 18s ease-in-out infinite alternate;
}

html[data-theme='concert'] body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(78deg, rgba(255, 93, 72, 0) 26%, rgba(255, 93, 72, 0.42) 46%, rgba(255, 93, 72, 0) 64%),
    linear-gradient(114deg, rgba(255, 214, 105, 0) 30%, rgba(255, 214, 105, 0.38) 52%, rgba(255, 214, 105, 0) 72%),
    linear-gradient(96deg, rgba(92, 178, 255, 0) 24%, rgba(92, 178, 255, 0.34) 44%, rgba(92, 178, 255, 0) 66%),
    radial-gradient(circle at 18% 74%, rgba(244, 67, 54, 0.34), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(79, 195, 247, 0.28), transparent 28%),
    radial-gradient(circle at 50% 102%, rgba(255, 255, 255, 0.12), transparent 36%);
  mix-blend-mode: screen;
  opacity: 0.92;
  animation: johnnySpotSweep 7s ease-in-out infinite, johnnyCrowdPulse 2.6s ease-in-out infinite;
}

html[data-theme='concert'] .bg-orb {
  display: none;
}

html[data-theme='concert'] .shell-topbar {
  border-bottom: 1px solid rgba(255, 213, 160, 0.28);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.48), inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

html[data-theme='concert'] .shell-topbar::after {
  content: '';
  position: absolute;
  inset: -20% auto -20% -35%;
  width: 34%;
  pointer-events: none;
  background: linear-gradient(92deg, rgba(255, 255, 255, 0), rgba(255, 233, 196, 0.5), rgba(255, 255, 255, 0));
  filter: blur(0.4px);
  animation: johnnyTopbarSweep 6s linear infinite;
}

html[data-theme='concert'] .shell-brand h1 {
  font-family: 'Bangers', 'Teko', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 180, 120, 0.45), 0 0 24px rgba(79, 195, 247, 0.24);
}

html[data-theme='concert'] .card {
  background:
    linear-gradient(168deg, rgba(30, 18, 19, 0.92) 0%, rgba(20, 12, 13, 0.93) 100%),
    radial-gradient(circle at 86% 0%, rgba(255, 213, 79, 0.13), transparent 38%);
  border-color: rgba(255, 190, 150, 0.26);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: rise 0.35s ease, johnnyCardGlow 5.2s ease-in-out infinite;
}

html[data-theme='concert'] h2,
html[data-theme='concert'] h3 {
  font-family: 'Bangers', 'Teko', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffe6ca;
}

html[data-theme='concert'] p,
html[data-theme='concert'] label {
  font-size: 1.04rem;
}

html[data-theme='concert'] button,
html[data-theme='concert'] .button-link {
  border-radius: 999px;
  border: 1px solid rgba(255, 206, 166, 0.42);
  background: linear-gradient(120deg, #b71c1c 0%, #ff5722 44%, #3fa8ff 100%);
  color: #fff8eb;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

html[data-theme='concert'] button:hover,
html[data-theme='concert'] .button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

html[data-theme='concert'] button.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #ffe6ca;
  border-color: rgba(255, 206, 166, 0.24);
}

html[data-theme='concert'] .drawer {
  background:
    linear-gradient(164deg, rgba(22, 13, 14, 0.98) 0%, rgba(15, 9, 10, 0.98) 100%),
    radial-gradient(circle at 86% 10%, rgba(255, 213, 79, 0.16), transparent 36%);
  border-color: rgba(255, 190, 150, 0.28);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.48);
}

html[data-theme='concert'] .drawer-group {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme='concert'] .drawer-nav a {
  border: 1px solid rgba(255, 171, 120, 0.26);
}

html[data-theme='concert'] .drawer-nav a.active {
  border-color: rgba(255, 213, 79, 0.44);
  box-shadow: inset 0 0 0 1px rgba(255, 213, 79, 0.18);
}

html[data-theme='concert'] .theme-option[data-theme-value='concert'] {
  background:
    linear-gradient(145deg, rgba(25, 13, 14, 0.95) 0%, rgba(52, 20, 23, 0.94) 56%, rgba(15, 7, 8, 0.95) 100%),
    url('https://images.unsplash.com/photo-1501386761578-eac5c94b800a?auto=format&fit=crop&w=900&q=75') center / cover no-repeat;
  background-blend-mode: screen, normal;
}

html[data-theme='concert'] .daily-toolbar {
  background: linear-gradient(168deg, rgba(23, 14, 15, 0.94), rgba(16, 10, 11, 0.95));
  border: 1px solid rgba(255, 187, 143, 0.26);
}

html[data-theme='concert'] .daily-range,
html[data-theme='concert'] .daily-filter-pills {
  background: rgba(34, 22, 24, 0.9);
  border-color: rgba(255, 187, 143, 0.28);
}

html[data-theme='concert'] .daily-trash-dropzone {
  background: rgba(87, 25, 25, 0.44);
  border-color: rgba(255, 141, 122, 0.72);
  color: #ffe4d7;
}

html[data-theme='concert'] .daily-trash-dropzone.drop-target {
  background: rgba(153, 35, 35, 0.58);
  border-color: rgba(255, 175, 120, 0.95);
}

html[data-theme='concert'] .daily-board-wrap {
  background: rgba(18, 11, 12, 0.95);
  border-color: rgba(255, 187, 143, 0.26);
}

html[data-theme='concert'] .daily-board thead th {
  background: linear-gradient(180deg, rgba(49, 20, 23, 0.96), rgba(36, 15, 17, 0.96));
  color: #ffe8d4;
  border-bottom-color: rgba(255, 187, 143, 0.3);
}

html[data-theme='concert'] .daily-board th:first-child,
html[data-theme='concert'] .daily-board td:first-child {
  background: linear-gradient(180deg, rgba(42, 18, 20, 0.96), rgba(29, 13, 15, 0.95));
}

html[data-theme='concert'] .daily-day-head {
  background: linear-gradient(180deg, rgba(58, 24, 27, 0.96), rgba(40, 18, 20, 0.96)) !important;
  color: #ffe8d4;
}

html[data-theme='concert'] .daily-day-head.is-weekend {
  background: linear-gradient(180deg, rgba(33, 28, 43, 0.96), rgba(24, 20, 32, 0.96)) !important;
}

html[data-theme='concert'] .daily-day-head.is-today {
  box-shadow: inset 0 -2px 0 rgba(79, 195, 247, 0.7);
}

html[data-theme='concert'] .daily-employee-cell {
  background: linear-gradient(180deg, rgba(43, 19, 21, 0.98), rgba(33, 14, 16, 0.98)) !important;
  border-right-color: rgba(255, 187, 143, 0.28);
}

html[data-theme='concert'] .daily-employee-inner {
  color: #ffe8d4;
}

html[data-theme='concert'] .daily-employee-badge {
  background: rgba(255, 76, 76, 0.2);
  color: #ffd9d9;
  border-color: rgba(255, 139, 139, 0.45);
}

html[data-theme='concert'] .daily-board-cell {
  background: rgba(25, 15, 16, 0.95);
}

html[data-theme='concert'] .daily-board-cell.is-weekend {
  background: rgba(20, 18, 28, 0.95);
}

html[data-theme='concert'] .daily-board-cell.is-today {
  box-shadow: inset 0 0 0 2px rgba(79, 195, 247, 0.44);
}

html[data-theme='concert'] .calendar-empty {
  color: #cbb3a8;
}

html[data-theme='concert'] .daily-ticket {
  border-color: rgba(85, 66, 23, 0.42);
}

html[data-theme='concert'] .daily-ticket h4,
html[data-theme='concert'] .daily-ticket p {
  color: #23180f;
}

html[data-theme='concert'] .daily-ticket.archived {
  background: linear-gradient(165deg, #b5bac3 0%, #9ea7b3 56%, #8994a1 100%);
  border-color: rgba(47, 59, 75, 0.45);
  color: #17212d;
}

html[data-theme='concert'] .daily-ticket-modal .modal-head {
  background: linear-gradient(145deg, rgba(60, 23, 26, 0.98), rgba(35, 16, 18, 0.98));
  border-bottom: 1px solid rgba(255, 187, 143, 0.3);
}

html[data-theme='concert'] .daily-ticket-modal .modal-head h3,
html[data-theme='concert'] .daily-ticket-modal .modal-head p {
  color: #ffe7d3;
}

html[data-theme='concert'] .daily-ticket-modal .modal-content {
  background: linear-gradient(180deg, rgba(29, 17, 18, 0.98), rgba(21, 13, 14, 0.98));
  color: #f6e6da;
}

html[data-theme='concert'] .ticket-modal-view > p,
html[data-theme='concert'] .ticket-modal-view section,
html[data-theme='concert'] .ticket-modal-edit .grid-form.compact,
html[data-theme='concert'] .daily-ticket .entity-expand {
  background: rgba(39, 24, 26, 0.92);
  border-color: rgba(255, 187, 143, 0.25);
}

html[data-theme='concert'] .ticket-modal-view [data-ticket-value]:hover {
  background: rgba(79, 195, 247, 0.18);
}

@keyframes johnnySpotSweep {
  0% {
    background-position:
      -240px 0,
      180px 0,
      0 0,
      0 0,
      0 0;
  }
  50% {
    background-position:
      120px 0,
      -110px 0,
      0 0,
      0 0,
      0 0;
  }
  100% {
    background-position:
      340px 0,
      -320px 0,
      0 0,
      0 0,
      0 0;
  }
}

@keyframes johnnyCrowdPulse {
  0% {
    opacity: 0.76;
  }
  50% {
    opacity: 0.95;
  }
  100% {
    opacity: 0.76;
  }
}

@keyframes johnnyBackdropZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

@keyframes johnnyTopbarSweep {
  0% {
    transform: translateX(-140%);
  }
  100% {
    transform: translateX(420%);
  }
}

@keyframes johnnyCardGlow {
  0% {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  }
  50% {
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.52), inset 0 0 0 1px rgba(255, 220, 160, 0.12);
  }
  100% {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme='concert'] body::before,
  html[data-theme='concert'] body::after,
  html[data-theme='concert'] .shell-topbar::after,
  html[data-theme='concert'] .card {
    animation: none !important;
  }
}

@keyframes marioCoinBob {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.06);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes marioSkyScroll {
  0% {
    background-position:
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0;
  }
  100% {
    background-position:
      280px 0,
      80px 0,
      65px 0,
      -120px 0,
      -95px 0,
      0 0;
  }
}

@keyframes marioGroundPulse {
  0% {
    filter: saturate(1);
  }
  100% {
    filter: saturate(1.06);
  }
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(43, 62, 33, 0.06);
  animation: rise 0.35s ease;
}

.dashboard-zone-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.dashboard-zone-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(43, 62, 33, 0.12);
  border-color: rgba(78, 167, 28, 0.5);
}

@keyframes rise {
  from {
    transform: translateY(5px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

h2,
h3 {
  margin: 0 0 0.8rem;
}

p {
  margin: 0.3rem 0;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
  align-items: end;
}

.grid-form.compact {
  margin-top: 0.7rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--muted);
}

input,
select,
textarea {
  border: 1px solid var(--field-border);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  font-family: inherit;
  background: var(--field-bg);
  color: var(--field-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type='file'] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.grid-form > label {
  min-width: 0;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(78, 167, 28, 0.8);
  box-shadow: 0 0 0 3px rgba(166, 227, 79, 0.25);
}

button,
.button-link {
  background: var(--btn-bg);
  color: var(--btn-text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

main button,
main .button-link {
  min-width: 138px;
}

.grid-form > button,
.grid-form > .button-link {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 42px;
  margin-top: 0.1rem;
}

button:hover,
.button-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--btn-hover-shadow);
  filter: saturate(1.05);
}

button.danger {
  background: var(--btn-danger-bg);
  color: #fff;
}

button.ghost {
  background: var(--btn-ghost-bg);
  color: var(--ink);
  border: 1px solid var(--border);
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.add-entity-btn {
  min-width: 44px !important;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.stat-card p {
  color: var(--muted);
}

.stat-card h3 {
  font-size: 1.4rem;
}

.stat-card.highlight {
  background: linear-gradient(140deg, rgba(223, 46, 46, 0.1), rgba(78, 167, 28, 0.14));
}

.weather-card {
  display: grid;
  gap: 0.75rem;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(236, 247, 255, 0.84));
}

.weather-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.weather-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.weather-head h3 {
  margin: 0.2rem 0 0;
}

.weather-source {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
}

#home-weather-icon {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(49, 72, 106, 0.22));
}

.weather-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.55rem;
}

.weather-metrics p {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.5rem 0.6rem;
  display: grid;
  gap: 0.18rem;
}

.weather-metrics strong {
  font-size: 1.08rem;
}

.weather-metrics span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
}

.weather-note {
  color: var(--muted);
  font-weight: 700;
}

.weather-card.loading #home-weather-icon {
  opacity: 0.6;
  filter: grayscale(0.2);
}

.weather-forecast {
  display: grid;
  gap: 0.55rem;
}

.weather-forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.55rem;
}

.weather-day-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
    linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(225, 241, 255, 0.72));
  padding: 0.55rem 0.58rem;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.1rem;
}

.weather-day-name {
  margin: 0;
  font-weight: 800;
  text-transform: capitalize;
}

.weather-day-date {
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 700;
}

.weather-day-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(49, 72, 106, 0.2));
}

.weather-day-desc {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
}

.weather-day-temp {
  margin: 0.1rem 0 0;
  font-weight: 800;
}

.weather-day-rain {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

.chart-card {
  display: grid;
  gap: 0.8rem;
}

.chart-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  color: var(--muted);
}

.chart-wrap {
  width: 100%;
  overflow-x: auto;
}

.cash-chart {
  width: 100%;
  min-width: 720px;
  height: 260px;
  display: block;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08));
  border-radius: 14px;
}

.chart-surface {
  fill: rgba(255, 255, 255, 0.28);
  stroke: rgba(30, 38, 24, 0.12);
  stroke-width: 1;
  rx: 12;
  ry: 12;
}

.chart-grid-line {
  stroke: rgba(30, 38, 24, 0.14);
  stroke-width: 1;
}

.chart-y-label {
  fill: rgba(30, 38, 24, 0.5);
  font-size: 10px;
  font-weight: 700;
}

.chart-x-label {
  fill: rgba(30, 38, 24, 0.6);
  font-size: 10px;
}

.zero-line {
  stroke: rgba(30, 38, 24, 0.55);
  stroke-width: 1.8;
  stroke-dasharray: 7 5;
}

.cash-area {
  fill: url(#cashAreaGradient);
}

.cash-line-glow {
  fill: none;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 6;
  opacity: 0.55;
}

.cash-line {
  fill: none;
  stroke: url(#cashBalanceGradient);
  stroke-width: 3.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.cash-point {
  fill: var(--paper);
  stroke: white;
  stroke-width: 2;
}

.cash-point.positive {
  fill: var(--apple-green);
}

.cash-point.negative {
  fill: var(--apple-red);
}

.cash-point.final-point {
  fill: #ffffff;
  stroke: rgba(30, 38, 24, 0.65);
  stroke-width: 2.2;
}


table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.has-detail {
  cursor: help;
  text-decoration: underline dotted rgba(30, 38, 24, 0.35);
  text-underline-offset: 3px;
}

.calendar-month {
  display: grid;
  gap: 0.5rem;
}

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

.calendar-weekday {
  font-weight: 800;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.calendar-cell {
  min-height: 120px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.65);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.3rem;
}

.calendar-cell.empty {
  visibility: hidden;
}

.calendar-cell.holiday {
  background: linear-gradient(145deg, rgba(223, 46, 46, 0.08), rgba(78, 167, 28, 0.12));
}

.calendar-cell-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
}

.holiday-badge {
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  background: rgba(223, 46, 46, 0.14);
  color: #a21212;
}

.calendar-holiday-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
}

.calendar-events {
  display: grid;
  gap: 0.25rem;
  align-content: start;
}

.calendar-event {
  font-size: 0.72rem;
  border-radius: 8px;
  padding: 0.25rem 0.35rem;
  background: rgba(78, 167, 28, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.calendar-event.leave {
  background: rgba(78, 167, 28, 0.16);
}

.calendar-event.absence {
  background: rgba(223, 46, 46, 0.14);
}

.event-fraction-badge {
  flex-shrink: 0;
  font-size: 0.66rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.08rem 0.35rem;
  border: 1px solid rgba(34, 55, 22, 0.18);
  background: rgba(255, 255, 255, 0.82);
}

.calendar-empty {
  color: var(--muted);
}

option.employee-disabled {
  color: #8a8f97;
}

.list-grid {
  display: grid;
  gap: 0.8rem;
}

.client-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.client-accordion {
  display: grid;
  gap: 0.8rem;
}

.accordion-content {
  display: grid;
  gap: 0.8rem;
}

.contracts-stack {
  display: grid;
  gap: 0.8rem;
}

.contract-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.7);
}

.contract-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.payments-list-view ul {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
}

.daily-add-form {
  margin-top: 0.75rem;
}

.daily-head {
  align-items: center;
}

.daily-toolbar {
  padding: 0.85rem;
  background: var(--paper);
}

.daily-toolbar-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: center;
}

.daily-range {
  display: grid;
  gap: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.5rem 0.7rem;
  background: rgba(255, 255, 255, 0.92);
}

.daily-nav-btn {
  width: 44px !important;
  height: 44px;
  min-width: 44px !important;
  min-height: 44px;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 0;
  line-height: 1;
}

.daily-toolbar-controls {
  margin-top: 0.7rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.daily-trash-dropzone {
  border: 1px dashed rgba(223, 46, 46, 0.5);
  color: #8e1717;
  background: rgba(255, 236, 236, 0.76);
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.84rem;
  padding: 0.5rem 0.75rem;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.daily-trash-dropzone.drop-target {
  background: rgba(223, 46, 46, 0.16);
  border-color: rgba(223, 46, 46, 0.9);
  transform: scale(1.02);
}

.daily-week-jump {
  margin: 0;
}

.daily-week-format {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
}

.daily-range-picker {
  margin-top: 0.15rem;
}

.daily-range-picker-input {
  min-width: 182px;
  width: fit-content;
}

.daily-range-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.daily-week-jump input[type='date'] {
  min-width: 182px;
}

.daily-filter-pills {
  display: inline-flex;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.22rem;
  background: rgba(255, 255, 255, 0.9);
}

.daily-filter-pills .button-link {
  min-height: 34px;
  border-radius: 999px;
  font-size: 0.82rem;
  padding: 0.35rem 0.62rem;
}

.daily-filter-pills .button-link.active {
  color: var(--btn-text);
  background: var(--btn-bg);
}

.daily-week-panel {
  transform-origin: center center;
}

.daily-week-panel.week-enter-from-right {
  animation: weekInFromRight 220ms ease both;
}

.daily-week-panel.week-enter-from-left {
  animation: weekInFromLeft 220ms ease both;
}

.daily-week-panel.week-leave-to-left {
  animation: weekOutToLeft 190ms ease both;
}

.daily-week-panel.week-leave-to-right {
  animation: weekOutToRight 190ms ease both;
}

@keyframes weekInFromRight {
  from {
    opacity: 0;
    transform: translateX(26px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes weekInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-26px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes weekOutToLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-24px);
  }
}

@keyframes weekOutToRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(24px);
  }
}

.daily-board-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--paper);
}

.daily-board {
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.daily-board thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.daily-board th:first-child,
.daily-board td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--paper);
}

.daily-board thead th:first-child {
  z-index: 4;
  width: 220px;
}

.daily-board th strong {
  display: block;
}

.daily-day-head {
  background: rgba(244, 248, 242, 0.95) !important;
  text-align: center;
}

.daily-day-head.is-weekend {
  background: rgba(249, 246, 238, 0.95) !important;
}

.daily-day-head.is-today {
  box-shadow: inset 0 -2px 0 rgba(78, 167, 28, 0.55);
}

.daily-employee-cell {
  padding: 0 !important;
  white-space: normal;
  min-width: 170px;
  background: rgba(247, 250, 245, 0.95) !important;
  border-right: 1px solid var(--border);
}

.daily-employee-inner {
  height: 100%;
  min-height: 100%;
  display: grid;
  gap: 0.25rem;
  align-content: start;
  padding: 0.6rem;
}

.daily-employee-badge {
  display: inline-flex;
  width: fit-content;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.12rem 0.42rem;
  background: rgba(223, 46, 46, 0.14);
  color: #8e1717;
  border: 1px solid rgba(223, 46, 46, 0.3);
}

.daily-board td {
  vertical-align: top;
  min-width: 170px;
}

.daily-board th {
  vertical-align: top;
}

.daily-board-cell {
  background: rgba(255, 255, 255, 0.94);
}

.daily-board-cell.is-weekend {
  background: rgba(250, 248, 242, 0.92);
}

.daily-board-cell.is-today {
  box-shadow: inset 0 0 0 2px rgba(78, 167, 28, 0.26);
}

.daily-empty-row {
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.daily-cell-head {
  display: flex;
  justify-content: flex-end;
}

.daily-cell-add {
  min-height: 28px;
  padding: 0.18rem 0.5rem;
  font-size: 0.73rem;
  border-radius: 999px;
  box-shadow: none;
}

.daily-tickets {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.daily-ticket {
  --tilt: -0.8deg;
  --postit-top: #fff2a8;
  --postit-mid: #ffe58a;
  --postit-bottom: #ffd873;
  --postit-corner: rgba(135, 108, 44, 0.28);
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: 0.58rem 0.6rem 0.56rem;
  border: 1px solid rgba(160, 111, 7, 0.24);
  background: linear-gradient(165deg, var(--postit-top) 0%, var(--postit-mid) 46%, var(--postit-bottom) 100%);
  box-shadow:
    0 2px 5px rgba(80, 55, 7, 0.12),
    0 9px 12px rgba(80, 55, 7, 0.12);
  cursor: pointer;
  user-select: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
  transform: rotate(var(--tilt));
}

.daily-ticket::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.34), transparent 42%);
}

.daily-ticket::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  opacity: 0;
  border-top: 14px solid var(--postit-corner);
  border-left: 14px solid transparent;
  transition: opacity 0.16s ease;
}

.daily-ticket.postit-1 {
  --postit-top: #fff2a8;
  --postit-mid: #ffe58a;
  --postit-bottom: #ffd873;
  --postit-corner: rgba(135, 108, 44, 0.28);
}

.daily-ticket.postit-2 {
  --postit-top: #ddf9b7;
  --postit-mid: #c7f18b;
  --postit-bottom: #afe66b;
  --postit-corner: rgba(78, 116, 44, 0.3);
}

.daily-ticket.postit-3 {
  --postit-top: #dff3ff;
  --postit-mid: #c8e8ff;
  --postit-bottom: #abd9ff;
  --postit-corner: rgba(70, 106, 148, 0.32);
}

.daily-tickets > .daily-ticket:nth-child(6n + 1) {
  --tilt: -1.4deg;
}

.daily-tickets > .daily-ticket:nth-child(6n + 2) {
  --tilt: 1.2deg;
}

.daily-tickets > .daily-ticket:nth-child(6n + 3) {
  --tilt: -0.4deg;
}

.daily-tickets > .daily-ticket:nth-child(6n + 4) {
  --tilt: 1.8deg;
}

.daily-tickets > .daily-ticket:nth-child(6n + 5) {
  --tilt: -1deg;
}

.daily-tickets > .daily-ticket:nth-child(4n)::after {
  opacity: 1;
}

.daily-ticket.archived {
  background: linear-gradient(165deg, #e3e6ec 0%, #d8dbe0 56%, #c8ced7 100%);
  border-color: rgba(85, 95, 110, 0.34);
  color: #3f4a58;
}

.daily-ticket:hover {
  transform: rotate(var(--tilt)) translateY(-2px) scale(1.01);
  box-shadow:
    0 3px 8px rgba(80, 55, 7, 0.18),
    0 12px 16px rgba(80, 55, 7, 0.16);
}

.daily-ticket.dragging {
  opacity: 0.42;
  transform: rotate(var(--tilt)) scale(0.98);
}

.daily-board-cell.drop-target {
  box-shadow: inset 0 0 0 2px rgba(78, 167, 28, 0.46);
}

.ticket-modal-view {
  display: grid;
  gap: 0.55rem;
}

.ticket-modal-edit {
  display: none;
  gap: 0.65rem;
}

.daily-ticket-modal .contract-modal-form {
  grid-template-rows: auto minmax(0, 1fr);
  max-height: 86vh;
}

.daily-ticket-modal .modal-head {
  background: linear-gradient(145deg, rgba(255, 246, 215, 0.95), rgba(255, 232, 162, 0.88));
}

.daily-ticket-modal .modal-head h3 {
  font-size: 1.05rem;
}

.daily-ticket-modal .modal-content {
  overflow: auto;
  min-height: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(254, 250, 236, 0.92));
}

.ticket-modal-view > p {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  padding: 0.5rem 0.6rem;
  display: grid;
  gap: 0.2rem;
}

.ticket-modal-view > p strong {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.ticket-modal-view [data-ticket-value] {
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.18rem 0.3rem;
  transition: background 0.16s ease;
}

.ticket-modal-view [data-ticket-value]:hover {
  background: rgba(78, 167, 28, 0.14);
}

.ticket-modal-view section {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  padding: 0.55rem 0.65rem;
}

.ticket-modal-view section h4 {
  margin: 0 0 0.4rem;
}

.ticket-modal-view section ul {
  margin: 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.22rem;
}

.ticket-modal-edit .grid-form.compact {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0.6rem;
  margin-top: 0;
}

.daily-ticket-modal.ticket-modal-editing .ticket-modal-view {
  display: none;
}

.daily-ticket-modal.ticket-modal-editing .ticket-modal-edit {
  display: grid;
}

.daily-ticket h4 {
  margin: 0 0 0.3rem;
  font-size: 0.84rem;
}

.daily-ticket p {
  margin: 0;
  font-size: 0.75rem;
}

.daily-ticket-meta {
  font-weight: 800;
  opacity: 0.74;
  margin-bottom: 0.25rem !important;
}

.daily-ticket .entity-expand {
  margin-top: 0.45rem;
  background: rgba(255, 255, 255, 0.66);
}

.daily-ticket .entity-expand > summary {
  padding: 0.5rem 0.6rem;
  font-size: 0.75rem;
}

.daily-ticket-actions > form {
  margin: 0;
}

.daily-notes {
  display: grid;
  gap: 0.45rem;
}

.daily-notes h5 {
  margin: 0.2rem 0 0;
}

.daily-note-form {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.68);
  display: grid;
  gap: 0.45rem;
}

.daily-note-actions {
  align-items: center;
}

.daily-note-actions small {
  color: var(--muted);
}

.app-modal {
  border: 1px solid var(--border);
  border-radius: 16px;
  width: min(900px, 94vw);
  padding: 0;
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(33, 48, 26, 0.22);
  transform: translateY(8px) scale(0.985);
  opacity: 0;
}

.app-modal[open] {
  animation: modalIn 0.22s ease forwards;
}

.app-modal::backdrop {
  background: rgba(18, 26, 15, 0.48);
}

@keyframes modalIn {
  from {
    transform: translateY(8px) scale(0.985);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.contract-modal-form {
  display: grid;
  gap: 0;
  max-height: 86vh;
  overflow: hidden;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.8rem;
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--paper);
}

.modal-head h3 {
  margin: 0;
}

.modal-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.contract-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.8rem;
}

.modal-content {
  display: grid;
  gap: 0.95rem;
  padding: 0.95rem 1.1rem;
  overflow: auto;
}

.field-full {
  grid-column: 1 / -1;
}

.payments-editor {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
  display: grid;
  gap: 0.6rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 254, 236, 0.7));
}

.payments-toolbar {
  align-items: center;
}

.add-payment {
  background: var(--btn-bg);
  color: var(--btn-text);
}

.payments-list {
  display: grid;
  gap: 0.5rem;
}

.payment-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
  gap: 0.5rem;
  align-items: end;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.payment-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(41, 66, 23, 0.1);
  border-color: rgba(78, 167, 28, 0.35);
}

.payment-row .remove-payment {
  white-space: nowrap;
  align-self: end;
  padding: 0.5rem 0.7rem;
  min-height: 40px;
  margin-left: 0.1rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.75rem 1.1rem 1rem;
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: var(--paper);
}

.modal-actions .ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--border);
}

.provider-head,
.employee-head,
.row-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.row-actions > form {
  margin: 0;
}

.employee-card .employee-delete-form {
  margin: 0;
}

.employee-card .employee-delete-form > button {
  min-height: 42px;
}

.employee-card.inactive {
  opacity: 0.58;
  filter: grayscale(0.32);
}

.employee-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.35rem 0 0.9rem;
}

.employee-actions > button,
.employee-actions > form > button {
  width: 100%;
  min-height: 42px;
}

.entity-expand {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 0.35rem;
  background: rgba(255, 255, 255, 0.72);
}

.entity-expand > summary {
  cursor: pointer;
  padding: 0.75rem 0.85rem;
  font-weight: 800;
  list-style: none;
}

.entity-expand > summary::-webkit-details-marker {
  display: none;
}

.entity-expand > summary::after {
  content: '▾';
  float: right;
  transition: transform 0.18s ease;
}

.entity-expand[open] > summary::after {
  transform: rotate(180deg);
}

.entity-expand-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 0.85rem;
  display: grid;
  gap: 0.6rem;
  transition: opacity 0.22s ease, padding 0.22s ease;
}

.entity-expand[open] .entity-expand-body {
  max-height: none;
  opacity: 1;
  padding: 0.2rem 0.85rem 0.85rem;
}

.duer-page {
  display: grid;
  gap: 1rem;
}

.duer-card {
  position: relative;
  overflow: hidden;
}

.duer-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  height: 4px;
  width: 100%;
  background: var(--btn-bg);
  opacity: 0.78;
}

.duer-page h3 {
  margin-bottom: 0.9rem;
}

.duer-status-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.duer-status-row p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.duer-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.62rem;
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid var(--border);
}

.duer-status-pill.ok {
  background: rgba(78, 167, 28, 0.16);
  color: #225d0e;
  border-color: rgba(78, 167, 28, 0.36);
}

.duer-status-pill.ko {
  background: rgba(223, 46, 46, 0.14);
  color: #8e1717;
  border-color: rgba(223, 46, 46, 0.35);
}

.duer-last-check {
  color: var(--muted);
  font-weight: 700;
}

.duer-missing-card {
  margin-top: 0.65rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 244, 244, 0.92));
}

.duer-missing-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.3rem;
}

.duer-validate-form {
  margin-top: 0.8rem;
}

.duer-grid-form {
  gap: 0.7rem;
}

.duer-grid-form label {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.duer-workforce {
  margin: 0 0 0.55rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.duer-risk-form,
.duer-action-form,
.duer-plan-form {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.86), rgba(255, 252, 240, 0.88));
}

.duer-unit > summary {
  background: linear-gradient(140deg, rgba(78, 167, 28, 0.12), rgba(223, 46, 46, 0.1));
}

.duer-unit .entity-expand-body > p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.duer-history-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.duer-history-list li {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
}

html[data-theme='starwars'] .duer-status-pill.ok {
  color: #d8ffad;
  background: rgba(103, 186, 35, 0.2);
  border-color: rgba(141, 216, 84, 0.4);
}

html[data-theme='starwars'] .duer-status-pill.ko {
  color: #ffd3b0;
  background: rgba(242, 106, 45, 0.2);
  border-color: rgba(242, 106, 45, 0.42);
}

html[data-theme='starwars'] .duer-risk-form,
html[data-theme='starwars'] .duer-action-form,
html[data-theme='starwars'] .duer-plan-form,
html[data-theme='starwars'] .duer-history-list li {
  background: linear-gradient(170deg, rgba(24, 32, 50, 0.9), rgba(14, 20, 32, 0.94));
}

.audit-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.55rem;
  margin: 0.6rem 0 0.9rem;
}

.audit-chip {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.62);
  display: grid;
  gap: 0.15rem;
}

.audit-chip span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

.audit-chip strong {
  font-size: 1.2rem;
}

.audit-chip.critical {
  border-color: #8b0e0e;
}

.audit-chip.high {
  border-color: #b44108;
}

.audit-chip.medium {
  border-color: #be8f12;
}

.audit-chip.low {
  border-color: #3f7d2a;
}

.audit-chip.info {
  border-color: #2d67a4;
}

.audit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.audit-badge.critical {
  background: rgba(214, 28, 28, 0.15);
  color: #8b0e0e;
  border-color: rgba(139, 14, 14, 0.4);
}

.audit-badge.high {
  background: rgba(214, 114, 28, 0.16);
  color: #9a3a09;
  border-color: rgba(154, 58, 9, 0.4);
}

.audit-badge.medium {
  background: rgba(221, 179, 29, 0.16);
  color: #7d630b;
  border-color: rgba(125, 99, 11, 0.4);
}

.audit-badge.low {
  background: rgba(81, 166, 37, 0.16);
  color: #33681f;
  border-color: rgba(51, 104, 31, 0.4);
}

.audit-badge.info {
  background: rgba(66, 126, 210, 0.16);
  color: #204c84;
  border-color: rgba(32, 76, 132, 0.4);
}

.audit-progress-wrap {
  display: grid;
  gap: 0.55rem;
}

.audit-progress-track {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: rgba(120, 132, 122, 0.26);
  border: 1px solid var(--border);
  overflow: hidden;
}

.audit-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  transition: width 0.22s ease;
}

.audit-check-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--muted);
}

.test-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.test-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid transparent;
}

.test-status-indicator.ok {
  color: #2f7c25;
}

.test-status-indicator.ok .test-status-dot {
  background: #6dcf5c;
  border-color: #2f7c25;
}

.test-status-indicator.ko {
  color: #a12d2d;
}

.test-status-indicator.ko .test-status-dot {
  background: #ef7f7f;
  border-color: #a12d2d;
}

.prod-blockers-wrap {
  margin: 0.65rem 0 0.9rem;
  padding: 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(139, 14, 14, 0.35);
  background: rgba(214, 28, 28, 0.08);
}

.prod-blockers-list {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
}

.prod-blockers-list li {
  border: 1px solid rgba(139, 14, 14, 0.25);
  border-radius: 10px;
  padding: 0.5rem 0.55rem;
  background: rgba(255, 255, 255, 0.56);
  list-style: none;
}

.prod-blocker-head {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-only-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(162, 101, 30, 0.38);
  background: rgba(250, 214, 161, 0.35);
  color: #8b4f15;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.provider-actions,
.client-actions,
.user-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
  align-items: stretch;
  margin-top: 0.35rem;
}

.provider-actions > .button-link,
.provider-actions > button,
.provider-actions > form,
.client-actions > button,
.client-actions > form,
.user-actions > button,
.user-actions > form {
  width: 100%;
}

.provider-actions > .button-link,
.provider-actions > button,
.provider-actions > form > button,
.client-actions > button,
.client-actions > form > button,
.user-actions > button,
.user-actions > form > button {
  width: 100%;
  min-height: 42px;
}

.user-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.provider-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 12px;
}

.payslip-company-logo {
  width: auto;
  max-width: 180px;
  max-height: 64px;
  object-fit: contain;
  display: block;
  margin: 0 0 0.45rem;
}

.company-logo-preview {
  width: auto;
  max-width: min(260px, 100%);
  max-height: 90px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.75);
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar.placeholder {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: white;
  background: linear-gradient(120deg, var(--apple-red-deep), var(--apple-green));
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.switch-field {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.switch-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.switch-wrap input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--switch-track-off);
  border: 1px solid var(--border);
  position: relative;
  transition: background 0.2s ease;
}

.switch-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--switch-thumb);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.switch-wrap input[type='checkbox']:checked + .switch-slider {
  background: var(--switch-track-on);
}

.switch-wrap input[type='checkbox']:checked + .switch-slider::after {
  transform: translateX(20px);
}

.horizon-field {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

@media (max-width: 700px) {
  .weather-head {
    gap: 0.5rem;
  }

  #home-weather-icon {
    width: 76px;
    height: 76px;
  }

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

.horizon-pills {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.62);
}

.horizon-pill {
  min-width: 70px !important;
  min-height: 34px;
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  font-size: 0.82rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid transparent;
  box-shadow: none;
  transform: none;
}

.horizon-pill:hover {
  box-shadow: none;
  transform: none;
  filter: none;
  border-color: rgba(78, 167, 28, 0.36);
}

.horizon-pill.active {
  color: var(--btn-text);
  border-color: transparent;
  background: var(--btn-bg);
}

.toggle-active-only {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}

.alert {
  background: #fff0f0;
  border: 1px solid #ffc7c7;
  color: #9d1d1d;
  border-radius: 10px;
  padding: 0.6rem;
  margin-bottom: 0.8rem;
}

.auth-card {
  max-width: 460px;
  margin: 7vh auto;
}

.auth-oauth-separator {
  margin: 0.8rem 0;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.auth-google-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  justify-content: center;
  width: 100%;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.16);
  font-weight: 700;
}

.auth-google-btn:hover {
  background: #fff;
  color: #1f1f1f;
  border-color: #c6cbd1;
  box-shadow: 0 2px 4px rgba(60, 64, 67, 0.22);
  filter: none;
}

.auth-google-btn:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

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

.hint {
  margin-top: 0.8rem;
  color: var(--muted);
}

.password-policy-checklist {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.password-policy-checklist li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--muted);
}

.password-policy-checklist li::before {
  content: '*';
  position: absolute;
  left: 0.25rem;
  top: 0;
}

.password-policy-checklist li.ok {
  color: #1f8a4c;
  font-weight: 700;
}

.password-policy-checklist li.ok::before {
  content: '+';
}

.password-policy-checklist li.ko {
  color: #b23030;
  font-weight: 700;
}

.password-policy-checklist li.ko::before {
  content: 'x';
}

.force-password-form {
  grid-template-columns: 1fr;
}

@media (max-width: 768px) {
  .container {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .card {
    padding: 0.85rem;
    border-radius: 14px;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
  }

  .stat-card h3 {
    font-size: 1.1rem;
  }

  .page-head {
    gap: 0.6rem;
  }

  .page-head h2 {
    font-size: 1.1rem;
  }

  .modal-box {
    width: 96vw;
    max-height: 92vh;
    border-radius: 14px;
    padding: 1rem;
  }

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

  .provider-head,
  .employee-head,
  .contract-head,
  .client-summary,
  .row-actions {
    align-items: start;
    flex-direction: column;
  }

  .contract-modal-grid {
    grid-template-columns: 1fr;
  }

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

  .payment-row {
    grid-template-columns: 1fr;
  }

  .daily-toolbar-main {
    grid-template-columns: 1fr auto auto;
  }

  .daily-range {
    grid-column: 1 / -1;
    order: -1;
  }

  .daily-toolbar-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .daily-filter-pills {
    width: 100%;
    justify-content: stretch;
  }

  .daily-filter-pills .button-link {
    flex: 1;
  }

  .daily-board {
    min-width: 860px;
  }

  .calendar-weekdays {
    display: none;
  }

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

  .calendar-cell.empty {
    display: none;
  }

  /* Leave calendar table: hide less critical columns */
  .hr-calendar-table .col-actions {
    display: none;
  }

  /* Payslip / payroll tables: allow scroll */
  .payslip-view .table-wrap {
    font-size: 0.82rem;
  }

  /* Auth card full-width */
  .auth-card {
    margin: 3vh auto;
    padding: 0 0.25rem;
  }
}

@media (max-width: 480px) {
  .shell-brand h1 {
    font-size: 0.82rem;
  }

  .container {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .card {
    padding: 0.7rem;
  }

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

  button,
  .button-link {
    font-size: 0.85rem;
    padding: 0.45rem 0.7rem;
  }

  h2 {
    font-size: 1rem;
  }

  h3 {
    font-size: 0.95rem;
  }

  .horizon-pills {
    flex-wrap: wrap;
  }
}

/* ========================================================
   Dashboard edit mode
   ======================================================== */

/* Long-press feedback */
.dl-holding {
  position: relative;
  user-select: none;
}
.dl-holding::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px; width: 0;
  background: var(--color-accent, #4488ff);
  border-radius: 0 0 12px 12px;
  animation: dlHoldBar 3s linear forwards;
  z-index: 40;
  pointer-events: none;
}
@keyframes dlHoldBar {
  from { width: 0; opacity: .6; }
  to   { width: 100%; opacity: 1; }
}

/* Edit bar */
.dash-edit-bar[hidden] { display: none !important; }
.dash-edit-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem 1rem;
  background: var(--color-accent, #4488ff);
  color: #fff;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: .85rem;
  font-weight: 600;
}
.dash-edit-bar > span { flex: 1; opacity: .88; font-size: .8rem; }

/* Grid in edit mode */
.dl-edit-mode {
  outline: 2px dashed var(--color-accent, #4488ff);
  outline-offset: 6px;
  border-radius: 6px;
  padding-bottom: .5rem;
}

/* Each widget in edit mode */
.dl-edit-mode .dashboard-widget {
  position: relative;
  cursor: grab;
  transition: box-shadow .15s, opacity .15s;
}
.dl-edit-mode .dashboard-widget:hover {
  box-shadow: 0 0 0 2px var(--color-accent, #4488ff), 0 4px 24px rgba(0,0,0,.18);
}
.dl-edit-mode .dashboard-widget.dl-dragging {
  opacity: .08;
  pointer-events: none;
}

/* Placeholder — shows where dragged card will land */
.dl-placeholder {
  background: rgba(68, 136, 255, .1);
  border: 2px dashed var(--color-accent, #4488ff);
  border-radius: 12px;
  min-height: 80px;
  transition: all .12s;
}

/* Overlay toolbar on each card */
.dl-edit-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .65rem;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(8px);
  border-radius: 0 0 10px 10px;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity .18s, transform .18s;
  pointer-events: none;
  user-select: none;
}
.dl-edit-mode .dashboard-widget:hover .dl-edit-overlay,
.dl-edit-mode .dashboard-widget.dl-overlay-pinned .dl-edit-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.dl-widget-name {
  color: rgba(255,255,255,.8);
  font-size: .72rem;
  font-weight: 600;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-size-chips { display: flex; gap: .15rem; flex-shrink: 0; }
.dl-size-chip {
  font-size: .62rem; font-weight: 800;
  padding: .12rem .32rem; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.25);
  background: none; color: rgba(255,255,255,.55);
  cursor: pointer; transition: all .12s;
}
.dl-size-chip:hover { color: #fff; border-color: rgba(255,255,255,.6); }
.dl-size-chip.dl-active { background: var(--color-accent, #4488ff); border-color: transparent; color: #fff; }

.dl-eye-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.7); font-size: .88rem;
  padding: .1rem .25rem; border-radius: 4px;
  flex-shrink: 0; transition: color .15s;
}
.dl-eye-btn:hover { color: #fff; }

/* Dimmed widget (hidden in edit mode) */
.dl-edit-mode .dl-widget-off {
  opacity: .18;
  filter: saturate(0);
}
.dl-edit-mode .dl-widget-off .dl-edit-overlay { pointer-events: all; }
.dl-edit-mode .dl-widget-off:hover { opacity: .5; }

/* ═══════════════════════════════════════════════════════════
   CRM PIPELINE
   ═══════════════════════════════════════════════════════════ */
.crm-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  align-items: start;
}
.crm-column {
  background: var(--card-bg, rgba(255,255,255,.04));
  border-radius: 10px;
  padding: 0.75rem;
  border: 1px solid var(--border-color, rgba(255,255,255,.08));
}
.crm-column-head {
  margin-bottom: 0.75rem;
}
.crm-column-head h3 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.crm-count {
  display: inline-block;
  background: var(--color-accent, #4488ff);
  color: #fff;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0 5px;
  min-width: 18px;
  text-align: center;
}
.crm-cards { display: flex; flex-direction: column; gap: 0.6rem; }
.crm-empty { opacity: 0.35; font-size: 0.8rem; text-align: center; margin: 0.5rem 0; }

.crm-card { padding: 0.75rem 0.85rem; }
.crm-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}
.crm-logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}
.crm-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 0.3rem;
}
.crm-badge--prospect { background: rgba(255,200,0,.18); color: #caa000; }
.crm-badge--client   { background: rgba(40,200,80,.18);  color: var(--color-ok,#4c4); }

.crm-last-contact { margin: 0.2rem 0 0; font-size: 0.78rem; opacity: 0.6; }
.crm-followup { margin: 0.2rem 0 0; font-size: 0.78rem; }
.crm-followup--overdue { color: var(--color-err,#e53); font-weight: 700; }
.crm-card--followup-due { border-left: 3px solid var(--color-err,#e53); background: rgba(238,85,51,.04); }

.crm-card-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}
.crm-card-actions .ghost,
.crm-card-actions a.ghost {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
}
.crm-stage-select {
  font-size: 0.75rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border-color, rgba(255,255,255,.15));
  background: var(--input-bg, rgba(255,255,255,.07));
  color: inherit;
  cursor: pointer;
}

/* CRM Timeline (historique) */
.crm-timeline { display: flex; flex-direction: column; gap: 0.75rem; }
.crm-timeline-item { padding: 0.75rem 1rem; }
.crm-timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.crm-type-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.crm-type--call     { background: rgba(100,160,255,.2); color: #4af; }
.crm-type--email    { background: rgba(100,200,100,.2); color: #6d6; }
.crm-type--meeting  { background: rgba(200,100,255,.2); color: #c8f; }
.crm-type--relance  { background: rgba(255,180,0,.2);   color: #fa0; }
.crm-type--note     { background: rgba(180,180,180,.15); color: #aaa; }

/* ═══════════════════════════════════════════════════════════
   LEAVE BALANCE (soldes de congés)
   ═══════════════════════════════════════════════════════════ */
/* Inherits table styles, nothing extra needed */

/* CRM drag states */
.crm-card[draggable="true"] { cursor: grab; }
.crm-card[draggable="true"]:active { cursor: grabbing; }
.crm-dragging {
  opacity: 0.35;
  transform: rotate(1.5deg) scale(0.97);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  pointer-events: none;
}
.crm-cards.crm-over {
  outline: 2px dashed var(--color-accent, #4488ff);
  border-radius: 8px;
  background: rgba(68,136,255,.06);
  min-height: 60px;
}
.crm-drop-hint {
  border: 2px dashed rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  opacity: 0.35;
  font-size: 0.8rem;
  pointer-events: none;
}

/* Notifications toggle */
.notif-view-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color, rgba(255,255,255,.12));
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}
.notif-tab {
  padding: 0.45rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  opacity: 0.5;
  transition: opacity .15s, background .15s;
}
.notif-tab:hover { opacity: 0.8; }
.notif-tab--active {
  background: var(--color-accent, #4488ff);
  color: #fff;
  opacity: 1;
}

/* ── Formulaire nouveau contrat de travail ────────────────────────── */
.ctr-hidden { display: none !important; }

.clause-toggle {
  display: flex;
  align-items: center;
  gap: .9rem;
  border: 1.5px solid var(--border, #ddd);
  border-radius: 11px;
  padding: .8rem 1rem;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, background .15s;
}
.clause-toggle:hover { border-color: rgba(78,167,28,.5); }
.clause-toggle.on {
  border-color: var(--color-acc, #4ea71c);
  background: rgba(78,167,28,.06);
}
.clause-toggle .sw {
  position: relative;
  width: 38px; height: 22px;
  flex-shrink: 0;
}
.clause-toggle .sw input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.clause-toggle .sw-track {
  display: block; width: 100%; height: 100%;
  background: var(--border, #ccc);
  border-radius: 11px;
  transition: background .2s;
}
.clause-toggle .sw-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff; border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  pointer-events: none;
}
.clause-toggle.on .sw-track { background: var(--color-acc, #4ea71c); }
.clause-toggle.on .sw-thumb { transform: translateX(16px); }
.clause-info strong { display: block; font-size: .9rem; margin-bottom: .1rem; }
.clause-info span { font-size: .73rem; color: var(--muted, #888); }
.clause-detail {
  display: none;
  margin-top: .5rem;
  background: rgba(78,167,28,.05);
  border: 1px solid rgba(78,167,28,.2);
  border-radius: 12px;
  padding: .9rem 1rem;
}
.ctr-sub-panel {
  margin-top: .9rem;
  background: rgba(78,167,28,.05);
  border: 1px solid rgba(78,167,28,.2);
  border-radius: 12px;
  padding: .9rem 1rem;
}
.ctr-sub-label {
  margin: 0 0 .75rem;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted, #888);
}

/* ── Notes de frais — section kilométrique ──────────────────────────────── */
#mileage-section { display: none; }
#std-amount-wrap  { display: block; }
