/* Shared product primitives and responsive workspace, release 1.0.0. */
@font-face {
  font-family: "Anshang Display";
  src: url("font-smiley.woff2?shell=75aed2d4271e") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Anshang Hand";
  src: url("font-wenkai.woff2?shell=75aed2d4271e") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --font-ui: Inter, "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --muted: #526658;
  font-family:
    Inter,
    "HarmonyOS Sans SC",
    "PingFang SC",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    "Noto Sans SC",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  --radius: 14px;
  --elevation: 0 12px 40px #1836270a;
  --ease: cubic-bezier(0.22, 0.75, 0.25, 1);
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button:hover {
  filter: none;
}
button:not(:disabled):active {
  opacity: 0.85;
}
.primary:hover:not(:disabled) {
  box-shadow: 0 4px 14px #18362718;
}
.secondary:hover:not(:disabled),
.icon-btn:hover {
  background: var(--line);
}
.primary,
.secondary {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  border-radius: 10px;
  min-height: 48px;
  padding: 12px 21px;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.primary.compact {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 13px;
  gap: 7px;
}
.primary.compact svg {
  width: 16px;
  height: 16px;
}
.text-btn {
  font-size: 13px;
  min-height: 44px;
  line-height: 1.6;
}
.small,
small {
  font-size: 12px;
}
.field-hint {
  font-size: 12px;
  line-height: 1.9;
}
.subtitle {
  font-size: 14px;
  line-height: 1.85;
  max-width: 640px;
}
.workspace-eyebrow {
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 550;
  margin-bottom: 8px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
}
input,
select,
textarea {
  border-radius: 9px;
  font-size: 15px;
  min-height: 48px;
  line-height: 1.65;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
input[type="checkbox"] {
  box-shadow: none;
}
.sheet label,
.settings-form label,
.focus-editor > label {
  font-size: 13px;
}
.sheet .field-hint {
  margin-top: 0;
}
.switch-row {
  font-size: 14px !important;
  min-height: 70px;
}
.switch-row small {
  font-size: 12px;
  line-height: 1.7;
}
.section-line h2 {
  font-size: 18px;
  letter-spacing: -0.03em;
}
.section-line > div {
  min-width: 0;
}
.section-line .workspace-eyebrow {
  display: block;
  margin-bottom: 4px;
}
.icon-btn {
  width: 44px;
  height: 44px;
}
.site-filing {
  font-size: 11px;
}
.site-filing-bottom {
  gap: 10px 19px;
}
.site-filing-bottom a:hover {
  text-decoration: underline;
}
.sheet {
  box-shadow: 0 35px 100px #0c221c30;
  border-radius: 20px;
  background: var(--bg);
  padding: 20px 28px 26px;
  scrollbar-width: thin;
}
.sheet > header {
  top: -20px;
  padding: 4px 0 17px;
}
.sheet header h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.sheet-content {
  padding-top: 11px;
}
.sheet footer {
  gap: 10px;
  padding-top: 20px;
  margin-top: 20px;
}
.sheet footer > .text-btn {
  font-size: 13px;
}
.dialog-copy {
  font-size: 14px;
  line-height: 1.9;
}
.help-copy p {
  font-size: 13px;
}
.help-copy h3 {
  font-size: 16px;
}
.modal-backdrop {
  backdrop-filter: blur(6px);
  background: #12281f85;
}
.decision-sheet {
  border-radius: 16px;
}
.decision-sheet p {
  font-size: 14px;
}
.empty-state {
  padding: 44px 20px;
  border: 1px dashed var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface) 45%, transparent);
  margin: 12px 0 6px;
}
.empty-line {
  width: 32px;
  margin-bottom: 17px;
}
.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
}
.empty-state p {
  font-size: 13px;
  line-height: 1.9;
  max-width: 360px;
  margin: 9px auto 0;
}
.empty-state .text-btn {
  margin-top: 13px;
}
#toast {
  font-size: 13px;
  max-width: min(520px, calc(100% - 32px));
  border: 1px solid #ffffff15;
  box-shadow: 0 8px 32px #12281f20;
}
/* Desktop uses the available width; mobile keeps five stable destinations. */
.workspace #app {
  min-height: calc(100dvh - 65px);
}
.workspace main {
  width: min(100%, 1120px);
  padding: 0 36px 80px;
}
.workspace .page-header {
  padding: 36px 0 30px;
  align-items: flex-start;
}
.workspace .page-header .brand {
  display: none;
}
.workspace .page-header h1 {
  font-size: 30px;
  line-height: 1.5;
  letter-spacing: -0.05em;
  font-weight: 700;
}
.workspace .page-header .back {
  display: none;
}
.workspace .page-header .subtitle {
  margin-top: 9px;
}
.workspace-brand,
.nav-section-label,
.nav-footer {
  display: none;
}
.workspace .page-plans,
.workspace .page-history,
.workspace .page-review,
.workspace .page-settings {
  max-width: 1000px;
}
.workspace .page-focus {
  max-width: 960px;
}
.save-notice {
  font-size: 13px;
  padding: 13px 16px;
  border-radius: 9px;
  margin-top: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.workspace .mini-timer {
  left: auto;
  right: 30px;
  width: 340px;
  bottom: 30px;
  box-shadow: 0 8px 28px #12281f2b;
  border-radius: 12px;
}
.workspace .mini-topic {
  font-size: 13px;
}
.workspace .mini-timer b {
  font-size: 19px;
}
.today-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(285px, 340px);
  gap: 30px;
  align-items: start;
}
.today-primary,
.today-secondary {
  min-width: 0;
}
.today-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.today-header-actions .icon-btn {
  margin: 0;
}
.workspace-manifesto {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 25px 24px;
  background: var(--raised);
  border-radius: 14px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.workspace-manifesto:before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
  border-radius: 50%;
  right: -60px;
  top: -65px;
  pointer-events: none;
}
.workspace-manifesto .eyebrow {
  font-size: 10px;
  margin-bottom: 12px;
}
.workspace-manifesto .home-quote {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.5;
  margin: 0;
  letter-spacing: -0.055em;
}
.workspace-manifesto .home-quote span {
  display: block;
  font-weight: 600;
}
.workspace-manifesto .home-quote strong {
  display: block;
  background: linear-gradient(
    105deg,
    var(--accent-ink, var(--accent)),
    var(--quote-cool)
  );
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  font-weight: 750;
}
.workspace-manifesto .home-copy-tools {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  margin: 0;
  flex-shrink: 0;
  z-index: 1;
}
.workspace-manifesto .home-copy-tools .text-btn {
  font-size: 11px;
  min-height: 34px;
}
.workspace-manifesto .home-copy-tools .icon-btn {
  width: 34px;
  height: 34px;
}
.workspace-manifesto .home-copy-tools svg {
  width: 16px;
  height: 16px;
}
.workspace-plans .task-heading {
  margin: 0 0 12px;
  align-items: center;
}
.workspace-plans .task-list {
  margin-bottom: 0;
}
.task-row {
  padding: 18px 0;
  gap: 13px;
}
.task-body h3 {
  font-size: 15px;
  font-weight: 550;
  line-height: 1.7;
}
.task-body p {
  font-size: 11px;
  margin-top: 6px;
  gap: 4px 12px;
}
.task-note {
  font-size: 12px;
  line-height: 1.75;
  margin-top: 5px;
}
.task-play {
  width: 44px;
  height: 44px;
  margin: 0;
  color: var(--accent-ink, var(--accent));
  border: 1px solid var(--line);
  border-radius: 10px;
}
.task-play:hover {
  background: var(--raised);
}
.task-check {
  width: 24px;
  height: 24px;
}
.task-check:before {
  left: -11px;
  top: -11px;
}
.daily-progress {
  padding: 28px 0 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.daily-progress h2 {
  font-size: 18px;
}
.study-total {
  margin: 16px 0 17px;
  align-items: center;
}
.study-total strong {
  font:
    400 46px/1.3 Inter,
    Arial,
    sans-serif;
  letter-spacing: -0.06em;
}
.study-total strong small {
  font-size: 12px;
  letter-spacing: 0;
  margin: 0 13px 0 4px;
}
.study-total > span {
  font:
    500 19px/1.5 Arial,
    sans-serif;
  letter-spacing: -0.025em;
  text-align: right;
  color: var(--accent-ink, var(--accent));
}
.study-total > span small {
  font: 450 10px/1.7 inherit;
  display: block;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.daily-progress > p {
  font-size: 12px;
  margin-top: 13px;
}
.progress-track {
  height: 5px;
  background: var(--line);
}
.subject-title {
  margin: 18px 0 5px;
}
.subject-title h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.subject-title .text-btn {
  font-size: 12px;
}
.subject-overview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px 14px;
  border: 0;
  padding-bottom: 20px;
}
.subject-stat {
  padding: 8px 0;
  text-align: left;
  min-height: 65px;
}
.subject-stat > span {
  font-size: 12px;
  gap: 7px;
}
.subject-stat strong {
  font-size: 23px;
  font-weight: 500;
  margin-top: 6px;
  letter-spacing: -0.045em;
}
.subject-stat small {
  font-size: 10px;
  letter-spacing: 0;
}
.today-topics {
  padding: 5px 0 12px;
}
.today-topics h3 {
  font-size: 13px;
}
.today-topics .distribution-row {
  font-size: 12px;
  padding: 10px 0;
}
.review-card {
  padding: 26px 0 15px;
  margin-top: 10px;
}
.review-card > .small {
  font-size: 13px;
  line-height: 1.95;
  margin: 10px 0 6px;
}
.review-preview {
  font-size: 14px;
  line-height: 1.9;
}
.review-mood {
  font-size: 12px !important;
}
.review-card > .text-btn {
  font-size: 12px;
  margin-top: 9px;
}
.today-secondary .home-clock-panel {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: var(--surface);
  box-shadow: var(--elevation);
  position: relative;
  overflow: hidden;
}
.home-clock-panel .clock-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
}
.clock-mode-label {
  font-size: 10px;
  color: var(--muted);
}
.home-clock-panel .clock-wrap {
  width: 250px;
  max-width: 100%;
  margin: 20px auto 8px;
}
.home-clock-panel .clock-digits {
  font-size: 49px;
  font-weight: 400;
  letter-spacing: -0.065em;
}
.home-clock-panel .clock-inner .eyebrow,
.home-clock-panel .clock-caption {
  font-size: 9px;
}
.home-clock-panel .home-clock-topic {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  overflow-wrap: anywhere;
  max-width: 100%;
  text-align: center;
  margin: 0 0 17px;
}
.home-clock-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 0;
}
.home-clock-actions .primary,
.home-clock-actions .secondary {
  min-height: 45px;
  padding: 10px 18px;
  font-size: 13px;
  gap: 7px;
}
.home-clock-actions svg {
  width: 16px;
  height: 16px;
}
.home-clock-panel .clock-detail-link {
  display: flex;
  font-size: 11px;
  margin: 6px auto 0;
  min-height: 36px;
}
.today-secondary .exam-strip {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 20px 0 0;
  background: transparent;
}
.exam-strip .section-line {
  margin: 0 0 8px;
  min-height: 28px;
}
.exam-strip .section-line .icon-btn {
  width: 32px;
  height: 32px;
}
.exam-strip .section-line svg {
  width: 15px;
  height: 15px;
}
.exam-goal-row {
  display: block;
}
.exam-goal {
  min-width: 0;
}
.goal-type {
  font-size: 10px;
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 0 0 8px;
  color: var(--muted);
}
.exam-strip .exam-school {
  display: block;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.exam-strip .exam-major {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.exam-strip .exam-days {
  align-items: flex-start;
  text-align: left;
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  margin-top: 20px;
  padding: 0;
}
.exam-strip .exam-days > span {
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.2;
}
.exam-strip .exam-days small {
  font-size: 11px;
  margin: 0;
}
.exam-strip .exam-days .goal-create {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.8;
  font-family: inherit;
  letter-spacing: 0;
}
.exam-strip .exam-datetime {
  margin-top: 15px;
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.exam-strip .exam-datetime p {
  font-size: 10px;
  line-height: 1.8;
  margin: 3px 0 0;
  color: var(--muted);
}
.home-photo {
  margin: 20px 0 0;
  padding: 0;
  display: block;
}
.home-photo > button:first-child {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  max-width: 100%;
  margin: auto;
  display: block;
}
.home-photo img {
  height: auto;
  max-width: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}
.photo-controls {
  display: flex;
  justify-content: center;
}
.photo-controls .text-btn {
  font-size: 11px;
}
.home-photo-empty {
  width: 100%;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  border: 1px dashed var(--line);
  border-radius: 12px;
  margin-top: 20px;
  padding: 17px;
}
.home-photo-empty svg {
  width: 21px;
  height: 21px;
}
.home-feedback {
  display: block;
  border-top: 1px solid var(--line);
  padding: 20px 1px 0;
  margin-top: 20px;
}
.home-feedback strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.8;
}
.home-feedback p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  margin: 7px 0 4px;
}
.home-feedback .text-btn {
  font-size: 11px;
}
/* Plans, focus, records, reflection. */
.workspace .segmented {
  max-width: 100%;
  border-radius: 10px;
  background: var(--raised);
  padding: 4px;
  gap: 4px;
  margin: 0 0 24px;
}
.segmented > button,
.radio-segment {
  min-height: 44px;
  font-size: 14px;
  border-radius: 7px;
}
.radio-segment span {
  border-radius: 7px;
}
.page-plans > .segmented {
  width: 390px;
}
.filter-line {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
.filter-line select {
  width: auto;
  max-width: 65%;
  font-size: 13px;
  min-height: 44px;
}
.page-plans .task-list {
  min-height: 200px;
}
.workspace .focus-editor {
  max-width: 540px;
  margin: auto;
  padding: 28px 30px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--elevation);
}
.focus-editor > label:first-child input {
  font-size: 18px;
  padding: 12px 0;
  line-height: 1.7;
}
.focus-editor .text-btn {
  font-size: 12px;
}
.focus-editor > .field-hint {
  font-size: 12px;
  line-height: 1.85;
  margin: 3px 0 24px;
}
.focus-editor > .segmented {
  margin-top: 22px;
}
.duration-number {
  margin: 25px auto 20px;
}
.duration-number input {
  font:
    350 83px/1.2 Inter,
    Arial,
    sans-serif;
  min-height: 105px;
  width: 178px;
  box-shadow: none !important;
  letter-spacing: -0.07em;
}
.quick-times {
  gap: 10px;
}
.quick-times button {
  min-width: 70px;
  min-height: 44px;
  font-size: 12px;
  border-radius: 8px;
}
.focus-options {
  margin: 28px 0 25px;
}
.focus-live {
  max-width: 620px;
  margin: auto;
  padding: 20px 0 30px;
}
.focus-topic .eyebrow {
  font-size: 12px;
}
.focus-topic h2 {
  font-size: 26px;
  line-height: 1.65;
  max-width: 540px;
  font-weight: 650;
}
.focus-live .clock-wrap {
  width: min(100%, 340px);
  margin: 30px auto 15px;
}
.focus-live .clock-digits {
  font-size: 66px;
  font-weight: 350;
}
.focus-controls {
  gap: 12px;
}
.immersion-entry {
  min-height: 52px;
  border-radius: 10px;
  font-size: 14px;
  margin-top: 21px;
}
.focus-live .centered {
  max-width: 500px;
  margin: 18px auto 0;
  font-size: 12px;
  line-height: 1.95;
}
.end-at {
  font-size: 13px;
}
.dashboard-kpis {
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px 25px;
  box-shadow: var(--elevation);
}
.kpi-card span {
  font-size: 12px;
}
.kpi-card strong {
  font:
    400 43px/1.4 Inter,
    Arial,
    sans-serif;
  margin-top: 8px;
}
.kpi-card strong small {
  font-size: 12px;
}
.dashboard-card {
  padding: 27px 0;
  margin: 28px 0;
}
.dashboard-card > .segmented {
  max-width: 470px;
}
.dashboard-filters select {
  font-size: 13px;
  min-height: 44px;
}
.dashboard-filters .text-btn {
  font-size: 12px;
}
.distribution-layout {
  gap: 35px;
  padding: 10px 0 20px;
}
.donut-chart {
  width: 235px;
}
.donut-hole small {
  font-size: 11px;
}
.donut-hole strong {
  font-size: 34px;
}
.legend-copy strong {
  font-size: 13px;
}
.legend-copy small {
  font-size: 11px;
}
.legend-meta {
  font-size: 12px;
}
.legend-row {
  padding: 6px 0;
}
.distribution-row {
  font-size: 13px;
  padding: 14px 0;
}
.distribution-row > strong {
  font-size: 14px;
}
.session-row {
  min-height: 77px;
  padding: 16px 0;
  gap: 14px;
}
.session-row strong {
  font-size: 14px;
  line-height: 1.8;
}
.session-row small {
  font-size: 11px;
  line-height: 1.8;
}
.session-row > b {
  font-size: 14px;
}
.range-label span {
  font-size: 13px;
}
.range-controls > label:not(.range-label) input {
  font-size: 13px;
}
.range-controls > .secondary {
  font-size: 13px;
}
.week-chart .bar-col > span,
.week-chart .bar-col > small {
  font-size: 11px;
}
.chart-caption {
  font-size: 11px;
}
.review-datebar {
  padding: 19px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0 0 20px;
}
.review-datebar strong {
  font-size: 24px;
}
.review-kpis {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.review-kpis span {
  font-size: 12px;
}
.review-kpis strong {
  font-size: 25px;
}
.review-action-card {
  padding: 25px;
  background: var(--raised);
  border-radius: 13px;
  margin: 25px 0;
}
.review-action-card h2 {
  font-size: 22px;
}
.review-action-card p {
  font-size: 13px;
  line-height: 1.85;
}
.review-action-card .primary {
  font-size: 13px;
}
.review-emotion-note {
  padding: 23px 25px;
  border-radius: 12px;
  margin-top: 20px;
}
.review-emotion-note strong {
  font-size: 19px;
  line-height: 1.7;
}
.review-emotion-note p {
  font-size: 13px;
  line-height: 1.95;
}
.review-section {
  padding: 27px 0;
}
.review-block p {
  font-size: 14px;
  line-height: 2;
}
.review-stat-row,
.review-done-list {
  font-size: 14px;
}
.review-block-grid {
  gap: 16px;
}
.review-block-grid .eyebrow {
  font-size: 11px;
}
.review-history-row {
  padding: 16px 0;
  min-height: 78px;
}
.review-history-row strong {
  font-size: 14px;
}
.review-history-row small {
  font-size: 12px;
  max-width: 100%;
}
.review-history-row > span {
  max-width: calc(100% - 25px);
}
.review-tags span {
  font-size: 12px;
}
.mood-pill,
.energy-label {
  font-size: 12px;
}
/* Settings and account use the same form hierarchy as the workspace. */
.settings-index {
  display: flex;
  gap: 5px;
  margin: 0 0 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.settings-index a,
.settings-index button {
  min-width: 65px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
  border-radius: 8px;
}
.settings-index a:hover,
.settings-index button:hover {
  background: var(--raised);
  color: var(--text);
}
.settings-form {
  max-width: 680px !important;
  margin: 0 !important;
}
.settings-form > section {
  margin-top: 35px;
  padding-top: 27px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 25px;
}
.settings-form > section h2 {
  font-size: 19px;
  margin-bottom: 24px;
}
.settings-form > section > label {
  font-size: 13px;
  margin-bottom: 23px;
}
.settings-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 25px;
}
.settings-section-heading > span {
  font:
    500 11px/1.8 Arial,
    sans-serif;
  color: var(--accent-ink, var(--accent));
  display: grid;
  place-items: center;
  background: var(--raised);
  min-width: 28px;
  height: 28px;
  border-radius: 7px;
}
.settings-section-heading h2 {
  margin: 0 0 5px !important;
}
.settings-section-heading p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.settings-form .form-pair {
  gap: 20px;
}
.setting-link {
  font-size: 14px;
  min-height: 65px;
  padding: 13px 0;
  gap: 15px;
}
.setting-link > span:last-child {
  font-size: 12px;
}
.setting-link svg {
  width: 17px;
  height: 17px;
}
.settings-save {
  position: sticky;
  bottom: 15px;
  z-index: 5;
  padding: 14px 17px;
  margin: 25px 0 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 7px 28px #15332515;
}
.settings-save > span {
  font-size: 12px;
  color: var(--muted);
}
.settings-save .primary {
  font-size: 13px;
  min-height: 44px;
}
.backup-section {
  max-width: 680px;
  margin-top: 32px;
}
.backup-section .field-hint {
  font-size: 12px;
}
.advanced-entry {
  max-width: 680px;
}
.about {
  max-width: 680px;
  padding-top: 32px;
}
.about strong {
  font-size: 16px;
}
.about > span,
.about .text-btn {
  font-size: 12px;
}
.account-section {
  max-width: 680px;
  margin: 0 0 30px;
  padding: 22px 25px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  scroll-margin-top: 25px;
}
.account-heading {
  gap: 15px;
}
.account-heading h2 {
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.account-heading p,
.sync-summary {
  font-size: 12px;
  line-height: 1.9;
}
.account-heading .text-btn {
  font-size: 12px;
}
.account-monogram {
  width: 43px;
  height: 43px;
  font-size: 22px;
  border-radius: 12px;
}
.account-legal {
  gap: 16px;
  flex-wrap: wrap;
  line-height: 1.8;
}
.account-legal a,
.account-legal button {
  font-size: 11px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}
.account-row {
  min-height: 72px;
  gap: 15px;
}
.account-row strong {
  font-size: 14px;
}
.account-row small {
  font-size: 12px;
  line-height: 1.85;
  max-width: 100%;
}
.account-group-title {
  font-size: 12px;
  letter-spacing: 0.05em;
  margin-top: 27px;
  color: var(--muted);
}
.account-profile strong {
  font-size: 17px;
}
.account-profile p {
  font-size: 12px;
}
.device-row strong {
  font-size: 14px;
}
.device-row small {
  font-size: 12px;
}
.feedback-welcome {
  border-radius: 12px;
  padding: 20px;
}
.feedback-welcome p {
  font-size: 13px;
  line-height: 1.95;
}
.feedback-ticket strong {
  font-size: 15px;
}
.feedback-ticket p,
.feedback-empty {
  font-size: 13px;
  line-height: 1.9;
}
.feedback-actions {
  gap: 10px;
}
.feedback-actions button {
  font-size: 13px;
}
.feedback-message p {
  font-size: 14px;
  line-height: 1.9;
}
.feedback-meta,
.feedback-status,
.feedback-message small {
  font-size: 11px;
}
.auth-form > label {
  font-size: 13px;
}
.auth-error {
  font-size: 13px;
  line-height: 1.8;
}
.auth-form .field-hint {
  font-size: 12px;
}
.mail-help summary,
.mail-help p {
  font-size: 12px;
}
.consent-line {
  font-size: 12px !important;
  line-height: 1.85;
}
.auth-footer .text-btn {
  font-size: 12px;
}
.password-toggle {
  min-width: 44px;
  min-height: 44px;
}
.auth-single {
  width: min(100%, 560px);
  min-height: calc(100dvh - 90px);
  padding: 40px 24px 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
}
.auth-single .auth-panel {
  width: 100%;
  padding: 30px 34px 34px;
  max-width: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--elevation);
}
.auth-single-brand {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.auth-single-brand h1 {
  font-size: 25px;
  letter-spacing: 0.12em;
  font-weight: 750;
}
.auth-single-brand small {
  font-size: 10px;
  letter-spacing: 0.09em;
}
.auth-single .auth-home-back {
  font-size: 12px;
  margin: 0 0 15px;
}
.auth-intro {
  margin-bottom: 24px;
}
.auth-intro h2 {
  font-size: 28px;
  letter-spacing: -0.045em;
  margin-bottom: 10px;
}
.auth-intro p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.auth-single .auth-tabs {
  margin-bottom: 25px;
}
.auth-single .auth-form > label {
  margin-bottom: 19px;
}
.auth-single .code-input .secondary {
  font-size: 12px;
  padding: 10px 13px;
}
.auth-single .environment-note {
  font-size: 12px;
}
.auth-single .consent-line {
  margin: 20px 0;
}
@media (min-width: 1050px) {
  .workspace {
    padding-left: 218px;
  }
  .workspace .bottom-nav {
    inset: 0 auto 0 0;
    width: 218px;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    border: 0;
    border-right: 1px solid var(--line);
    background: var(--surface);
    padding: 35px 19px 22px;
    box-shadow: none;
    gap: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .workspace-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 7px 34px;
    text-align: left;
    flex-shrink: 0;
  }
  .workspace-brand > span {
    display: grid;
    place-items: center;
    width: 37px;
    height: 43px;
    background: var(--accent);
    color: var(--on-accent);
    border-radius: 13px 13px 4px 4px;
    font-size: 25px;
    font-weight: 700;
  }
  .workspace-brand strong {
    font-size: 24px;
    letter-spacing: 0.12em;
    line-height: 1.2;
  }
  .workspace-brand small {
    font-size: 8px;
    letter-spacing: 0.03em;
    display: block;
    color: var(--muted);
    font-weight: 450;
    margin-top: 7px;
    white-space: nowrap;
  }
  .nav-section-label {
    display: block;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.09em;
    padding: 0 14px 12px;
  }
  .workspace .nav-item {
    position: relative;
    width: 100%;
    min-height: 49px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 16px;
    gap: 14px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .workspace .nav-item svg {
    width: 19px;
    height: 19px;
  }
  .workspace .nav-item:hover {
    background: var(--raised);
  }
  .workspace .nav-item.selected {
    color: var(--accent-ink, var(--accent));
    background: var(--raised);
    font-weight: 650;
  }
  .workspace .nav-item.selected:before {
    display: none;
  }
  .nav-footer {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding-top: 60px;
    gap: 4px;
  }
  .nav-version {
    font: 400 10px/1.8 inherit;
    color: var(--muted);
    padding: 22px 16px 0;
  }
  .workspace .site-filing {
    padding-left: 0;
    padding-bottom: 22px;
  }
  .workspace .site-filing-bottom {
    justify-content: safe center;
  }
  .workspace .settings-save {
    bottom: 20px;
  }
  .workspace #toast {
    bottom: 35px;
  }
  .workspace .page-focus .focus-editor {
    margin: 10px auto 0;
  }
  .workspace .page-focus .page-header {
    margin-bottom: 4px;
  }
}
@media (min-width: 1600px) {
  .workspace main {
    max-width: 1240px;
    padding-left: 55px;
    padding-right: 55px;
  }
  .workspace .page-plans,
  .workspace .page-history,
  .workspace .page-review,
  .workspace .page-settings {
    max-width: 1110px;
  }
  .today-layout {
    gap: 45px;
    grid-template-columns: minmax(0, 1fr) 360px;
  }
  .workspace .page-header {
    padding-top: 45px;
  }
  .workspace-manifesto .home-quote {
    font-size: 33px;
  }
}
@media (max-width: 1049px) {
  .workspace main {
    padding: 0 30px 130px;
  }
  .workspace .page-header {
    padding-top: 28px;
  }
  .workspace .bottom-nav {
    height: calc(75px + env(safe-area-inset-bottom));
    padding: 7px max(10px, calc((100vw - 700px) / 2))
      calc(7px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 22px color-mix(in srgb, var(--bg) 80%, transparent);
    background: var(--surface);
  }
  .workspace .nav-item {
    font-size: 11px;
    gap: 5px;
    min-height: 53px;
  }
  .workspace .nav-item.selected {
    background: var(--raised);
  }
  .workspace .nav-item.selected:before {
    display: none;
  }
  .workspace .mini-timer {
    bottom: calc(87px + env(safe-area-inset-bottom));
    right: 24px;
    width: 330px;
  }
  .workspace .site-filing {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }
  .workspace .settings-save {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
  .today-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
    gap: 24px;
  }
  .workspace-manifesto {
    padding: 20px;
  }
  .workspace-manifesto .home-quote {
    font-size: 25px;
  }
  .home-clock-panel .clock-wrap {
    width: 230px;
  }
  .home-clock-panel .clock-digits {
    font-size: 46px;
  }
  .subject-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 15px;
  }
  .workspace .page-header h1 {
    font-size: 28px;
  }
}
@media (max-width: 720px) {
  .workspace main {
    padding: 0 22px 120px;
  }
  .workspace .page-header {
    padding: 26px 0 23px;
    gap: 14px;
  }
  .workspace .page-header h1 {
    font-size: 27px;
    line-height: 1.5;
  }
  .workspace .page-header .subtitle {
    font-size: 13px;
    line-height: 1.85;
    margin-top: 8px;
  }
  .workspace-eyebrow {
    font-size: 10px;
  }
  .today-header-actions {
    gap: 1px;
  }
  .appearance-entry {
    font-size: 0;
    gap: 0;
    width: 38px;
  }
  .appearance-entry svg {
    width: 19px;
    height: 19px;
  }
  .workspace .page-header .icon-btn {
    margin-right: -5px;
  }
  .today-layout {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .today-primary,
  .today-secondary {
    width: 100%;
  }
  .workspace-manifesto {
    padding: 20px 22px;
    margin-bottom: 24px;
  }
  .workspace-manifesto .home-quote {
    font-size: 27px;
  }
  .workspace-manifesto .home-copy-tools {
    margin-right: -4px;
  }
  .workspace-plans .section-line {
    margin-bottom: 10px;
  }
  .section-line h2 {
    font-size: 18px;
  }
  .task-row {
    gap: 12px;
    padding: 17px 0;
  }
  .task-body h3 {
    font-size: 14px;
  }
  .task-body p {
    font-size: 10px;
  }
  .task-note {
    font-size: 11px;
  }
  .task-play {
    width: 40px;
    height: 44px;
    border: 0;
    background: var(--raised);
    border-radius: 10px;
  }
  .daily-progress {
    margin-top: 24px;
    padding-top: 25px;
  }
  .study-total strong {
    font-size: 43px;
  }
  .subject-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .subject-stat > span {
    font-size: 11px;
  }
  .subject-stat strong {
    font-size: 23px;
  }
  .subject-stat small {
    font-size: 9px;
  }
  .today-secondary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .today-secondary .home-clock-panel {
    padding: 20px 24px;
  }
  .home-clock-panel .clock-wrap {
    width: 270px;
    margin-top: 15px;
  }
  .home-clock-panel .clock-digits {
    font-size: 55px;
  }
  .home-clock-panel .clock-inner .eyebrow,
  .home-clock-panel .clock-caption {
    font-size: 10px;
  }
  .home-clock-panel .home-clock-topic {
    font-size: 16px;
  }
  .home-clock-actions .primary,
  .home-clock-actions .secondary {
    font-size: 14px;
    min-height: 48px;
  }
  .home-clock-panel .clock-detail-link {
    font-size: 12px;
  }
  .today-secondary .exam-strip {
    margin: 0;
    padding: 20px 23px;
  }
  .exam-strip .exam-school {
    font-size: 22px;
  }
  .exam-strip .exam-major {
    font-size: 13px;
  }
  .exam-strip .exam-days > span {
    font-size: 45px;
  }
  .home-photo {
    margin: 0;
  }
  .home-photo-empty {
    margin: 0;
    min-height: 94px;
    font-size: 12px;
  }
  .home-feedback {
    margin-top: 0;
    padding-top: 22px;
  }
  .home-feedback strong {
    font-size: 13px;
  }
  .home-feedback p,
  .home-feedback .text-btn {
    font-size: 12px;
  }
  .workspace .mini-timer {
    left: 16px;
    right: 16px;
    width: auto;
    bottom: calc(85px + env(safe-area-inset-bottom));
    border-radius: 11px;
    padding: 12px 15px;
  }
  .review-card {
    padding-top: 24px;
  }
  .review-card > .small {
    font-size: 12px;
  }
  .workspace .focus-editor {
    padding: 23px 20px 10px;
  }
  .focus-editor > label:first-child input {
    font-size: 17px;
  }
  .focus-editor > .field-hint {
    font-size: 11px;
    line-height: 1.95;
  }
  .focus-editor .text-btn {
    font-size: 11px;
  }
  .duration-number input {
    font-size: 76px;
    width: 157px;
  }
  .quick-times {
    gap: 8px;
  }
  .quick-times button {
    min-width: 54px;
    flex: 1;
    font-size: 11px;
  }
  .switch-row {
    font-size: 13px !important;
  }
  .switch-row small {
    font-size: 11px;
  }
  .focus-live {
    padding-top: 12px;
  }
  .focus-topic h2 {
    font-size: 23px;
  }
  .focus-live .clock-wrap {
    width: 300px;
  }
  .focus-live .clock-digits {
    font-size: 59px;
  }
  .focus-live .centered {
    font-size: 11px;
  }
  .focus-controls .primary,
  .focus-controls .secondary {
    font-size: 13px;
    padding: 12px 17px;
  }
  .dashboard-kpis {
    gap: 12px;
  }
  .kpi-card {
    padding: 20px 18px;
  }
  .kpi-card strong {
    font-size: 35px;
  }
  .kpi-card span {
    font-size: 11px;
  }
  .dashboard-card {
    padding: 23px 0;
    margin: 24px 0;
  }
  .dashboard-card > .segmented {
    margin-bottom: 14px;
  }
  .dashboard-filters select {
    font-size: 12px;
    max-width: 60%;
  }
  .dashboard-filters .text-btn {
    font-size: 11px;
  }
  .legend-copy strong {
    font-size: 12px;
  }
  .legend-copy small {
    font-size: 10px;
  }
  .legend-meta {
    font-size: 11px;
  }
  .chart-legend {
    gap: 5px 12px;
  }
  .distribution-layout {
    gap: 20px;
  }
  .range-label span {
    font-size: 12px;
  }
  .range-controls > label:not(.range-label) input {
    font-size: 11px;
    padding: 8px 5px;
  }
  .session-row {
    gap: 10px;
  }
  .session-row strong {
    font-size: 13px;
  }
  .session-row small {
    font-size: 10px;
  }
  .session-row > b {
    font-size: 12px;
  }
  .review-datebar {
    padding: 15px 17px;
  }
  .review-kpis strong {
    font-size: 22px;
  }
  .review-kpis span {
    font-size: 11px;
  }
  .review-action-card {
    padding: 22px;
    gap: 18px;
  }
  .review-action-card h2 {
    font-size: 21px;
  }
  .review-action-card p {
    font-size: 12px;
  }
  .review-emotion-note {
    padding: 21px;
  }
  .review-emotion-note strong {
    font-size: 18px;
  }
  .review-emotion-note p {
    font-size: 12px;
  }
  .review-section {
    padding: 24px 0;
  }
  .review-block p {
    font-size: 13px;
  }
  .review-history-row strong {
    font-size: 13px;
  }
  .review-history-row small {
    font-size: 11px;
  }
  .settings-index {
    gap: 0;
    margin-bottom: 20px;
  }
  .settings-index a,
  .settings-index button {
    font-size: 12px;
    min-width: 60px;
    flex: 1;
    padding: 8px 9px;
  }
  .account-section {
    padding: 20px;
    margin: 0 0 25px;
  }
  .account-heading {
    gap: 10px;
    flex-wrap: wrap;
  }
  .account-heading h2 {
    font-size: 15px;
  }
  .account-heading > div {
    min-width: 0;
    flex: 1;
  }
  .account-heading .text-btn {
    font-size: 11px;
  }
  .account-monogram {
    width: 35px;
    height: 38px;
    font-size: 21px;
    border-radius: 10px;
  }
  .account-heading p,
  .sync-summary {
    font-size: 11px;
  }
  .account-legal {
    gap: 10px;
  }
  .account-legal a,
  .account-legal button {
    font-size: 10px;
  }
  .settings-form > section {
    margin-top: 29px;
    padding-top: 24px;
  }
  .settings-form > section h2 {
    font-size: 18px;
  }
  .settings-section-heading p {
    font-size: 11px;
  }
  .settings-form label,
  .sheet label {
    font-size: 13px;
  }
  .field-hint {
    font-size: 11px;
  }
  .settings-form .form-pair {
    gap: 12px;
  }
  .setting-link {
    font-size: 13px;
    min-height: 61px;
  }
  .setting-link > span:last-child {
    font-size: 11px;
  }
  .settings-save {
    margin-top: 24px;
    padding: 12px 14px;
  }
  .settings-save > span {
    font-size: 11px;
  }
  .sheet {
    padding: 18px 22px calc(22px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    max-height: 94dvh;
    margin: 0;
  }
  .sheet > header {
    top: -18px;
  }
  .sheet header h2 {
    font-size: 20px;
  }
  .sheet-content {
    padding-top: 7px;
  }
  .sheet footer {
    gap: 9px;
  }
  .sheet footer .primary,
  .sheet footer .secondary {
    font-size: 13px;
    padding: 11px 17px;
  }
  .sheet footer > .text-btn {
    font-size: 12px;
  }
  .modal-backdrop {
    padding-top: max(20px, env(safe-area-inset-top));
    align-items: flex-end;
  }
  .auth-single {
    padding: 24px 20px 35px;
    min-height: calc(100dvh - 100px);
    align-items: flex-start;
  }
  .auth-single .auth-panel {
    padding: 25px 23px 28px;
    border-radius: 15px;
  }
  .auth-single-brand {
    padding-bottom: 17px;
  }
  .auth-single-brand h1 {
    font-size: 24px;
  }
  .auth-intro h2 {
    font-size: 26px;
  }
  .auth-intro p {
    font-size: 12px;
  }
  .auth-single .auth-home-back {
    font-size: 12px;
  }
  .auth-single .auth-form > label {
    font-size: 13px;
  }
  .auth-single .code-input .secondary {
    padding: 10px 12px;
    font-size: 11px;
  }
  .consent-line {
    font-size: 11px !important;
  }
  .public-home ~ .site-filing {
    padding-top: 0;
  }
}
@media (max-width: 360px) {
  .workspace main {
    padding-left: 17px;
    padding-right: 17px;
  }
  .workspace .page-header h1 {
    font-size: 24px;
  }
  .workspace-manifesto {
    padding: 18px;
  }
  .workspace-manifesto .home-quote {
    font-size: 24px;
  }
  .primary.compact {
    font-size: 12px;
    padding: 10px 12px;
  }
  .subject-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-clock-panel .clock-wrap {
    width: 240px;
  }
  .home-clock-panel .clock-digits {
    font-size: 48px;
  }
  .home-clock-panel .clock-caption {
    font-size: 9px;
  }
  .workspace .nav-item {
    min-width: 53px;
    font-size: 10px;
  }
  .workspace .nav-item svg {
    width: 20px;
    height: 20px;
  }
  .workspace .focus-editor {
    padding: 20px 16px 8px;
  }
  .focus-editor > label:first-child input {
    font-size: 16px;
  }
  .quick-times {
    gap: 5px;
  }
  .quick-times button {
    font-size: 10px;
    min-width: 48px;
  }
  .settings-index a,
  .settings-index button {
    min-width: 52px;
    padding: 8px 4px;
  }
  .account-heading > div {
    min-width: 155px;
  }
  .account-heading .text-btn {
    margin-left: 45px;
    min-height: 32px;
  }
  .review-kpis strong {
    font-size: 19px;
  }
  .review-kpis span {
    font-size: 10px;
  }
  .kpi-card {
    padding: 16px 14px;
  }
  .kpi-card strong {
    font-size: 30px;
  }
  .kpi-card strong small {
    font-size: 10px;
  }
  .range-controls {
    gap: 3px;
  }
  .session-row > b {
    font-size: 11px;
  }
  .auth-single {
    padding: 18px 16px 28px;
  }
  .auth-single .auth-panel {
    padding: 22px 20px;
  }
  .auth-single .code-input .secondary {
    font-size: 10px;
    padding: 10px;
  }
  .auth-single-brand small {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* The mobile workbench brings the current timer above the plan without a full hero. */
@media (max-width: 720px) {
  .today-primary,
  .today-secondary {
    display: contents;
  }
  .today-layout {
    gap: 22px;
  }
  .workspace-manifesto {
    order: 0;
    margin: 0;
  }
  .today-layout .home-clock-panel {
    order: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 155px;
    column-gap: 10px;
    padding: 17px 19px;
  }
  .today-layout .clock-heading {
    grid-column: 1/-1;
    margin-bottom: 8px;
  }
  .today-layout .home-clock-panel .clock-wrap {
    grid-column: 2;
    grid-row: 2/5;
    width: 155px;
    margin: 0;
    align-self: center;
  }
  .today-layout .home-clock-panel .clock-digits {
    font-size: 32px;
  }
  .today-layout .home-clock-panel .clock-inner .eyebrow {
    font-size: 7px;
  }
  .today-layout .home-clock-panel .clock-caption {
    font-size: 7px;
  }
  .today-layout .home-clock-panel .focus-wave {
    display: none;
  }
  .today-layout .home-clock-topic {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    font-size: 14px;
    margin: 6px 0 12px;
    align-self: end;
  }
  .today-layout .home-clock-actions {
    grid-column: 1;
    grid-row: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }
  .today-layout .home-clock-actions .primary,
  .today-layout .home-clock-actions .secondary {
    min-height: 42px;
    font-size: 12px;
    padding: 9px 10px;
    gap: 6px;
  }
  .today-layout .clock-detail-link {
    grid-column: 1;
    grid-row: 4;
    justify-content: flex-start;
    margin: 4px 0 0;
    font-size: 10px;
    min-height: 33px;
  }
  .today-layout .clock-detail-link svg {
    width: 13px;
    height: 13px;
  }
  .workspace-plans {
    order: 2;
    width: 100%;
  }
  .today-layout .exam-strip {
    order: 3;
    width: 100%;
    margin: 0;
  }
  .today-layout .daily-progress {
    order: 4;
    width: 100%;
    margin-top: 0;
  }
  .today-layout .review-card {
    order: 5;
    width: 100%;
    margin: 0;
  }
  .today-layout .home-photo,
  .today-layout .home-photo-empty {
    order: 6;
    width: 100%;
  }
  .today-layout .home-feedback {
    order: 7;
    width: 100%;
  }
  .today-layout .home-clock-panel .clock-wrap.has-hours .clock-digits {
    font-size: 25px;
  }
}
@media (max-width: 360px) {
  .today-layout .home-clock-panel {
    grid-template-columns: minmax(0, 1fr) 126px;
    padding: 16px;
  }
  .today-layout .home-clock-panel .clock-wrap {
    width: 126px;
  }
  .today-layout .home-clock-panel .clock-digits {
    font-size: 27px;
  }
  .today-layout .home-clock-panel .clock-caption {
    font-size: 6px;
  }
  .today-layout .home-clock-panel .clock-inner .eyebrow {
    font-size: 6px;
  }
  .today-layout .home-clock-topic {
    font-size: 12px;
  }
  .today-layout .home-clock-actions .primary {
    font-size: 11px;
  }
  .today-layout .clock-detail-link {
    font-size: 9px;
  }
}
.getting-started {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 25px;
  margin: 0 0 25px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.getting-started h2 {
  font-size: 17px;
  line-height: 1.75;
  margin: 5px 0;
}
.getting-started p {
  font-size: 12px;
  color: var(--muted);
}
.getting-started > div:last-child {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.getting-started .secondary {
  font-size: 12px;
  min-height: 42px;
  padding: 10px 15px;
}
.getting-started .text-btn {
  font-size: 11px;
  white-space: nowrap;
}
.getting-started .primary {
  white-space: nowrap;
}
@media (max-width: 720px) {
  .getting-started {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }
  .getting-started h2 {
    font-size: 15px;
  }
  .getting-started p {
    font-size: 11px;
  }
}
.page-header > div:first-child {
  min-width: 0;
}
.page-header h1,
.settings-section-heading h2 {
  overflow-wrap: anywhere;
}
.workspace main:focus {
  outline: none;
}
.workspace-manifesto {
  width: 100%;
}
.review-action-card {
  color: var(--text);
}
.review-action-card .eyebrow {
  color: var(--muted);
  opacity: 1;
}
.review-action-card p {
  color: var(--muted);
  opacity: 1;
}
.review-action-card .primary {
  background: var(--accent);
  color: var(--on-accent);
}

/* Keep the account summary aligned with the settings form. */
.page-settings > .account-section {
  max-width: 680px;
  margin-left: 0;
  margin-right: 0;
}

/* A separate drag grip leaves long encouragement text scrollable on touch screens. */
.quote-card > .quote-move-handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  cursor: move;
  touch-action: none;
  user-select: none;
}
.quote-move-handle > span {
  font-size: 20px;
  line-height: 1;
}
.quote-card > p {
  touch-action: pan-y;
  user-select: text;
  overscroll-behavior: contain;
}

/* Immersion customization: the quote is a movable, readable layer rather than a fixed footer. */
.quote-card {
  touch-action: none;
  cursor: grab;
  max-width: calc(100vw - 24px);
}
.quote-card.is-dragging {
  cursor: grabbing;
  user-select: none;
  opacity: .96;
  transition: opacity .12s ease;
}
.quote-card > p {
  font-family: var(--quote-family, var(--font-ui));
  font-size: var(--quote-size, 30px);
  font-weight: var(--quote-weight, 650);
  letter-spacing: var(--quote-spacing, 0px);
  line-height: 1.55;
  max-width: 100%;
}
.quote-card > div {
  touch-action: manipulation;
}
.quote-style-pair output {
  float: right;
  color: var(--accent-ink, var(--accent));
  font-variant-numeric: tabular-nums;
}
.quote-style-pair input[type="range"] {
  accent-color: var(--accent);
  padding: 0;
  min-height: 28px;
  border: 0;
  background: transparent;
}

/* The ring and marker move gently while a session is active. The countdown remains legible. */
.clock-wrap.is-running .clock-progress {
  animation: clock-progress-breathe 3.2s ease-in-out infinite;
  transform-origin: center;
}
.clock-wrap.is-running .clock-marker {
  animation: clock-marker-breathe 1.8s ease-in-out infinite;
}
.clock-marker,
.clock-second-marker {
  transform-box: fill-box;
  transform-origin: center;
}
.clock-wrap.is-running .clock-face .minor {
  animation: tick-mark-breathe 2.8s ease-in-out infinite;
}
.clock-wrap.urgent .clock-marker {
  animation: urgent-marker 1s ease-in-out infinite;
}
.immersion.focus-lock-active .clock-wrap.is-running::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid color-mix(in srgb, var(--clock-mid) 35%, transparent);
  border-radius: 50%;
  pointer-events: none;
  animation: focus-lock-pulse 4s ease-out infinite;
}
@keyframes clock-progress-breathe {
  0%, 100% { filter: drop-shadow(0 2px 4px #42675420); opacity: .92; }
  50% { filter: drop-shadow(0 3px 8px #78b8b055); opacity: 1; }
}
@keyframes clock-marker-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
@keyframes tick-mark-breathe {
  0%, 100% { opacity: .24; }
  50% { opacity: .46; }
}
@keyframes urgent-marker {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.34); }
}
@keyframes focus-lock-pulse {
  0% { transform: scale(.94); opacity: 0; }
  22% { opacity: .22; }
  82%, 100% { transform: scale(1.08); opacity: 0; }
}
.motion-paused .clock-wrap.is-running .clock-progress,
.motion-paused .clock-wrap.is-running .clock-marker,
.motion-paused .clock-wrap.is-running .clock-face .minor,
.motion-paused .clock-wrap.urgent .clock-marker,
.motion-paused .immersion.focus-lock-active .clock-wrap::after {
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .clock-wrap.is-running .clock-progress,
  .clock-wrap.is-running .clock-marker,
  .clock-wrap.is-running .clock-face .minor,
  .clock-wrap.urgent .clock-marker,
  .immersion.focus-lock-active .clock-wrap::after {
    animation: none !important;
  }
}

/* Keep movable images accessible while reserving the top interaction layer
   for timer controls and the exit button. */
.immersion-header {
  position: relative;
  z-index: 6;
}
.immersion-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.immersion-header-actions .text-btn {
  min-height: 38px;
  padding-inline: 10px;
  border: 1px solid #ffffff1f;
  border-radius: 999px;
  color: #d8e5d1;
}
.focus-image-layer-wrap {
  position: fixed;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.focus-image-layer {
  position: fixed;
  min-width: 96px;
  min-height: 96px;
  border: 1px solid #d9e7d330;
  border-radius: 20px;
  overflow: visible;
  background: #203329b8;
  box-shadow: 0 18px 48px #0003, 0 0 0 1px #ffffff0a inset;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.focus-image-layer:hover,
.focus-image-layer.is-dragging {
  border-color: #d9e7d37d;
  box-shadow: 0 22px 54px #0004, 0 0 0 2px #d9e7d31f;
}
.focus-image-layer.is-dragging {
  cursor: grabbing;
}
.focus-image-layer img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.focus-image-resize {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 30px;
  height: 30px;
  border: 2px solid #18271f;
  border-radius: 50%;
  background: #dce8d4;
  box-shadow: 0 4px 12px #0004;
  cursor: nwse-resize;
  touch-action: none;
}
.focus-image-resize::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-right: 2px solid #34503b;
  border-bottom: 2px solid #34503b;
  border-radius: 1px;
}
.immersion-center {
  position: relative;
  z-index: auto;
  pointer-events: none;
}
.immersion-center .focus-controls {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}
.immersion > .quote-card {
  z-index: 4;
  width: min(340px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
}
.focus-clock-stage {
  position: relative;
  z-index: 2;
  width: min(100%, var(--focus-clock-size, 340px));
  margin: 0 auto;
}
.focus-clock-stage .clock-wrap {
  width: 100%;
  max-width: none;
}
.clock-second-hand {
  stroke: var(--clock-end, #d9ac70);
  stroke-width: 1.35;
  stroke-linecap: round;
  opacity: .76;
}
.clock-second-marker {
  fill: var(--clock-end, #d9ac70);
  stroke: #18271f;
  stroke-width: 2;
  filter: drop-shadow(0 2px 4px #0004);
}
.clock-wrap.is-running .clock-second-marker {
  animation: second-marker-breathe 1.4s ease-in-out infinite;
}
.motion-paused .clock-wrap.is-running .clock-second-marker {
  animation: none !important;
}
@keyframes second-marker-breathe {
  0%, 100% { opacity: .78; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}
.focus-image-draft {
  display: grid;
  gap: 12px;
  margin: 4px 0 16px;
}
.focus-image-draft-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.focus-image-draft-row > img {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--raised);
}
.focus-image-draft-row > div {
  min-width: 0;
}
.focus-image-draft-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}
.focus-image-draft-row label {
  margin: 0 0 4px;
  color: var(--muted);
}
.focus-image-draft-row output {
  float: right;
  color: var(--accent-ink, var(--accent));
  font-variant-numeric: tabular-nums;
}
.focus-image-draft-row input[type="range"] {
  min-height: 28px;
  margin-top: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--accent);
}
.focus-image-draft-row .text-btn {
  min-height: 32px;
}
.focus-lock-status {
  position: relative;
  z-index: 2;
}
@media (max-width: 560px) {
  .immersion-header-actions .text-btn {
    font-size: 11px;
    padding-inline: 8px;
  }
  .focus-image-layer {
    border-radius: 16px;
  }
  .focus-image-draft-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 11px;
  }
  .focus-image-draft-row > img {
    width: 64px;
    height: 64px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .clock-wrap.is-running .clock-second-marker {
    animation: none !important;
  }
}

/* Immersion stage: the clock owns the left rail on wide screens. The quote is
   an independent fixed layer so its saved x/y position is genuinely free in
   both directions instead of following normal document flow. */
.immersion {
  display: grid !important;
  grid-template-columns: minmax(300px, 43%) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  column-gap: clamp(28px, 5vw, 86px);
  padding: 0 clamp(24px, 5vw, 84px) env(safe-area-inset-bottom) !important;
  overflow: hidden !important;
}
.immersion > .immersion-header { grid-column: 1 / -1; grid-row: 1; }
.immersion > .immersion-center {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  width: 100%;
  max-width: 620px;
  padding: 10px 0 32px;
  margin: 0;
  pointer-events: none;
}
.immersion > .immersion-center .focus-controls,
.immersion > .immersion-center .focus-lock-status { pointer-events: auto; }
.immersion > .quote-card {
  position: fixed !important;
  z-index: 12;
  width: min(48vw, 560px) !important;
  max-width: calc(100vw - 32px) !important;
  max-height: calc(100dvh - 112px);
  overflow: auto;
  margin: 0 !important;
  transform: none !important;
  padding: 18px 20px 14px;
  border: 1px solid #9db79a45;
  border-radius: 20px;
  background: #14251ed9;
  box-shadow: 0 22px 70px #06120c70, 0 0 0 1px #ffffff0b inset;
  backdrop-filter: blur(16px);
}
.immersion > .quote-card > p {
  max-height: none !important;
  overflow: visible !important;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  user-select: text;
}
.immersion > .quote-card > .quote-move-handle { cursor: grab; }
.immersion > .quote-card > div { flex-wrap: wrap; gap: 8px 16px; }
.clock-size-preview {
  display: grid;
  place-items: center;
  min-height: 170px;
  margin: 2px 0 16px;
  border-radius: 18px;
  background: radial-gradient(circle at center, var(--raised), transparent 68%);
  border: 1px solid var(--line);
}
.clock-size-preview span {
  display: block;
  width: min(var(--preview-size, 120px), 90%);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid var(--accent);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 18%, transparent), 0 12px 34px color-mix(in srgb, var(--accent) 28%, transparent);
  transition: width .16s ease, height .16s ease;
}
.clock-size-presets { display: flex; gap: 8px; margin: -2px 0 18px; }
.clock-size-presets button { flex: 1; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 12px; }
.clock-size-presets button.active { color: var(--accent-ink, var(--accent)); border-color: var(--accent); background: var(--raised); font-weight: 650; }
.text-style-fieldset { border: 0; border-top: 1px solid var(--line); padding: 18px 0 0; margin: 0 0 24px; }
.text-style-fieldset legend { padding: 0 8px 0 0; color: var(--accent-ink, var(--accent)); font-weight: 650; font-size: 14px; }
.text-style-fieldset .form-pair { margin-bottom: 14px; }
.text-style-fieldset input[type=range] { min-height: 28px; padding: 0; border: 0; background: transparent; accent-color: var(--accent); }
.text-style-fieldset output { float: right; color: var(--accent-ink, var(--accent)); font-variant-numeric: tabular-nums; }
@media (max-width: 899px) {
  .immersion {
    display: flex !important;
    flex-direction: column;
    padding: 0 18px env(safe-area-inset-bottom) !important;
    overflow: hidden !important;
  }
  .immersion > .immersion-header { flex: 0 0 auto; }
  .immersion > .immersion-center { flex: 1 1 auto; width: 100%; max-width: 680px; padding: 10px 0 150px; margin: 0 auto; overflow: auto; }
  .immersion > .quote-card { width: min(520px, calc(100vw - 32px)) !important; }
}
@media (orientation: landscape) and (max-height: 600px) {
  .immersion { grid-template-columns: minmax(240px, 42%) minmax(0, 1fr); padding-bottom: 18px !important; }
  .immersion > .immersion-center { padding: 0 0 20px; }
  .immersion > .quote-card { max-height: calc(100dvh - 54px); }
}

/* Content editors share one saved typography system; previews never alter drafts. */
.text-style-preview {
  padding: 18px;
  margin: 14px 0;
  min-width: 0;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.text-style-preview.on-dark { background: #18271f; --focus-topic-ink: #e7eddf; }
.inline-text-style { margin: -4px 0 22px; padding-top: 0; }
.inline-text-style > summary { min-height: 44px; cursor: pointer; font-size: 13px; color: var(--accent-ink,var(--accent)); }
.inline-text-style[open] > summary { margin-bottom: 14px; }
.quote-entry { margin-bottom: 20px; }
.quote-entry .section-line { margin-bottom: 0; }
.quote-entry .section-line label { margin: 0; color: var(--text); }
.quote-entry textarea { margin-top: 0; white-space: pre-wrap; }
.immersion { --focus-topic-ink: #e7eddf; }
.immersion.is-updating { animation: none; }
.immersion > .immersion-header { position: relative; z-index: 30; }
.immersion > .immersion-center { max-height: calc(100dvh - 86px); overflow: auto; scrollbar-width: thin; }
.immersion > .quote-card { width: min(43vw, 560px) !important; }
.immersion .focus-clock-stage .clock-wrap { width: 100%; max-width: none; container-type: inline-size; }
.immersion .focus-clock-stage .clock-digits { font-size: clamp(26px, 18cqw, 82px); }
.immersion .focus-clock-stage .has-hours .clock-digits { font-size: clamp(24px, 14cqw, 65px); }
.quote-card > p { touch-action: pan-y; }
.quote-card > .quote-move-handle { touch-action: none; }
@media (max-width: 899px) {
  .immersion > .quote-card { width: min(78vw, 520px) !important; }
  .immersion > .immersion-center { padding-bottom: 220px; }
}
@media (max-width: 560px) {
  .immersion-header { padding-inline: 0; gap: 6px; }
  .immersion-header .eyebrow { font-size: 9px; letter-spacing: .04em; }
  .immersion-header-actions { gap: 4px; }
  .immersion-header-actions .icon-btn { width: 36px; height: 40px; }
  .immersion > .quote-card { padding: 14px; }
  .text-style-fieldset .form-pair { gap: 10px; }
}
.clock-face { display: block; }
@media (min-width: 700px) and (orientation: landscape) and (max-height: 600px) {
  .immersion { display: grid !important; grid-template-columns: minmax(0, 43%) minmax(0, 1fr); column-gap: 24px; }
  .immersion > .immersion-center { grid-column: 1; grid-row: 2; max-height: calc(100dvh - 58px); padding: 0 0 16px; margin: 0; }
  .immersion .immersion-center h1 { margin: 2px auto 0; max-height: 3.1em; overflow: auto; }
  .immersion .focus-clock-stage { width: min(100%, calc(var(--focus-clock-size, 340px) * .48), calc(100dvh - 230px)); margin: 14px auto 0; }
  .immersion .focus-clock-stage .clock-wrap { margin: 0; }
  .immersion .immersion-state { margin: 2px 0 6px; }
  .immersion .focus-controls { margin: 0; }
  .immersion .focus-controls button { min-height: 38px; padding: 6px 18px; }
  .immersion .focus-lock-status { margin-top: 4px; font-size: 10px; }
  .immersion > .quote-card { width: min(43vw, 560px) !important; max-height: calc(100dvh - 76px); }
}
/* Small screens keep the essential timer actions reachable beneath movable content. */
@media (max-width: 699px) {
  .immersion > .quote-card { max-height: min(40dvh, max(140px, calc(100dvh - 430px))); }
  .immersion .focus-clock-stage { width: min(100%, var(--focus-clock-size, 340px), 30dvh); margin: 20px auto 12px; }
  .immersion .focus-clock-stage .clock-wrap { margin: 0; }
  .immersion .immersion-center .focus-controls {
    position: fixed;
    z-index: 25;
    left: 18px;
    right: 18px;
    bottom: max(12px, env(safe-area-inset-bottom));
    padding: 10px;
    border-radius: 16px;
    background: #18271ff2;
    box-shadow: 0 -10px 24px #18271f80;
  }
}

.page-header-actions { display:flex; gap:10px; align-items:center; flex-shrink:0; }
.workspace-home-link { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; white-space:nowrap; }
.workspace-home-link svg { width:18px; height:18px; }
@media(max-width:700px) {
 .workspace .today-header { flex-wrap:wrap; }
 .workspace .today-header>div:first-child { flex:1 1 220px; }
 .today-header-actions { margin-left:auto; }
 .page-header-actions { gap:4px; }
 .workspace-home-link { font-size:12px; gap:4px; padding:8px; }
}
