:root {
  --bg: #ba4949;
  --bg-deep: #a84242;
  --panel: rgba(255, 255, 255, 0.105);
  --panel-strong: rgba(255, 255, 255, 0.16);
  --ink: var(--bg);
  --body-ink: #735959;
  --coral: var(--bg);
  --cream: #fffaf6;
  --line: #eee6e2;
  --content-width: 480px;
  --font: "Arial Rounded MT Bold", "Nunito", "Avenir Next Rounded", "Avenir Next", system-ui, sans-serif;
  --body-font: "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: white;
  background: var(--cream);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.focus-zone {
  min-height: 1080px;
  background: var(--bg);
  transition: background-color 900ms ease;
}
.focus-zone:fullscreen { min-height: 100vh; overflow-y: auto; }

.topbar {
  width: min(var(--content-width), calc(100% - 32px));
  height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.brand {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font: 800 20px/1 var(--font);
  letter-spacing: -0.4px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  color: var(--bg);
  background: white;
  font-size: 13px;
  transition: color 420ms ease;
}

.top-actions { display: flex; gap: 9px; }

.product-badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 7px;
  border-radius: 4px;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.15);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: background 150ms ease, transform 150ms ease;
}
.product-badge strong { color: white; font-weight: 800; }
.product-badge img { width: 23px; height: 23px; object-fit: contain; border-radius: 5px; }
.product-badge:hover { background: rgba(255,255,255,.24); transform: translateY(-1px); }

.soft-button {
  border: 0;
  border-radius: 4px;
  padding: 9px 11px;
  color: white;
  background: rgba(255,255,255,.15);
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 150ms ease, transform 150ms ease;
}

.soft-button:hover { background: rgba(255,255,255,.24); }
.soft-button:active { transform: translateY(1px); }
.icon-button { min-width: 34px; justify-content: center; font-size: 21px; padding: 5px 8px; }
.topbar-icon-button { width: 35px; height: 34px; padding: 7px; justify-content: center; }
.topbar-icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.focus-content {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.timer-card {
  position: relative;
  padding: 20px 24px 24px;
  border-radius: 7px;
  text-align: center;
  background: var(--panel);
}
.fullscreen-button {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  width: 32px;
  height: 32px;
  padding: 7px;
  border: 0;
  border-radius: 4px;
  color: rgba(255,255,255,.72);
  background: rgba(0,0,0,.1);
}
.fullscreen-button:hover { color: white; background: rgba(0,0,0,.17); }
.fullscreen-button svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.mode-tabs { display: flex; justify-content: center; gap: 4px; }
.timer-type-menu { position: relative; }

.mode-tab {
  border: 0;
  border-radius: 4px;
  padding: 6px 12px;
  color: white;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
}

.mode-tab.active { background: rgba(0,0,0,.16); font-weight: 800; }
.timer-type-toggle { display: inline-flex; align-items: center; gap: 7px; }
.dropdown-caret { font-size: 11px; transition: transform .15s ease; }
.timer-type-toggle[aria-expanded="true"] .dropdown-caret { transform: rotate(180deg); }
.timer-type-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 8;
  min-width: 145px;
  padding: 6px;
  border-radius: 7px;
  background: white;
  box-shadow: 0 8px 22px rgba(0,0,0,.2);
}
.timer-type-dropdown button {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 4px;
  color: #555;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}
.timer-type-dropdown button:hover { color: var(--bg); background: #f1f1f1; }

.timer {
  margin: 18px 0 21px;
  font: 700 clamp(76px, 14vw, 120px)/.95 var(--font);
  letter-spacing: -5px;
  font-variant-numeric: tabular-nums;
}

.start-button {
  width: 200px;
  min-height: 61px;
  border: 0;
  border-radius: 4px;
  color: var(--bg);
  background: white;
  box-shadow: 0 6px 0 rgba(235, 235, 235, .95);
  font: 800 22px/1 var(--font);
  letter-spacing: .2px;
  transition: color 420ms ease, transform 100ms ease, box-shadow 100ms ease;
}

.timer-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 67px;
}

.stuon-sync-button {
  margin: 11px auto 0;
  padding: 5px 8px;
  border: 0;
  color: rgba(255,255,255,.72);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  transition: color .15s ease, opacity .15s ease;
}
.stuon-sync-button:hover { color: white; }
.stuon-sync-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.48); }
.stuon-sync-button.connected { color: rgba(255,255,255,.9); }
.stuon-sync-button.connected .stuon-sync-dot { background: #a8e58b; box-shadow: 0 0 0 3px rgba(168,229,139,.14); }
.stuon-sync-button.syncing .stuon-sync-dot { animation: sync-pulse .9s ease-in-out infinite alternate; }
@keyframes sync-pulse { to { opacity: .3; transform: scale(.72); } }

.finish-button {
  position: absolute;
  left: calc(50% + 112px);
  border: 0;
  padding: 10px 8px;
  color: rgba(255, 255, 255, .76);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  opacity: .78;
  transition: opacity 150ms ease, transform 150ms ease;
}
.finish-button span { font-size: 21px; vertical-align: -2px; }
.finish-button:hover { opacity: 1; transform: translateX(2px); }
.finish-button[hidden] { display: none; }

.start-button:active, .start-button.running {
  transform: translateY(5px);
  box-shadow: 0 1px 0 rgba(235,235,235,.95);
}

.session-note { margin: 21px 0 23px; text-align: center; }
.session-note span { display: block; color: rgba(255,255,255,.6); font-size: 15px; }
.session-note strong { display: block; margin-top: 3px; font-size: 18px; }

.quick-theme-picker {
  width: fit-content;
  margin: 16px auto 20px;
  padding: 13px 15px;
  border: 2px solid rgba(0,0,0,.18);
  border-radius: 4px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-theme-options { display: flex; justify-content: center; gap: 10px; }
.quick-theme-options button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 5px;
  background: var(--swatch);
  box-shadow: 0 5px 0 rgba(0,0,0,.28);
  transition: transform .1s ease, box-shadow .1s ease, opacity .15s ease;
}
.quick-theme-options button:hover { opacity: .9; }
.quick-theme-options button:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.tasks-section { margin-top: 34px; }

.tasks-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 13px;
  border-bottom: 2px solid rgba(255,255,255,.72);
}

.work-tabs { display: flex; align-items: center; gap: 18px; }
.work-tab { position: relative; padding: 4px 0; border: 0; color: rgba(255,255,255,.58); background: transparent; font: 800 18px/1 var(--font); }
.work-tab.active { color: white; }

.add-task-button {
  width: 100%;
  margin-top: 18px;
  padding: 21px;
  border: 2px dashed rgba(255,255,255,.38);
  border-radius: 8px;
  color: rgba(255,255,255,.78);
  background: rgba(0,0,0,.08);
  font-weight: 800;
  font-size: 16px;
  transition: background 150ms ease, color 150ms ease;
}

.add-task-button:hover { color: white; background: rgba(0,0,0,.13); }
.plus-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 7px; border-radius: 5px; color: var(--bg); background: rgba(255,255,255,.88); vertical-align: -4px; }
.plus-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

.tasks-list { display: grid; gap: 9px; margin-top: 12px; }
.task-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 10px 14px;
  border-left: 6px solid transparent;
  border-radius: 5px;
  color: #555;
  background: white;
  box-shadow: 0 2px 4px rgba(67, 25, 25, .12);
}
.task-item.active { border-left-color: #333; }
.task-check { width: 21px; height: 21px; accent-color: var(--bg); }
.task-name { flex: 1; font-weight: 700; }
.task-item.completed .task-name { text-decoration: line-through; color: #aaa; }
.task-remove { border: 0; color: #aaa; background: transparent; font-size: 20px; }
.sessions-pane { padding-top: 12px; }
.session-history { display: grid; gap: 9px; }
.session-history-empty { margin: 18px 0; color: rgba(255,255,255,.7); text-align: center; font-size: 13px; }
.session-history-item { display: grid; grid-template-columns: 1fr auto; gap: 5px 15px; padding: 13px 15px; border-radius: 5px; color: #555; background: white; }
.session-history-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.session-history-item time { color: #999; font-size: 11px; }
.session-history-item span { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--bg); font: 800 16px/1 var(--font); }
.notes-pane { position: relative; padding-top: 12px; }
.notes-pane textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  padding: 16px 16px 32px;
  border: 0;
  border-radius: 6px;
  outline: 0;
  color: #555;
  background: white;
  font-size: 15px;
  line-height: 1.55;
  box-shadow: none;
}
.notes-pane textarea::placeholder { color: #aaa; }
.notes-pane textarea:focus { outline: 2px solid rgba(255,255,255,.35); outline-offset: 2px; }
.notes-saved { position: absolute; right: 12px; bottom: 10px; color: #aaa; font-size: 10px; font-weight: 700; }

.task-form {
  margin-top: 12px;
  padding: 18px;
  border-radius: 7px;
  color: #555;
  background: white;
  box-shadow: 0 4px 12px rgba(58,18,18,.18);
}
.task-form input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 8px 2px 16px;
  color: #444;
  font-size: 20px;
  font-weight: 700;
}
.task-form input::placeholder { color: #b6b6b6; font-style: italic; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.text-button, .save-button { border: 0; border-radius: 5px; padding: 9px 15px; font-weight: 700; }
.text-button { color: #888; background: transparent; }
.save-button { color: white; background: #333; box-shadow: 0 2px 0 #111; }

.stuon-showcase {
  color: #f7f5ef;
  background: #2b2a28;
}
.stuon-showcase-inner {
  width: min(680px, calc(100% - 40px));
  margin: 0 auto;
  padding: 66px 0 68px;
}
.stuon-showcase-copy {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
.stuon-showcase-logo {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 19px;
  border-radius: 15px;
  object-fit: contain;
  transform: scale(1.85);
}
.stuon-kicker {
  margin: 0 0 13px;
  color: var(--bg);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.stuon-showcase-copy h2 {
  margin: 0;
  color: #fff;
  font: 800 clamp(27px, 5vw, 37px)/1.2 var(--font);
  letter-spacing: -.7px;
}
.stuon-showcase-copy > p:not(.stuon-kicker) {
  max-width: 590px;
  margin: 16px auto 0;
  color: #bbb8b1;
  font-size: 16px;
  line-height: 1.6;
}
.stuon-showcase-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  padding: 11px 17px;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 7px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.stuon-showcase-link:hover { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.14); transform: translateY(-1px); }

.about-section { color: var(--body-ink); background: #fff; }
.about-inner { width: min(600px, calc(100% - 40px)); margin: 0 auto; padding: 75px 0 68px; }
.eyebrow { margin: 0 0 10px; color: var(--coral); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.about-inner > h1 { margin: 0 0 55px; color: var(--ink); font: 800 clamp(31px, 6vw, 40px)/1.24 var(--font); letter-spacing: -.8px; }
.copy-block { margin-top: 42px; }
.copy-block h2, .comfort-card h2 { margin: 0; color: var(--ink); font: 800 25px/1.25 var(--font); }
.copy-block h2::after { content: ""; display: block; width: 25px; height: 4px; margin: 10px 0 22px; border-radius: 9px; background: var(--bg); }
.copy-block p, .copy-block li { font-size: 18px; line-height: 1.62; }
.copy-block ol { padding-left: 25px; }
.copy-block li { margin: 10px 0; padding-left: 5px; }

.comfort-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 55px;
  padding: 24px;
  border: 1px solid #f2dfd8;
  border-radius: 12px;
  background: #fff8f3;
}
.comfort-card h2 { font-size: 20px; }
.comfort-card p { margin: 5px 0 0; }
.comfort-icon { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 50%; background: #f7ded4; font-size: 23px; }

footer { padding: 36px 20px 48px; border-top: 1px solid var(--line); color: var(--body-ink); text-align: center; }
footer a { margin: 0 8px; color: var(--body-ink); text-decoration: none; font-size: 13px; font-weight: 800; }
footer p { margin: 25px 0 0; font-size: 14px; }


.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow-y: auto;
  background: rgba(43,16,16,.74);
  padding: 0 16px;
}
.settings-panel {
  width: min(400px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 20px 45px;
  color: #575757;
  background: #fff;
  box-shadow: 0 0 25px rgba(0,0,0,.18);
}

.report-backdrop { display: grid; place-items: center; padding: 24px 16px; }
.report-panel {
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 25px;
  border-radius: 10px;
  color: #575757;
  background: #fff;
  box-shadow: 0 16px 50px rgba(0,0,0,.24);
}
.report-panel .modal-header { align-items: flex-start; }
.report-panel .modal-header h2 { margin: 4px 0 0; color: var(--ink); font: 800 25px/1.2 var(--font); text-transform: none; letter-spacing: -.3px; }
.report-kicker { margin: 0; color: #aaa; font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.report-period { margin: 22px 0 10px; color: #999; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; }
.report-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.report-stats article { padding: 18px 12px; border-radius: 7px; text-align: center; background: #fff5f2; }
.report-stats strong { display: block; color: var(--bg); font: 800 30px/1 var(--font); }
.report-stats span { display: block; margin-top: 7px; color: #856f6f; font-size: 11px; font-weight: 700; line-height: 1.2; }
.weekly-report { margin-top: 28px; padding-top: 23px; border-top: 1px solid #eee; }
.weekly-heading { display: flex; align-items: baseline; justify-content: space-between; }
.weekly-heading h3 { margin: 0; color: var(--ink); font: 800 17px/1 var(--font); }
.weekly-heading span { color: #999; font-size: 12px; font-weight: 700; }
.report-chart { height: 150px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; align-items: end; margin-top: 18px; }
.chart-day { height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 7px; align-items: end; text-align: center; }
.chart-track { height: 100%; display: flex; align-items: flex-end; justify-content: center; border-radius: 5px; background: #f7f2ef; overflow: hidden; }
.chart-bar { width: 100%; min-height: 3px; border-radius: 5px 5px 0 0; background: #e9807a; transition: height 220ms ease; }
.chart-label { color: #999; font-size: 10px; font-weight: 700; }
.report-note { margin: 22px 0 0; padding: 13px; border-radius: 6px; color: #8d7777; background: #faf7f5; text-align: center; font-size: 13px; }
.leaderboard-report { margin-top: 28px; padding-top: 23px; border-top: 1px solid #eee; }
.leaderboard-join {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 15px;
  padding: 12px 14px;
  border: 1px solid #e8e3df;
  border-radius: 7px;
  color: #5f575b;
  background: white;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.leaderboard-join:hover { border-color: color-mix(in srgb, var(--bg) 35%, #ddd); background: #fdfafa; }
.leaderboard-join-copy { display: flex; align-items: center; gap: 10px; }
.leaderboard-join-copy img { width: 32px; height: 32px; border-radius: 7px; object-fit: contain; }
.leaderboard-join-copy strong { display: block; font: 800 13px/1.2 var(--font); }
.leaderboard-join-copy small { display: block; margin-top: 3px; color: #999; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .45px; }
.leaderboard-user-time { flex-shrink: 0; color: var(--bg); font: 800 16px/1 var(--font); }
.leaderboard-list { display: grid; gap: 7px; margin-top: 15px; }
.leaderboard-list > p { margin: 0; padding: 15px; color: #999; background: #faf7f5; text-align: center; font-size: 12px; }
.leaderboard-entry { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; background: #faf7f5; }
.leaderboard-entry.is-current { outline: 2px solid color-mix(in srgb, var(--bg) 30%, transparent); background: #fff; }
.leaderboard-rank { color: #aaa; font-weight: 800; text-align: center; }
.leaderboard-name { overflow: hidden; color: #665d61; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-time { color: var(--bg); font-size: 12px; font-weight: 800; }
.stuon-login-backdrop { display: grid; place-items: center; padding: 24px 16px; }
.stuon-login-panel {
  width: min(420px, 100%);
  padding: 25px;
  border-radius: 10px;
  color: #575757;
  background: white;
  box-shadow: 0 16px 50px rgba(0,0,0,.24);
}
.stuon-login-panel .modal-header { align-items: flex-start; }
.stuon-login-panel .modal-header h2 { margin: 4px 0 0; color: var(--ink); font: 800 22px/1.2 var(--font); text-transform: none; letter-spacing: -.3px; }
.stuon-login-copy { margin: 20px 0; color: #777; font-size: 14px; line-height: 1.5; }
.stuon-login-panel form { display: grid; gap: 14px; }
.stuon-login-panel label { color: #777; font-size: 12px; font-weight: 800; }
.stuon-login-panel input { width: 100%; margin-top: 6px; padding: 12px; border: 1px solid #ddd; border-radius: 6px; color: #444; background: #fafafa; }
.stuon-login-panel input:focus { outline: 2px solid color-mix(in srgb, var(--bg) 35%, transparent); border-color: var(--bg); }
.stuon-login-submit { width: 100%; padding: 13px; border: 0; border-radius: 6px; color: white; background: var(--bg); font-weight: 800; }
.stuon-login-submit:disabled { cursor: wait; opacity: .58; }
.stuon-login-error { margin: 0; padding: 9px 11px; border-radius: 5px; color: #9d3333; background: #fff0f0; font-size: 12px; }
.stuon-create-account { margin: 17px 0 0; color: #999; text-align: center; font-size: 12px; }
.stuon-create-account a { color: var(--bg); font-weight: 800; }
.modal-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ddd; padding-bottom: 16px; }
.modal-header h2 { margin: 0; color: #aaa; font: 800 16px/1 var(--font); letter-spacing: 1px; text-transform: uppercase; }
.close-button { border: 0; background: transparent; color: #aaa; font-size: 27px; line-height: 1; }
.settings-group { padding: 25px 0; border-bottom: 1px solid #ddd; }
.settings-group h3 { margin: 0 0 23px; color: #aaa; font-size: 14px; letter-spacing: .7px; }
.setting-label { margin: 0 0 11px; font-weight: 700; }
.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.time-grid label { color: #777; font-size: 12px; }
.time-grid input, select { width: 100%; margin-top: 6px; padding: 10px; border: 0; border-radius: 5px; color: #777; background: #eee; }
.setting-row, .volume-row { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-weight: 700; }
.setting-row select { width: 130px; }
.timer-type-row { margin-bottom: 13px; }
.timer-type-row select { width: 150px; }
.inline-number { display: inline-flex; align-items: center; gap: 7px; color: #888; font-size: 13px; }
.inline-number input { width: 82px; padding: 10px; border: 0; border-radius: 5px; color: #777; background: #eee; font-weight: 700; }
.switch { appearance: none; width: 60px; height: 32px; flex: 0 0 60px; border-radius: 18px; background: #ccc; position: relative; transition: background .2s ease; }
.switch::after { content: ""; position: absolute; width: 28px; height: 28px; left: 2px; top: 2px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .2s ease; }
.switch:checked { background: #89cf5b; }
.switch:checked::after { transform: translateX(28px); }
.volume-row input { flex: 0 1 140px; accent-color: #aaa; }
.theme-options { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; max-width: 260px; }
.theme-dot { width: 28px; height: 28px; border: 2px solid transparent; border-radius: 6px; background: var(--dot); }
.theme-dot.active { outline: 2px solid #ddd; outline-offset: 2px; }
.custom-color-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 9px 11px;
  border: 2px solid transparent;
  border-radius: 7px;
  background: #f7f7f7;
}
.custom-color-row.active { border-color: #d8d8d8; background: #f2f2f2; }
.custom-color-row strong { display: block; font-size: 14px; }
.custom-color-row small { display: block; margin-top: 3px; color: #999; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.custom-color-row input[type="color"] { width: 46px; height: 35px; padding: 2px; border: 0; border-radius: 6px; background: white; cursor: pointer; }
.reset-settings {
  width: 100%;
  margin-top: 24px;
  padding: 11px;
  border: 0;
  border-radius: 5px;
  color: #777;
  background: #eee;
  font-weight: 700;
}
.reset-settings:hover { background: #e5e5e5; }
.stuon-account-setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stuon-account-setting strong { display: block; color: #666; font-size: 14px; }
.stuon-account-setting small { display: block; max-width: 230px; margin-top: 4px; color: #999; font-size: 11px; line-height: 1.4; }
.stuon-account-setting button { padding: 8px 11px; border: 1px solid #e2bcbc; border-radius: 5px; color: #a84a4a; background: #fff5f5; font-size: 12px; font-weight: 800; }
.stuon-account-setting button:hover { background: #ffe8e8; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  padding: 12px 18px;
  border-radius: 6px;
  color: white;
  background: #333;
  box-shadow: 0 5px 18px rgba(0,0,0,.2);
  font-weight: 600;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
[hidden] { display: none !important; }

@media (max-width: 560px) {
  .focus-zone { min-height: 940px; }
  .topbar { height: 58px; }
  .brand { font-size: 18px; }
  .button-label { display: none; }
  .soft-button { min-width: 35px; justify-content: center; padding: 9px; }
  .product-badge { padding-left: 7px; }
  .product-badge span { display: none; }
  .focus-content { padding-top: 28px; }
  .timer-card { padding: 17px 12px 22px; }
  .mode-tab { padding: 6px 8px; font-size: 14px; }
  .timer { margin: 22px 0 25px; font-size: clamp(70px, 24vw, 100px); }
  .finish-button { position: static; margin-left: 8px; }
  .report-panel { padding: 20px 16px; }
  .report-stats { gap: 6px; }
  .report-stats article { padding: 15px 6px; }
  .report-stats strong { font-size: 25px; }
  .stuon-showcase-inner { width: min(100% - 32px, 680px); padding: 50px 0 52px; }
  .stuon-showcase-logo { width: 56px; height: 56px; margin-bottom: 17px; }
  .stuon-showcase-copy > p:not(.stuon-kicker) { font-size: 15px; }
  .about-inner { padding-top: 58px; }
  .comfort-card { align-items: flex-start; }
  .quick-theme-options { justify-content: center; }
}

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