/* 已确认的手机设计稿：暖白、薄荷灰绿、浅杏、少量珊瑚强调。 */
.overdue,#safety-error{color:var(--danger);font-size:13px}.dialog-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.allocation-donut {
  height: auto !important;
  min-height: 250px;
}
.allocation-donut text,
.allocation-donut rect {
  stroke: none;
}
.chat-header h2 {
  display: none;
}
.ai-user .ai-debug,
.ai-user .ai-debug small {
  color: #e4f5ee;
}
.authorization-page > .backup-hero {
  margin-bottom: 20px;
}
.greeting {
  position: relative;
}
.greeting-date {
  position: absolute;
  right: 0;
  top: 6px;
  color: var(--muted);
  font-size: 11px;
}
body[data-route=tasks] .task-tools {
  display: none;
}
.ai-scopes label {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 6px;
}
.replay-strip {
  display: flex;
  overflow: hidden;
  height: 19px;
  border-radius: 6px;
  margin: 16px 0 12px;
}
.replay-strip a {
  min-width: 2px;
  height: 100%;
}
.replay-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.legend-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
}
.legend-row i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.legend-row small {
  color: var(--muted);
}
:root {
  --canvas:#faf9f6;
  --surface:#fff;
  --ink:#163a45;
  --muted:#627982;
  --hint:#8ca09f;
  --accent:#76b8a4;
  --action:#26866b;
  --action-ink:#fff;
  --soft:#eef6f2;
  --line:#e8eeeb;
  --shadow:0 5px 22px #22413c08;
  --radius:13px;
}
:root[data-theme=dark] {
  --canvas:#1e2b31;
  --surface:#28393f;
  --ink:#e8f0ec;
  --muted:#b1c4c6;
  --hint:#94aaad;
  --accent:#8bc4b3;
  --action:#8bc4b3;
  --action-ink:#17372d;
  --soft:#30464a;
  --line:#3d5258;
  --shadow:0 6px 24px #0001;
}
body {
  font-size: 14px;
  line-height: 1.65;
}
.btn {
  min-height: 44px;
  font-size: 14px;
  font-weight: 550;
  box-shadow: 0 2px 8px #183b3504;
}
.btn.primary {
  background: var(--action);
}
.btn.full,
.full {
  width: 100%;
}
h1 {
  font-size: 23px;
  letter-spacing: -.02em;
}
h2 {
  font-size: 17px;
}
.page-header h1 {
  font-size: 21px;
}
.page-header .row {
  gap: 10px;
}
.page-header .icon-btn {
  border: 0;
  background: transparent;
  padding: 8px;
  min-width: 44px;
}
.leaf-logo {
  width: 27px;
  height: 27px;
  color: var(--action);
  flex-shrink: 0;
}
.greeting h1 {
  font-size: 23px;
}
.greeting p {
  font-size: 13px;
  margin-top: 3px;
}
.mobile-today {
  max-width: 600px;
}
.today-banner {
  padding: 18px;
  border: 1px solid #dceee5;
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: var(--shadow);
}
.today-banner h2 {
  font-size: 17px;
}
.today-banner .progress-track {
  margin: 9px 0 14px;
  height: 4px;
}
.today-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 16px;
  margin-bottom: 15px;
}
.today-numbers > .wide {
  grid-column: 1/-1;
}
.today-numbers div,
.today-numbers a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}
.today-numbers strong {
  font-size: 19px;
  font-weight: 650;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.today-numbers > .wide strong {
  font-size: 24px;
}
.today-numbers small {
  font-size: 12px;
  color: var(--muted);
}
.today-tasks {
  margin-top: 20px;
  padding: 15px 14px 5px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.today-tasks .section-head {
  margin-bottom: 0;
}
.today-tasks h2 {
  font-size: 16px;
}
.today-tasks .link-button {
  font-size: 12px;
  min-height: 36px;
}
.today-tasks .task-row {
  padding: 7px 0;
}
.task-minutes {
  font-size: 13px;
  white-space: nowrap;
  color: var(--muted);
}
.priority-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #df8b80;
  border-radius: 50%;
  margin-right: 5px;
}
.today-tasks .task-minutes {
  display: none;
}
.task-open strong {
  font-weight: 500;
  font-size: 14px;
}
.task-open small {
  font-size: 12px;
}
.task-row {
  border-color: transparent;
}
.design-task-list {
  padding: 4px 10px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.design-task-list .task-row {
  min-height: 57px;
}
.task-check span {
  width: 18px;
  height: 18px;
}
.home-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.home-footer a {
  font-size: 12px;
}
.setting-row {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  min-height: 57px;
  text-align: left;
}
.setting-row > span:not(.setting-icon) {
  flex: 1;
}
.setting-row > svg:last-child {
  width: 17px;
  color: var(--hint);
}
.setting-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.setting-icon {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  display: grid;
  place-content: center;
  color: var(--action);
  background: var(--soft);
}
.setting-icon svg {
  width: 18px;
  height: 18px;
}
.settings-list {
  background: var(--surface);
  border-radius: 13px;
  padding: 0 16px;
  margin-top: 15px;
  box-shadow: var(--shadow);
}
.settings-list .setting-row:last-child {
  border-bottom: 0;
}
.profile-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 0 17px;
}
.profile-avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  color: var(--action);
  background: var(--soft);
  font-size: 33px;
  font-weight: 650;
}
.profile-card h2 {
  font-size: 18px;
}
.profile-card small {
  color: var(--muted);
}
.profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border-radius: 12px;
  padding: 17px 6px;
  text-align: center;
}
.profile-metrics > div {
  border-right: 1px solid var(--line);
  display: grid;
  gap: 2px;
}
.profile-metrics > div:last-child {
  border-right: 0;
}
.profile-metrics b {
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}
.profile-metrics small {
  font-size: 12px;
}
.profile-metrics span {
  font-size: 12px;
  color: var(--muted);
}
.period-tabs {
  display: flex;
  border-radius: 10px;
  background: #edf2f3;
  padding: 3px;
  margin-bottom: 18px;
  gap: 0;
}
.period-tabs button {
  flex: 1;
  border: 0;
  font-size: 14px;
  min-height: 40px;
  padding: 5px 8px;
  color: var(--muted);
}
.period-tabs button[aria-pressed=true] {
  background: var(--surface);
  box-shadow: 0 2px 6px #26463d05;
  color: var(--action);
}
:root[data-theme=dark] .period-tabs {
  background: var(--soft);
}
.task-tools {
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 0 0 16px;
}
.task-tools input {
  background: var(--surface);
  height: 42px;
  min-width: 0;
}
.task-tools .link-button {
  font-size: 13px;
  flex-shrink: 0;
}
.floating-create {
  position: fixed;
  right: max(25px, calc((100vw - 650px)/2));
  bottom: calc(103px + env(safe-area-inset-bottom));
  width: 52px;
  height: 52px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  color: white;
  background: #ed8c87;
  box-shadow: 0 5px 14px #ed8c8730;
  text-decoration: none;
  z-index: 10;
}
.detail-sheet,
.editor-page {
  padding: 20px;
  background: var(--surface);
  border-radius: 13px;
}
.detail-title {
  font-size: 22px;
}
.detail-meta {
  gap: 13px;
  font-size: 14px;
  margin: 22px 0;
}
.detail-meta dd {
  color: var(--ink);
}
.detail-meta dt {
  color: var(--muted);
}
.detail-sheet .btn {
  margin-top: 10px;
}
.field {
  font-size: 14px;
}
.field input,
.field select,
.field textarea {
  border-color: #e3ebe7;
  box-shadow: 0 2px 5px #123d3503;
  border-radius: 8px;
  background: var(--surface);
}
.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 0;
}
.check-row input {
  width: 19px;
  height: 19px;
  accent-color: var(--action);
}
.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 15px 0 25px;
}
.quality-grid .btn {
  background: var(--surface);
}
.topic-detail h1 {
  font-size: 23px;
  margin: 12px 0;
}
.topic-detail .tag {
  margin-top: 8px;
}
.topic-detail h2 {
  font-size: 17px;
}
.topic-detail details {
  margin-top: 22px;
}
.goal-grid {
  display: grid;
  gap: 16px;
  margin: 18px 0;
}
.goal-tile,
.review-tile {
  background: var(--surface);
  padding: 20px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.goal-tile h2,
.review-tile h2 {
  font-size: 16px;
}
.goal-tile > a {
  display: block;
  text-decoration: none;
}
.goal-tile strong {
  font-size: 26px;
  margin-right: 12px;
  color: var(--ink);
}
.goal-tile small {
  color: var(--muted);
}
.goal-tile a > span {
  display: block;
  text-align: right;
  font-size: 13px;
}
.goal-tile .progress-track {
  margin: 14px 0 10px;
  height: 6px;
}
.review-tile {
  margin: 16px 0;
}
.review-tile p {
  margin: 8px 0 15px;
}
.review-tile .btn {
  min-height: 44px;
}
.subject-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.subject-tabs button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface);
}
.subject-tabs button.selected {
  color: var(--action);
  border-color: var(--accent);
}
.analysis-date {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}
.analysis-date input {
  max-width: 150px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  min-height: 40px;
}
.allocation-donut {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  overflow: visible;
}
.donut-label {
  font: 600 11px var(--font);
  fill: var(--ink);
}
.donut-minutes {
  font: 10px var(--font);
  fill: var(--muted);
}
.donut-total {
  font: 600 18px var(--font);
  fill: var(--ink);
}
.donut-caption {
  font: 11px var(--font);
  fill: var(--muted);
}
.allocation-donut [data-subject] {
  cursor: pointer;
}
.allocation-donut [data-subject]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.donut-empty {
  min-height: 245px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 25px;
  background: var(--surface);
  border-radius: 14px;
  margin: 20px 0;
}
.donut-empty span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.allocation-caption {
  text-align: center;
  font-size: 13px;
  margin-top: -6px;
}
.section-label {
  font-size: 16px;
  margin: 22px 0 12px;
}
.time-list {
  border-left: 1px solid var(--line);
  margin-left: 9px;
  padding-left: 17px;
}
.time-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 8px 0;
  color: var(--ink);
}
.time-row > span:not(.time-dot) {
  flex: 1;
  min-width: 0;
}
.time-row small,
.time-row strong {
  display: block;
}
.time-row strong {
  font-size: 13px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.time-row small {
  font-size: 12px;
  color: var(--muted);
}
.time-row > svg {
  width: 15px;
}
.time-dot {
  position: absolute;
  left: -22px;
  top: 17px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
}
.analytics-links {
  margin-top: 25px;
}
.subject-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 15px;
  background: var(--soft);
  border-radius: 10px;
  margin: 10px 0;
}
.period-total {
  margin: 26px 0 16px;
}
.period-total span {
  display: block;
  color: var(--muted);
}
.period-total strong {
  font-size: 29px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.period-chart .bar-day i {
  background: #98c8e7;
}
.period-chart {
  gap: 5px;
  height: 190px;
  margin-bottom: 25px;
}
.period-chart .bar-day span {
  font-size: 10px;
}
.theme-options,
.scenery-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.theme-options button,
.scenery-options button {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  padding: 12px 6px;
  min-height: 74px;
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 12px;
}
.theme-options button[aria-pressed=true] {
  border-color: var(--action);
  color: var(--action);
}
.scene-thumb {
  display: block;
  width: 100%;
  height: 70px;
  border-radius: 7px;
  background-size: cover;
  background-position: center;
}
.morning {
  background-image: url(../v31-preview/focus-assets/morning-lake.png);
}
.twilight {
  background-image: url(../v31-preview/focus-assets/twilight-lake.png);
}
.scene-thumb.plain {
  background: #e6eef0;
}
.mode-pills {
  display: flex;
  align-self: center;
  justify-content: center;
  gap: 3px;
  border-radius: 24px;
  background: #ffffffa8;
  padding: 4px;
  min-width: 260px;
}
.mode-pills button {
  border-radius: 18px;
  min-height: 40px;
  flex: 1;
  font-size: 13px;
  padding: 5px 12px;
  color: #627b80;
}
.mode-pills button[aria-pressed=true] {
  background: #26866b;
  color: white;
}
.mode-pills.plain {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
  width: 100%;
}
.mode-pills.plain button {
  font-size: 12px;
  border-radius: 7px;
  padding: 7px 3px;
}
.focus-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
  min-height: 780px;
  padding: 20px 25px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 650px;
  margin: 0 auto;
  color: #163d46;
  background: #e7f2ed;
}
.focus-scene:before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: url(../v31-preview/focus-assets/morning-lake.png);
  background-size: cover;
  background-position: 50% 50%;
}
.focus-scene:after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      #f8fcfc24 0%,
      #f1f9f31a 55%,
      #cce4cf99 100%);
}
.focus-scene-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.focus-scene-top > span {
  font-weight: 600;
}
.focus-scene .icon-btn {
  background: transparent;
  border: 0;
  color: inherit;
}
.focus-task-pill {
  display: flex;
  align-items: center;
  gap: 3px;
  color: inherit;
  border-radius: 10px;
  background: #ffffffb3;
  text-decoration: none;
  padding: 10px 14px;
  max-width: 100%;
  overflow-wrap: anywhere;
  margin-top: 40px;
  font-size: 15px;
}
.focus-task-pill svg {
  width: 15px;
}
.focus-glass {
  height: 235px;
  width: 235px;
  border: 2px solid #ffffffa6;
  border-radius: 50%;
  background: #f7fbfb80;
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 26px 0;
}
.focus-glass output {
  font-size: 58px;
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.focus-glass p {
  font-size: 13px;
  margin-top: 8px;
}
.focus-primary {
  width: 100%;
  max-width: 300px;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: auto;
  padding-top: 5px;
}
.focus-primary > .btn {
  flex: 1;
  min-height: 48px;
}
.focus-warning {
  background: #ffffffdc;
  color: #3b4140;
  font-size: 13px;
  margin: 0 0 15px;
  width: 100%;
  text-align: left;
}
.focus-extras {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 35px;
  margin: 20px 0 12px;
}
.focus-extras button,
.focus-extras .unavailable-mini {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  min-height: 50px;
  min-width: 50px;
  color: inherit;
  font-size: 22px;
}
.focus-extras svg {
  border-radius: 50%;
  background: #ffffffba;
  padding: 10px;
  box-sizing: content-box;
  width: 20px;
  height: 20px;
}
.focus-extras small {
  font-size: 11px;
}
.unavailable-mini {
  opacity: .75;
}
.focus-history-link {
  color: inherit;
  font-size: 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.focus-scene[data-scenery=off]:before {
  display: none;
}
.focus-scene[data-scenery=off]:after {
  background:
    linear-gradient(
      155deg,
      #e4f2ee,
      #e5edf1);
}
.mode-A:before {
  opacity: .13;
}
.mode-A:after {
  background: #e7f4edbb;
}
.mode-A .focus-glass {
  border-color: #8dc9b4;
  background: #ffffff78;
}
.mode-C .focus-glass {
  border: 0;
  backdrop-filter: none;
  background: none;
}
.mode-C .focus-glass output {
  font-size: 72px;
}
.mode-C .focus-task-pill {
  background: none;
}
.complete-page {
  max-width: 450px;
  margin: 30px auto;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
}
.complete-page h1 {
  font-size: 25px;
}
.complete-mark {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: var(--soft);
  display: grid;
  place-content: center;
  color: var(--action);
  margin: 25px 0 5px;
}
.complete-mark svg {
  width: 42px;
  height: 42px;
}
.complete-duration {
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}
.complete-page > .field {
  width: 100%;
  text-align: left;
  margin-top: 15px;
}
.complete-page .full {
  max-width: 320px;
}
.account-page,
.about-page,
.update-page {
  max-width: 440px;
  margin: 24px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.large-brand .leaf-logo {
  height: 62px;
  width: 62px;
}
.account-page h1 {
  font-size: 24px;
}
.provider {
  padding: 13px 20px;
  border-radius: 9px;
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  font-weight: 550;
  background: var(--surface);
  min-height: 50px;
}
.provider small {
  font-size: 11px;
  font-weight: 400;
  opacity: .85;
}
.provider.wechat {
  background: #e7f4ed;
  color: #258463;
}
.provider.qq {
  background: #e8f0fc;
  color: #4d7ec1;
}
.provider.apple,
.provider.phone {
  color: var(--muted);
}
.local-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
.local-note svg {
  color: var(--accent);
}
.about-page .settings-list {
  width: 100%;
  text-align: left;
}
.backup-hero {
  border-radius: 13px;
  background: var(--soft);
  padding: 25px 20px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.backup-hero > svg {
  width: 52px;
  height: 52px;
  color: var(--action);
}
.backup-hero p {
  font-size: 13px;
  color: var(--muted);
}
.backup-actions {
  display: grid;
  gap: 12px;
  margin-top: 25px;
}
.backup-actions .btn {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 67px;
}
.backup-actions small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.backup-actions .primary small {
  color: #e3f4ed;
}
.backup-history {
  margin-top: 20px;
}
.backup-history > summary {
  color: var(--muted);
  font-size: 13px;
}
.backup-history .card-title,
.backup-history .row-wrap {
  display: none;
}
.backup-history .session-item {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
}
.status-row small {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.status-row:last-child {
  border: 0;
}
.honest-state {
  padding: 14px;
  background: var(--soft);
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
}
.ai-setting-card {
  padding: 20px;
  background: var(--soft);
  border-radius: 12px;
}
.ai-setting-card > svg {
  color: var(--action);
}
.ai-setting-card p {
  margin: 8px 0 16px;
  color: var(--muted);
}
.authorization-page .chat-header,
.authorization-page .ai-messages,
.authorization-page #ai-status,
.authorization-page .chat-composer {
  display: none;
}
.authorization-page .ai-options {
  border: 0;
}
.authorization-page .ai-options > summary {
  font-size: 17px;
  color: var(--ink);
}
.chat-header .tag {
  font-size: 11px;
}
.chat-welcome h2 {
  font-size: 19px;
}
.ai-message {
  background: #f1f7fa;
  border-color: #e6eef2;
  border-radius: 13px;
  padding: 14px;
  font-size: 14px;
}
.ai-user {
  background: var(--action);
  color: var(--action-ink);
  border: 0;
  border-radius: 13px 13px 2px 13px;
}
.ai-user > strong {
  color: inherit;
  opacity: .8;
}
.ai-user a,
.ai-user small {
  color: inherit;
}
.ai-answer {
  border-radius: 3px 13px 13px 13px;
}
.chat-composer {
  gap: 10px;
}
.chat-composer .textarea {
  border-radius: 24px;
  background: var(--surface);
  padding: 11px 15px;
  font-size: 13px;
}
.chat-composer > .btn {
  border-radius: 50%;
  width: 46px;
  min-width: 46px;
  padding: 9px;
  font-size: 12px;
}
.chat-orb {
  background: var(--soft);
  border-radius: 12px;
  padding: 6px 10px;
}
.chat-header {
  padding-bottom: 8px;
}
.ai-foundation {
  gap: 10px;
}
.ai-options summary {
  font-size: 12px;
}
.ai-scopes {
  border-radius: 9px;
  padding: 15px;
}
.ai-scopes label {
  min-height: 35px;
}
.ai-ack input {
  min-width: 17px;
  accent-color: var(--action);
}
.ai-options .row-wrap .btn {
  min-height: 44px;
  font-size: 12px;
}
.chat-welcome > .row-wrap .btn {
  border-radius: 18px;
  font-weight: 450;
}
.chat-page {
  padding-bottom: 0;
}
:root[data-theme=dark] .focus-scene {
  color: #edf8f5;
  background: #2a454f;
}
:root[data-theme=dark] .focus-scene:before {
  background-image: url(../v31-preview/focus-assets/twilight-lake.png);
}
:root[data-theme=dark] .focus-scene:after {
  background:
    linear-gradient(
      180deg,
      #21364b22,
      #173d4f55);
}
:root[data-theme=dark] .focus-glass {
  background: #344a588c;
  border-color: #cadae780;
}
:root[data-theme=dark] .focus-task-pill {
  background: #2b48558c;
}
:root[data-theme=dark] .focus-scene[data-scenery=off]:after {
  background:
    linear-gradient(
      145deg,
      #304856,
      #3b5760);
}
:root[data-theme=dark] .mode-A:before {
  opacity: .15;
}
:root[data-theme=dark] .mode-A:after {
  background: #2c454be0;
}
:root[data-theme=dark] .mode-C .focus-glass {
  background: none;
  border: 0;
}
:root[data-theme=dark] .mode-pills {
  background: #355465b3;
}
:root[data-theme=dark] .mode-pills button {
  color: #e0efed;
}
:root[data-theme=dark] .mode-pills button[aria-pressed=true] {
  background: #6bb19b;
  color: #112f2d;
}
:root[data-theme=dark] .focus-extras svg {
  background: #ffffff29;
}
:root[data-theme=dark] .focus-warning {
  background: #334c59;
  color: #edf5f2;
}
:root[data-theme=dark] .ai-answer {
  background: var(--surface);
  border-color: var(--line);
}
@media (max-width: 899px) {
  .workspace {
    padding: calc(14px + env(safe-area-inset-top)) 18px calc(100px + env(safe-area-inset-bottom));
  }
  .page-header {
    margin-bottom: 14px;
    min-height: 43px;
  }
  .page-header h1 {
    font-size: 20px;
  }
  .page-header .row {
    gap: 8px;
  }
  .page-header .icon-btn svg {
    width: 18px;
    height: 18px;
  }
  .bottom-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    background: var(--surface);
    padding-top: 7px;
  }
  .bottom-nav .nav-link {
    font-size: 10px;
    color: var(--muted);
    min-height: 50px;
  }
  .bottom-nav .nav-link svg {
    width: 19px;
    height: 19px;
  }
  .bottom-nav .nav-link[aria-current=page] {
    color: var(--action);
  }
  .bottom-nav .nav-link[aria-current=page] svg {
    background: var(--soft);
    padding: 5px;
    box-sizing: content-box;
    margin-top: -5px;
    margin-bottom: -5px;
    border-radius: 8px;
  }
  .greeting {
    margin: 6px 0 14px;
  }
  .today-banner {
    padding: 16px;
  }
  .today-tasks {
    margin-top: 16px;
  }
  .today-tasks > .task-list {
    padding: 0;
    box-shadow: none;
  }
  .mobile-today > .setting-row {
    margin-top: 9px;
    border: 0;
    background: var(--surface);
    border-radius: 10px;
    padding: 13px;
  }
  .home-footer {
    font-size: 12px;
  }
  .floating-create {
    right: 23px;
    bottom: calc(95px + env(safe-area-inset-bottom));
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .editor-page {
    padding: 16px;
  }
  .editor-page .wide {
    grid-column: 1;
  }
  .detail-meta {
    grid-template-columns: 88px 1fr;
  }
  .detail-title {
    font-size: 21px;
  }
  .allocation-donut {
    max-width: 420px;
  }
  .period-total strong {
    font-size: 27px;
  }
  .period-chart {
    margin-top: 15px;
  }
  .period-chart:has(.bar-day:nth-child(20)) .bar-day:nth-child(even) span {
    visibility: hidden;
  }
  .analytics-links {
    margin-top: 20px;
  }
  .analysis-page > .period-tabs {
    margin-bottom: 13px;
  }
  .profile-card {
    padding-top: 8px;
  }
  .profile-metrics {
    margin-bottom: 16px;
  }
  .settings-list {
    margin-top: 12px;
  }
  .setting-row {
    padding: 14px 0;
  }
  .goal-grid {
    margin-top: 16px;
  }
  .goal-tile {
    padding: 18px 16px;
  }
  .review-tile {
    padding: 18px 16px;
  }
  .appearance-settings h2 {
    font-size: 16px;
  }
  .scenery-options {
    gap: 7px;
  }
  .scenery-options button {
    font-size: 11px;
  }
  .scene-thumb {
    height: 63px;
  }
  body[data-route=focus] .workspace {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    max-width: none;
  }
  body[data-route=focus] .page-header {
    display: none;
  }
  .focus-scene {
    border-radius: 0;
    min-height: calc(100dvh - 73px - env(safe-area-inset-bottom));
    max-width: 680px;
    padding-top: calc(12px + env(safe-area-inset-top));
    padding-bottom: 13px;
  }
  .focus-scene-top {
    margin-bottom: 8px;
  }
  .focus-task-pill {
    margin-top: 36px;
  }
  .focus-glass {
    margin-top: 28px;
    margin-bottom: 24px;
  }
  .focus-primary {
    margin-top: 8px;
  }
  .focus-history-link {
    margin-top: auto;
  }
  .chat-composer {
    bottom: calc(70px + env(safe-area-inset-bottom));
  }
  .ai-foundation {
    min-height: calc(100dvh - 190px);
  }
  .ai-message {
    max-width: 91%;
  }
  .chat-header .btn {
    min-height: 40px;
  }
  .authorization-page .ai-foundation {
    min-height: 0;
  }
  .account-page {
    margin-top: 28px;
  }
  .account-page .large-brand {
    margin: 0 auto 8px;
  }
  .account-page .muted {
    font-size: 13px;
  }
  .backup-hero {
    padding: 25px 18px;
  }
  .backup-actions {
    margin-top: 22px;
  }
  .summary-grid h1 {
    font-size: 23px;
  }
  .summary-grid .panel {
    padding: 18px;
  }
}
@media (max-width: 360px) {
  .workspace {
    padding-left: 14px;
    padding-right: 14px;
  }
  .today-numbers strong {
    font-size: 18px;
  }
  .focus-glass {
    height: 205px;
    width: 205px;
  }
  .focus-glass output {
    font-size: 52px;
  }
  .focus-task-pill {
    margin-top: 25px;
  }
  .focus-scene {
    padding-left: 20px;
    padding-right: 20px;
  }
  .focus-extras {
    gap: 24px;
  }
  .profile-metrics b {
    font-size: 18px;
  }
  .task-minutes {
    font-size: 12px;
  }
  .period-tabs button {
    padding: 5px;
  }
  .scene-thumb {
    height: 50px;
  }
  .donut-total {
    font-size: 16px;
  }
}
@media (min-width: 900px) {
  .mobile-today {
    max-width: 700px;
  }
  .workspace {
    max-width: 1330px;
  }
  .goal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analysis-page {
    max-width: 750px;
  }
  .analysis-page .allocation-donut {
    max-width: 450px;
  }
  .settings-list {
    max-width: 720px;
  }
  .account-page {
    margin-top: 55px;
  }
  .focus-scene {
    min-height: 760px;
  }
  .appearance-settings {
    max-width: 720px;
  }
  .editor-page {
    max-width: 650px;
  }
}
