:root {
  --fondo: #000000;
  --carta: #0f0f11;
  --carta-2: #17171a;
  --bordo: rgba(255, 255, 255, 0.08);
  --bordo-2: rgba(255, 255, 255, 0.13);
  --testo: #f4f4f5;
  --testo-2: #a1a1aa;
  --testo-3: #63636b;
  --binario: #2a2a2e;
  --accento: #f5b544;
  --accento-scuro: #2b2111;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--fondo);
  color: var(--testo);
  font-family: "Mona Sans Variable", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(10px, 3.5vmin, 40px);
}

.card {
  width: min(384px, 100%);
  padding: clamp(12px, 3vmin, 18px);
  background: var(--carta);
  border: 1px solid var(--bordo);
  border-radius: 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 28px 60px -30px rgba(0, 0, 0, 0.9);
}

/* the account */
.acc { display: flex; align-items: center; gap: 10px; }
.acc__avatar {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 640;
  letter-spacing: 0.02em;
  color: #1a1408;
  background: linear-gradient(160deg, #f7d79c, #e5a440);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.acc__text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.acc__line { display: flex; align-items: center; gap: 7px; min-height: 20px; }
.acc__name { font-size: 14px; font-weight: 620; letter-spacing: -0.01em; white-space: nowrap; }
.acc__mail { font-size: 12px; color: var(--testo-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc__app { margin-left: auto; align-self: flex-start; font-size: 11.5px; color: var(--testo-3); white-space: nowrap; }

.away {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px 0 5px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accento);
  background: var(--accento-scuro);
  box-shadow: 0 0 0 1px rgba(245, 181, 68, 0.22) inset;
  visibility: hidden;
}
.away__sun { width: 13px; height: 13px; overflow: visible; }
.away__rays path { fill: none; stroke: var(--accento); stroke-width: 1.4; stroke-linecap: round; }
.away__core { fill: var(--accento); }

/* the setting row */
.row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: clamp(10px, 3vmin, 16px);
  padding: 11px 12px;
  background: var(--carta-2);
  border: 1px solid var(--bordo);
  border-radius: 14px;
}
.ico {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #1f1f23;
}
.ico svg { width: 20px; height: 20px; }
.ico__sun circle { fill: var(--accento); }
.ico__sun path { fill: none; stroke: var(--accento); stroke-width: 1.5; stroke-linecap: round; }
.ico__line { fill: none; stroke: var(--testo-2); stroke-width: 1.5; stroke-linecap: round; }
.ico__line--soft { stroke: var(--testo-3); }
.row__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.row__name { font-size: 13.5px; font-weight: 600; }
.row__hint { display: block; height: 16px; overflow: hidden; font-size: 12px; color: var(--testo-3); }
.row__hint span { display: block; white-space: nowrap; }

.sw {
  flex: none;
  position: relative;
  width: 48px;
  height: 28px;
  border: 0;
  border-radius: 14px;
  background: var(--binario);
  cursor: pointer;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) inset;
}
.sw:focus-visible { box-shadow: 0 0 0 3px #000, 0 0 0 4px var(--accento); }
.sw__knob {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff, #e9e9ec);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 0 0 0.5px rgba(0, 0, 0, 0.2);
}
@media (hover: hover) {
  .sw:hover .sw__knob { background: linear-gradient(180deg, #ffffff, #f4f4f6); }
  .date:hover .date__value { border-color: var(--bordo-2); background: #1d1d21; }
}

/* the auto-reply */
.panel { height: 0; overflow: hidden; }
.panel__in { padding-top: 12px; }
.dates { display: flex; align-items: flex-end; gap: 8px; }
.date { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.date__label { font-size: 11px; color: var(--testo-3); padding-left: 2px; }
.date__value {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 11px;
  border-radius: 11px;
  background: var(--carta-2);
  border: 1px solid var(--bordo);
  font-size: 13px;
  font-weight: 560;
  transition: border-color 0.2s, background 0.2s;
}
.date__value svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--testo-2); stroke-width: 1.3; stroke-linecap: round; }
.dates__to { flex: none; width: 18px; height: 10px; margin-bottom: 13px; fill: none; stroke: var(--testo-3); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

.msg {
  margin-top: 10px;
  padding: 10px 12px 11px;
  border-radius: 12px;
  background: var(--carta-2);
  border: 1px solid var(--bordo);
}
.msg__label { display: block; font-size: 11px; color: var(--testo-3); margin-bottom: 4px; }
.msg__text {
  min-height: calc(1.45em * 3);
  font-size: 12.8px;
  line-height: 1.45;
  color: #d4d4d8;
}
.caret {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -0.15em;
  background: var(--accento);
  opacity: 0;
}
.foot { height: 16px; overflow: hidden; margin-top: 8px; padding-left: 2px; font-size: 11.5px; color: var(--testo-3); }
.foot span { display: block; }

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #ffffff;
  stroke: #000;
  stroke-width: 1.3;
  stroke-linejoin: round;
  visibility: hidden;
  z-index: 5;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

@media (max-height: 470px) {
  .acc__app { display: none; }
  .msg__text { min-height: calc(1.45em * 2); font-size: 12px; }
  .foot { display: none; }
}
@media (max-width: 360px) {
  .acc__app { display: none; }
}
