.lw-entry {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 10px;
  color: #244b3b;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.lw-section {
  --week-ink: #1d2922;
  --week-muted: #4c5750;
  --week-line: #ccd2cc;
  --week-green: #254b38;
  margin-top: clamp(48px, 7vw, 96px);
  scroll-margin-top: calc(var(--oh-header, 64px) + 16px);
  color: var(--week-ink);
}

.lw-intro {
  border-top: 1px solid var(--week-line);
  padding-top: clamp(26px, 4vw, 54px);
}

.lw-intro h2 {
  max-width: 24ch;
  font-weight: 500;
  font-size: clamp(32px, 4.3vw, 64px);
  letter-spacing: -.05em;
  line-height: 1.04;
}

.lw-intro p {
  margin-top: 15px;
  max-width: 62ch;
  color: var(--week-muted);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.48;
}

.lw-app {
  margin-top: clamp(20px, 2.6vw, 36px);
}

.lw-tabs {
  display: inline-flex;
  align-items: stretch;
  gap: 3px;
  max-width: 100%;
  padding: 4px;
  margin-bottom: 14px;
  border: 1px solid var(--week-line);
  border-radius: 28px;
  scroll-margin-top: calc(var(--oh-header, 64px) + 12px);
}

.lw-tabs button {
  min-height: 44px;
  padding: 7px clamp(10px, 2vw, 26px);
  border-radius: 22px;
  color: var(--week-muted);
  font-size: 16px;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.lw-tabs button[aria-selected="true"] {
  background: var(--week-ink);
  color: #fff;
}

.lw-panel {
  padding: clamp(18px, 3vw, 44px);
  border: 1px solid var(--week-line);
  border-radius: 14px;
}

.lw-exercise {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  grid-template-rows: max-content 1fr;
  grid-template-areas: "art question" "art answer";
  gap: 16px clamp(26px, 4.5vw, 74px);
  align-items: start;
}

.lw-question { grid-area: question; }
.lw-answer { grid-area: answer; min-width: 0; }

.lw-setting {
  margin: 0 0 7px;
  color: var(--week-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.lw-question h3 {
  max-width: 32ch;
  font-size: clamp(23px, 2.4vw, 39px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.036em;
  overflow-wrap: break-word;
}

.lw-paper-board,
.lw-clock-board {
  grid-area: art;
  border-radius: 10px;
  padding: clamp(18px, 3vw, 42px);
}

.lw-paper-board {
  background: #f3eee1;
  color: #3d3122;
}

.lw-paper-art {
  display: grid;
  align-items: center;
  min-height: clamp(106px, 12vw, 175px);
}

.lw-strip-row {
  display: grid;
  grid-template-columns: clamp(26px, 3.4vw, 49px) minmax(0, 1fr);
  align-items: center;
  gap: 5px;
}

.lw-strip-row + .lw-strip-row { margin-top: 12px; }

.lw-strip-row b,
.lw-equivalence {
  font-family: Georgia, serif;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.1;
}

.lw-strip {
  --parts: 2;
  --tint: #c4a667;
  --hatch: #947441;
  --portion: 50%;
  position: relative;
  display: block;
  height: clamp(34px, 4vw, 55px);
  border: 1px solid #61533b;
  border-radius: 2px;
  background: #fffdf7;
}

.lw-strip::before,
.lw-strip::after {
  position: absolute;
  inset: 0;
  content: "";
}

.lw-strip::before {
  width: var(--portion);
  background: repeating-linear-gradient(132deg, var(--tint) 0 8px, var(--hatch) 8px 9px);
}

.lw-strip::after {
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--parts) - 1px), #665d49 calc(100% / var(--parts) - 1px) calc(100% / var(--parts)));
}

.lw-quarter { --parts: 4; --portion: 25%; --tint: #a7c4b3; --hatch: #698875; }
.lw-aligned { --parts: 4; }
.lw-equivalence { margin: 10px 0 0 1.7em; color: #635236; }

.lw-returned-paper,
.lw-glasses {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 350px;
  margin-bottom: 10px;
  padding: 12px 16px;
  border-radius: 6px;
  background: #f3eee1;
}

.lw-training-strip { --parts: 4; --portion: 75%; width: 100%; height: 34px; }
.lw-covered {
  position: absolute;
  inset: -3px auto -3px -1px;
  z-index: 1;
  width: calc(50% + 1px);
  border: 1px solid #727a6f;
  border-radius: 2px;
  background: #b7beb0;
}

.lw-glasses { color: #3c5949; background: #edf1e8; }
.lw-glasses b { font: 400 25px/1 Georgia, serif; }
.lw-glass {
  position: relative;
  width: 43px;
  height: 56px;
  border: solid #52715f;
  border-width: 0 1.5px 2px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(to top, #9db8a5 var(--fill), #f9fbf5 0);
}
.lw-glass::after {
  content: "";
  position: absolute;
  inset: 0 0 0 70%;
  background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), #52715f calc(25% - 1px) 25%);
}
.lw-glass-half { --fill: 50%; }
.lw-glass-three { --fill: 75%; }
.lw-glass-quarter { --fill: 25%; }

.lw-paper-board figcaption {
  min-height: 2.8em;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.4;
}

.lw-board-button,
.lw-submit,
.lw-next,
.lw-numbers button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 9px 16px;
  border: 1px solid currentColor;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
}

.lw-board-button { margin-top: 12px; color: #463b28; }
.lw-submit,
.lw-next { background: var(--week-green); border-color: var(--week-green); color: #fff; }
.lw-next { gap: 12px; }
.lw-panel > .lw-next { margin-top: 22px; }

.lw-options {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.lw-options legend,
.lw-answer form label,
.lw-own label {
  padding: 0;
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.lw-numbers,
.lw-radios,
.lw-minute-controls,
.lw-family-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.lw-numbers button {
  min-width: 60px;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  border-color: #8b958c;
}

.lw-numbers button[aria-pressed="true"] { background: var(--week-green); color: #fff; }

.lw-feedback p:not([hidden]) {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid #53785c;
  font-size: 16px;
  line-height: 1.45;
}

.lw-details {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.45;
}

.lw-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  min-height: 44px;
  padding: 7px 0;
  color: var(--week-green);
  font-weight: 500;
  list-style: none;
}

.lw-details > summary::-webkit-details-marker { display: none; }
.lw-details > summary::after {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin: 0 4px 3px 8px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.lw-details[open] > summary::after { transform: rotate(225deg); margin-block: 3px 0; }
.lw-answer > .lw-details { border-top: 1px solid var(--week-line); }
.lw-answer > .lw-details + .lw-details { margin-top: 0; }
.lw-details > p,
.lw-details > div > p { margin: 0 0 12px; }
.lw-details .lw-small { font-size: 14px; color: var(--week-muted); }

.lw-own textarea,
.lw-minute-controls input {
  border: 1px solid #89948b;
  border-radius: 6px;
  padding: 8px 12px;
  min-height: 44px;
  background: #fff;
  color: var(--week-ink);
  font-size: 17px;
}

.lw-own textarea {
  display: block;
  width: 100%;
  margin: 8px 0;
  resize: vertical;
}

.lw-memory {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 24px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--week-line);
}

.lw-radios label,
.lw-share-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  min-height: 44px;
  font-size: 15px;
  line-height: 1.3;
}

.lw-radios label { padding: 3px 10px; border: 1px solid #b6beb7; border-radius: 8px; }
.lw-radios label:has(input:checked) { background: #eaf1e9; border-color: #79927d; }
.lw-radios input,
.lw-share-toggle input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--week-green); }

.lw-correction {
  margin-top: 17px;
  border-top: 1px solid var(--week-line);
}

.lw-correction-body {
  display: grid;
  grid-template-columns: minmax(130px, .58fr) minmax(0, 1.42fr);
  gap: 16px;
  align-items: center;
  padding-block: 4px 8px;
}

.lw-sheet-note {
  padding: 14px 18px;
  background: repeating-linear-gradient(to bottom, transparent 0 20px, #dfd9c5 20px 21px), #f7f3e9;
  color: #51422b;
}

.lw-sheet-note span { display: block; font-size: 13px; }
.lw-sheet-note b { display: block; font: italic 34px/1.6 Georgia, serif; }
.lw-correction-body .lw-feedback p { margin-top: 0; }

.lw-text-button {
  min-height: 44px;
  color: var(--week-green);
  font-size: 15px;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lw-clock-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 32px);
  align-items: center;
  background: #e7efe7;
  color: #254638;
}

.lw-clock-item {
  min-width: 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.lw-clock-item p { margin-top: 12px; }

.lw-dial {
  --fill: 75%;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  max-width: 160px;
  aspect-ratio: 1;
  margin: auto;
  border: 1px solid #81998a;
  border-radius: 100%;
  background: conic-gradient(#739b80 var(--fill), #f6f9f4 0);
}

.lw-dial::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 3%;
  border-radius: inherit;
  background: repeating-conic-gradient(from -.7deg, #385944 0deg 1.4deg, transparent 1.4deg 30deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent 91%, #000 92%);
  mask: radial-gradient(circle closest-side, transparent 91%, #000 92%);
}

.lw-dial b {
  display: grid;
  place-items: center;
  width: 66%;
  aspect-ratio: 1;
  border: 1px solid #9eb6a5;
  border-radius: 50%;
  background: #edf3eb;
  font: 400 clamp(26px, 4vw, 55px)/1 Georgia, serif;
}

.lw-elapsed { --fill: 50%; }
.lw-minute-controls { align-items: stretch; }
.lw-minute-controls input { width: 7.5ch; min-width: 70px; text-align: center; font-variant-numeric: tabular-nums; }
.lw-minute-controls input[aria-invalid="true"] { border-color: #81422b; }

.lw-family-toggle { margin-block: 20px 16px; }
.lw-family-card { padding: clamp(16px, 2.5vw, 32px); border-radius: 9px; background: #eef0eb; }
.lw-family-card > p:not(.lw-setting),
.lw-family-card div > p { max-width: 65ch; margin-top: 9px; font-size: 16px; line-height: 1.45; }
.lw-family-card h4 { margin: 0; font-size: clamp(22px, 2.4vw, 36px); font-weight: 500; line-height: 1.14; letter-spacing: -.035em; }
.lw-share-toggle { margin-top: 9px; font-weight: 500; }
.lw-family-card .lw-share-state { margin-top: 0; color: var(--week-muted); font-size: 14px; }
.lw-family-card blockquote { margin: 12px 0 0; max-width: 38ch; font: 400 clamp(21px, 2.2vw, 34px)/1.22 Georgia, serif; }
.lw-family-links { gap: 0 24px; }
.lw-family-links a { min-height: 44px; align-items: center; }

.lw-transcript { color: var(--week-muted); max-width: 75ch; }
.lw-transcript summary { justify-content: flex-start; }
.lw-section :where(button, summary, input, textarea, a, [role="tabpanel"]):focus-visible,
.lw-entry:focus-visible { outline: 2px solid #235785; outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  .lw-board-button:hover,
  .lw-numbers button[aria-pressed="false"]:hover,
  .lw-tabs button[aria-selected="false"]:hover { background: rgb(36 61 45 / 7%); }
  .lw-text-button:hover,
  .lw-details summary:hover { text-decoration: underline; text-underline-offset: 3px; }
  .lw-submit:hover,
  .lw-next:hover { background: #163524; }
}

@media (max-width: 760px) {
  .lw-exercise { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "question" "art" "answer"; gap: 15px; }
  .lw-paper-art { min-height: 85px; }
  .lw-paper-board figcaption { min-height: 0; }
  .lw-strip { height: 32px; }
  .lw-paper-board,
  .lw-clock-board { padding: 16px; }
  .lw-clock-board { grid-template-columns: repeat(2, minmax(0, 122px)); justify-content: center; }
  .lw-dial { max-width: 96px; }
  .lw-correction-body { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lw-question h3 { max-width: 34ch; }
  .lw-intro h2 { max-width: 24ch; }
  .lw-memory .lw-next { margin-top: 3px; }
}

@media (max-width: 370px) {
  .lw-panel { padding: 14px; }
  .lw-tabs button { padding-inline: 8px; font-size: 15px; }
}
