* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font: 15px system-ui;
  background: var(--bg, #f8f5f2);
  color: var(--fg, #382e34);
}
#app {
  max-width: 900px;
  margin: auto;
  min-height: 100dvh;
}
header,
main {
  padding: 18px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
h1,
h2,
p {
  margin: 8px 0 14px;
}
header strong {
  font: 30px Georgia;
  color: var(--accent, #503944);
}
small {
  opacity: 0.75;
}
.panel {
  background: var(--panel, white);
  border: 1px solid #99888833;
  border-radius: 16px;
  padding: 16px;
  margin: 10px 0;
}
.hero {
  background: var(--accent, #503944);
  color: white;
}
.row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
button,
input,
select,
textarea {
  font: inherit;
  border: 1px solid #99888855;
  border-radius: 10px;
  padding: 10px;
  color: inherit;
  background: var(--panel, white);
}
button {
  cursor: pointer;
}
button.active,
button.primary {
  background: var(--accent, #503944);
  color: white;
}
input:not([type="checkbox"]):not([type="color"]),
select,
textarea {
  width: 100%;
  margin: 5px 0 10px;
}
label {
  display: block;
}
nav {
  position: sticky;
  bottom: 0;
  display: flex;
  background: var(--panel, white);
  padding: 8px 4px max(8px, env(safe-area-inset-bottom));
  gap: 3px;
}
nav button {
  flex: 1;
  font-size: 12px;
  padding: 10px 2px;
}
main {
  min-height: 70vh;
}
.month {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.month button {
  min-height: 58px;
  padding: 4px;
}
.schedule {
  display: grid;
  min-width: 300px;
  gap: 1px;
  background: #99888833;
}
.schedule button {
  border: 0;
  border-radius: 0;
  padding: 0;
}
.event {
  background: var(--accent, #503944);
  color: white;
  padding: 4px;
  border-radius: 5px;
  font-size: 11px;
  overflow: hidden;
  z-index: 2;
}
.nails {
  display: flex;
  gap: 6px;
}
.nail {
  flex: 1;
  min-width: 0;
  background: #e9c7bc;
  border-radius: 60% 60% 20% 20%;
  padding: 10px 2px;
}
.nail input {
  text-align: center;
  background: transparent;
  border: 0;
  padding: 2px;
  color: #382e34;
}
.error {
  color: #b44b55;
}
.line {
  border-bottom: 1px solid #99888833;
  padding: 10px 0;
}
img.logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* NailBoss 1.0.2 — premium mobile shell */
body {
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
}
#app {
  max-width: 900px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
header {
  padding: max(14px, env(safe-area-inset-top)) 20px 15px;
  background: linear-gradient(115deg, #20171d, #3e2932);
  color: #f7e3d7;
  box-shadow: 0 5px 18px #29172222;
}
header > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
header strong {
  color: #f3c5ad;
  font-size: 27px;
  letter-spacing: -0.7px;
}
header small {
  color: #f3d8cb;
}
img.logo {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  box-shadow: 0 3px 10px #0005;
}
main {
  flex: 1;
  min-height: 0;
  padding: 22px 18px 100px;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  line-height: 1.2;
}
h2 {
  font-size: 21px;
  line-height: 1.3;
}
h3 {
  font-size: 17px;
  margin: 20px 0 10px;
}
.panel {
  padding: 19px;
  border-radius: 21px;
  box-shadow:
    0 5px 18px #5834410b,
    0 1px 3px #5834410b;
  border: 1px solid #a56b7724;
  margin: 12px 0;
}
.hero {
  background: linear-gradient(130deg, #2c2027, var(--accent));
  color: #fff3eb;
  box-shadow: 0 8px 20px #3b25363b;
}
.hero button {
  background: #f5d4c2;
  color: #3c2730;
  border-color: transparent;
}
.grid {
  gap: 12px;
}
.grid .panel {
  margin: 0;
  padding: 15px;
}
.grid h2 {
  margin-bottom: 0;
}
button,
input,
select,
textarea {
  border-radius: 12px;
  min-height: 44px;
  padding: 11px 13px;
}
button {
  font-weight: 600;
  box-shadow: 0 2px 4px #432c3910;
}
button.active,
button.primary {
  background: var(--accent);
  border-color: transparent;
  color: white;
}
button:active {
  transform: translateY(1px);
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #c68d78;
  outline-offset: 2px;
}
label {
  font-weight: 550;
  margin: 8px 0;
}
input,
select,
textarea {
  font-size: 16px;
}
input[type="checkbox"] {
  min-height: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 900px);
  z-index: 10;
  padding: 9px 8px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid #b789792e;
  box-shadow: 0 -6px 24px #38252b12;
  gap: 3px;
}
nav button {
  border: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  padding: 7px 1px;
  min-width: 0;
}
nav svg {
  width: 23px;
  height: 23px;
}
nav button.active {
  background: #bd8b7926;
  color: var(--fg);
}
.month {
  gap: 4px;
}
.month button {
  font-size: 13px;
  min-height: 52px;
  box-shadow: none;
}
.schedule button {
  min-height: 0;
  box-shadow: none;
}
.schedule .event {
  background: var(--accent);
  border-radius: 7px;
  padding: 3px;
  font-size: 11px;
}
.line {
  padding: 13px 0;
}
.line:last-child {
  border-bottom: 0;
}
.login-brand {
  text-align: center;
  padding: 8px 0 18px;
}
.login-brand img {
  width: 100px;
  height: 100px;
  border-radius: 23px;
  box-shadow: 0 8px 20px #30202c33;
}
.login-brand h1 {
  margin: 12px 0 4px;
}
.login-brand p {
  opacity: 0.7;
}
.remember {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}
.date-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.clock-fields {
  display: flex;
  align-items: center;
  gap: 5px;
}
.clock-fields select {
  min-width: 0;
  padding: 8px 4px;
}
.error {
  padding: 12px;
  border-radius: 12px;
  background: #bd646416;
  color: var(--fg);
  border: 1px solid #bd646455;
}
.nail {
  background: linear-gradient(130deg, #f4d9cf, #dba89b);
  box-shadow:
    inset 0 2px 5px #fff8,
    0 3px 6px #52342a18;
}
@media (max-width: 380px) {
  main {
    padding-left: 12px;
    padding-right: 12px;
  }
  .date-fields {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 14px;
  }
}
/* Release candidate: consistent touch targets and visual hierarchy. */
header > div > div {
  display: block;
}
header {
  border-bottom: 1px solid #d6a28a55;
}
header strong {
  font-weight: 500;
}
.panel h2 {
  letter-spacing: -0.45px;
}
.hero {
  border: 1px solid #c18b7755;
}
.hero small {
  letter-spacing: 1.1px;
  font-size: 11px;
}
.hero h2 {
  font-size: 23px;
}
.row.spread > h1 {
  margin-bottom: 8px;
}
.row.spread > button.active {
  background: linear-gradient(125deg, #593b48, #86596a);
  color: #fff;
}
.login-brand + form .primary {
  min-width: 45%;
}
.login-brand + form {
  max-width: 480px;
  margin: auto;
}
nav button.active {
  box-shadow: inset 0 0 0 1px #c98c7733;
}
nav button.active svg {
  color: var(--accent);
}
.clock-fields select {
  min-height: 48px;
  text-align: center;
}
.month small {
  text-align: center;
}
.schedule small {
  font-size: 11px;
}
.line p {
  margin: 3px 0;
}
.panel > button + button {
  margin-left: 5px;
}
button[data-a="delete"] {
  color: #b44b55;
}
@media (max-width: 600px) {
  header {
    position: sticky;
    top: 0;
    z-index: 9;
  }
  main {
    padding-top: 16px;
  }
  .row.spread > h1 {
    font-size: 26px;
  }
  .line.row.spread > div {
    flex: 1 1 100%;
  }
  .line.row.spread > button {
    flex: 1;
  }
  .panel {
    overflow-wrap: anywhere;
  }
  .month button {
    min-width: 0;
    padding: 2px;
  }
  .login-brand + form button {
    min-height: 48px;
  }
}
/* Premium reference: dark graphite, rose metallic accents, compact native-style navigation. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0c0d !important;
  --fg: #f7f3f2 !important;
  --panel: #19191b !important;
  --accent: #e4a99f !important;
}
body {
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
header {
  background: var(--bg);
  box-shadow: none;
  border: 0;
  justify-content: center;
  padding: max(10px, env(safe-area-inset-top)) 16px 8px;
}
header > div {
  gap: 8px;
}
header strong {
  font-family: Georgia, serif;
  font-size: 28px;
  color: #d99d8d;
}
header small {
  color: var(--fg);
  font-size: 10px;
}
img.logo {
  width: 40px;
  height: 40px;
  box-shadow: none;
}
main {
  padding: 12px 16px 100px;
}
h1 {
  font-size: 25px;
  letter-spacing: -0.65px;
  margin: 8px 0;
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 17px;
}
.muted,
small {
  color: inherit;
  opacity: 0.72;
}
.panel {
  border-radius: 15px;
  padding: 14px;
  border: 1px solid #a28d892c;
  box-shadow: 0 5px 16px #0002;
}
.hero {
  background: linear-gradient(145deg, #503539, #211b1d 75%);
  border: 1px solid #b77e79;
  color: #fff;
  box-shadow:
    0 6px 20px #0005,
    inset 0 1px 0 #eab4a44a;
}
.hero small {
  letter-spacing: 0;
  font-size: 13px;
}
.hero .client-row {
  background: transparent;
  color: inherit;
  border: 0;
  box-shadow: none;
  padding: 10px 0 0;
}
.client-row {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  margin: 7px 0;
  background: var(--panel);
}
.client-row[hidden] {
  display: none;
}
.client-row > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.client-row small {
  display: block;
  margin-top: 3px;
}
.avatar {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, #efc0ae, #a66e71);
  color: #24171b;
  font-weight: 700;
  border: 1px solid #e8b8a5;
}
.time-pill {
  display: inline-block !important;
  background: #b97f7933;
  border-radius: 20px;
  padding: 3px 9px;
}
.grid .panel {
  text-align: center;
  font-size: 12px;
}
.metric-icon {
  color: #dca79a;
  font-size: 24px;
}
.grid h2 {
  font-size: 23px;
  margin: 4px 0;
}
.week-bars {
  height: 125px;
  display: flex;
  gap: 8px;
  align-items: end;
}
.week-bars > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 4px;
}
.week-bars i {
  width: 75%;
  min-height: 2px;
  background: linear-gradient(#e8aaa1, #795355);
  border-radius: 4px 4px 0 0;
}
.week-bars small {
  font-size: 10px;
}
button.active,
button.primary,
.row.spread > button.active {
  background: linear-gradient(135deg, #f0c2b1, #c88e8b);
  color: #241719;
  border: 0;
}
nav {
  background: var(--bg);
  border-top: 1px solid #a28d8938;
  box-shadow: 0 -8px 25px #0002;
}
nav button.active {
  background: transparent;
  color: #e7a99e;
  box-shadow: none;
}
nav button.active svg {
  color: #e7a99e;
}
nav button {
  color: var(--fg);
}
.schedule {
  background: #a28d8929;
  gap: 1px;
}
.schedule button:not(.event) {
  background: var(--bg);
}
.schedule .event {
  text-align: left;
  padding: 5px 7px;
  color: #251c22;
  border-radius: 7px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  overflow: hidden;
}
.schedule .event small {
  font-size: 10px;
  opacity: 1;
}
.schedule .tone-0 {
  background: #e7a1b5;
}
.schedule .tone-1 {
  background: #c8acd8;
}
.schedule .tone-2 {
  background: #e9bea0;
}
input,
select,
textarea {
  background: var(--panel);
  border-color: #a28d894d;
}
form .primary {
  width: 100%;
  margin-top: 12px;
}
#client[hidden] {
  display: none;
}
.line.row.spread > button {
  font-size: 12px;
}
.client-list {
  max-height: 310px;
  overflow: auto;
}
.panel .nail input {
  color: #382e34;
}
:root[data-theme="light"] header strong {
  color: #784b58;
}
:root[data-theme="light"] nav button.active,
:root[data-theme="light"] nav button.active svg {
  color: #784b58;
}
/* 1.3: reference-driven compact dark interface */
:root[data-theme="dark"] {
  --bg: #090909 !important;
  --panel: #171717 !important;
  --fg: #faf7f6 !important;
}
body {
  font-size: 15px;
}
main {
  max-width: 480px;
  margin: auto;
  padding: 8px 18px 110px;
}
header {
  max-width: 480px;
  margin: auto;
}
header.compact-header {
  display: none;
}
header strong {
  font-style: italic;
  font-size: 30px;
}
header small {
  display: none;
}
h1 {
  font-size: 23px;
  letter-spacing: -0.6px;
}
h2 {
  font-size: 21px;
}
h3 {
  font-size: 16px;
}
.panel,
.client-row {
  background: linear-gradient(145deg, #242223, #111112);
  border: 1px solid #ffffff16;
  border-radius: 15px;
  box-shadow:
    inset 0 1px 0 #ffffff08,
    0 5px 12px #0003;
}
.hero {
  background: radial-gradient(ellipse at 80% 0%, #67484b, #21191a 65%, #151313);
  border-color: #b77e79;
}
.hero .client-row {
  background: none;
}
.avatar {
  width: 45px;
  height: 45px;
  background: linear-gradient(145deg, #dca49a, #79504e);
  color: white;
  font-size: 14px;
}
.segments {
  display: flex;
  background: #202020;
  border-radius: 24px;
  padding: 3px;
  gap: 2px;
  margin: 12px 0;
}
.segments button {
  flex: 1;
  border: 0;
  background: none;
  box-shadow: none;
  border-radius: 20px;
  font-size: 13px;
  padding: 8px 3px;
  min-height: 36px;
}
.segments button.active,
.primary,
.fab {
  background: linear-gradient(180deg, #f5c6bb, #bd827a) !important;
  color: #170e0d !important;
}
.fab {
  position: fixed;
  right: max(20px, calc((100vw - 440px) / 2));
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 12;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 30px;
  box-shadow: 0 5px 20px #0008;
  border: 1px solid #eac1b6;
}
.client-list {
  max-height: none;
}
.client-row {
  min-height: 76px;
}
.client-row small {
  font-size: 12px;
}
.schedule {
  background: #1b1b1b;
  gap: 1px;
}
.schedule .event {
  border-radius: 9px;
  font-size: 12px;
  box-shadow: inset 0 1px 0 #fff4;
}
.schedule .event small {
  font-size: 11px;
}
.booking-steps {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  font-size: 11px;
  color: #efb5ac;
  margin: 18px 0;
}
.screen-appointments label {
  padding: 10px 0;
}
.screen-appointments input,
.screen-appointments select {
  min-height: 48px;
}
.finance-bars {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 90px;
  padding: 8px 0;
}
.finance-bars i {
  flex: 1;
  background: linear-gradient(#f0b1aa, #785052);
  border-radius: 5px 5px 0 0;
}
.week-bars {
  height: 110px;
}
nav {
  max-width: 480px;
  background: #0c0c0c;
  backdrop-filter: blur(20px);
}
nav button.active svg {
  filter: drop-shadow(0 0 5px #e5a49c88);
}
:root[data-theme="light"] .panel,
:root[data-theme="light"] .client-row {
  background: #fff;
  color: #382e34;
}
:root[data-theme="light"] .hero {
  background: #f5ded7;
  color: #382e34;
}
:root[data-theme="light"] nav,
:root[data-theme="light"] .segments {
  background: #f8f2ef;
}
:root[data-theme="light"] .schedule {
  background: #e7d8d3;
}
/* 1.4: final layout overrides */
#app {
  width: 100%;
  max-width: 480px;
}
main {
  width: 100%;
  max-width: none;
  padding: 12px 16px 105px;
}
header {
  width: 100%;
  max-width: none;
  position: static;
  background: var(--bg);
  justify-content: center;
}
header > div {
  gap: 8px;
}
header strong {
  font-size: 30px;
}
header img.logo {
  width: 42px;
  height: 42px;
}
nav {
  width: min(100%, 480px);
  max-width: 480px;
}
nav button {
  min-height: 52px;
}
nav button.active {
  background: transparent;
  color: #efb5aa;
}
nav button.active svg {
  color: #efb5aa;
}
.hero {
  display: block;
  padding: 14px;
}
.hero > small {
  display: block;
  font-weight: 650;
  opacity: 1;
}
.hero .client-row {
  display: flex;
  width: 100%;
  background: transparent;
  color: inherit;
  padding: 8px 0 0;
  margin: 0;
  min-height: 70px;
  box-shadow: none;
  border: 0;
  gap: 10px;
}
.client-row > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.client-row small {
  margin: 0;
}
.week-bars {
  display: flex;
  align-items: flex-end;
  height: 110px;
  gap: 8px;
}
.week-bars > div {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.week-bars i {
  display: block;
  width: 75%;
  background: linear-gradient(#eeb0a5, #795053);
  min-height: 2px;
}
.screen-Accueil .grid .panel {
  padding: 13px 8px;
  min-height: 110px;
}
.screen-Accueil .panel h3 {
  margin: 0 0 5px;
}
.screen-Accueil .line.row.spread {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 5px;
}
.screen-Accueil .line.row.spread > div {
  min-width: 0;
}
.screen-Accueil .line.row.spread > button {
  padding: 6px;
  min-height: 36px;
}
.screen-Accueil .line b {
  font-size: 12px;
}
.screen-Accueil .line p {
  font-size: 12px;
}
.screen-Accueil h1 {
  margin-top: 4px;
}
.screen-Accueil > p.muted {
  margin: 4px 0 12px;
}
.panel {
  overflow-wrap: normal;
}
button[data-a="tab"] {
  border: 0;
}
.screen-Agenda .row.spread {
  gap: 5px;
}
.screen-Agenda .row.spread button {
  padding: 6px 10px;
}
.screen-Agenda .schedule small {
  padding: 3px;
}
.screen-Agenda .schedule .event {
  padding: 5px 8px;
}
.finance-bars i {
  display: block;
}
.booking-steps span {
  flex: 1;
  text-align: center;
}
.booking-steps span:before {
  content: "○";
  display: block;
  font-size: 22px;
}
.booking-steps span:first-child:before {
  content: "●";
}

/* 1.5: seven-day calendar and week selector */
.schedule.seven-days {
  width: 100%;
  min-width: 0;
}
.schedule.seven-days small {
  font-size: 10px;
  padding: 1px;
  text-align: center;
  overflow: hidden;
}
.schedule.seven-days button {
  min-width: 0;
  padding: 0;
}
.schedule.seven-days .event {
  padding: 2px;
  font-size: 9px;
  overflow-wrap: anywhere;
}
.schedule.seven-days .event small {
  font-size: 8px;
  text-align: left;
}
.schedule.seven-days .event strong {
  max-width: 100%;
  overflow: hidden;
}
#finance-week {
  width: 100%;
  accent-color: #dca39b;
  min-height: 32px;
}
.month > span {
  min-width: 0;
}

.studio-heading {
  font-size: 12px;
  color: #bba7a3;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  margin: 22px 4px 9px;
}
.studio-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 13px 4px !important;
  box-shadow: none !important;
  color: inherit !important;
}
.studio-item + .studio-item {
  border-top: 1px solid #ffffff16 !important;
}
.studio-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 12px;
  background: #dca89e20;
  color: #e9b5aa;
  font-size: 22px;
}
.studio-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.studio-copy strong {
  font-size: 15px;
}
.studio-copy small {
  font-size: 12px;
  color: #b6acaa;
}
.studio-chevron {
  font-size: 24px;
  color: #d6a69c;
}
/* 1.7.3: studio forms and single-day booking */
#record .date-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  min-width: 0;
}
#record .date-fields input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
#record .clock-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  width: 100%;
  gap: 8px;
}
#record .clock-fields select {
  width: 100%;
  min-width: 0;
}
.studio-form {
  border: 1px solid #a58b842e;
  border-radius: 20px;
  padding: 14px;
  background: var(--panel);
}
.studio-form label {
  display: block;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #a58b8425;
}
.studio-form .field-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin-bottom: 7px;
}
.studio-form .field-title i {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #b8898020;
  color: #e0aaa0;
  font-style: normal;
}
.studio-form input:not([type="checkbox"]),
.studio-form select {
  min-height: 42px;
  margin: 0;
}
.studio-form .primary {
  margin-top: 16px;
  width: 100%;
}

.week-period-wrap {
  display: flex;
  justify-content: center;
  margin: 14px 0 8px;
}
.week-period {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.week-period svg {
  flex-shrink: 0;
}
.home-gel-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.home-gel-actions button {
  border: 1px solid #d6a69c88;
  color: inherit;
  background: #d6a69c18;
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 13px;
}
.home-day-client {
  display: flex;
  align-items: center;
  gap: 12px;
}
.home-day-client p {
  margin: 5px 0;
  color: inherit;
  opacity: 0.8;
}
/* 1.8 — visual refinement only, inspired by approved premium mockup */
:root[data-theme="dark"] {
  --bg: #141415 !important;
  --panel: #242426 !important;
  --fg: #faf6f3 !important;
  --metal: linear-gradient(155deg, #f7dfc6 0%, #e5b9a4 42%, #b98078 100%);
  --edge: #c4a18b50;
}
:root[data-theme="dark"] body {
  background: radial-gradient(ellipse at 85% 0%, #3c3030 0%, #202022 28%, #141415 65%);
  background-attachment: fixed;
}
main {
  padding: 14px 15px 108px;
}
h1 {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.75px;
}
h2 {
  font-size: 21px;
  font-weight: 650;
}
h3 {
  font-size: 16px;
  font-weight: 650;
}
header {
  background: transparent;
  padding-bottom: 12px;
}
header strong {
  font-size: 33px;
  letter-spacing: -1.5px;
  text-shadow:
    0 1px 1px #fff3,
    0 3px 9px #0008;
}
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .client-row {
  background: linear-gradient(150deg, #303031, #222223 60%, #1b1b1d);
  border: 1px solid var(--edge);
  box-shadow:
    inset 0 1px 0 #ffffff12,
    0 5px 14px #0004;
  border-radius: 16px;
}
:root[data-theme="dark"] .hero {
  background: radial-gradient(ellipse at 95% 0%, #72534d 0%, #393033 45%, #242224 85%);
  border-color: #c6a18b;
  box-shadow:
    inset 0 1px 0 #f4c6aa40,
    0 6px 20px #0005;
}
:root[data-theme="dark"] .hero .client-row {
  background: none;
  border: 0;
  box-shadow: none;
}
.avatar {
  border-color: #e5bfa8;
  box-shadow:
    inset 0 1px 2px #fff4,
    0 3px 8px #0004;
}
.metric-icon {
  display: inline-grid;
  place-items: center;
  color: var(--accent);
  height: 28px;
}
.metric-icon svg {
  width: 25px;
  height: 25px;
}
.grid {
  gap: 10px;
}
.grid .panel h2 {
  font-variant-numeric: tabular-nums;
}
.week-bars i,
.finance-bars i {
  background: linear-gradient(180deg, #efbcb0, #a26c72);
  box-shadow: inset 0 1px 0 #fff5;
}
.week-period {
  border-color: #c9a18c;
  background: #b78c7420;
}
:root[data-theme="dark"] button:not(.studio-item):not(.client-row):not(.event):not(.active):not(.primary):not(.fab) {
  border-color: #c0a39145;
  background: linear-gradient(155deg, #303031, #232325);
  box-shadow: inset 0 1px 0 #fff0;
}
:root[data-theme="dark"] nav button:not(.active),
:root[data-theme="dark"] .segments button:not(.active) {
  background: transparent !important;
  box-shadow: none;
  border: 0;
}
:root[data-theme="dark"] .primary,
:root[data-theme="dark"] .fab,
:root[data-theme="dark"] .segments button.active,
:root[data-theme="dark"] .month button.active {
  background: var(--metal) !important;
  color: #261a17 !important;
  border: 1px solid #f4d6bd80;
  box-shadow:
    inset 0 1px 0 #fff8,
    0 3px 9px #0004;
}
:root[data-theme="dark"] input:not([type="checkbox"]):not([type="color"]),
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background: #1b1b1d;
  border: 1px solid #a78e8055;
  box-shadow: inset 0 2px 5px #0003;
  border-radius: 11px;
}
label {
  font-size: 14px;
  font-weight: 550;
}
.studio-form {
  padding: 13px;
  border-radius: 16px;
}
.studio-form label {
  padding: 9px 0;
}
.studio-form .field-title i,
.studio-icon {
  background: linear-gradient(145deg, #c79b8526, #9e77721a);
  border: 1px solid #c5a08a35;
  color: var(--accent);
}
.studio-item {
  min-height: 58px;
}
.studio-heading {
  font-size: 11px;
  letter-spacing: 1.6px;
}
.studio-copy small {
  opacity: 0.85;
}
.studio-chevron {
  font-weight: 300;
}
.studio-icon svg {
  width: 21px;
  height: 21px;
}
:root[data-theme="dark"] nav {
  background: linear-gradient(180deg, #29292bee, #1b1b1df5);
  border-top: 1px solid #bda18b55;
  box-shadow: 0 -5px 22px #0005;
}
nav button.active {
  color: var(--accent);
}
nav button.active svg {
  color: var(--accent);
  filter: drop-shadow(0 0 4px #dba58c55);
}
nav button {
  font-size: 11px;
}
.segments {
  border: 1px solid #a68e7e30;
  padding: 3px;
  background: #29292a;
}
.schedule .tone-0 {
  background: linear-gradient(140deg, #f1b1c1, #d68da5);
}
.schedule .tone-1 {
  background: linear-gradient(140deg, #e0c7ec, #b79acb);
}
.schedule .tone-2 {
  background: linear-gradient(140deg, #f6d9b5, #d8ab88);
}
.schedule .event {
  border: 1px solid #ffffff35;
  box-shadow:
    inset 0 1px 0 #fff5,
    0 2px 4px #0003;
}
.schedule button:not(.event) {
  background: var(--bg) !important;
}
.month button {
  border-radius: 11px;
}
.booking-steps span:before {
  font-size: 20px;
}
.home-gel-actions button {
  border-color: #c9a18c !important;
  color: var(--accent) !important;
}
.line {
  border-color: #c4a18b25;
}
.nail {
  border: 1px solid #e4b9a8;
  box-shadow:
    inset 0 2px 5px #fff8,
    0 3px 8px #0004;
}
button {
  transition:
    transform 0.12s ease,
    filter 0.12s ease;
}
button:active {
  filter: brightness(1.12);
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
}
@media (max-width: 360px) {
  main {
    padding-inline: 11px;
  }
  .studio-copy strong {
    font-size: 14px;
  }
  .week-period {
    font-size: 12px;
  }
}
/* 1.8.1 — Gel-X atelier finish */
#gel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
#gel label {
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.4px;
}
#gel label input,
#gel label select {
  margin: 0;
  min-height: 44px;
}
#gel .gel-hand-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #c8a18e45;
  padding-top: 16px;
  color: var(--fg);
  font-weight: 650;
  font-size: 14px;
}
#gel .gel-hand-title small {
  font-weight: 400;
  color: var(--accent);
  font-size: 11px;
}
#gel .nails {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding: 4px 0 12px;
}
#gel .gel-finger {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
#gel .finger-label {
  font-size: clamp(8px, 2.1vw, 11px);
  white-space: nowrap;
  color: var(--fg);
  opacity: 0.8;
}
#gel .nail {
  position: relative;
  flex: none;
  width: clamp(29px, 9vw, 53px);
  height: clamp(60px, 18vw, 89px);
  padding: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(105deg, #b9847c 0%, #e8b9ad 22%, #fbe0d4 42%, #e6b1a4 65%, #ba8278 100%);
  border: 1px solid #f6d6c5;
  box-shadow:
    inset 2px 0 5px #fff6,
    inset -3px -5px 8px #95594a44,
    0 5px 10px #0005;
  overflow: hidden;
}
#gel .nail input,
:root[data-theme="dark"] #gel .nail input:not([type="checkbox"]):not([type="color"]) {
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #39241f !important;
  font-size: 19px;
  font-weight: 700;
  outline-offset: -3px;
  border-radius: inherit;
}
#gel .nail:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
#gel .gel-save {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
/* 1.8.2 — editorial salon finish, artwork from approved reference */
.salon-welcome,
.finance-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 14px;
  padding: 13px 12px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.salon-welcome h1,
.salon-welcome p,
.finance-intro h1 {
  margin: 3px 0;
  position: relative;
  z-index: 1;
}
.salon-welcome h1 {
  max-width: 75%;
  font-size: 23px;
}
.salon-welcome:before,
.finance-intro:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #242223 0%, #242223f5 38%, #24222330 100%),
    url("salon-brushes.webp") right center/auto 100% no-repeat;
}
.finance-intro:before {
  background:
    linear-gradient(90deg, #242223 0%, #242223e8 42%, #24222320 100%),
    url("salon-polish.webp") right center/auto 100% no-repeat;
}
.salon-welcome,
.finance-intro {
  color: #fff5ef;
  border: 1px solid #c7a38a55;
}
.finance-intro h1 {
  color: #f2d0aa;
  font-size: 30px;
  font-variant-numeric: tabular-nums;
}
.screen-Accueil .salon-welcome > p {
  font-size: 13px;
}
.screen-Accueil .hero {
  margin-top: 10px;
}
.screen-Accueil .hero > small {
  font-weight: 650;
  color: #f3d4bd;
}
.screen-Accueil .week-bars {
  height: 82px;
}
.screen-Accueil .week-period-wrap {
  margin: 9px 0;
}
.screen-Accueil .grid .panel {
  min-height: 95px;
}
.screen-Accueil .hero .client-row {
  min-height: 65px;
}
.screen-Accueil .home-gel-actions {
  margin-top: 5px;
}
:root[data-theme="dark"] .panel {
  background: linear-gradient(145deg, #303031, #242425 48%, #202021);
  border-color: #a58b7966;
  box-shadow:
    inset 0 1px 0 #ffffff16,
    0 5px 15px #0005;
}
.screen-Agenda .schedule.compact-day {
  grid-template-rows: 20px repeat(
      34,
      minmax(11px, calc((100dvh - 235px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) / 34))
    ) !important;
  gap: 0;
  border: 1px solid #ad958050;
  border-radius: 12px;
  overflow: hidden;
}
.screen-Agenda .compact-day > small {
  font-size: 10px;
  line-height: 1;
  padding: 0 3px;
  align-self: center;
}
.screen-Agenda .compact-day > button:not(.event) {
  min-height: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #a58b7925;
  border-radius: 0;
  box-shadow: none !important;
}
.screen-Agenda .compact-day .event {
  padding: 2px 7px;
  min-height: 0;
  line-height: 1.12;
  gap: 0;
  justify-content: center;
}
.compact-day .event strong,
.compact-day .event small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-size: 10px;
}
.screen-Agenda .segments {
  margin: 5px 0;
}
.screen-Agenda > .row.spread {
  margin-bottom: 4px;
}
.screen-Agenda > .row.spread > button:not(.fab) {
  min-height: 32px;
  padding: 4px 8px;
  font-size: 12px;
}
.screen-Agenda > .row.spread > h1 {
  margin: 3px 0;
}
.screen-Agenda .compact-day .event:focus-visible {
  outline-offset: -2px;
}
.screen-Agenda .compact-day .event small {
  padding: 0;
}
.screen-Agenda .compact-day .event strong {
  font-size: 11px;
}
.screen-Agenda .compact-day > button:not(.event):nth-child(4n) {
  border-bottom-color: #bba18c55;
}
.studio-form .field-title {
  letter-spacing: 0.15px;
}
.studio-item .studio-icon {
  border-radius: 10px;
}
.studio-copy strong {
  letter-spacing: -0.2px;
}
nav button.active svg {
  filter: drop-shadow(0 0 5px #e7b99b88);
}

/* 1.8.3 — seamless decorative photography only */
.salon-welcome:before,
.finance-intro:before {
  inset: 0 0 0 auto;
  width: 54%;
  background: url("salon-polish.webp") right center/cover no-repeat;
  opacity: 0.78;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 22%,
    rgba(0, 0, 0, 0.55) 52%,
    #000 85%
  );
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 22%, rgba(0, 0, 0, 0.55) 52%, #000 85%);
}
.finance-intro:before {
  background-image: url("salon-brushes.webp");
  opacity: 0.62;
}
.salon-welcome:after,
.finance-intro:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 65%, #24222318),
    linear-gradient(0deg, #24222360, transparent 24%, transparent 76%, #24222350);
}

/* Services catalogue */
.service-list {
  margin: 18px 0 22px;
}
.service-list h3 {
  margin: 0 0 12px;
}
.service-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin: 0 0 10px;
}
.service-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(194, 139, 130, 0.13);
  color: var(--accent, #d5a29a);
}
.service-card-info {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.service-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 7px;
  font-size: 0.86rem;
  color: var(--accent, #d5a29a);
}
.service-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.service-card-meta svg {
  width: 15px;
  height: 15px;
}
.service-card button {
  flex-shrink: 0;
  margin: 0;
  padding: 9px 12px;
}
.pose-head {
  padding: 18px;
  border-radius: 16px;
  background: radial-gradient(ellipse at top right, #a77b7630, transparent 70%);
  border: 1px solid #b58b7338;
}
.pose-head h2 {
  margin: 0 0 8px;
}
.pose-head p {
  opacity: 0.75;
  margin: 0;
}
.pose-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}
.pose-actions label {
  position: relative;
  overflow: hidden;
  padding: 14px 8px;
  text-align: center;
  border: 1px solid #b58b7380;
  border-radius: 12px;
  color: #d8a99e;
  background: #a77b7618;
  cursor: pointer;
}
.pose-actions input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
#pose-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pose-card {
  border: 1px solid #b58b7340;
  border-radius: 16px;
  overflow: hidden;
  padding: 8px;
  background: linear-gradient(145deg, #a77b7618, transparent);
}
.pose-card:first-child {
  grid-column: 1/-1;
}
.pose-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
}
.pose-card p {
  font-size: 13px;
}
.pose-card button {
  width: 100%;
}
dialog {
  max-width: 94vw;
  border: 1px solid #b58b73;
  border-radius: 16px;
  background: #181515;
  color: white;
}
dialog img {
  display: block;
  max-width: 85vw;
  max-height: 75vh;
  object-fit: contain;
}
dialog::backdrop {
  background: #000c;
}
.booking-quick {
  gap: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
}
.booking-quick button {
  flex: 1;
  border: 1px solid #b78b80;
  font-weight: 600;
}
.booking-qr {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  margin: 16px auto;
}
.booking-link {
  display: block;
  color: var(--fg);
  text-align: center;
  padding: 12px;
  text-decoration: underline;
}
.booking-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.booking-status {
  color: #d6a89a;
  font-size: 12px;
}
.booking-request details,
.screen-bookinghours details {
  padding: 12px 0;
  border-top: 1px solid #98756b55;
}
.booking-request summary,
.screen-bookinghours summary {
  cursor: pointer;
}
.booking-alert {
  width: 100%;
  margin-bottom: 12px;
}
.screen-booking input[readonly] {
  font-size: 13px;
}
.screen-bookinghours input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin-right: 8px;
}
.screen-bookinghours input[type="time"] {
  min-width: 0;
  width: 100%;
}

/* 2.0.2 — consistent premium finish, no changes to calendar geometry. */
:root[data-theme="dark"] {
  color-scheme: dark;
}
:root[data-theme="dark"] body {
  background: radial-gradient(ellipse at 85% 0%, #34262a 0, transparent 34rem), #101012;
}
:root[data-theme="dark"] header {
  background: linear-gradient(120deg, #171416, #2b2227);
  border-bottom: 1px solid #ad897b35;
  box-shadow: 0 6px 24px #0005;
}
:root[data-theme="dark"] .panel {
  background: linear-gradient(145deg, #29262a, #1e1d20 70%);
  border-color: #bf978344;
  box-shadow:
    inset 0 1px 0 #ffffff0c,
    0 6px 18px #0003;
}
:root[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #403037, #252023);
  border-color: #c5a08d70;
}
:root[data-theme="dark"] button:not(.event):not(.primary):not(.active):not(.fab):not(.nail) {
  border-color: #b08a7e45;
}
:root[data-theme="dark"] input:not([type="checkbox"]):not([type="color"]),
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background: #141316;
  border-color: #c29a864b;
}
:root[data-theme="dark"] nav {
  background: #181519f5;
  border-top: 1px solid #c29a8644;
  backdrop-filter: blur(18px);
}
:root[data-theme="dark"] nav button.active {
  background: #c6947e24;
  color: #f3ccbb;
}
:root[data-theme="dark"] .muted {
  color: #c7b6b5;
  opacity: 1;
}
main h1,
main h2 {
  letter-spacing: -0.65px;
}
main h3 {
  letter-spacing: -0.3px;
}
main .panel h3:first-child {
  margin-top: 0;
}
.panel p:last-child {
  margin-bottom: 0;
}
.booking-quick button {
  min-height: 44px;
  border-radius: 13px;
}
.booking-request {
  overflow-wrap: anywhere;
}
.booking-status {
  font-weight: 650;
  border: 1px solid #b9917c55;
  border-radius: 20px;
  padding: 4px 9px;
}
.booking-request .row button {
  flex: 1;
}
.booking-request form button,
.screen-bookinghours form > button.primary {
  width: 100%;
  margin-top: 8px;
}
.availability-eyebrow {
  font-size: 10px;
  letter-spacing: 1.9px;
  font-weight: 750;
  color: #b58776;
  margin-bottom: 5px;
}
.availability-batch h3 {
  font-size: 21px;
  margin: 0 0 6px;
}
.availability-weekbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  text-align: center;
  margin: 18px 0 10px;
}
.availability-weekbar button {
  font-size: 22px;
  line-height: 1;
  padding: 8px;
}
.availability-weekbar strong {
  font-size: 14px;
}
.availability-select-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.availability-select-actions button {
  flex: 1;
  font-size: 11px;
  padding: 8px 5px;
  min-height: 38px;
}
.availability-days {
  display: grid;
  gap: 6px;
  margin: 12px 0 18px;
}
.availability-day {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #a98a7d40;
  border-radius: 12px;
  padding: 9px 11px;
  margin: 0;
  background: #b58b7310;
  cursor: pointer;
}
.availability-day:has(input:checked) {
  border-color: #c6947e;
  background: #c6947e26;
}
.availability-day:has(input:disabled) {
  opacity: 0.45;
  cursor: default;
}
.availability-day input {
  flex-shrink: 0;
}
.availability-day span {
  display: flex;
  flex: 1;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.availability-day strong {
  font-size: 13px;
  text-transform: capitalize;
}
.availability-day small {
  font-size: 11px;
}
.availability-day.closed small {
  color: #b78e88;
}
.availability-block-row {
  border: 1px solid #ac8d7b48;
  border-radius: 12px;
  padding: 10px;
  margin: 10px 0;
}
.availability-enable {
  font-weight: 700;
}
.availability-footnote {
  font-size: 12px;
  line-height: 1.5;
}
.availability-save {
  min-height: 48px;
}
.availability-existing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #b9957d33;
}
.availability-existing:last-child {
  border-bottom: 0;
}
.availability-existing strong,
.availability-existing small {
  display: block;
}
.availability-existing strong {
  text-transform: capitalize;
}
.availability-existing button {
  font-size: 12px;
  min-height: 40px;
}
.screen-bookinghours [hidden] {
  display: none !important;
}
.screen-bookinghours .panel {
  padding: 15px;
}
.screen-bookinghours .panel > button {
  margin: 4px 0;
}
.screen-bookinghours .booking-two > * {
  min-width: 0;
}
.screen-bookinghours input[type="time"] {
  padding: 10px 5px;
}
.screen-bookinghours input[type="checkbox"] {
  accent-color: #c6947e;
}
.screen-bookinghours h2 {
  margin-bottom: 4px;
}
@media (min-width: 600px) {
  .availability-days {
    grid-template-columns: 1fr 1fr;
  }
  .availability-block-row {
    padding: 14px;
  }
}
@media (max-width: 360px) {
  .availability-day span {
    display: block;
  }
  .availability-day small {
    display: block;
  }
  .availability-select-actions button {
    font-size: 10px;
  }
}

/* 2.0.3 — studio et gestion cliente */
.shopping-add {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 14px 0;
}
.shopping-add input {
  flex: 1;
  min-width: 0;
}
.shopping-add button {
  flex: none;
}
.shopping-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #a98b7933;
  padding: 12px 0;
}
.shopping-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-width: 0;
  flex: 1;
}
.shopping-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex: none;
}
.shopping-done {
  text-decoration: line-through;
  opacity: 0.65;
}
.shopping-row button {
  font-size: 12px;
  flex: none;
}
.change-request {
  border: 1px solid #c59a7c66;
  border-radius: 14px;
  padding: 12px;
  margin: 12px 0;
}
.booking-request select {
  width: 100%;
  margin: 6px 0;
}
.service-card-info p {
  overflow-wrap: anywhere;
  font-size: 12px;
  margin: 3px 0;
}
.studio-form input[type="time"] {
  min-height: 44px;
}
.booking-link {
  overflow-wrap: anywhere;
}

/* ===================== NailBoss 2.0.4 — refonte visuelle ===================== */
:root {
  --rose: #e9ac9f;
  --rose-2: #c9867c;
  --rose-grad: linear-gradient(180deg, #f6cbbf, #bd827a);
  --line: #ffffff14;
}
/* Logo couronne */
header .brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
header .wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
header .wordmark .crown {
  width: 30px;
  height: 17px;
  margin-bottom: -3px;
}
header .wordmark strong {
  font-family: "Didot", "Bodoni 72", Georgia, serif;
  font-style: italic;
  font-size: 32px;
  letter-spacing: -0.5px;
  background: linear-gradient(100deg, #f7d6c9 10%, #c98a7d 45%, #f3c8b8 70%, #b77b70);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
header .brand small {
  display: block !important;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 4px;
}
/* Accueil */
.welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.welcome-row .avatar {
  width: 52px;
  height: 52px;
  font-size: 16px;
  box-shadow: 0 0 0 2px #0c0c0d, 0 0 0 3px #e2a89b;
}
.delta {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  margin: 2px 0 6px;
}
.delta.up {
  color: #7ed49a;
}
.delta.down {
  color: #f08a8a;
}
.vs {
  font-size: 12px;
}
/* Assistant nouveau rendez-vous */
.wiz-head h2 {
  margin: 0;
  font-size: 19px;
}
.wiz-head > button {
  min-width: 44px;
}
.wiz-steps {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 18px;
  position: relative;
}
.wiz-steps::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 14px;
  border-top: 1px dashed #e2a89b66;
}
.wiz-steps > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
  font-size: 11px;
  opacity: 0.6;
}
.wiz-steps i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  background: #1c1a1b;
  border: 1.5px solid #e2a89b88;
}
.wiz-steps .done,
.wiz-steps .current {
  opacity: 1;
}
.wiz-steps .done i {
  background: var(--rose-grad);
  color: #1b1010;
  border-color: transparent;
}
.wiz-steps .current i {
  border-color: #f1bcae;
  box-shadow: 0 0 0 4px #e2a89b22;
}
.client-row.selected,
.gel-card.selected {
  border-color: #e2a89b !important;
  box-shadow: 0 0 0 1px #e2a89b66;
}
.service-dot {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: none;
}
.wiz-new summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--rose);
  padding: 4px 0;
}
.wiz-new[open] summary {
  margin-bottom: 8px;
}
.wiz-date {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(145deg, #242223, #111112);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 12px;
  color: var(--rose);
}
.wiz-date input {
  border: 0 !important;
  background: transparent !important;
  margin: 0 !important;
  color: var(--fg);
}
.wiz-date-label {
  text-transform: capitalize;
  margin: 6px 2px 10px;
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 14px;
}
.slot-grid button {
  min-height: 42px;
  border-radius: 12px;
  background: #151415;
  border: 1px solid #ffffff22;
  font-variant-numeric: tabular-nums;
}
.slot-grid button.active {
  background: var(--rose-grad) !important;
  color: #1b1010 !important;
  border-color: transparent;
}
.slot-grid p {
  grid-column: 1 / -1;
}
.wiz-next {
  width: 100%;
  margin: 18px 0 8px;
  min-height: 50px;
  border-radius: 25px !important;
  font-size: 16px;
}
textarea {
  width: 100%;
}
/* Tons par service (agenda et assistant) */
.tone-0 { background: #f0a9bd !important; }
.tone-1 { background: #c7a9dc !important; }
.tone-2 { background: #ebc19f !important; }
.tone-3 { background: #a9cfc4 !important; }
.tone-4 { background: #e7b0a4 !important; }
/* Agenda */
.schedule .event {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: start !important;
  gap: 7px;
  border-left: 3px solid #0000002e;
  box-shadow: 0 3px 10px #0004;
}
.schedule .event > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.schedule .event strong,
.schedule .event small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.schedule .event .avatar {
  width: 26px;
  height: 26px;
  font-size: 10px;
  border-width: 1px;
}
.pause-block {
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #f1d3ca;
  border-radius: 7px;
  margin: 1px;
  background: repeating-linear-gradient(135deg, #2b2526, #2b2526 6px, #1d191a 6px, #1d191a 12px);
  border: 1px solid #ffffff12;
}
.off-block {
  color: #d9c4bf;
  opacity: 0.85;
}
.now-line {
  z-index: 3;
  pointer-events: none;
  position: relative;
}
.now-line::before {
  content: "";
  position: absolute;
  left: -4px;
  right: 0;
  top: var(--now);
  border-top: 2px solid #f0866f;
}
.now-line::after {
  content: "";
  position: absolute;
  left: -6px;
  top: calc(var(--now) - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0866f;
}
/* Clientes */
.chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 10px 0 4px;
  padding-bottom: 2px;
}
.chips button {
  flex: none;
  border-radius: 18px;
  min-height: 34px;
  padding: 6px 14px;
  font-size: 13px;
  background: #1b1a1b;
}
.chips button.active {
  background: var(--rose-grad) !important;
  color: #1b1010 !important;
}
.fav {
  color: var(--rose);
  font-weight: 400;
}
.profile-head h2 {
  margin: 0;
  flex: 1;
  text-align: center;
}
.star {
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-size: 24px;
  color: #a58a85;
  min-width: 44px;
}
.star.on {
  color: #f2c25b;
}
.stat-grid .panel h2 {
  margin: 0;
  font-size: 20px;
}
.contact-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.contact-line:last-child {
  border-bottom: 0;
}
.contact-line small {
  flex: none;
}
.contact-line > span,
.contact-line > a {
  text-align: right;
  overflow-wrap: anywhere;
}
.contact-line a {
  color: var(--rose);
}
.gel-card {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  color: inherit;
}
.gel-card > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.gel-card small {
  font-size: 12px;
}
.gel-thumb {
  width: 54px;
  height: 70px;
  flex: none;
  border-radius: 14px;
  background:
    radial-gradient(ellipse 9px 16px at 30% 40%, #f6d5ca 60%, transparent 62%),
    radial-gradient(ellipse 9px 18px at 55% 35%, #f3cdbf 60%, transparent 62%),
    radial-gradient(ellipse 8px 15px at 78% 45%, #efc5b6 60%, transparent 62%),
    linear-gradient(160deg, #d9a79b, #8d5f5b);
}
.gel-coffin,
.gel-square,
.gel-ballerina {
  border-radius: 8px;
}
/* Finances */
.period-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(145deg, #242223, #111112);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 10px;
}
.period-nav strong {
  text-transform: capitalize;
}
.period-nav button {
  border: 0;
  background: none;
  box-shadow: none;
  min-width: 44px;
}
.finance-hero h1 {
  font-size: 34px;
  margin: 4px 0 0;
  font-variant-numeric: tabular-nums;
}
.sparkline {
  display: block;
  width: 100%;
  height: 70px;
  margin-top: 6px;
}
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.donut {
  width: 110px;
  height: 110px;
  flex: none;
  transform: rotate(0deg);
}
.legend {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  min-width: 0;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 4px 0;
}
.legend li span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.tx-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.tx-row:last-child {
  border-bottom: 0;
}
.tx-row > button:not(.tx-main) {
  font-size: 12px;
  min-height: 34px;
  padding: 6px 10px;
}
.tx-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  padding: 11px 0 !important;
  min-width: 0;
}
.tx-main > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.tx-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tx-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 700;
}
.tx-icon.income {
  background: #7ed49a22;
  color: #7ed49a;
}
.tx-icon.expense {
  background: #f08a8a22;
  color: #f08a8a;
}
b.income {
  color: #9be0b0;
}
b.expense {
  color: #f3a1a1;
}
/* Avertissement rappels */
.warning-box {
  background: #3a2a14;
  border: 1px solid #d9a44a88;
  color: #f6dcae;
  border-radius: 14px;
  padding: 12px 14px;
  line-height: 1.45;
}
/* Thème clair : contrastes minimaux */
:root[data-theme="light"] .period-nav,
:root[data-theme="light"] .wiz-date {
  background: #fff;
}
:root[data-theme="light"] .chips button,
:root[data-theme="light"] .slot-grid button,
:root[data-theme="light"] .wiz-steps i {
  background: #fff;
}
:root[data-theme="light"] .pause-block {
  background: repeating-linear-gradient(135deg, #f2e8e5, #f2e8e5 6px, #e8dad6 6px, #e8dad6 12px);
  color: #5a4448;
}
/* 2.0.4 — correctifs de priorité */
.screen-Agenda .schedule .event {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  padding: 3px 8px !important;
}
.screen-Agenda .schedule .event > span {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.screen-Agenda .schedule .event > .avatar {
  position: static;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  font-size: 10px;
  color: #fff;
}
.salon-welcome.welcome-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border: 0;
  padding: 4px 2px;
  min-height: 0;
}
.salon-welcome.welcome-row:before {
  display: none;
}
.salon-welcome.welcome-row h1 {
  max-width: none;
  font-size: 24px;
}
.screen-Agenda .schedule .event > span.avatar {
  display: grid !important;
  place-items: center !important;
  flex-direction: unset;
  align-items: center !important;
}
.wiz-date-label,
.period-nav strong {
  text-transform: none;
}
.wiz-date-label::first-letter {
  text-transform: uppercase;
}
.segments button {
  white-space: nowrap;
  font-size: 12.5px;
}

/* ===================== 2.0.5 — demandes de réservation avec photos ===================== */
.req-card.todo {
  border-color: #e2a89b88 !important;
  box-shadow: 0 0 0 1px #e2a89b33, 0 6px 18px #0005;
}
.req-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.req-top > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.req-top strong {
  font-size: 18px;
}
.req-top small {
  font-size: 12px;
}
.req-status {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  padding: 4px 10px;
  background: #ffffff14;
}
.req-status.s-pending {
  background: #f2c25b26;
  color: #f4cf7a;
}
.req-status.s-proposed {
  background: #9fb8f026;
  color: #b9cdf7;
}
.req-status.s-accepted {
  background: #7ed49a22;
  color: #8fdca8;
}
.req-status.s-refused,
.req-status.s-cancelled,
.req-status.s-expired {
  background: #f08a8a1f;
  color: #f0a0a0;
}
.req-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.req-facts > div {
  display: flex;
  flex-direction: column;
  background: #ffffff08;
  border: 1px solid #ffffff10;
  border-radius: 12px;
  padding: 9px 11px;
  min-width: 0;
}
.req-facts small {
  font-size: 11px;
}
.req-facts b {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.req-facts b.cap::first-letter {
  text-transform: uppercase;
}
.req-photos-title {
  margin-top: 4px;
}
.req-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 6px 0 12px;
}
.req-photos img,
.req-photos .ph-loading {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
  display: block;
}
.req-photos .ph-loading {
  background: linear-gradient(90deg, #ffffff0a, #ffffff18, #ffffff0a);
  background-size: 200% 100%;
  animation: phload 1.2s linear infinite;
}
@keyframes phload {
  to {
    background-position: -200% 0;
  }
}
.req-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 14px;
  margin-bottom: 8px;
}
.req-contact a {
  color: var(--rose);
  overflow-wrap: anywhere;
}
.req-match select {
  width: 100%;
}
.req-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.req-actions > * {
  margin: 0 !important;
  min-height: 48px;
  font-size: 15px;
}
.req-actions p {
  align-self: center;
  font-size: 13px;
}
.req-refuse {
  background: #f08a8a14 !important;
  border: 1px solid #f08a8a55 !important;
  color: #f4a6a6 !important;
}
.req-propose summary,
.req-history > summary {
  cursor: pointer;
  color: var(--rose);
  font-weight: 600;
  padding: 10px 0 4px;
}
.req-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.req-links button {
  font-size: 12px;
  min-height: 34px;
  padding: 6px 10px;
}
.photo-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 92vh;
}
.photo-dialog::backdrop {
  background: #000d;
}
.photo-dialog img {
  display: block;
  max-width: 96vw;
  max-height: 80vh;
  border-radius: 14px;
  margin: auto;
}
.photo-dialog button {
  display: block;
  margin: 12px auto 0;
}
.req-note {
  background: #ffffff08;
  border-left: 3px solid #e2a89b;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 4px 0 12px;
}
.req-note p {
  margin: 2px 0 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.req-lang {
  flex: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 20px;
  padding: 4px 8px;
  background: #9fb8f026;
  color: #b9cdf7;
  margin-left: auto;
}
.req-top .req-lang + .req-status {
  margin-left: 6px;
}
.info-box {
  background: #16261c;
  border: 1px solid #7ed49a66;
  color: #cdeed8;
  border-radius: 14px;
  padding: 12px 14px;
  line-height: 1.45;
}
:root[data-theme="light"] .info-box {
  background: #eaf7ee;
  color: #1f4d2e;
}
