.figma-guided__media { position: relative; }
.figma-guided__start {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  left: 20px;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 20px;
  border: 1px solid #a92800;
  border-radius: 8px;
  background: #b72900;
  color: #fff;
  font: 600 15px/1.3 "Inter Drzio", Inter, Arial, sans-serif;
  cursor: pointer;
  transition: background-color 250ms ease, border-color 250ms ease, color 250ms ease;
}
.figma-guided__start:hover { background: #922100; border-color: #922100; color: #fff; }
.figma-guided__start:disabled { opacity: .65; cursor: not-allowed; }
.figma-guided__start:focus-visible,
.figma-guided-timer button:focus-visible,
.figma-guided-timer a:focus-visible { outline: 3px solid #202020; outline-offset: 3px; }

.figma-guided-timer {
  box-sizing: border-box;
  width: min(620px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #e3e3e3;
  border-radius: 16px;
  background: #fff;
  color: #202020;
  font-family: "Inter Drzio", Inter, Arial, sans-serif;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
  overflow-y: auto;
}
.figma-guided-timer::backdrop { background: rgba(0, 0, 0, .68); }
.figma-guided-timer__inner { position: relative; padding: 32px; }
.figma-guided-timer__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f3f3f3;
  color: #202020;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.figma-guided-timer__close:hover { background: #e3e3e3; }
.figma-guided-timer__eyebrow { margin: 0 52px 8px 0; color: #b72900; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.figma-guided-timer h2 { margin: 0 52px 20px 0; font: 500 28px/1.25 "Be Vietnam Pro Drzio", Arial, sans-serif; letter-spacing: -.56px; }
.figma-guided-timer__step-count { margin: 0 0 8px; color: #525252; font-size: 14px; }
.figma-guided-timer h3 { margin: 0 0 10px; font: 500 22px/1.3 "Be Vietnam Pro Drzio", Arial, sans-serif; }
.figma-guided-timer__instruction { min-height: 42px; margin: 0 0 20px; color: #454545; font-size: 16px; line-height: 1.4; }
.figma-guided-timer__clock { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 12px; }
.figma-guided-timer__clock time { font-size: 36px; font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1; }
.figma-guided-timer__clock span { color: #525252; font-size: 14px; }
.figma-guided-timer progress { display: block; width: 100%; height: 12px; margin: 0 0 14px; accent-color: #b72900; }
.figma-guided-timer__source { display: inline-block; margin: 0 0 20px; color: #9a2500; font-size: 14px; font-weight: 600; text-underline-offset: 3px; }
.figma-guided-timer__source[hidden] { display: none; }
.figma-guided-timer__controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.figma-guided-timer__controls button {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #b72900;
  border-radius: 8px;
  background: #fff;
  color: #9a2500;
  font: 600 14px/1.3 "Inter Drzio", Inter, Arial, sans-serif;
  cursor: pointer;
  transition: background-color 250ms ease, border-color 250ms ease, color 250ms ease;
}
.figma-guided-timer__controls button:hover:not(:disabled) { background: #fff1eb; color: #842000; }
.figma-guided-timer__controls [data-guided-timer-toggle] { background: #b72900; color: #fff; }
.figma-guided-timer__controls [data-guided-timer-toggle]:hover { background: #922100; border-color: #922100; color: #fff; }
.figma-guided-timer__controls button:disabled { opacity: .48; cursor: not-allowed; }
.figma-guided-timer__safety { margin: 0 0 20px; padding: 12px 14px; border: 1px solid #efc0ac; border-radius: 8px; background: #fff7f2; color: #3b332f; font-size: 14px; line-height: 1.45; }
.figma-guided-timer__safety:focus { outline: 3px solid #202020; outline-offset: 2px; }

@media (max-width: 600px) {
  .figma-guided-timer__inner { padding: 24px 20px; }
  .figma-guided-timer h2 { font-size: 24px; }
  .figma-guided-timer h3 { font-size: 20px; }
  .figma-guided-timer__clock time { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .figma-guided__start,
  .figma-guided-timer__controls button { transition: none; }
}
