/* ==========================================================================
   #amp — «ГРОМКО» / poster study desk
   All selectors are scoped to #amp. Loaded after styles.css.
   ========================================================================== */

#amp {
  --amp-black: #080808;
  --amp-acid: #dfff00;
  --amp-red: #d92f1b;
  --amp-red-ink: #b32612;
  --amp-blue: #1748ff;
  --amp-cream: #fff7df;
  --amp-muted: #4b4c43;
  background: var(--amp-acid);
  color: var(--amp-black);
  font-family: var(--sans);
  overflow: hidden;
}

#amp .poster-grid {
  inset: 0;
  background-image:
    linear-gradient(#0000000f 1px, transparent 1px),
    linear-gradient(90deg, #0000000f 1px, transparent 1px);
  background-size: 5vw 5vw;
  pointer-events: none;
}

#amp button,
#amp a { -webkit-tap-highlight-color: transparent; }

#amp :is(button, a):focus-visible {
  outline: 3px solid var(--amp-blue);
  outline-offset: -5px;
}
#amp .amp-task.hot:focus-visible,
#amp .amp-timer :is(button):focus-visible,
#amp .amp-focus :is(button):focus-visible { outline-color: #fff; }
#amp .amp-focus :is(button):focus-visible { outline-offset: 3px; }
#amp .amp-menu button:focus-visible { outline-offset: 2px; }

/* ── HEAD ───────────────────────────────────────────────────────────────── */

#amp .amp-head {
  height: 64px;
  padding: 0 26px;
  border-bottom: 3px solid var(--amp-black);
  background: var(--amp-acid);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  z-index: 4;
}

#amp .amp-logo {
  font: 900 20px/1 var(--display);
  letter-spacing: -.08em;
  display: flex;
  align-items: flex-start;
  gap: 3px;
}
#amp .amp-logo span { color: var(--amp-red); }
#amp .amp-logo i {
  font: 700 8px/1 var(--mono);
  font-style: normal;
  letter-spacing: .04em;
  border: 1px solid currentColor;
  padding: 2px 3px;
  margin: 0 0 0 5px;
  transform: translateY(1px);
}

#amp .amp-head-meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font: 700 9px/1.2 var(--mono);
  letter-spacing: .1em;
}
#amp .amp-head-meta b {
  font-weight: 500;
  padding-left: 12px;
  border-left: 1px solid #08080855;
}

#amp .amp-menu {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
  font: 700 8.5px/1 var(--mono);
  letter-spacing: .1em;
}
#amp .amp-menu > span { opacity: .65; }
#amp .amp-menu button {
  width: auto;
  height: 34px;
  padding: 0 12px;
  border: 2px solid var(--amp-black);
  background: transparent;
  color: var(--amp-black);
  font: 700 8.5px/1 var(--mono);
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .16s, color .16s;
}
#amp .amp-menu button:hover { background: var(--amp-black); color: var(--amp-acid); }

/* ── HERO ───────────────────────────────────────────────────────────────── */

#amp .amp-hero {
  position: relative;
  min-height: 360px;
  padding: 22px 40px 22px 62px;
  border-bottom: 3px solid var(--amp-black);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: stretch;
  overflow: hidden;
}

#amp .vertical-note {
  position: absolute;
  left: 15px;
  top: 26px;
  bottom: 20px;
  margin: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 700 8.5px/1 var(--mono);
  letter-spacing: .16em;
  opacity: .72;
}

#amp .hero-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
#amp .hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font: 700 9px/1.2 var(--mono);
  letter-spacing: .1em;
}
#amp .hero-kicker span {
  background: var(--amp-black);
  color: var(--amp-acid);
  padding: 5px 7px;
}
#amp .hero-kicker b {
  font-weight: 500;
  opacity: .7;
}

#amp .amp-hero h1 {
  font: 900 clamp(76px, 9.2vw, 132px)/.8 var(--display);
  letter-spacing: -.09em;
  margin: 0;
  position: relative;
  z-index: 2;
  padding-right: 4px;
  max-width: 100%;
}
#amp .amp-hero h1 span {
  color: var(--amp-red);
  -webkit-text-stroke: 2px var(--amp-black);
  text-shadow: 5px 5px 0 var(--amp-black);
}

#amp .hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 12px;
}
#amp .hero-copy {
  position: static;
  margin: 0;
  font: 600 14px/1.3 var(--mono);
  transform: rotate(-2deg);
  max-width: 280px;
}
#amp .hero-copy b {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 5px;
  background: var(--amp-black);
  color: var(--amp-acid);
}
#amp .hero-stamp {
  position: static;
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  margin-right: 4px;
  transform: rotate(9deg);
  background: var(--amp-cream);
  border: 3px solid var(--amp-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 4px 4px 0 var(--amp-black);
}
#amp .hero-stamp:after { inset: 4px; border-color: var(--amp-black); }
#amp .hero-stamp b { font: 900 33px/1 var(--display); letter-spacing: -.06em; }
#amp .hero-stamp span { font: 700 8.5px/1.3 var(--mono); letter-spacing: .02em; }

#amp .hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}
#amp .hero-circle {
  position: relative;
  right: auto;
  top: auto;
  width: 226px;
  height: 226px;
  flex: 0 0 auto;
  background: var(--amp-blue);
  color: #fff;
  border: 3px solid var(--amp-black);
  border-radius: 50%;
  box-shadow: 8px 8px 0 var(--amp-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
}
#amp .hero-circle > span {
  font: 700 8.5px/1.2 var(--mono);
  letter-spacing: .14em;
  opacity: .9;
}
#amp .hero-circle b {
  font: 900 62px/.95 var(--display);
  letter-spacing: -.09em;
  line-height: .95;
  margin: 4px 0 1px;
}
#amp .hero-circle.is-full b {
  font-size: 52px;
  letter-spacing: -.1em;
}
#amp .hero-circle em {
  font: 700 9px/1 var(--mono);
  font-style: normal;
  letter-spacing: .08em;
  color: var(--amp-acid);
}
#amp .hero-meter {
  width: 112px;
  height: 7px;
  margin-top: 8px;
  border: 2px solid #fff;
  background: #ffffff2e;
}
#amp .hero-meter i,
#amp .amp-timer-meter i,
#amp .program-meter em,
#amp .amp-focus-meter i {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: var(--amp-acid);
  transition: width .35s ease;
}

#amp .hero-side-note {
  width: 226px;
  margin: 0;
  display: grid;
  gap: 2px;
}
#amp .hero-side-note > span {
  font: 700 8px/1 var(--mono);
  letter-spacing: .14em;
  opacity: .65;
}
#amp .hero-side-note b {
  font: 900 13px/1.05 var(--display);
  letter-spacing: -.035em;
}
#amp .hero-side-note i {
  font: 500 8.5px/1.2 var(--mono);
  font-style: normal;
  letter-spacing: .05em;
  opacity: .7;
}

/* ── STATUS TICKER ──────────────────────────────────────────────────────── */

#amp .ticker {
  height: 50px;
  background: var(--amp-black);
  color: #fff;
  border-bottom: 3px solid var(--amp-black);
  display: grid;
  grid-template-columns: 1.55fr 1fr .8fr .7fr;
  overflow: hidden;
  position: relative;
  z-index: 3;
}
#amp .ticker > div,
#amp .ticker > button {
  animation: none;
  white-space: normal;
  transform: none;
  font: inherit;
}
#amp .ticker span { color: inherit; margin: 0; }
#amp .ticker-focus {
  border-top: 0;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease;
}
#amp .ticker-focus:hover { background: #ffffff10; }
#amp .ticker-focus:hover > span { color: var(--amp-acid); }
#amp .ticker-focus:focus-visible { outline: 3px solid var(--amp-acid); outline-offset: -4px; }
#amp .ticker-cell {
  min-width: 0;
  padding: 7px 17px;
  border-right: 1px solid #ffffff2e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
#amp .ticker-cell:last-child { border-right: 0; }
#amp .ticker-cell > span {
  font: 700 8.5px/1 var(--mono);
  letter-spacing: .15em;
  color: #b9baad;
  display: flex;
  align-items: center;
  gap: 6px;
}
#amp .ticker-cell > b {
  font: 700 11px/1.2 var(--mono);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#amp .ticker-now > b { color: var(--amp-acid); }
#amp .ticker-now > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amp-acid);
  animation: amp-live 2s ease-in-out infinite;
}
#amp .ticker-cell > b span { font: inherit; }
#amp .ticker-cell > b i {
  font-style: normal;
  font-weight: 400;
  color: #b9baad;
}

/* ── DESK / PROGRAM ─────────────────────────────────────────────────────── */

#amp .amp-desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  grid-template-areas:
    "program timer"
    "program week";
  grid-template-rows: auto 1fr;
  border-bottom: 3px solid var(--amp-black);
  align-items: start;
}

#amp .amp-program {
  grid-area: program;
  border-bottom: 0;
  border-right: 3px solid var(--amp-black);
  min-width: 0;
}
#amp .amp-timer { grid-area: timer; }
#amp .amp-week { grid-area: week; }

#amp .program-head {
  height: 52px;
  padding: 0 20px;
  border-bottom: 2px solid var(--amp-black);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  font-family: var(--mono);
}
#amp .program-title {
  display: flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}
#amp .program-title span {
  font: 700 9.5px/1 var(--mono);
  letter-spacing: .11em;
}
#amp .program-title b {
  font: 900 15px/1 var(--display);
  letter-spacing: -.04em;
}
#amp .program-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 190px;
}
#amp .program-meter > span {
  font: 700 9px/1 var(--mono);
  letter-spacing: .03em;
  white-space: nowrap;
}
#amp .program-meter > i {
  flex: 1;
  min-width: 36px;
  height: 8px;
  border: 2px solid var(--amp-black);
  background: #0000000d;
  overflow: hidden;
}
#amp .program-meter em { background: var(--amp-black); }
#amp .program-head > p {
  margin: 0;
  font: 500 9px/1.2 var(--mono);
  text-align: right;
  letter-spacing: .01em;
  opacity: .76;
}

#amp .amp-task {
  width: 100%;
  min-height: 85px;
  padding: 12px 20px;
  border: 0;
  border-bottom: 2px solid var(--amp-black);
  background: transparent;
  color: var(--amp-black);
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 132px 92px;
  gap: 16px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background .18s ease, color .18s ease;
}
#amp .amp-task:last-child { border-bottom: 0; }
#amp .amp-task:before {
  content: attr(data-order);
  position: absolute;
  left: 37%;
  top: 50%;
  transform: translate(-50%, -50%);
  font: 900 76px/1 var(--display);
  color: #0000000d;
  pointer-events: none;
  transition: color .18s ease;
}
#amp .amp-task > span {
  font: 700 11px/1 var(--mono);
  letter-spacing: .02em;
}
#amp .amp-task > b {
  font: 900 26px/.9 var(--display);
  letter-spacing: -.06em;
  min-width: 0;
}
#amp .amp-task > em {
  font: 700 9px/1.3 var(--mono);
  font-style: normal;
  letter-spacing: .04em;
  border: 1.5px solid currentColor;
  padding: 4px 6px;
  width: max-content;
  max-width: 100%;
}
#amp .amp-task > i {
  font: 700 9.5px/1.1 var(--mono);
  font-style: normal;
  text-align: right;
  white-space: nowrap;
}
#amp .amp-task:hover { background: #fff7dfa6; }
#amp .amp-task:hover:before { color: #00000018; }
#amp .amp-task:active { background: #fff7dfe6; }

#amp .amp-task.hot {
  background: var(--amp-red);
  color: #fff;
}
#amp .amp-task.hot:before { color: #ffffff12; }
#amp .amp-task.hot:hover { background: #c72916; }
#amp .amp-task.hot > em { border-color: #fff; }
#amp .amp-task.hot > i {
  width: 70px;
  height: 70px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  justify-self: end;
  transform: rotate(6deg);
  font-size: 8.5px;
  letter-spacing: .03em;
}

#amp .amp-task.done { background: var(--amp-cream); }
#amp .amp-task.done > b {
  text-decoration: line-through;
  text-decoration-thickness: 4px;
  text-decoration-color: var(--amp-black);
}
#amp .amp-task.done > i { color: var(--amp-blue); font-weight: 700; }
#amp .amp-task.done:hover { background: #fffdf4; }

#amp .amp-task.just-done:after,
#amp .amp-task.just-undone:after {
  position: absolute;
  right: 16%;
  top: 50%;
  font: 900 62px/1 var(--display);
  pointer-events: none;
  animation: amp-stamp .6s cubic-bezier(.2, .9, .2, 1) both;
}
#amp .amp-task.just-done:after { content: '✓'; color: var(--amp-blue); }
#amp .amp-task.just-undone:after { content: '↺'; color: var(--amp-red); }

/* ── TIMER ──────────────────────────────────────────────────────────────── */

#amp .amp-timer {
  min-height: 264px;
  padding: 17px 20px 15px;
  background: var(--amp-blue);
  color: #fff;
  border-bottom: 3px solid var(--amp-black);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: background .22s ease, color .22s ease;
}
#amp .amp-timer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#amp .amp-timer-top > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 700 9.5px/1 var(--mono);
  letter-spacing: .11em;
}
#amp .amp-timer-top > span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amp-acid);
  box-shadow: 0 0 0 3px #dfff0026;
  animation: amp-live 2s ease-in-out infinite;
}
#amp .amp-timer-top > em {
  font: 500 8.5px/1 var(--mono);
  font-style: normal;
  letter-spacing: .09em;
  opacity: .88;
}
#amp .amp-timer > b {
  grid-column: auto;
  font: 900 clamp(64px, 6vw, 88px)/.95 var(--display);
  letter-spacing: -.09em;
  margin: 9px 0 7px;
  font-variant-numeric: tabular-nums;
}
#amp .amp-timer-meter {
  height: 6px;
  border: 1px solid #ffffff9e;
  background: #ffffff2e;
  overflow: hidden;
}
#amp .amp-timer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
#amp .amp-timer-actions button {
  min-height: 38px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  padding: 9px 12px;
  font: 700 9px/1 var(--mono);
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
}
#amp .amp-timer-actions button:hover {
  background: var(--amp-acid);
  border-color: var(--amp-acid);
  color: var(--amp-black);
}
#amp .amp-focus-open {
  border-color: transparent !important;
  border-bottom-color: currentColor !important;
  padding-left: 2px !important;
  padding-right: 2px !important;
}
#amp .amp-focus-open:hover { background: transparent !important; color: var(--amp-acid) !important; }
#amp .amp-timer-actions button:disabled,
#amp .amp-focus-foot button:disabled {
  opacity: .55;
  cursor: default;
  background: transparent !important;
  color: inherit !important;
}
#amp .amp-timer-task {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid #ffffff4d;
  display: grid;
  gap: 3px;
}
#amp .amp-timer-task span {
  font: 700 8.5px/1 var(--mono);
  letter-spacing: .14em;
  opacity: .8;
}
#amp .amp-timer-task b {
  font: 900 13px/1.05 var(--display);
  letter-spacing: -.03em;
}

#amp .amp-timer.is-paused {
  background: var(--amp-cream);
  color: var(--amp-black);
}
#amp .amp-timer.is-paused .amp-timer-top > span i {
  background: var(--amp-red);
  box-shadow: none;
  animation: none;
}
#amp .amp-timer.is-paused .amp-timer-meter { border-color: var(--amp-black); background: #00000010; }
#amp .amp-timer.is-paused .amp-timer-meter i { background: var(--amp-red); }
#amp .amp-timer.is-paused .amp-timer-actions button {
  border-color: var(--amp-black);
  color: var(--amp-black);
}
#amp .amp-timer.is-paused .amp-timer-actions button:hover {
  background: var(--amp-black);
  color: var(--amp-acid);
}
#amp .amp-timer.is-paused .amp-timer-task,
#amp .amp-timer.is-paused .amp-timer-top > em { border-color: #08080855; }

#amp .amp-timer.is-finished {
  background: var(--amp-cream);
  color: var(--amp-black);
}
#amp .amp-timer.is-finished:after {
  content: '✓';
  position: absolute;
  right: 8px;
  bottom: -30px;
  font: 900 160px/1 var(--display);
  color: var(--amp-blue);
  opacity: .16;
  pointer-events: none;
}
#amp .amp-timer.is-finished .amp-timer-top > span i { background: var(--amp-blue); animation: none; }
#amp .amp-timer.is-finished .amp-timer-meter { border-color: var(--amp-black); }
#amp .amp-timer.is-finished .amp-timer-meter i { background: var(--amp-blue); }
#amp .amp-timer.is-finished .amp-timer-actions button { border-color: var(--amp-black); color: var(--amp-black); }

/* ── WEEK ───────────────────────────────────────────────────────────────── */

#amp .amp-week {
  padding: 15px 20px 12px;
  background: var(--amp-acid);
  position: relative;
}
#amp .amp-week > div { white-space: normal; font: inherit; }
#amp .amp-week-head {
  height: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
}
#amp .amp-week-head span { font: 700 9.5px/1 var(--mono); letter-spacing: .11em; }
#amp .amp-week-head b { font: 700 9.5px/1 var(--mono); letter-spacing: .04em; }

#amp .amp-week-chart {
  height: 138px;
  margin-top: 10px;
  padding: 0 2px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  position: relative;
  border-bottom: 2px solid var(--amp-black);
}
#amp .amp-week-goal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 90px;
  border-top: 1px dashed #08080870;
  pointer-events: none;
  z-index: 0;
}
#amp .amp-week-goal span {
  position: absolute;
  right: 0;
  top: -12px;
  font: 700 8px/1 var(--mono);
  letter-spacing: .05em;
  color: var(--amp-muted);
}
#amp .amp-day {
  flex: 1;
  min-width: 0;
  height: 136px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--amp-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
#amp .amp-day b {
  font: 700 9px/1 var(--mono);
  letter-spacing: .01em;
  opacity: .72;
  transition: opacity .15s;
}
#amp .amp-day i {
  width: 100%;
  max-width: 27px;
  height: calc(var(--v) * 1.2px);
  min-height: 8px;
  background: var(--amp-cream);
  border: 2px solid var(--amp-black);
  transition: height .3s ease, background .16s ease, transform .16s ease;
}
#amp .amp-day span {
  font: 700 10px/1.2 var(--mono);
  letter-spacing: .02em;
  padding-top: 2px;
}
#amp .amp-day.hit i { background: var(--amp-red); }
#amp .amp-day.hit span { color: var(--amp-red-ink); }
#amp .amp-day:hover i,
#amp .amp-day:focus-visible i { background: var(--amp-black); transform: translateY(-2px); }
#amp .amp-day.is-selected i { background: var(--amp-blue); }
#amp .amp-day:focus-visible { outline: 3px solid var(--amp-blue); outline-offset: -2px; }
#amp .amp-week-note {
  margin: 7px 0 0;
  font: 700 9px/1.3 var(--mono);
  letter-spacing: .06em;
  color: var(--amp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── QUOTE STRIP ────────────────────────────────────────────────────────── */

#amp .amp-quote {
  min-height: 104px;
  background: var(--amp-cream);
  padding: 14px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
#amp .amp-quote > b {
  font: 900 72px/.7 var(--serif);
  color: var(--amp-red);
  position: static;
}
#amp .amp-quote p {
  font: 900 clamp(20px, 2.1vw, 29px)/.95 var(--display);
  letter-spacing: -.05em;
  margin: 0;
}
#amp .amp-quote > span {
  margin-left: auto;
  font: 700 8.5px/1 var(--mono);
  letter-spacing: .12em;
  color: var(--amp-muted);
  white-space: nowrap;
}

/* ── FOCUS POSTER (dialog) ──────────────────────────────────────────────── */

#amp .amp-focus {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--amp-black);
  color: var(--amp-acid);
  overflow: hidden;
  display: none;
}
#amp .amp-focus[open] {
  display: flex;
  flex-direction: column;
  animation: amp-poster-in .42s cubic-bezier(.2, .8, .2, 1) both;
}
#amp .amp-focus::backdrop {
  background: var(--amp-black);
  animation: amp-fade .3s ease both;
}
#amp .amp-focus-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#dfff0010 1px, transparent 1px),
    linear-gradient(90deg, #dfff0010 1px, transparent 1px);
  background-size: 4.6vw 4.6vw;
  pointer-events: none;
}
#amp .amp-focus-folio {
  position: absolute;
  right: 2vw;
  bottom: -7vh;
  font: 900 37vw/1 var(--display);
  letter-spacing: -.12em;
  color: transparent;
  -webkit-text-stroke: 1px #dfff0021;
  pointer-events: none;
}
#amp .amp-focus-top {
  flex: 0 0 66px;
  height: 66px;
  padding: 0 30px;
  border-bottom: 2px solid #dfff0040;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 2;
}
#amp .amp-focus-brand {
  font: 700 10px/1 var(--mono);
  letter-spacing: .16em;
}
#amp .amp-focus-brand i { color: var(--amp-red); font-style: normal; }
#amp .amp-focus-close {
  background: transparent;
  color: var(--amp-acid);
  border: 2px solid var(--amp-acid);
  padding: 10px 14px;
  font: 700 9px/1 var(--mono);
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .16s, color .16s;
}
#amp .amp-focus-close:hover { background: var(--amp-acid); color: var(--amp-black); }

#amp .amp-focus-body {
  flex: 1;
  min-height: 0;
  padding: 26px 48px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
#amp .amp-focus-kicker {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 11px;
  font: 700 9px/1 var(--mono);
  letter-spacing: .16em;
  color: #dfff00b0;
}
#amp .amp-focus-kicker span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--amp-black);
  background: var(--amp-acid);
  padding: 4px 6px;
}
#amp .amp-focus-kicker em {
  font: inherit;
  font-style: normal;
}
#amp .amp-focus-kicker b { font-weight: 700; }
#amp .amp-focus-kicker i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amp-red);
  animation: amp-live 2s ease-in-out infinite;
}
#amp .amp-focus.is-paused .amp-focus-kicker span { background: var(--amp-cream); }
#amp .amp-focus.is-finished .amp-focus-kicker span { background: var(--amp-red); color: #fff; }
#amp .amp-focus.is-finished .amp-focus-kicker i { display: none; }
#amp .amp-focus h2 {
  font: 900 clamp(25px, 3.5vw, 50px)/.94 var(--display);
  letter-spacing: -.06em;
  color: #fff;
  margin: 0 0 6px;
  max-width: 1000px;
}
#amp .amp-focus-clock {
  display: flex;
  flex-direction: column;
  position: relative;
}
#amp .amp-focus-clock > span {
  margin-top: 2px;
  font: 700 9px/1 var(--mono);
  letter-spacing: .18em;
  color: #dfff0090;
}
#amp .amp-focus-clock > b {
  font: 900 clamp(96px, 22vw, 280px)/.82 var(--display);
  letter-spacing: -.095em;
  font-variant-numeric: tabular-nums;
  color: var(--amp-acid);
  text-shadow: 7px 7px 0 #dfff0014;
  margin: 4px 0 2px;
}
#amp .amp-focus-meter {
  height: 8px;
  width: min(100%, 980px);
  background: #dfff001f;
  border: 1px solid #dfff0050;
  margin: 6px 0 8px;
}
#amp .amp-focus-clock > p {
  margin: 0;
  font: 500 9px/1.3 var(--mono);
  letter-spacing: .09em;
  color: #dfff00a0;
}
#amp .amp-focus-clock > p span { color: #fff; }
#amp .amp-focus-note {
  margin: 14px 0 0;
  font: 500 11px/1.5 var(--mono);
  letter-spacing: .02em;
  color: #dfff00a8;
}
#amp .amp-focus-note b { color: #fff; font-weight: 500; }

#amp .amp-focus-foot {
  flex: 0 0 auto;
  min-height: 90px;
  padding: 16px 30px;
  border-top: 2px solid #dfff0040;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}
#amp .amp-focus-foot button {
  min-height: 46px;
  padding: 0 20px;
  font: 700 9px/1 var(--mono);
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
}
#amp .focus-primary {
  background: var(--amp-acid);
  border: 2px solid var(--amp-acid);
  color: var(--amp-black);
}
#amp .focus-primary:hover { background: #fff; border-color: #fff; }
#amp .focus-secondary {
  background: transparent;
  border: 2px solid #ffffff88;
  color: #fff;
}
#amp .focus-secondary:hover { background: #fff; border-color: #fff; color: var(--amp-black); }
#amp .amp-focus-hint {
  margin-left: auto;
  font: 700 8.5px/1 var(--mono);
  letter-spacing: .12em;
  color: #ffffff99;
  white-space: nowrap;
}

#amp .amp-focus.is-finished .amp-focus-clock > b {
  font-size: clamp(64px, 13vw, 168px);
  color: var(--amp-red);
  text-shadow: none;
}
#amp .amp-focus.is-finished .amp-focus-clock > span,
#amp .amp-focus.is-finished .amp-focus-clock > p { color: #ffffff80; }
#amp .amp-focus.is-finished .amp-focus-meter { border-color: #ffffff40; background: #ffffff17; }
#amp .amp-focus.is-finished .amp-focus-meter i { background: var(--amp-red); }
#amp .amp-focus.is-finished .amp-focus-kicker { color: #ffffff90; }
#amp .amp-focus.is-finished .amp-focus-kicker span { background: var(--amp-red); color: #fff; }

/* ── ANIMATIONS ─────────────────────────────────────────────────────────── */

@keyframes amp-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.72); }
}
@keyframes amp-stamp {
  0% { opacity: 0; transform: translateY(-50%) rotate(-16deg) scale(1.8); }
  35% { opacity: .95; }
  100% { opacity: 0; transform: translateY(-50%) rotate(-8deg) scale(1); }
}
@keyframes amp-poster-in {
  from { opacity: 0; transform: translateY(4vh) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes amp-fade { from { opacity: 0; } to { opacity: 1; } }

/* ── 1200 ───────────────────────────────────────────────────────────────── */

@media (max-width: 1200px) {
  #amp .amp-hero {
    grid-template-columns: minmax(0, 1fr) 232px;
    padding-left: 52px;
    padding-right: 28px;
    gap: 20px;
  }
  #amp .hero-circle { width: 204px; height: 204px; }
  #amp .hero-circle b { font-size: 56px; }
  #amp .hero-circle.is-full b { font-size: 47px; }
  #amp .hero-side-note { width: 204px; }
  #amp .amp-desk { grid-template-columns: minmax(0, 1fr) 326px; }
  #amp .amp-task { grid-template-columns: 60px minmax(0, 1fr) 112px 84px; gap: 13px; }
  #amp .amp-task > b { font-size: 24px; }
  #amp .amp-timer { min-height: 254px; }
  #amp .amp-timer > b { font-size: 78px; }
}

/* ── desktop density: show the whole day in one screen ─────────────────── */

@media (min-width: 901px) {
  #amp .amp-hero { padding-top: 16px; padding-bottom: 18px; }
  #amp .amp-task { min-height: 88px; }
  #amp .amp-task.hot > i { width: 62px; height: 62px; }
  #amp .amp-timer {
    min-height: 225px;
    padding: 14px 20px 13px;
  }
  #amp .amp-timer > b {
    font-size: clamp(56px, 4.4vw, 64px);
    margin: 6px 0 5px;
  }
  #amp .amp-timer-actions { margin-top: 9px; }
  #amp .amp-timer-actions button { min-height: 36px; }
  #amp .amp-timer-task { padding-top: 8px; }
  #amp .amp-week { padding: 10px 20px 9px; }
  #amp .amp-week-chart {
    height: 112px;
    margin-top: 6px;
  }
  #amp .amp-week-goal { bottom: 74px; }
  #amp .amp-day { height: 110px; }
  #amp .amp-day i { height: calc(var(--v) * 1px); }
  #amp .amp-week-note { margin-top: 6px; }
  #amp .amp-quote { min-height: 100px; padding-top: 12px; padding-bottom: 12px; }
}

/* ── 900 / tablet ───────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  #amp .amp-head { padding: 0 18px; }
  #amp .amp-head-meta b { display: none; }
  #amp .amp-hero {
    min-height: 0;
    padding: 20px 24px 20px 46px;
    grid-template-columns: minmax(0, 1fr) 206px;
    gap: 18px;
  }
  #amp .amp-hero h1 { font-size: clamp(64px, 10.2vw, 108px); }
  #amp .hero-circle { width: 188px; height: 188px; }
  #amp .hero-circle b { font-size: 50px; }
  #amp .hero-circle.is-full b { font-size: 42px; }
  #amp .hero-side-note { width: 188px; }
  #amp .hero-stamp { width: 78px; height: 78px; }
  #amp .hero-stamp b { font-size: 28px; }
  #amp .hero-stamp span { font-size: 7.5px; }
  #amp .amp-desk { grid-template-columns: minmax(0, 1fr) 300px; }
  #amp .amp-task {
    grid-template-columns: 54px minmax(0, 1fr) 80px;
    grid-template-areas:
      "time title status"
      "time meta  status";
    row-gap: 2px;
    padding: 11px 14px;
    min-height: 82px;
  }
  #amp .amp-task > span { grid-area: time; }
  #amp .amp-task > b { grid-area: title; font-size: 21px; }
  #amp .amp-task > em { grid-area: meta; border: 0; padding: 0; font-size: 8px; opacity: .7; }
  #amp .amp-task > i { grid-area: status; justify-self: end; }
  #amp .amp-task.hot > i { width: 58px; height: 58px; font-size: 7.5px; }
  #amp .program-head { grid-template-columns: 1fr auto; gap: 12px; }
  #amp .program-head > p { display: none; }
  #amp .program-meter { max-width: 130px; }
  #amp .amp-timer { min-height: 246px; padding: 15px 16px 14px; }
  #amp .amp-timer > b { font-size: 64px; }
  #amp .amp-timer-actions { gap: 8px; flex-wrap: wrap; }
  #amp .amp-timer-actions button { padding: 8px 10px; }
  #amp .amp-week { padding: 14px 16px 11px; }
  #amp .amp-week-chart { gap: 4px; }
}

/* ── 680 / phone ────────────────────────────────────────────────────────── */

@media (max-width: 680px) {
  #amp .amp-head {
    height: 56px;
    padding: 0 14px;
    grid-template-columns: 1fr auto;
  }
  #amp .amp-head-meta { display: none; }
  #amp .amp-menu { gap: 8px; }
  #amp .amp-menu > span { display: none; }
  #amp .amp-menu button { height: 38px; padding: 0 10px; font-size: 8.5px; }

  #amp .amp-hero {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 14px 16px 17px;
  }
  #amp .vertical-note {
    position: static;
    writing-mode: horizontal-tb;
    transform: none;
    order: -1;
    font-size: 8.5px;
    letter-spacing: .1em;
    margin: 0;
    opacity: .78;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #amp .hero-main { width: 100%; }
  #amp .hero-kicker { margin-bottom: 7px; gap: 7px; font-size: 8.5px; }
  #amp .hero-kicker span { padding: 4px 6px; }
  #amp .hero-kicker b { font-size: 8.5px; }
  #amp .amp-hero h1 {
    font-size: 16.6vw;
    line-height: .84;
    letter-spacing: -.1em;
    padding-right: 3px;
  }
  #amp .amp-hero h1 span { -webkit-text-stroke-width: 1.5px; text-shadow: 4px 4px 0 var(--amp-black); }
  #amp .hero-foot { padding-top: 11px; margin-top: 0; }
  #amp .hero-copy { font-size: 12px; line-height: 1.28; }
  #amp .hero-stamp {
    width: 66px;
    height: 66px;
    gap: 3px;
    box-shadow: 3px 3px 0 var(--amp-black);
    margin-right: 2px;
  }
  #amp .hero-stamp b { font-size: 23px; }
  #amp .hero-stamp span { font-size: 7px; }

  #amp .hero-side {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    padding-top: 2px;
    border-top: 1px solid #08080835;
  }
  #amp .hero-circle {
    width: 124px;
    height: 124px;
    box-shadow: 5px 5px 0 var(--amp-black);
    gap: 1px;
  }
  #amp .hero-circle > span { font-size: 8px; letter-spacing: .1em; }
  #amp .hero-circle b { font-size: 38px; margin: 2px 0 0; }
  #amp .hero-circle.is-full b { font-size: 33px; }
  #amp .hero-circle em { font-size: 8px; }
  #amp .hero-meter { width: 90px; height: 5px; margin-top: 4px; border-width: 1.5px; }
  #amp .hero-side-note { width: auto; flex: 1; min-width: 0; }
  #amp .hero-side-note > span { font-size: 8.5px; }
  #amp .hero-side-note b { font-size: 13px; line-height: 1.08; }
  #amp .hero-side-note i { font-size: 9px; }

  #amp .ticker {
    height: auto;
    grid-template-columns: repeat(6, 1fr);
  }
  #amp .ticker-cell {
    padding: 7px 11px;
    min-height: 38px;
    grid-column: span 2;
  }
  #amp .ticker-now {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid #ffffff2e;
    min-height: 42px;
  }
  #amp .ticker-cell:nth-child(4) { border-right: 0; }
  #amp .ticker-cell > span { font-size: 8.5px; }
  #amp .ticker-cell > b { font-size: 10.5px; }
  #amp .ticker-now > b { font-size: 11px; }

  #amp .amp-desk {
    display: flex;
    flex-direction: column;
  }
  #amp .amp-timer {
    order: 2;
    width: 100%;
    min-height: 0;
    padding: 14px 16px 15px;
    border-right: 0;
    border-bottom: 3px solid var(--amp-black);
  }
  #amp .amp-timer > b { font-size: 68px; margin: 6px 0 6px; }
  #amp .amp-timer-top > span { font-size: 9.5px; }
  #amp .amp-timer-top > em { font-size: 8.5px; }
  #amp .amp-timer-actions { margin-top: 10px; }
  #amp .amp-timer-actions button { min-height: 40px; padding: 9px 12px; font-size: 9px; }
  #amp .amp-timer-task { display: grid; margin-top: 12px; }

  #amp .amp-program {
    order: 1;
    width: 100%;
    border-right: 0;
    border-bottom: 3px solid var(--amp-black);
  }
  #amp .program-head {
    height: auto;
    min-height: 48px;
    padding: 8px 12px;
    gap: 8px;
    grid-template-columns: 1fr auto;
  }
  #amp .program-title { gap: 7px; }
  #amp .program-title span { font-size: 8.5px; }
  #amp .program-title b { font-size: 14px; }
  #amp .program-meter { max-width: none; width: 126px; gap: 6px; }
  #amp .program-meter > span { font-size: 8.5px; }
  #amp .program-meter > i { height: 7px; min-width: 38px; }
  #amp .amp-task {
    grid-template-columns: 46px minmax(0, 1fr) 62px;
    gap: 10px;
    min-height: 88px;
    padding: 10px 12px;
  }
  #amp .amp-task > span { font-size: 10px; }
  #amp .amp-task > b { font-size: 19px; line-height: .92; }
  #amp .amp-task > em {
    display: block;
    margin-top: 2px;
    font-size: 8.5px;
    line-height: 1.2;
  }
  #amp .amp-task > i { font-size: 8.5px; }
  #amp .amp-task.hot > i { width: 54px; height: 54px; font-size: 7.5px; }
  #amp .amp-task:before { left: 39%; font-size: 60px; }
  #amp .amp-task.just-done:after,
  #amp .amp-task.just-undone:after { right: 24%; font-size: 44px; }

  #amp .amp-week {
    order: 3;
    width: 100%;
    padding: 14px 14px 12px;
    border-bottom: 3px solid var(--amp-black);
  }
  #amp .amp-week-chart { gap: 5px; margin-top: 8px; height: 130px; }
  #amp .amp-day { height: 128px; }
  #amp .amp-week-note { font-size: 9px; }
  #amp .amp-week-goal span { font-size: 8px; }

  #amp .amp-quote {
    min-height: 88px;
    padding: 12px 16px;
    gap: 12px;
  }
  #amp .amp-quote > b { font-size: 48px; }
  #amp .amp-quote p { font-size: 21px; }
  #amp .amp-quote > span { display: none; }

  #amp .amp-focus-top { flex-basis: 56px; height: 56px; padding: 0 16px; }
  #amp .amp-focus-brand { font-size: 8px; letter-spacing: .1em; }
  #amp .amp-focus-close { min-height: 40px; padding: 9px 10px; font-size: 8.5px; }
  #amp .amp-focus-body { padding: 18px 16px 10px; }
  #amp .amp-focus h2 { font-size: 25px; line-height: .96; margin-bottom: 10px; }
  #amp .amp-focus-clock > b { font-size: clamp(86px, 26vw, 140px); }
  #amp .amp-focus-meter { margin: 4px 0 6px; }
  #amp .amp-focus-note { font-size: 9.5px; margin-top: 10px; }
  #amp .amp-focus-foot {
    min-height: 0;
    padding: 10px 14px 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  #amp .amp-focus-foot button { padding: 0 8px; font-size: 9px; }
  #amp .amp-focus-hint { display: none; }
  #amp .amp-focus-folio { font-size: 52vw; bottom: 2vh; }
}

@media (max-width: 380px) {
  #amp .ticker-cell { padding-left: 8px; padding-right: 8px; }
  #amp .ticker-cell > b { font-size: 10px; }
  #amp .amp-hero h1 { font-size: 16.2vw; }
  #amp .hero-stamp { width: 58px; height: 58px; }
  #amp .hero-stamp b { font-size: 20px; }
  #amp .hero-stamp span { font-size: 7px; }
  #amp .amp-task { grid-template-columns: 42px minmax(0, 1fr) 54px; gap: 8px; }
  #amp .amp-task > b { font-size: 17px; }
  #amp .amp-task.hot > i { width: 46px; height: 46px; font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  #amp *,
  #amp *::before,
  #amp *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  #amp .amp-focus::backdrop { animation: none !important; }
}
