@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("fonts/dm-sans.woff2") format("woff2");
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans Arabic";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/noto-sans-arabic.woff2") format("woff2");
}
:root {
  --bg: #f7f8fa;
  --surface: #fff;
  --text: #282b3d;
  --muted: #8a8d9d;
  --line: #ececf2;
  --accent: #7959dd;
  --tint: #f0ecfb;
  --shadow: 0 6px 24px #282b3d03;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.svgdefs {
  position: absolute;
  width: 0;
  height: 0;
}
button {
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
header {
  height: 91px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 5%;
  gap: 36px;
}
.brand {
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -1.4px;
}
.brand-dot {
  color: var(--accent);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 42px;
  background: var(--tint);
  border-radius: 13px;
  margin-right: 11px;
  color: var(--accent);
}
.brand-mark svg {
  width: 26px;
  height: 26px;
}
.header-label {
  color: var(--muted);
  font-size: 12px;
}
.header-actions {
  margin-left: auto;
  display: flex;
  gap: 15px;
  align-items: center;
}
.classroom-badge {
  font-size: 11px;
  color: #747888;
  display: flex;
  align-items: center;
  gap: 7px;
}
.classroom-badge i {
  background: #53a88a;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #858697;
}
.icon-btn:hover {
  background: var(--tint);
  color: var(--accent);
}
#help {
  border: 1px solid var(--line);
  font-weight: 600;
  width: 25px;
  height: 25px;
  border-radius: 50%;
}
main {
  max-width: 1216px;
  margin: auto;
  padding: 44px 36px 0;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}
.eyebrow {
  letter-spacing: 1.8px;
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
h1 {
  font-family: Manrope, sans-serif;
  font-size: 33px;
  letter-spacing: -1.35px;
  margin: 0;
  font-weight: 750;
}
h1 span {
  color: var(--accent);
}
.intro p {
  color: var(--muted);
  margin: 11px 0 0;
  font-size: 13px;
}
.outline-button {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid #e2e2ec;
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 600;
}
.outline-button svg {
  width: 16px;
  height: 16px;
}
.key,
kbd {
  font-size: 10px;
  color: #9898a7;
  font-family: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 5px;
}
.key {
  margin-left: 10px;
}
.mode-tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.mode-tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px 17px;
  font-size: 12px;
  font-weight: 550;
  color: #858697;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.mode-tabs button.active {
  color: var(--accent);
  border-color: var(--accent);
}
.mode-tabs svg {
  width: 17px;
  height: 17px;
}
.tiny {
  font-size: 7px;
  letter-spacing: 0.8px;
  background: #eeeaf8;
  padding: 3px 5px;
  border-radius: 4px;
  color: #9b87c7;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 333px;
  gap: 24px;
}
.timer-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 23px;
}
.status-pill {
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 1px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 7px 9px;
  border-radius: 5px;
  color: #8b8b9b;
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #aaa7bb;
}
.running .status-pill i {
  background: #52a789;
}
.card-tools {
  display: flex;
  gap: 6px;
}
.card-tools .icon-btn {
  width: 27px;
  height: 27px;
}
.card-tools svg {
  width: 16px;
  height: 16px;
}
.timer-center {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 0 25px 30px;
}
.session-title {
  border: 0;
  background: transparent;
  color: #707083;
  font-weight: 500;
  text-align: center;
  font-size: 15px;
  width: 100%;
  padding: 5px;
  margin: 0 0 5px;
}
.timer-ring {
  width: 310px;
  height: 310px;
  position: relative;
  display: grid;
  place-items: center;
}
.ring-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring-svg circle {
  fill: none;
  stroke-width: 6;
}
.ring-track {
  stroke: var(--tint);
}
.ring-progress {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 1043.01;
  transition: stroke-dashoffset 0.2s linear;
}
.timer-numbers {
  text-align: center;
  position: relative;
}
#time {
  font-family: Manrope, sans-serif;
  font-size: 71px;
  font-weight: 650;
  letter-spacing: -3px;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
.time-caption {
  font-size: 8px;
  letter-spacing: 2px;
  color: #9999aa;
  margin-top: 8px;
}
.timer-note {
  font-size: 11px;
  color: #a0a0ae;
  margin-top: 4px;
  margin-bottom: 25px;
}
.timer-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}
.reset-button,
.add-button {
  height: 41px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 12px;
  color: #77798a;
  font-size: 11px;
  display: grid;
  place-items: center;
}
.reset-button svg {
  width: 17px;
  height: 17px;
}
.start-button {
  background: var(--accent);
  color: #fff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 176px;
  padding: 13px 16px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 8px #7959dd18;
}
.start-button:hover {
  filter: brightness(1.08);
}
.start-button svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.running .start-button svg {
  fill: none;
  stroke-width: 3;
}
.start-button kbd {
  font-size: 8px;
  background: #ffffff17;
  border: 1px solid #ffffff20;
  color: #e6dcff;
  margin-left: 6px;
}
.card-bottom {
  padding: 15px 23px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #a1a2b0;
}
.card-bottom > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.small-dot {
  width: 5px;
  height: 5px;
  background: #b3a7d4;
  border-radius: 50%;
}
.sparkle {
  color: var(--accent);
  font-size: 16px;
  margin-left: 3px;
}
.settings-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}
h2 {
  font-size: 14px;
  font-family: Manrope, sans-serif;
  font-weight: 750;
  margin: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
}
.mini-icon {
  color: #a0a0b1;
  font-size: 19px;
}
.field-label {
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 1.1px;
  color: #9090a3;
  display: block;
  margin-bottom: 12px;
}
.duration-inputs {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.duration-inputs label {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.duration-inputs input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  height: 51px;
  border-radius: 8px;
  font-size: 23px;
  color: var(--text);
  font-family: Manrope, sans-serif;
  text-align: center;
  font-weight: 600;
  appearance: textfield;
  -moz-appearance: textfield;
}
.duration-inputs input::-webkit-inner-spin-button {
  appearance: none;
}
.duration-inputs b {
  font-weight: 400;
  color: #b6b5c1;
  margin-top: 15px;
}
.duration-inputs span {
  display: block;
  font-size: 9px;
  color: #9a9aaa;
  margin: 7px 0 15px;
}
.quick-times {
  display: flex;
  gap: 7px;
}
.quick-times button {
  font-size: 10px;
  color: #89899c;
  padding: 7px 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.quick-times .selected {
  background: var(--tint);
  color: var(--accent);
  border-color: #dcd3f4;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 21px 0;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  margin-top: 15px;
}
.setting-row > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.setting-row svg {
  width: 14px;
  height: 14px;
  color: #a09aae;
}
.setting-row select {
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  color: #818195;
  border-radius: 6px;
  font-size: 10px;
  padding: 7px 6px;
  margin-left: auto;
}
.sound-preview {
  font-size: 19px;
  color: #9f95b8;
  padding: 0;
}
.switch {
  width: 28px;
  height: 16px;
  background: #ccc;
  border-radius: 20px;
  padding: 2px;
  position: relative;
}
.switch:before {
  content: "";
  display: block;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: white;
  transition: transform 0.15s;
}
.switch.on {
  background: var(--accent);
}
.switch.on:before {
  transform: translateX(12px);
}
.setting-row .field-label {
  font-size: 8px;
  margin: 0;
}
.colors {
  display: flex;
  gap: 7px;
}
.colors button {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--swatch);
  position: relative;
  border: 3px solid var(--surface);
  outline: 1px solid transparent;
}
.colors .selected {
  outline-color: var(--swatch);
}
.tip-card {
  margin-top: 17px;
  border: 1px solid #e9e4f3;
  border-radius: 12px;
  background: #f1eff8;
  display: flex;
  gap: 12px;
  padding: 18px 17px;
}
.tip-icon {
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}
.tip-card strong {
  font-size: 11px;
  font-weight: 650;
}
.tip-card p {
  font-size: 10px;
  color: #91899f;
  line-height: 1.8;
  margin: 7px 0 10px;
}
.tip-card button {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  padding: 0;
  display: flex;
  gap: 7px;
  align-items: center;
}
.tip-card svg {
  width: 13px;
  height: 13px;
}
.presets-section {
  margin-top: 32px;
}
.presets-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.presets-heading h2 {
  font-size: 16px;
}
.presets-heading p {
  color: var(--muted);
  font-size: 11px;
  margin: 7px 0 0;
}
.text-button {
  color: var(--accent);
  font-weight: 600;
  font-size: 10px;
}
.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.preset-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.preset-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.preset-icon {
  width: 38px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  flex-shrink: 0;
  font-size: 20px;
  background: var(--preset-bg);
}
.preset-card strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}
.preset-card small {
  display: block;
  font-size: 9px;
  color: #9999a8;
  margin-top: 5px;
}
.preset-card > svg {
  width: 13px;
  height: 13px;
  margin-left: auto;
  color: #b0adbc;
}
footer {
  margin-top: 32px;
  padding: 23px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a1a0b0;
  font-size: 9px;
}
.footer-brand {
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.7px;
}
.footer-brand > span:first-child {
  color: var(--accent);
}
.footer-brand > span:last-child {
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 12px;
}
.footer-divider {
  margin: 0 10px;
}
footer kbd {
  font-size: 8px;
}
.exit-presentation {
  display: none;
}
.muted {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.inline-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
}
.inline-field input {
  width: 50px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
  margin: 15px 0;
  line-height: 1.5;
}
.check-row input {
  accent-color: var(--accent);
}
#pomodoroControls {
  margin-top: 20px;
}
.sequence-row {
  display: flex;
  gap: 5px;
  margin: 8px 0;
}
.sequence-row input {
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
  color: var(--text);
  font-size: 10px;
}
.sequence-row input[type="number"] {
  width: 47px;
  flex-shrink: 0;
}
.sequence-row button {
  color: #aaa;
}
.sequence-row.current input {
  border-color: var(--accent);
}
.lap-button {
  margin-top: 16px;
  color: var(--accent);
  font-size: 12px;
}
#laps {
  width: 250px;
  max-height: 100px;
  overflow: auto;
  color: var(--muted);
  font-size: 12px;
  padding: 0;
  list-style: none;
}
#laps li {
  display: flex;
  justify-content: space-between;
  padding: 7px;
  border-bottom: 1px solid var(--line);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  padding: 13px 23px;
  border-radius: 10px;
  background: var(--text);
  color: var(--surface);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 30;
  font-size: 13px;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  width: 380px;
  box-shadow: 0 20px 100px #0003;
}
dialog::backdrop {
  background: #19152d66;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 20px;
  margin-bottom: 25px;
}
dialog p {
  font-size: 13px;
  display: flex;
  gap: 15px;
  align-items: center;
}
dialog p.muted {
  display: block;
  font-size: 12px;
  margin-top: 25px;
}
.dialog-close {
  position: absolute;
  right: 13px;
  top: 10px;
  font-size: 24px;
}
.presentation {
  overflow: hidden;
}
.presentation header,
.presentation .intro,
.presentation nav,
.presentation aside,
.presentation .presets-section,
.presentation footer {
  display: none;
}
.presentation main {
  padding: 0;
  max-width: none;
}
.presentation .workspace {
  display: block;
}
.presentation .timer-card {
  position: fixed;
  inset: 0;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}
.presentation .card-top {
  padding: 24px 35px;
}
.presentation .timer-center {
  flex: 1;
  justify-content: center;
  padding-bottom: 70px;
}
.presentation .session-title {
  font-size: clamp(20px, 3vw, 42px);
}
.presentation .timer-ring {
  width: min(62vh, 70vw);
  height: min(62vh, 70vw);
}
.presentation #time {
  font-size: clamp(65px, 14vw, 190px);
}
.presentation .time-caption {
  font-size: 12px;
}
.presentation .timer-note {
  font-size: 16px;
}
.presentation .exit-presentation {
  display: flex;
  position: absolute;
  right: 25px;
  bottom: 15px;
}
.presentation .card-bottom {
  min-height: 65px;
}
.presentation .card-bottom > span:last-child {
  display: none;
}
.presentation .timer-actions {
  gap: 20px;
}
.finished .timer-numbers {
  color: var(--accent);
}
.visual-alert {
  animation: alert 1s ease-in-out 5;
}
@keyframes alert {
  50% {
    background: var(--tint);
  }
}
body.dark {
  --bg: #1c1c27;
  --surface: #242431;
  --text: #eeecf7;
  --muted: #a09daf;
  --line: #353443;
  --tint: #343044;
}
.dark .tip-card {
  background: #2e293d;
  border-color: #3d354e;
}
.dark .tiny {
  background: #393146;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  main {
    padding-top: 55px;
  }
  .timer-ring {
    width: 335px;
    height: 335px;
  }
  .timer-center {
    padding-bottom: 38px;
  }
}
@media (max-width: 1000px) {
  main {
    padding: 30px 25px 0;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
  }
  .timer-ring {
    width: 280px;
    height: 280px;
  }
  #time {
    font-size: 64px;
  }
  .preset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-label {
    display: none;
  }
  .card-bottom > span:last-child {
    display: none;
  }
  h1 {
    font-size: 28px;
  }
  .tiny {
    display: none;
  }
}
@media (max-width: 740px) {
  header {
    height: 73px;
    padding: 0 22px;
  }
  .brand {
    font-size: 26px;
  }
  .brand-mark {
    width: 33px;
    height: 36px;
  }
  .classroom-badge {
    display: none;
  }
  .header-actions {
    gap: 10px;
  }
  main {
    padding: 29px 18px 0;
  }
  .intro {
    align-items: flex-start;
    position: relative;
    margin-bottom: 26px;
  }
  .intro h1 {
    font-size: 27px;
    max-width: 280px;
    line-height: 1.3;
  }
  .intro p {
    font-size: 12px;
    max-width: 240px;
    line-height: 1.7;
  }
  .eyebrow {
    font-size: 8px;
  }
  .intro .outline-button {
    font-size: 0;
    padding: 10px;
    margin-top: 25px;
  }
  .intro .key {
    display: none;
  }
  .intro .outline-button svg {
    width: 18px;
    height: 18px;
  }
  .mode-tabs {
    gap: 0;
    overflow: auto;
    white-space: nowrap;
  }
  .mode-tabs button {
    padding: 12px 12px;
    font-size: 10px;
    gap: 5px;
  }
  .mode-tabs svg {
    width: 14px;
    height: 14px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .timer-ring {
    width: 290px;
    height: 290px;
  }
  .timer-center {
    padding-top: 5px;
  }
  .card-top {
    padding: 15px 18px;
  }
  .settings-card {
    padding: 21px;
  }
  .duration-inputs input {
    height: 52px;
  }
  .tip-card {
    display: none;
  }
  .preset-grid {
    gap: 10px;
  }
  .preset-card {
    padding: 13px 10px;
    gap: 8px;
  }
  .preset-icon {
    width: 32px;
    height: 35px;
  }
  .presets-heading h2 {
    font-size: 14px;
  }
  .presets-heading p {
    font-size: 10px;
  }
  .text-button {
    font-size: 9px;
  }
  footer {
    padding: 20px 0;
    margin-top: 25px;
  }
  footer > span:last-child {
    display: none;
  }
  .footer-brand > span:last-child {
    margin-left: 8px;
  }
  .presentation .timer-ring {
    width: min(64vh, 90vw);
    height: min(64vh, 90vw);
  }
  .presentation .timer-note {
    font-size: 12px;
  }
  .presentation .session-title {
    font-size: 23px;
  }
  .presentation .card-bottom {
    padding-left: 16px;
    font-size: 8px;
  }
  .presentation .exit-presentation {
    right: 12px;
    font-size: 10px;
  }
  .presentation .exit-presentation .key {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
/* Classroom studio refresh: readable type, clear controls, and a lesson workspace. */
:root {
  --text: #242339;
  --muted: #66667c;
  --line: #e3e3ee;
  --accent: #7050ce;
  --bg: #f6f6fb;
  --tint: #f0ecfb;
}
body {
  font-size: 1rem;
}
header {
  height: 88px;
  padding: 0 max(28px, calc((100vw - 1280px) / 2));
  gap: 28px;
}
.header-label {
  font-size: 0.875rem;
  color: var(--muted);
}
.classroom-badge {
  font-size: 0.8125rem;
  color: #5b6272;
}
.header-actions {
  gap: 8px;
}
.icon-btn,
#help {
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
}
#help {
  font-size: 1rem;
  border: 1px solid var(--line);
}
main {
  max-width: 1320px;
  padding: 40px 28px 0;
}
.intro {
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 1.7px;
  color: #6b4abe;
}
h1 {
  font-size: clamp(32px, 3.3vw, 46px);
  line-height: 1.18;
  letter-spacing: -1.8px;
}
.intro p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 12px;
}
.outline-button {
  font-size: 0.875rem;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
}
.key,
kbd {
  font-size: 0.75rem;
  color: #666178;
}
.mode-tabs {
  gap: 12px;
  margin-bottom: 24px;
}
.mode-tabs button {
  font-size: 0.9375rem;
  min-height: 52px;
  padding: 14px 20px;
  gap: 9px;
  font-weight: 600;
}
.tiny {
  font-size: 0.6875rem;
  letter-spacing: 0.6px;
}
.workspace {
  grid-template-columns: minmax(0, 1fr) 382px;
  gap: 24px;
  align-items: start;
}
.timer-card {
  border-radius: 22px;
  background: radial-gradient(
    ellipse at 50% 36%,
    color-mix(in srgb, var(--accent) 5%, var(--surface)),
    var(--surface) 65%
  );
  box-shadow: 0 8px 35px #37256405;
}
.card-top {
  padding: 20px 24px;
}
.status-pill {
  font-size: 0.6875rem;
  letter-spacing: 0.9px;
  color: #696476;
  border: 0;
  background: var(--tint);
  padding: 10px 12px;
  border-radius: 8px;
}
.card-tools .icon-btn {
  width: 44px;
  height: 44px;
}
.card-tools svg {
  width: 19px;
  height: 19px;
}
.timer-center {
  padding: 5px 24px 32px;
}
.session-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #514a66;
  max-width: 90%;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  margin: 0 0 12px;
  min-height: 44px;
}
.session-title:hover {
  border-color: var(--line);
  background: var(--surface);
}
.timer-ring {
  width: 330px;
  height: 330px;
  max-width: 100%;
  flex-shrink: 0;
}
.ring-svg circle {
  stroke-width: 5;
}
.ring-progress {
  filter: drop-shadow(
    0 0 3px color-mix(in srgb, var(--accent) 20%, transparent)
  );
}
#time {
  font-size: 80px;
  font-weight: 750;
  letter-spacing: -4px;
  color: var(--text);
}
.time-caption {
  font-size: 0.6875rem;
  letter-spacing: 1.5px;
  color: #777084;
}
.timer-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 14px 0 24px;
  line-height: 1.5;
  text-align: center;
}
.timer-actions {
  gap: 12px;
}
.start-button {
  min-width: 205px;
  min-height: 50px;
  font-size: 1rem;
  border-radius: 12px;
  background: #7050ce;
  box-shadow: 0 5px 16px #7050ce25;
}
.start-button kbd {
  font-size: 0.6875rem;
}
.start-button svg {
  width: 18px;
  height: 18px;
}
.reset-button,
.add-button {
  min-height: 50px;
  min-width: 50px;
  font-size: 0.875rem;
  border-radius: 12px;
}
.reset-button svg {
  width: 19px;
  height: 19px;
}
.card-bottom {
  font-size: 0.75rem;
  padding: 17px 24px;
  color: var(--muted);
  min-height: 54px;
}
.card-bottom > span:last-child {
  font-size: 0.75rem;
}
.settings-card {
  border-radius: 18px;
  padding: 24px;
}
.section-heading {
  margin-bottom: 24px;
}
h2 {
  font-size: 1.0625rem;
}
.section-heading h2 {
  font-size: 1.125rem;
}
.mini-icon {
  font-size: 24px;
  color: #827992;
}
.field-label {
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: #686177;
  margin-bottom: 12px;
}
.duration-inputs {
  gap: 9px;
}
.duration-inputs input {
  height: 60px;
  font-size: 1.75rem;
  border-radius: 10px;
  background: #faf9fe;
}
.duration-inputs b {
  font-size: 20px;
  margin-top: 15px;
  color: #8b829e;
}
.duration-inputs span {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 9px 0 16px;
}
.quick-times {
  gap: 8px;
}
.quick-times button {
  min-height: 44px;
  font-size: 0.875rem;
  border-radius: 8px;
  color: #645b79;
}
.quick-times button.selected {
  color: #5e3daf;
  background: var(--tint);
  border-color: #cfc0f0;
}
.setting-row {
  font-size: 0.875rem;
  margin-top: 16px;
  min-height: 36px;
  gap: 8px;
}
.setting-row > span:first-child {
  gap: 8px;
}
.setting-row svg {
  width: 17px;
  height: 17px;
}
.setting-row select {
  font-size: 0.8125rem;
  padding: 10px 25px 10px 9px;
  min-height: 42px;
  color: var(--text);
  appearance: none;
  background: var(--bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4 3 3 3-3' fill='none' stroke='%23746b86' stroke-width='1.5'/%3E%3C/svg%3E")
    no-repeat right 8px center;
}
.sound-preview {
  min-width: 36px;
  min-height: 44px;
}
.switch {
  width: 44px;
  height: 44px;
  background: transparent !important;
  padding: 0;
}
.switch:after {
  content: "";
  position: absolute;
  width: 36px;
  height: 22px;
  top: 11px;
  left: 4px;
  background: #bbb7c9;
  border-radius: 20px;
  z-index: 0;
}
.switch:before {
  position: absolute;
  top: 14px;
  left: 7px;
  width: 16px;
  height: 16px;
  z-index: 1;
}
.switch.on:after {
  background: #7050ce;
}
.switch.on:before {
  transform: translateX(14px);
}
.setting-row .field-label {
  font-size: 0.75rem;
}
.colors {
  gap: 2px;
}
.colors button {
  width: 31px;
  height: 44px;
  background: transparent !important;
  border: 0;
  outline: none;
  border-radius: 7px;
}
.colors button:before {
  content: "";
  position: absolute;
  inset: 12px 5px;
  background: var(--swatch);
  border-radius: 50%;
}
.colors button.selected:after {
  content: "";
  position: absolute;
  inset: 8px 1px;
  border-radius: 50%;
  border: 2px solid var(--swatch);
}
.colors button:focus-visible {
  outline: 2px solid var(--accent);
}
.tip-card {
  border-radius: 15px;
  padding: 21px;
  gap: 13px;
  background: #efebfa;
  border-color: #e2d9f4;
}
.tip-card strong {
  font-size: 0.9375rem;
  color: #4c3f68;
}
.tip-card p {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #6b607b;
  margin: 9px 0;
}
.tip-card button {
  min-height: 44px;
  font-size: 0.8125rem;
  color: #6040b3;
}
.tip-icon {
  font-size: 26px;
}
.presets-section {
  margin-top: 32px;
}
.presets-heading {
  margin-bottom: 20px;
}
.presets-heading h2 {
  font-size: 1.125rem;
}
.presets-heading p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 8px;
}
.text-button {
  font-size: 0.875rem;
  color: #6140b7;
  min-height: 44px;
}
.preset-grid {
  gap: 16px;
}
.preset-card {
  padding: 20px 16px;
  gap: 13px;
  border-radius: 14px;
  min-height: 94px;
}
.preset-card strong {
  font-size: 0.9375rem;
}
.preset-card small {
  font-size: 0.75rem;
  color: #716a80;
  line-height: 1.6;
}
.preset-icon {
  width: 42px;
  height: 44px;
  font-size: 23px;
}
.preset-wrapper {
  position: relative;
  min-width: 0;
}
.preset-wrapper > .preset-card {
  width: 100%;
  height: 100%;
  padding-right: 44px;
}
.preset-remove {
  position: absolute;
  right: 4px;
  top: 6px;
  width: 36px;
  height: 44px;
  border-radius: 8px;
  color: #746b85;
  font-size: 21px;
}
.preset-remove:hover {
  background: var(--tint);
}
footer {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 25px 0;
}
.footer-brand {
  font-size: 20px;
}
.footer-brand > span:last-child {
  font-size: 0.75rem;
}
footer kbd {
  font-size: 0.6875rem;
}
.muted {
  font-size: 0.875rem;
  color: var(--muted);
}
.inline-field {
  font-size: 0.8125rem;
  line-height: 1.5;
}
.inline-field input {
  min-height: 44px;
  width: 64px;
  font-size: 1rem;
}
.check-row {
  font-size: 0.8125rem;
  gap: 9px;
  min-height: 44px;
  margin: 10px 0;
  line-height: 1.6;
  color: #5b536c;
}
.check-row input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.student-next {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 4px 0 0;
  text-align: center;
}
.student-next strong {
  color: var(--text);
}
.runtime-recovery {
  font-size: 0.8125rem;
  line-height: 1.6;
  max-width: 340px;
  text-align: center;
  margin-top: 18px;
  padding: 10px;
  background: var(--tint);
  border-radius: 8px;
}
.lesson-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.local-tag {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}
.import-launch {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 12px;
  background: var(--tint);
  border: 1px solid #dcd2f0;
  border-radius: 12px;
  text-align: left;
  margin-bottom: 22px;
  min-height: 76px;
}
.import-launch:hover {
  border-color: var(--accent);
}
.excel-icon {
  font-size: 29px;
  color: #248368;
}
.import-launch strong {
  font-size: 0.875rem;
  display: block;
}
.import-launch small {
  display: block;
  color: #6d617f;
  font-size: 0.75rem;
  margin-top: 5px;
  line-height: 1.5;
}
.import-plus {
  font-size: 24px;
  margin-left: auto;
  color: #78658f;
}
.lesson-columns {
  display: grid;
  grid-template-columns: 1fr 60px 36px;
  gap: 6px;
  font-size: 0.6875rem;
  letter-spacing: 1px;
  color: #776d87;
  margin-bottom: 4px;
}
.sequence-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px 36px;
  gap: 6px;
  margin: 8px 0;
  position: relative;
}
.sequence-row input {
  width: 100% !important;
  min-height: 44px;
  font-size: 0.875rem;
  border-radius: 8px;
  padding: 8px;
  color: var(--text);
}
.sequence-row input[type="number"] {
  text-align: center;
  padding: 4px;
}
.sequence-row.current input {
  border-color: #b09be0;
  background: var(--tint);
}
.sequence-row button {
  width: 36px;
  min-height: 44px;
  font-size: 21px;
  border-radius: 7px;
  color: #786f85;
}
.sequence-row button:hover {
  background: #f7e9ef;
  color: #a43656;
}
.sequence-row input:disabled {
  opacity: 0.75;
}
.sequence-nav {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}
.sequence-nav button {
  flex: 1;
  font-size: 0.8125rem;
  padding: 8px;
}
.add-step {
  padding-left: 0;
}
.sequence-row.active:before {
  content: "";
  position: absolute;
  left: -10px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  background: var(--accent);
  border-radius: 4px;
}
.lap-button {
  font-size: 0.9375rem;
  min-height: 44px;
}
#laps {
  font-size: 0.875rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
dialog {
  border-radius: 20px;
  width: min(460px, calc(100vw - 28px));
  padding: 28px;
}
dialog p {
  font-size: 0.9375rem;
  line-height: 1.7;
}
dialog h2 {
  font-size: 1.375rem;
}
dialog p.muted {
  font-size: 0.875rem;
}
.dialog-close {
  right: 10px;
  top: 10px;
}
.primary-button {
  min-height: 44px;
  padding: 12px 20px;
  background: #7050ce;
  border: 1px solid transparent;
  border-radius: 10px;
  color: white;
  font-size: 0.9375rem;
  font-weight: 600;
}
.primary-button:hover {
  background: #5f3fbb;
}
.primary-button:disabled {
  background: #b1a8c5;
  opacity: 1;
  cursor: not-allowed;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.import-dialog {
  width: min(820px, calc(100vw - 32px));
  padding: 0;
  max-height: 90vh;
}
.dialog-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.dialog-header .eyebrow {
  font-size: 0.6875rem;
}
.dialog-header h2 {
  margin: 9px 0 8px;
  font-size: 1.625rem;
  letter-spacing: -0.7px;
}
.dialog-header p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.dialog-header > .icon-btn {
  font-size: 26px;
  flex-shrink: 0;
}
.import-body {
  padding: 24px 28px;
}
.drop-zone {
  border: 1.5px dashed #b8a4df;
  border-radius: 14px;
  background: var(--tint);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  cursor: pointer;
}
.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
}
.drop-zone:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.upload-symbol {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface);
  display: grid;
  place-items: center;
  color: #258169;
  font-size: 32px;
}
.drop-zone strong {
  font-size: 1rem;
}
.drop-zone > span:not(.upload-symbol) {
  font-size: 0.8125rem;
  color: var(--muted);
}
.drop-zone .file-private {
  font-size: 0.75rem !important;
}
.template-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 10px 0;
}
.file-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 14px;
}
.file-summary strong {
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.mapping-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 15px 0;
}
.mapping-grid label {
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.mapping-grid select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  padding: 8px;
  font-size: 0.875rem;
}
.import-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.8;
  display: block;
}
.preview-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 0 12px;
}
.preview-heading strong {
  font-size: 0.8755rem;
}
.preview-heading span {
  font-size: 0.6875rem;
  letter-spacing: 1.3px;
  color: var(--muted);
}
.preview-table-wrap {
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.preview-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 0.8125rem;
}
.preview-table th {
  position: sticky;
  top: 0;
  background: var(--bg);
  font-weight: 600;
  color: var(--muted);
}
.preview-table th,
.preview-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  max-width: 240px;
}
.preview-table tr:last-child td {
  border: 0;
}
.preview-table .invalid {
  background: #fff0f1;
  color: #9d2342;
}
.preview-table .valid-label {
  color: #217354;
}
.import-error {
  background: #fff0f1;
  color: #9d2342;
  border: 1px solid #f3ccd5;
  padding: 13px 16px;
  border-radius: 9px;
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 15px 0;
}
.import-behavior {
  display: flex;
  gap: 20px;
  border: 0;
  padding: 0;
  margin: 20px 0 0;
  font-size: 0.875rem;
}
.import-behavior legend {
  font-weight: 600;
  margin-bottom: 10px;
}
.import-behavior label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.import-behavior input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}
.import-dialog > .dialog-footer {
  margin: 0;
  padding: 18px 28px;
  background: var(--surface);
  position: sticky;
  bottom: 0;
}
#importWarning {
  margin: 8px 0 0;
}
#toast {
  font-size: 0.875rem;
  background: #30273f;
  color: #fff;
  padding: 14px 22px;
}
.presentation .timer-card {
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--accent) 5%, var(--surface)),
    var(--surface) 75%
  );
}
.presentation .session-title {
  color: var(--text);
  font-size: clamp(24px, 3vw, 44px);
  margin-bottom: 8px;
}
.presentation .timer-center {
  padding-bottom: 35px;
}
.presentation .timer-ring {
  width: min(56vh, 65vw);
  height: min(56vh, 65vw);
}
.presentation #time {
  font-size: clamp(70px, 11vw, 165px);
}
.presentation .time-caption {
  font-size: 0.875rem;
}
.presentation .timer-note {
  font-size: 1rem;
  margin-top: 10px;
}
.presentation .timer-actions {
  gap: 16px;
}
.presentation .student-next {
  font-size: 1.125rem;
  margin-top: 12px;
}
.presentation .exit-presentation {
  font-size: 0.875rem;
}
.presentation .card-bottom {
  font-size: 0.875rem;
}
.dark {
  --text: #f1edf8;
  --muted: #bbb3ca;
  --line: #474053;
  --bg: #1d1a27;
  --surface: #272231;
}
.dark .session-title,
.dark .time-caption,
.dark .field-label,
.dark .setting-row .field-label,
.dark .quick-times button,
.dark .status-pill,
.dark .lesson-columns,
.dark .check-row,
.dark .import-launch small,
.dark .preset-card small,
.dark .tip-card p,
.dark .tip-card strong,
.dark .key,
.dark kbd {
  color: #c8bddb;
}
.dark .duration-inputs input {
  background: #211c2b;
}
.dark .text-button,
.dark .tip-card button,
.dark .eyebrow {
  color: #c3a8ff;
}
.dark .tip-card {
  background: #30283f;
}
.dark .preset-icon {
  color: #30273e;
}
.dark .preview-table .invalid,
.dark .import-error {
  background: #442b36;
  color: #ffb4c8;
}
.dark .preview-table .valid-label {
  color: #8cdbb2;
}
.dark .header-label,
.dark .classroom-badge {
  color: var(--muted);
}
button,
input,
select {
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
button:focus-visible {
  outline: 3px solid #9a7beb;
  outline-offset: 3px;
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 20px;
  }
  .header-label {
    display: none;
  }
  .timer-ring {
    width: 300px;
    height: 300px;
  }
  .card-bottom > span:last-child {
    display: none;
  }
  .preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .colors button {
    width: 27px;
  }
  .colors button:before {
    inset: 12px 3px;
  }
  .colors button.selected:after {
    inset: 8px -1px;
  }
}
@media (max-width: 800px) {
  header {
    height: 76px;
    padding: 0 20px;
  }
  .classroom-badge {
    display: none;
  }
  main {
    padding: 28px 18px 0;
  }
  .intro h1 {
    font-size: 34px;
    max-width: none;
  }
  .intro p {
    font-size: 0.9375rem;
    max-width: 320px;
  }
  .intro .outline-button {
    font-size: 0;
    padding: 12px;
    min-width: 46px;
    align-self: center;
  }
  .intro .outline-button .key {
    display: none;
  }
  .eyebrow {
    font-size: 0.6875rem;
  }
  .mode-tabs {
    gap: 0;
    overflow: auto;
  }
  .mode-tabs button {
    font-size: 0.875rem;
    padding: 13px 14px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .tiny {
    display: none;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .timer-ring {
    width: 320px;
    height: 320px;
  }
  .settings-card {
    padding: 24px;
  }
  .colors button {
    width: 34px;
  }
  .colors button:before {
    inset: 12px 6px;
  }
  .colors button.selected:after {
    inset: 8px 2px;
  }
  .tip-card {
    display: flex;
  }
  .preset-card strong {
    font-size: 0.875rem;
  }
  .preset-card small {
    font-size: 0.75rem;
  }
  .presets-heading {
    gap: 15px;
  }
  .presets-heading h2 {
    font-size: 1rem;
  }
  .presets-heading p {
    font-size: 0.8125rem;
  }
  .presets-heading .text-button {
    max-width: 125px;
    line-height: 1.6;
  }
  .preset-card {
    padding: 17px 12px;
    gap: 10px;
  }
  .preset-icon {
    width: 36px;
    height: 40px;
  }
  .footer-brand > span:last-child {
    font-size: 0.75rem;
  }
  footer > span:last-child {
    display: none;
  }
  .mapping-grid {
    grid-template-columns: 1fr;
  }
  .import-body {
    padding: 20px;
  }
  .dialog-header {
    padding: 22px 20px;
  }
  .dialog-header h2 {
    font-size: 1.375rem;
  }
  .template-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .drop-zone {
    padding: 24px 12px;
  }
  .import-behavior {
    flex-direction: column;
    gap: 0;
  }
  .preview-table th,
  .preview-table td {
    padding: 10px 7px;
    font-size: 0.75rem;
  }
  .import-dialog > .dialog-footer {
    padding: 16px 20px;
  }
  .import-dialog {
    max-height: 92vh;
  }
  .presentation .timer-ring {
    width: min(48vh, 88vw);
    height: min(48vh, 88vw);
  }
  .presentation .session-title {
    font-size: 1.5rem;
  }
  .presentation .student-next {
    font-size: 0.9375rem;
  }
  .presentation .timer-note {
    font-size: 0.875rem;
  }
  .presentation .timer-center {
    padding-bottom: 65px;
  }
  .presentation .card-top {
    padding: 10px 15px;
  }
  .presentation .card-bottom {
    font-size: 0.75rem;
  }
  .presentation .exit-presentation {
    right: 10px;
    font-size: 0.75rem;
  }
  .presentation .exit-presentation .key {
    display: none;
  }
}
@media (max-width: 400px) {
  main {
    padding-left: 12px;
    padding-right: 12px;
  }
  .intro h1 {
    font-size: 30px;
  }
  .intro p {
    max-width: 245px;
  }
  .timer-center {
    padding-left: 10px;
    padding-right: 10px;
  }
  .timer-ring {
    width: 280px;
    height: 280px;
  }
  #time {
    font-size: 70px;
  }
  .timer-actions {
    gap: 8px;
  }
  .start-button {
    min-width: 175px;
    font-size: 0.875rem;
  }
  .start-button kbd {
    display: none;
  }
  .preset-grid {
    grid-template-columns: 1fr;
  }
  .presets-heading .text-button {
    font-size: 0.8125rem;
  }
  .mode-tabs button {
    padding: 13px 10px;
  }
  .settings-card {
    padding: 20px;
  }
  .presentation .timer-actions {
    gap: 8px;
  }
}
@media (max-height: 650px) and (min-width: 801px) {
  .presentation .timer-center {
    padding: 0 20px 30px;
  }
  .presentation .card-top {
    padding: 8px 25px;
  }
  .presentation .timer-ring {
    width: 43vh;
    height: 43vh;
  }
  .presentation #time {
    font-size: 18vh;
  }
  .presentation .timer-note {
    margin: 8px 0;
  }
  .presentation .session-title {
    font-size: 1.5rem;
  }
  .presentation .student-next {
    font-size: 0.875rem;
  }
  .presentation .timer-actions .start-button,
  .presentation .timer-actions .reset-button,
  .presentation .timer-actions .add-button {
    min-height: 44px;
  }
}
/* Keep the selected ring color independent from readable text contrast. */
h1 span,
.mode-tabs button.active {
  color: #6140b7;
}
.mode-tabs button.active {
  border-color: #7050ce;
}
.dark h1 span,
.dark .mode-tabs button.active {
  color: #c3a8ff;
}
.dark .mode-tabs button.active {
  border-color: #c3a8ff;
}
.field-label,
.setting-row .field-label {
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}
.status-pill {
  font-size: 0.8125rem;
  letter-spacing: 0.5px;
}
.time-caption {
  font-size: 0.75rem;
}
.lesson-columns {
  font-size: 0.75rem;
}
.colors {
  gap: 0;
}
.colors button {
  width: 44px;
  height: 44px;
}
.colors button:before {
  inset: 12px;
}
.colors button.selected:after {
  inset: 8px;
}
.setting-row:has(.colors) {
  flex-wrap: wrap;
}
.sound-preview {
  min-width: 44px;
}
.preset-remove {
  min-width: 44px;
}
.preset-wrapper > .preset-card {
  padding-right: 48px;
}
.sequence-row,
.lesson-columns {
  grid-template-columns: minmax(0, 1fr) 60px 44px;
}
.sequence-row button {
  width: 44px;
}
.import-plus {
  min-width: 20px;
}
.dark .import-launch {
  border-color: #5a4973;
}
.dark .preview-table th {
  color: #d0c6df;
}
/* Studio controls and a balanced bilingual layout. */
.language-button {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.language-button:hover {
  background: var(--tint);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: #332052;
  color: white;
  padding: 14px 20px;
  border-radius: 0 0 10px 10px;
}
.skip-link:focus {
  top: 0;
}
main:focus {
  outline: none;
}
.lesson-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.lesson-tools > .outline-button {
  flex: 1;
  font-size: 0.8125rem;
  white-space: nowrap;
  padding: 8px 10px;
}
.lesson-tools > .text-button {
  padding: 6px 0;
  width: 100%;
  text-align: start;
}
#undoLesson {
  padding: 0;
  margin: 0 0 12px;
  color: #746987;
  font-size: 0.8125rem;
}
.sequence-row,
.lesson-columns {
  grid-template-columns: 44px minmax(0, 1fr) 58px 44px;
  gap: 5px;
}
.activity-order {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8125rem;
  padding: 3px;
  cursor: pointer;
}
#sequenceList {
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-inline: 5px;
  margin-inline: -5px;
  scrollbar-width: thin;
}
.sequence-row.current .activity-order {
  border-color: var(--accent);
  color: var(--text);
}
.display-segment {
  display: flex;
  background: var(--bg);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  gap: 4px;
}
.display-segment button {
  flex: 1;
  min-height: 44px;
  padding: 7px 10px;
  font-size: 0.875rem;
  border-radius: 7px;
  color: var(--muted);
}
.display-segment [aria-pressed="true"] {
  background: var(--surface);
  color: #6140b7;
  box-shadow: 0 1px 5px #2f1c4610;
  font-weight: 600;
}
.completion-message {
  font-family: Manrope, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 12px;
  color: #6140b7;
  max-width: 260px;
  line-height: 1.5;
}
.time-complete #time {
  color: #6140b7;
}
.time-complete .timer-ring {
  background: color-mix(in srgb, var(--accent) 4%, transparent);
  border-radius: 50%;
}
.time-low .status-pill {
  color: #805109;
  background: #fff0cf;
}
.status-pill:before {
  content: "";
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: currentColor;
}
.digits-view .ring-svg {
  display: none;
}
.digits-view .timer-ring {
  width: 100%;
  height: 330px;
}
.digits-view #time {
  font-size: clamp(72px, 8vw, 112px);
  letter-spacing: -4px;
}
.digits-view .timer-numbers {
  max-width: 100%;
}
.save-lesson-row {
  display: flex;
  gap: 10px;
}
.save-lesson-row input {
  min-width: 0;
  flex: 1;
  min-height: 46px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
}
.save-lesson-row button {
  font-size: 0.875rem;
}
#lessonDialog {
  padding: 0;
  width: min(700px, calc(100vw - 28px));
  max-height: 88vh;
}
.saved-lessons-list {
  margin-top: 20px;
  max-height: 360px;
  overflow: auto;
  scrollbar-width: thin;
}
.library-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.library-row > div {
  min-width: 0;
  flex: 1;
}
.library-row strong {
  display: block;
  font-size: 1rem;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.library-row span {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 5px;
}
.library-empty {
  font-size: 0.9375rem;
  padding: 28px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.presentation .completion-message {
  font-size: clamp(18px, 2.2vw, 32px);
  max-width: 450px;
}
.presentation.digits-view .timer-ring {
  width: 100%;
  height: 45vh;
}
.presentation.digits-view #time {
  font-size: clamp(90px, 20vw, 280px);
}
.presentation.projector-contrast .timer-card {
  background: #fff;
  color: #111;
}
.presentation.projector-contrast #time,
.presentation.projector-contrast .session-title,
.presentation.projector-contrast .timer-note,
.presentation.projector-contrast .time-caption,
.presentation.projector-contrast .student-next,
.presentation.projector-contrast .card-bottom,
.presentation.projector-contrast .completion-message {
  color: #111;
}
.presentation.projector-contrast .status-pill {
  color: #111;
  background: #eee;
}
.presentation.projector-contrast .ring-track {
  stroke: #ddd;
}
.presentation.projector-contrast .ring-progress {
  stroke: #111;
  filter: none;
}
.presentation.projector-contrast .session-title {
  background: #fff;
}
.presentation.projector-contrast .card-tools .icon-btn {
  color: #333;
}
.presentation.projector-contrast .time-complete .timer-ring {
  background: none;
}
.dark .display-segment [aria-pressed="true"],
.dark .completion-message,
.dark .time-complete #time {
  color: #cfb9ff;
}
.dark .activity-order {
  background: #272231;
}
.dark .time-low .status-pill {
  color: #ffe1a0;
  background: #4d3a19;
}
.timer-numbers,
.duration-inputs {
  direction: ltr;
}
.time-caption {
  direction: inherit;
}
html[dir="rtl"] body {
  font-family: "Noto Sans Arabic", "DM Sans", Tahoma, sans-serif;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] .session-title,
html[dir="rtl"] .completion-message {
  font-family: "Noto Sans Arabic", Tahoma, sans-serif;
  letter-spacing: 0;
}
html[dir="rtl"] h1 {
  line-height: 1.55;
  font-size: clamp(30px, 3vw, 42px);
}
html[dir="rtl"] .brand,
html[dir="rtl"] .footer-brand {
  direction: ltr;
}
html[dir="rtl"] .brand-mark {
  margin-right: 0;
  margin-left: 11px;
}
html[dir="rtl"] .header-actions {
  margin-left: 0;
  margin-right: auto;
}
html[dir="rtl"] .intro,
html[dir="rtl"] .section-heading,
html[dir="rtl"] .presets-heading,
html[dir="rtl"] .setting-row,
html[dir="rtl"] .dialog-header,
html[dir="rtl"] .file-summary {
  text-align: right;
}
html[dir="rtl"] .import-launch {
  text-align: right;
}
html[dir="rtl"] .import-plus {
  margin-left: 0;
  margin-right: auto;
}
html[dir="rtl"] .key {
  margin-left: 0;
  margin-right: 10px;
}
html[dir="rtl"] .start-button kbd {
  margin-left: 0;
  margin-right: 6px;
}
html[dir="rtl"] .preview-table {
  text-align: right;
}
html[dir="rtl"] .preset-card {
  text-align: right;
}
html[dir="rtl"] .preset-remove {
  right: auto;
  left: 4px;
}
html[dir="rtl"] .preset-wrapper > .preset-card {
  padding-right: 16px;
  padding-left: 48px;
}
html[dir="rtl"] .presentation .exit-presentation {
  right: auto;
  left: 20px;
}
html[dir="rtl"] .sequence-row.active:before {
  left: auto;
  right: -8px;
}
html[dir="rtl"] .time-caption {
  direction: rtl;
}
html[dir="rtl"] .dialog-close {
  right: auto;
  left: 10px;
}
html[dir="rtl"] .import-dialog,
html[dir="rtl"] #lessonDialog {
  text-align: right;
}
html[dir="rtl"] .preview-table-wrap {
  direction: rtl;
}
.dark .import-launch small {
  color: #d1c6df;
}
@media (max-width: 800px) {
  .header-actions {
    gap: 5px;
  }
  .language-button {
    padding: 9px 10px;
    font-size: 0.8125rem;
  }
  .header-actions .icon-btn,
  #help {
    min-width: 40px;
  }
  .header-label {
    display: none;
  }
  .lesson-tools > .outline-button {
    font-size: 0.875rem;
  }
  .save-lesson-row {
    flex-direction: column;
  }
  .save-lesson-row button {
    width: 100%;
  }
  .digits-view .timer-ring {
    height: 300px;
  }
  .digits-view #time {
    font-size: clamp(72px, 16vw, 105px);
  }
  .presentation.digits-view #time {
    font-size: clamp(70px, 22vw, 180px);
  }
  .presentation.digits-view .timer-ring {
    height: 42vh;
  }
  html[dir="rtl"] .intro h1 {
    font-size: 30px;
  }
  .completion-message {
    font-size: 1rem;
  }
  .library-row {
    gap: 7px;
  }
  .library-row .outline-button {
    padding: 8px 12px;
  }
  .header-actions .classroom-badge {
    display: none;
  }
}
@media (max-height: 650px) and (min-width: 801px) {
  .presentation.digits-view .timer-ring {
    height: 37vh;
  }
  .presentation.digits-view #time {
    font-size: 28vh;
  }
  .presentation .completion-message {
    font-size: 16px;
    margin-top: 4px;
  }
}

.add-button {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.add-button.is-held {
  background: var(--tint);
  border-color: var(--accent);
  color: var(--text);
}

/* Keep four controls usable on narrow screens and in presentation mode. */
@media (max-width: 520px) {
  .timer-actions {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    gap: 8px;
  }
  .timer-actions .start-button {
    min-width: 155px;
  }
  .timer-actions .start-button kbd {
    display: none;
  }
  .timer-actions .add-button {
    min-width: 64px;
    padding-inline: 10px;
  }
  .timer-actions .reset-button {
    min-width: 44px;
    padding-inline: 10px;
  }
}
@media (max-width: 370px) {
  .timer-actions {
    max-width: 270px;
  }
  .timer-actions .start-button {
    order: -1;
    flex-basis: 100%;
  }
}

.setting-help {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 8px 0 0;
}
@media (max-width: 900px) {
  .timer-actions,
  .presentation .timer-actions {
    gap: 6px;
  }
  .timer-actions .start-button {
    min-width: 130px;
    font-size: 0.875rem;
    padding-inline: 10px;
  }
  .timer-actions .start-button kbd {
    display: none;
  }
  .timer-actions .add-button {
    min-width: 52px;
    padding-inline: 8px;
  }
}
/* Learning tools: student task cards, explicit lesson budgets and exam controls. */
#settingsFields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
#settingsFields:disabled {
  opacity: 0.6;
}
.mode-tabs {
  overflow-x: auto;
  white-space: nowrap;
}
.mode-tabs button {
  flex-shrink: 0;
}
.activity-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.student-task {
  width: 100%;
  max-width: 580px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 22px 24px;
  text-align: start;
  overflow-wrap: anywhere;
}
.task-eyebrow,
.student-task h3 {
  font-size: 0.75rem;
  letter-spacing: 0.9px;
  font-weight: 700;
  color: #6140b7;
  margin: 0 0 10px;
}
.student-task p {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin: 0;
  white-space: pre-wrap;
}
.student-task #taskOutputBlock {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.student-task a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  color: #6140b7;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.has-task .timer-center {
  padding-top: 0;
}
.has-task .timer-ring {
  width: 280px;
  height: 280px;
}
.has-task #time {
  font-size: 68px;
}
.task-editor,
.lesson-budget {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  margin: 18px 0;
  background: var(--bg);
}
.task-editor summary,
.lesson-budget summary {
  padding: 15px 0;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.6;
  min-height: 48px;
}
.task-editor[open],
.lesson-budget[open] {
  padding-bottom: 16px;
}
.task-editor .field-label {
  margin-top: 16px;
  font-size: 0.8125rem;
}
.task-editor input,
.task-editor textarea,
.task-editor select,
#lessonEnd {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 11px;
  font: inherit;
  font-size: 0.875rem;
  min-height: 44px;
}
.task-editor textarea {
  resize: vertical;
  line-height: 1.8;
}
.field-error {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #a82c4d;
  margin: 10px 0;
}
.budget-status {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #277455;
  line-height: 1.6;
  margin: 16px 0 6px;
}
.budget-status.over-budget {
  color: #a65320;
}
.lesson-budget .outline-button {
  width: 100%;
  justify-content: center;
  margin: 14px 0 8px;
  font-size: 0.8125rem;
}
.fit-dialog {
  width: min(700px, calc(100vw - 28px));
  padding: 0;
  max-height: 90vh;
}
.fit-preview {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  max-height: 330px;
  overflow: auto;
}
.fit-preview li {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.7;
}
.fit-preview li > span:first-child {
  overflow-wrap: anywhere;
}
.fit-preview li > span:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--muted);
}
.fit-dialog .dialog-footer {
  padding: 18px 24px;
  margin: 0;
  position: sticky;
  bottom: 0;
  background: var(--surface);
}
#examControls {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 14px;
  margin: 18px 0;
}
#examControls h3 {
  font-size: 0.9375rem;
  margin: 0 0 12px;
}
.exam-reminders {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.exam-reminders .check-row {
  margin: 0;
  min-height: 40px;
  font-size: 0.8125rem;
}
.lock-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--text);
  font-weight: 600;
}
.lock-button:hover {
  border-color: var(--accent);
}
.lock-notice {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 10px 0 0;
  text-align: center;
  max-width: 440px;
}
.exam-notice {
  border: 1px solid #e7ce84;
  border-radius: 9px;
  padding: 10px 16px;
  background: #fff3cf;
  color: #774c0c;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 10px 0 0;
}
.presentation .timer-card.has-task {
  overflow-y: auto;
}
.presentation .has-task .timer-center {
  justify-content: center;
  padding-block: 12px 85px;
}
.presentation .activity-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(1200px, 94vw);
  align-items: center;
  gap: 42px;
}
.presentation .student-task {
  max-width: none;
  padding: 28px;
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}
.presentation .has-task .timer-ring {
  width: min(43vw, 56vh);
  height: min(43vw, 56vh);
  justify-self: center;
}
.presentation .has-task #time {
  font-size: clamp(72px, 9vw, 145px);
}
.presentation .student-task p {
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.8;
  max-height: 36vh;
  overflow-y: auto;
  scrollbar-width: thin;
}
.presentation .student-task .task-eyebrow,
.presentation .student-task h3 {
  font-size: 0.875rem;
}
.presentation .student-task a {
  font-size: 1rem;
}
.presentation .activity-stage:not(:has(.student-task:not([hidden]))) {
  display: flex;
  flex-direction: column;
}
.presentation.projector-contrast .student-task {
  background: white;
  border: 2px solid #222;
  color: #111;
}
.presentation.projector-contrast .student-task .task-eyebrow,
.presentation.projector-contrast .student-task h3,
.presentation.projector-contrast .student-task a {
  color: #111;
}
.presentation .lock-notice {
  font-size: 0.9375rem;
}
.dark .student-task .task-eyebrow,
.dark .student-task h3,
.dark .student-task a {
  color: #c3a8ff;
}
.dark .field-error {
  color: #ffb4c8;
}
.dark .budget-status {
  color: #98d8b7;
}
.dark .budget-status.over-budget {
  color: #ffbf87;
}
.dark .exam-notice {
  background: #48391a;
  color: #ffe1a0;
  border-color: #796333;
}
html[dir="rtl"] .task-eyebrow,
html[dir="rtl"] .student-task h3 {
  letter-spacing: 0;
}
html[dir="rtl"] .fit-dialog {
  text-align: right;
}
.fit-preview span[dir="ltr"] {
  direction: ltr;
}
@media (min-width: 1200px) {
  body:not(.presentation) .has-task .activity-stage {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  body:not(.presentation) .has-task .student-task {
    min-width: 0;
    flex: 1;
    padding: 18px;
  }
  body:not(.presentation) .has-task .timer-ring {
    width: 270px;
    height: 270px;
  }
  body:not(.presentation) .has-task #time {
    font-size: 64px;
  }
}
@media (max-width: 800px) {
  .presentation .activity-stage {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 94vw;
  }
  .presentation .has-task .timer-ring {
    width: 180px;
    height: 180px;
  }
  .presentation .has-task #time {
    font-size: 58px;
  }
  .presentation .student-task {
    padding: 18px;
    max-width: 650px;
  }
  .presentation .student-task p {
    font-size: 1.125rem;
    max-height: 25vh;
  }
  .presentation .has-task .timer-center {
    justify-content: flex-start;
    padding-bottom: 90px;
  }
  .student-task {
    padding: 18px;
  }
  .card-tools {
    gap: 3px;
  }
  .lock-button {
    font-size: 0.75rem;
    padding-inline: 8px;
  }
  .status-pill {
    font-size: 0.6875rem;
  }
  .fit-preview li {
    font-size: 0.8125rem;
  }
  .has-task .timer-ring {
    width: 260px;
    height: 260px;
  }
}
@media (max-height: 650px) and (min-width: 801px) {
  .presentation .has-task .timer-ring {
    width: 40vh;
    height: 40vh;
  }
  .presentation .has-task #time {
    font-size: 15vh;
  }
  .presentation .student-task p {
    font-size: 18px;
    max-height: 24vh;
  }
  .presentation .has-task .timer-center {
    padding-bottom: 70px;
  }
  .presentation .student-task {
    padding: 18px;
  }
}
/* Class timer by ele01: keep the longer identity readable on classroom and mobile screens. */
.brand-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.15;
  direction: ltr;
  text-align: start;
}
.brand-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
}
.brand-credit {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--muted);
}
.footer-brand .footer-credit {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  margin-inline: 9px;
  color: var(--muted);
}
@media (max-width: 800px) {
  header {
    gap: 12px;
    padding-inline: 16px;
  }
  .brand-name {
    font-size: 20px;
    letter-spacing: -0.5px;
  }
  .brand-credit {
    font-size: 11px;
  }
  .brand-mark {
    width: 30px;
    height: 34px;
    margin-right: 8px;
  }
  .brand-mark svg {
    width: 23px;
    height: 23px;
  }
  html[dir="rtl"] .brand-mark {
    margin-right: 0;
    margin-left: 8px;
  }
  .header-actions {
    gap: 4px;
  }
  .language-button {
    padding-inline: 8px;
  }
  .header-actions .icon-btn,
  #help {
    min-width: 36px;
    min-height: 44px;
  }
  .footer-brand {
    font-size: 17px;
  }
  .footer-brand > span:last-child {
    display: none;
  }
}
@media (max-width: 350px) {
  .brand-name {
    font-size: 18px;
  }
  .language-button {
    padding-inline: 6px;
  }
  .brand-mark {
    width: 28px;
  }
  .header-actions .icon-btn,
  #help {
    min-width: 32px;
  }
  .header-actions {
    gap: 2px;
  }
}

/* Keep horizontal mode navigation free of an accidental vertical scrollbar. */
.mode-tabs { overflow-y: hidden; }
/* Contrast corrections verified against the light and dark surfaces. */
.icon-btn, .mode-tabs button, #addMinute, #previewSound { color: var(--muted); }
.tiny { color: #6846aa; }
.dark .tiny { color: #d3c1f5; background: #3a304c; }

.dark .sequence-row button, .dark .import-plus, .dark .footer-credit, .dark .tip-icon, .dark .sparkle { color: #c8bddb; }
.dark .excel-icon { color: #8cdbb2; }
/* Fit task-enabled presentation controls on a classroom laptop screen. */
.presentation .student-task p { padding-block: 0.25em; }
@media (min-width: 801px) {
  .presentation .has-task .timer-center { padding-block: 4px 16px; }
  .presentation .has-task .timer-ring { width: clamp(180px, 36vh, 360px); height: clamp(180px, 36vh, 360px); }
  .presentation .has-task #time { font-size: clamp(64px, 12vh, 128px); }
  .presentation .has-task .session-title { font-size: clamp(24px, 4vh, 38px); margin-bottom: 0; }
  .presentation .has-task .student-next, .presentation .has-task .timer-note { margin-top: 4px; }
}
.presentation .has-task .card-bottom { display: none; }
#subtractMinute { color: var(--muted); }
.dark .footer-brand .footer-credit { color: #c8bddb; }
.dark .task-editor input, .dark .task-editor textarea, .dark .task-editor select { background: #272231; color: #f1edf8; }
