/* Львиное сердце — approved first portrait timer.
   Source order: studeika-emerald-day.html → emerald-complete-extra.css
   (with data-design emerald → lion, as in build-harry-theme.py) → harry-theme.css.
   This design intentionally has one fixed portrait and no seated timer slot. */
html[data-design="lion"] .app-layout {
  container-type: inline-size;
}
html[data-design="lion"] #day-summary.em-current {
  --em-radius: 20px;
  display: block;
  position: relative;
  min-width: 0;
  min-height: 0;
  width: auto;
  max-width: none;
  gap: normal;
  align-items: normal;
  border: 0;
  margin-top: 0;
  margin-inline: 0;
  text-align: left;
  font: 400 14px/1.5 'Onest', 'Segoe UI', sans-serif;
}
html[data-design="lion"] #day-summary.em-current :where(div, h2, p:not(.timer-warning), strong, span, time, button, img) {
  all: unset;
  box-sizing: border-box;
}
html[data-design="lion"] #day-summary.em-current :where(div, h2, p:not(.timer-warning)) {
  display: block;
}
html[data-design="lion"] #day-summary.em-current :where(button) {
  cursor: pointer;
  touch-action: manipulation;
}
html[data-design="lion"] #day-summary.em-current button:focus-visible {
  outline: 3px solid var(--em-gold);
  outline-offset: 3px;
}
html[data-design="lion"] #day-summary.em-current button:disabled {
  opacity: .62;
}
html[data-design="lion"] #day-summary.em-current > .timer-foot,
html[data-design="lion"] #day-summary.em-current .timer-settings-button,
html[data-design="lion"] #day-summary.em-current .em-timer-art {
  display: none;
}
html[data-design="lion"] #day-summary.em-current::before {
  content: none;
  display: none;
}
html[data-design="lion"] #day-summary.em-current [hidden] {
  display: none !important;
}
@media (pointer: coarse) {
  html[data-design="lion"] #day-summary.em-current button {
    min-height: 44px;
  }
}

/* Source cascade: base portrait rules. */
html[data-design="lion"] #day-summary:where(.em-current) .em-mono {
font-family:'IBM Plex Mono',monospace;font-variant-numeric:tabular-nums;letter-spacing:-.4px
}
html[data-design="lion"] #day-summary.em-current {
position:relative;background:var(--em-green);color:#fff;border-radius:var(--em-radius);padding:22px;overflow:hidden;box-shadow:0 9px 22px #1c5b4814;margin-bottom:21px
}
html[data-design="lion"] #day-summary.em-current:after {
content:'';position:absolute;right:0;top:0;bottom:0;width:9px;background:repeating-linear-gradient(125deg,#a7b9ac 0px,#a7b9ac 12px,#ffffff00 12px,#ffffff00 33px);opacity:.85
}
html[data-design="lion"] #day-summary:where(.em-current) .em-current-top {
display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px;font-size:11px;color:#dae9df;padding-right:5px
}
html[data-design="lion"] #day-summary:where(.em-current) .em-live {
display:inline-flex;align-items:center;gap:7px;color:#f1f8f2;font-weight:500
}
html[data-design="lion"] #day-summary:where(.em-current) .em-live:before {
content:'';width:5px;height:5px;border-radius:50%;background:#c5e9d0
}
html[data-design="lion"] #day-summary:where(.em-current) .em-current-main {
display:flex;align-items:center;justify-content:space-between;gap:16px;padding-right:7px
}
html[data-design="lion"] #day-summary:where(.em-current) .em-current-main>div:first-child {
min-width:0
}
html[data-design="lion"] #day-summary.em-current h2 {
font-size:24px;font-weight:500;line-height:1.25;letter-spacing:-.65px
}
html[data-design="lion"] #day-summary:where(.em-current) .em-current-main p {
font-size:11px;color:#dae9df;margin-top:5px
}
html[data-design="lion"] #day-summary:where(.em-current) .em-room {
display:grid;justify-items:center;gap:3px;border-left:1px solid #ffffff36;padding-left:23px
}
html[data-design="lion"] #day-summary:where(.em-current) .em-room strong {
font:400 42px/1 'Onest',sans-serif;letter-spacing:-2px
}
html[data-design="lion"] #day-summary:where(.em-current) .em-room span {
font-size:10px;color:#dae9df
}
html[data-design="lion"] #day-summary:where(.em-current) .em-countdown {
display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-top:25px;font-size:11px;color:#dae9df;padding-right:7px
}
html[data-design="lion"] #day-summary:where(.em-current) .em-countdown strong {
font-size:20px;color:#fff;font-weight:400;white-space:nowrap
}
html[data-design="lion"] #day-summary:where(.em-current) .em-progress {
height:3px;background:#ffffff25;border-radius:3px;margin-top:10px;margin-right:7px;overflow:hidden
}
html[data-design="lion"] #day-summary:where(.em-current) .em-progress span {
height:100%;width:60%;display:block;background:#c7dfca
}
@container(max-width:880px) {
html[data-design="lion"] #day-summary.em-current {
padding:19px
}
html[data-design="lion"] #day-summary.em-current h2 {
font-size:21px
}
html[data-design="lion"] #day-summary:where(.em-current) .em-room strong {
font-size:36px
}
html[data-design="lion"] #day-summary:where(.em-current) .em-room {
padding-left:14px
}
}
@container(max-width:620px) {
html[data-design="lion"] #day-summary.em-current {
padding:19px;margin-bottom:19px
}
html[data-design="lion"] #day-summary:where(.em-current) .em-current-top {
margin-bottom:17px;font-size:10px;gap:8px
}
html[data-design="lion"] #day-summary.em-current h2 {
font-size:23px
}
html[data-design="lion"] #day-summary:where(.em-current) .em-room strong {
font-size:38px
}
html[data-design="lion"] #day-summary:where(.em-current) .em-countdown {
margin-top:21px;font-size:10px
}
html[data-design="lion"] #day-summary:where(.em-current) .em-countdown strong {
font-size:19px
}
}
@container(max-width:400px) {
html[data-design="lion"] #day-summary.em-current {
padding:16px
}
html[data-design="lion"] #day-summary:where(.em-current) .em-current-main {
gap:8px;padding-right:3px
}
html[data-design="lion"] #day-summary.em-current h2 {
font-size:21px
}
html[data-design="lion"] #day-summary:where(.em-current) .em-room {
padding-left:10px
}
html[data-design="lion"] #day-summary:where(.em-current) .em-room strong {
font-size:32px
}
html[data-design="lion"] #day-summary:where(.em-current) .em-countdown {
font-size:10px;gap:6px
}
html[data-design="lion"] #day-summary:where(.em-current) .em-countdown strong {
font-size:17px
}
}
/* Source cascade: emerald-complete-extra.css, portrait rules. */
html[data-design="lion"]:is(html, .em-app) #day-summary.em-current {
background:var(--em-current);color:var(--em-current-ink);box-shadow:0 9px 22px var(--em-shadow)
}
html[data-design="lion"]:is(html, .em-app) #day-summary:where(.em-current) .em-current-top,
html[data-design="lion"]:is(html, .em-app) #day-summary:where(.em-current) .em-current-main p,
html[data-design="lion"]:is(html, .em-app) #day-summary:where(.em-current) .em-room span,
html[data-design="lion"]:is(html, .em-app) #day-summary:where(.em-current) .em-countdown {
color:var(--em-current-muted)
}
html[data-design="lion"]:is(html, .em-app) #day-summary:where(.em-current) .em-live,
html[data-design="lion"]:is(html, .em-app) #day-summary:where(.em-current) .em-countdown strong {
color:var(--em-current-ink)
}
html[data-design="lion"] #day-summary:where(.em-current) .em-timer-action {
display:inline-flex;align-items:center;gap:5px;font-size:10px!important;color:var(--em-current-muted)!important;padding:4px 0 0!important;text-decoration:underline;text-underline-offset:3px
}
html[data-design="lion"] #day-summary:where(.em-current) .em-timer-action svg {
width:12px;height:12px
}
@container(max-width:620px) {
html[data-design="lion"] #day-summary.em-current {
padding:17px
}
html[data-design="lion"] #day-summary.em-current h2 {
font-size:22px
}
html[data-design="lion"] #day-summary:where(.em-current) .em-countdown strong {
font-size:18px
}
}
@container(max-width:330px) {
html[data-design="lion"] #day-summary.em-current {
padding:15px
}
html[data-design="lion"] #day-summary.em-current h2 {
font-size:20px
}
html[data-design="lion"] #day-summary:where(.em-current) .em-room strong {
font-size:32px
}
html[data-design="lion"] #day-summary:where(.em-current) .em-countdown span {
max-width:129px
}
}

/* harry-theme.css: gold stitching and clock accents, same in both color modes. */
html[data-design="lion"] #day-summary.em-current::after {
  background: repeating-linear-gradient(125deg, var(--em-gold) 0px, var(--em-gold) 12px, transparent 12px, transparent 33px);
  pointer-events: none;
}
html[data-design="lion"] #day-summary:where(.em-current) .em-live::before,
html[data-design="lion"] #day-summary:where(.em-current) .em-progress span {
  background: var(--em-gold);
}
html[data-design="lion"] #day-summary:where(.em-current) .em-progress {
  background: var(--em-progress-track);
}

/* Loading/retry hooks retain the live API behavior of the other designs. */
html[data-design="lion"] #day-summary.em-current > .timer-foot:has(#timer-retry:not([hidden])) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 11px;
}
html[data-design="lion"] #day-summary.em-current > .timer-warning:not([hidden]) {
  display: block;
  margin-top: 10px;
  color: var(--em-current-muted);
  font: 400 11px/1.5 'Onest', sans-serif;
}
