.dp-clock {
  --dp-red: #d2382d;
  --dp-cream: #f4ead7;
  --dp-ink: #181818;
  box-sizing: border-box;
  max-width: 620px;
  margin: 20px auto;
  padding: clamp(22px, 5vw, 42px);
  border-radius: 20px;
  background: var(--dp-ink);
  color: var(--dp-cream);
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.dp-clock * { box-sizing: border-box; }
.dp-clock__brand { color: var(--dp-red); font-weight: 900; letter-spacing: .14em; text-align: center; }
.dp-clock h2 { margin: 3px 0 26px; color: #fff; font-size: clamp(30px, 7vw, 48px); line-height: 1; text-align: center; }
.dp-clock label { display: block; margin: 17px 0 7px; font-size: 15px; font-weight: 750; }
.dp-clock select,
.dp-clock input { width: 100%; min-height: 56px; padding: 0 16px; border: 2px solid #555; border-radius: 10px; background: #fff; color: #111; font-size: 20px; }
.dp-clock input[name="pin"] { text-align: center; font-size: 30px; letter-spacing: .35em; }
.dp-clock__location { display: flex; gap: 9px; align-items: flex-start; margin: 18px 0; color: #cfcfcf; font-size: 14px; line-height: 1.35; }
.dp-clock__location--off { color: #f0b4ae; }
.dp-clock__location--off .dp-clock__location-dot { background: #d2382d; }
.dp-clock__location-dot { flex: 0 0 10px; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: #d7a42d; }
.dp-clock__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.dp-clock__button { min-height: 62px; padding: 10px; border: 0; border-radius: 12px; background: #404040; color: #fff; font-size: 18px; font-weight: 850; text-transform: uppercase; cursor: pointer; }
.dp-clock__button--in { background: #238b57; }
.dp-clock__button--out { background: var(--dp-red); }
.dp-clock__button:disabled { cursor: wait; opacity: .5; }
.dp-clock__result { display: none; margin-top: 18px; padding: 15px; border-radius: 10px; font-weight: 750; text-align: center; }
.dp-clock__result.is-success { display: block; background: #dff4e8; color: #0d5935; }
.dp-clock__result.is-error { display: block; background: #fae1df; color: #7d1c16; }
.dp-clock__check-link { display: block; margin-top: 13px; padding: 13px; border-radius: 8px; background: var(--dp-red); color: #fff !important; text-decoration: none; }
.dp-clock__notice { padding: 14px; border-radius: 8px; }
.dp-clock__notice--error { background: #fae1df; color: #7d1c16; }
/* Actual-time correction */
.dp-clock__actual { margin: 18px 0 0; padding: 0 14px; border: 1px solid #3a3a3a; border-radius: 12px; background: #222; }
.dp-clock__actual summary { padding: 14px 0; color: #fff; font-weight: 750; cursor: pointer; list-style: none; }
.dp-clock__actual summary::-webkit-details-marker { display: none; }
.dp-clock__actual summary::before { content: "+"; display: inline-block; width: 1.1em; color: #d7a42d; font-weight: 900; }
.dp-clock__actual[open] summary::before { content: "–"; }
.dp-clock__actual[open] { padding-bottom: 14px; border-color: #d7a42d; }
.dp-clock__actual label { margin-top: 12px; }
.dp-clock__actual-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.dp-clock__actual-grid > div { min-width: 0; }
.dp-clock__actual-grid select, .dp-clock__actual-grid input { min-width: 0; padding: 0 8px; font-size: 17px; }
.dp-clock__actual-grid input[type=time] { padding: 0 6px; font-size: 16px; }
.dp-clock__hint { margin: 0 0 4px; color: #cfcfcf; font-size: 14px; line-height: 1.4; }
.dp-clock textarea { width: 100%; padding: 12px 16px; border: 2px solid #555; border-radius: 10px; background: #fff; color: #111; font-size: 17px; font-family: inherit; }
@media (max-width: 480px) {
  .dp-clock { margin: 0; border-radius: 0; min-height: 100vh; }
  .dp-clock__actions { grid-template-columns: 1fr; }
}


/* ---------------------------------------------------------------------------
   Theme-proofing. Elementor's Site Settings > Buttons (and many themes) style
   every <button> on the site. These rules are deliberately more specific
   ("html body .dp-clock button.x") so the clock always keeps its own look.
   --------------------------------------------------------------------------- */
html body .dp-clock button,
html body .dp-clock a.dp-clock__button {
  margin: 0;
  font-family: inherit;
  letter-spacing: normal;
  text-shadow: none;
  box-shadow: none;
  transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}
html body .dp-clock button.dp-clock__button,
html body .dp-clock a.dp-clock__button {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 62px; padding: 10px; border: 0; border-radius: 12px;
  background: #404040; color: #fff;
  font-size: 18px; font-weight: 850; line-height: 1.2; text-transform: uppercase; text-decoration: none;
}
html body .dp-clock button.dp-clock__button:hover,
html body .dp-clock button.dp-clock__button:focus,
html body .dp-clock a.dp-clock__button:hover,
html body .dp-clock a.dp-clock__button:focus { background: #4d4d4d; color: #fff; }
html body .dp-clock button.dp-clock__button--in,
html body .dp-clock a.dp-clock__button--in { background: #238b57; }
html body .dp-clock button.dp-clock__button--in:hover,
html body .dp-clock button.dp-clock__button--in:focus,
html body .dp-clock a.dp-clock__button--in:hover,
html body .dp-clock a.dp-clock__button--in:focus { background: #1d7549; }
html body .dp-clock button.dp-clock__button--out { background: #d2382d; }
html body .dp-clock button.dp-clock__button--out:hover,
html body .dp-clock button.dp-clock__button--out:focus { background: #b52e25; }
html body .dp-clock button.dp-clock__button:disabled { cursor: wait; opacity: .5; }
html body .dp-clock button:focus-visible,
html body .dp-clock a.dp-clock__button:focus-visible { outline: 3px solid #d7a42d; outline-offset: 2px; }

.dp-clock__check-link.dp-clock__task-link { background: #222; }
