:root {
  --paper: #fff;
  --background: #f8fafb;
  --ink: #283744;
  --muted: #82909c;
  --blue: #58758b;
  --blue-dark: #425f76;
  --line: #e8edf1;
  --wash: #f2f6f8;
  --danger: #a14f55;
  --radius: 16px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--background);
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b4c9d8;
  outline-offset: 4px;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: #8ba5b9;
  box-shadow: 0 0 0 3px #eaf0f5;
}
input,
textarea {
  min-width: 0;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.025em;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
button {
  border: 0;
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
[hidden] {
  display: none !important;
}
::selection {
  background: #dce8f1;
}
.page-shell {
  max-width: 1224px;
  margin: auto;
  padding: 0 40px;
}
.site-header {
  height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand > span {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.3;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 400;
  margin-top: 5px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-note {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.account-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-divider {
  height: 12px;
  width: 1px;
  background: var(--line);
}
.text-button {
  padding: 0;
  background: none;
  color: var(--blue);
  font-size: 12px;
  white-space: nowrap;
}
.text-button:hover {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 20px;
  height: 306px;
  background: #edf3f6;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.hero-copy {
  padding: 34px 44px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 0.19em;
  color: #8a9ba9;
  font-weight: 500;
}
.hero h1 {
  font-size: 38px;
  line-height: 1.55;
  font-weight: 550;
  letter-spacing: 0.06em;
  margin: 10px 0 12px;
}
.hero-description {
  font-size: 12px;
  line-height: 1.9;
  color: #83939f;
  letter-spacing: 0.04em;
}
.art-caption {
  position: absolute;
  right: 25px;
  bottom: 18px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #eaf0f4;
}
.ambient-bar {
  display: grid;
  grid-template-columns: 1.14fr 1fr 1fr;
  margin-top: 24px;
  padding: 22px 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.clock-block,
.weather-block {
  padding: 0 28px;
}
.weather-block {
  border-left: 1px solid var(--line);
}
.ambient-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #7a8b99;
}
.tiny-dot {
  width: 5px;
  height: 5px;
  background: #88a6a2;
  border-radius: 50%;
  display: inline-block;
}
.ambient-label .muted {
  margin-left: 4px;
  font-size: 10px;
}
.clock-digits {
  font-variant-numeric: tabular-nums;
  font-weight: 350;
  font-size: 30px;
  line-height: 1.5;
  letter-spacing: 0.055em;
  margin-top: 2px;
}
.clock-digits span {
  font-size: 20px;
  color: #8b9eac;
}
.weather-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.weather-heading span {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 7px;
}
.weather-value {
  font-size: 20px;
  font-weight: 400;
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.weather-condition {
  font-size: 11px;
  color: #7c8e9c;
  font-weight: 400;
}
.weather-detail {
  font-size: 10px;
  color: #96a2ac;
  line-height: 1.5;
}
.weather-source {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 8px 4px 0;
  font-size: 9px;
  color: #a0acb5;
}
.weather-source a:hover {
  color: var(--blue);
}
.loading-note {
  padding: 60px;
  text-align: center;
  color: var(--muted);
}
.workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0 23px;
}
.workspace-heading h2 {
  margin: 6px 0 4px;
}
.section-description {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.date-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 7px;
  background: transparent;
  color: #7890a2;
  font-size: 22px;
  line-height: 1;
}
.icon-button:hover {
  background: #eaf0f4;
}
.icon-button:disabled {
  opacity: 0.35;
  cursor: default;
}
.date-label input {
  width: 140px;
  font-size: 12px;
  padding: 7px 9px;
  background: white;
}
.date-controls .button {
  margin-left: 7px;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.94fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.writing-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-number {
  font-size: 10px;
  letter-spacing: 0.03em;
  font-weight: 400;
  color: #a1b0bc;
  margin-right: 12px;
  position: relative;
  top: -1px;
}
.panel-description {
  font-size: 11px;
  color: #93a0aa;
  margin: 8px 0 21px;
}
.subtle-badge {
  background: var(--wash);
  color: #8a9ca9;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 10px;
  white-space: nowrap;
  font-weight: 400;
}
.goal-input-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.goal-input-row input {
  flex: 1;
  font-size: 12px;
  padding: 9px 12px;
  background: #fcfdfe;
}
.goal-input-row .button {
  padding: 9px 16px;
}
.goal-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid #f0f3f5;
}
.goal-row:last-child {
  border-bottom: 0;
}
.goal-check {
  width: 17px;
  height: 17px;
  accent-color: #7495a5;
  flex-shrink: 0;
  margin: 3px 0 0;
  cursor: pointer;
}
.goal-copy {
  flex: 1;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.goal-copy.completed {
  text-decoration: line-through;
  color: #a8b2bb;
}
.goal-row-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 1px;
}
.goal-row-actions button {
  font-size: 10px;
}
.goal-edit-input {
  width: 100%;
  padding: 4px 7px;
  font-size: 12px;
}
.goal-edit-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.empty-goals {
  color: #a2adb5;
  font-size: 12px;
  border: 1px dashed var(--line);
  padding: 17px;
  text-align: center;
  border-radius: 8px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  padding: 11px 20px;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.primary {
  background: var(--blue);
  color: #fff;
}
.primary:hover {
  background: var(--blue-dark);
}
.primary span {
  opacity: 0.75;
}
.secondary {
  background: var(--wash);
  color: #708697;
}
.secondary:hover {
  background: #e7eef3;
}
.compact {
  font-size: 11px;
  padding: 8px 12px;
}
.full-width {
  width: 100%;
}
label {
  display: block;
  font-size: 12px;
  color: #647888;
}
input:not([type="checkbox"]),
textarea {
  display: block;
  width: 100%;
  border: 1px solid #e1e8ed;
  border-radius: 7px;
  background: #fcfdfe;
  color: var(--ink);
  padding: 10px 12px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input::placeholder,
textarea::placeholder {
  color: #a6b2bb;
  font-size: 12px;
}
label > input {
  margin-top: 7px;
}
.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 19px;
  align-items: flex-end;
}
.grow {
  flex: 1;
}
.date-field {
  width: 151px;
  flex-shrink: 0;
}
.optional {
  font-size: 10px;
  color: #a1adb7;
  font-weight: 400;
  margin-left: 4px;
}
.linked-goals-area {
  margin-bottom: 19px;
}
.field-label {
  font-size: 12px;
  color: #647888;
}
.goal-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}
.goal-option {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.goal-option:has(input:checked) {
  background: #edf3f6;
  border-color: #c3d3df;
  color: #526f84;
}
.goal-option input {
  accent-color: var(--blue);
  margin: 0;
  flex-shrink: 0;
}
textarea {
  margin-top: 8px;
  resize: vertical;
  min-height: 148px;
  font-size: 13px;
  line-height: 1.9;
}
.textarea-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: #a3afb8;
  margin: 6px 1px 18px;
}
.composer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.minutes-input {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #98a6b1;
  margin-top: 5px;
}
.minutes-input input {
  width: 80px;
  padding: 8px 10px;
}
.composer-actions {
  display: flex;
  gap: 8px;
}
.small-note {
  font-size: 10px;
  color: #96a4af;
  line-height: 1.8;
}
.form-error {
  font-size: 12px;
  color: var(--danger);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.form-error:not(:empty) {
  margin: 12px 0;
}
.progress-panel {
  padding: 26px 24px;
}
.progress-person {
  padding: 23px 0;
  border-top: 1px solid var(--line);
}
.progress-person:last-child {
  padding-bottom: 10px;
}
.person-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}
.avatar-a {
  background: #eaf0f5;
  color: #6d8ca3;
}
.avatar-b {
  background: #eef1ed;
  color: #8a9c8a;
}
.person-name {
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
  min-width: 0;
}
.person-name small {
  margin-left: 6px;
  font-size: 9px;
  color: #a2aeb7;
  font-weight: 400;
}
.checkin-status {
  font-size: 9px;
  margin-left: auto;
  white-space: nowrap;
  color: #98a7b2;
}
.checkin-status.done {
  color: #77978f;
}
.checkin-status.done:before {
  content: "✓";
  margin-right: 4px;
}
.person-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 19px;
}
.stat-value {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.stat-value small {
  font-size: 10px;
  color: #9aa7b0;
  margin-left: 3px;
}
.stat-label {
  color: #9ba8b2;
  font-size: 9px;
  margin-top: 4px;
}
.person-goals {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 17px;
  margin-top: 17px;
  border-top: 1px dashed var(--line);
}
.friend-goal {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  font-size: 10px;
  color: #8295a3;
  overflow-wrap: anywhere;
}
.friend-goal span:first-child {
  color: #b0bfc9;
}
.friend-goal.done {
  color: #9caaa9;
}
.friend-goal.done span:first-child {
  color: #8faa9f;
}
.total-days {
  font-size: 10px;
  color: #a4afb7;
  margin-top: 13px;
}
.progress-footnote {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  color: #a1adb6;
  font-size: 9px;
  line-height: 1.9;
}
.quiet-note {
  padding: 23px 17px 10px;
  color: #97a5af;
}
.quote-mark {
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
  color: #b6c4ce;
}
.quiet-note p {
  font-size: 11px;
  line-height: 2.1;
  letter-spacing: 0.025em;
}
.quiet-line {
  display: block;
  width: 28px;
  height: 1px;
  background: #c6d2da;
  margin-top: 18px;
}
.journal-section {
  margin: 44px 0 30px;
}
.journal-heading {
  margin-bottom: 23px;
}
.journal-heading h2 {
  font-size: 22px;
  margin-top: 6px;
}
.segmented-control {
  display: flex;
  padding: 4px;
  background: #eef3f6;
  border-radius: 8px;
  gap: 2px;
}
.segmented-control button {
  padding: 6px 14px;
  font-size: 11px;
  color: #94a3af;
  border-radius: 5px;
  background: transparent;
}
.segmented-control button.active {
  background: white;
  color: #58758b;
  box-shadow: 0 1px 3px #34495a0b;
}
.journal-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.journal-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 17px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 28px;
}
.journal-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: #a3b0ba;
  border-right: 1px solid var(--line);
  padding-right: 17px;
  line-height: 1.6;
}
.journal-date strong {
  font-size: 27px;
  font-weight: 350;
  color: #7690a4;
}
.journal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #a2afb9;
}
.journal-author {
  color: #7790a3;
  font-size: 11px;
}
.journal-actions {
  display: flex;
  gap: 14px;
  margin-left: auto;
}
.journal-actions button {
  font-size: 10px;
}
.journal-card h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 11px 0 9px;
  overflow-wrap: anywhere;
}
.journal-summary {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.95;
  color: #617482;
  margin-top: 9px;
}
.journal-goals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.journal-goal-chip {
  font-size: 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
  background: #f3f6f8;
  color: #879cab;
  border-radius: 4px;
  padding: 3px 8px;
}
.journal-timestamps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #acb6be;
  font-size: 9px;
  margin-top: 15px;
}
.backfill-badge {
  color: #a08d74;
  background: #f7f4ef;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 9px;
}
.journal-empty {
  text-align: center;
  padding: 50px 20px;
  border: 1px dashed #dae4eb;
  border-radius: 12px;
  color: #9aabb7;
}
.empty-icon {
  font-size: 22px;
  color: #aec0cd;
  display: block;
  margin-bottom: 10px;
}
.journal-empty p {
  font-size: 13px;
}
.journal-empty small {
  font-size: 11px;
  display: block;
  margin-top: 6px;
  color: #a7b3bd;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 46px;
  padding: 23px 0 30px;
  font-size: 10px;
  color: #a6b1ba;
}
.footer-dot {
  margin: 0 7px;
}
.auth-panel {
  margin: 36px auto 0;
  padding: 32px 36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 850px;
}
.auth-panel .section-description {
  margin-top: 10px;
}
.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 25px;
}
.setup-grid fieldset + fieldset {
  border-left: 1px solid var(--line);
  padding-left: 40px;
}
.setup-grid legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
}
.setup-grid label {
  margin-bottom: 14px;
}
.setup-submit {
  margin-top: 13px;
}
.login-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 38px 44px;
}
.login-intro h2 {
  font-size: 27px;
  margin-top: 10px;
}
.login-decoration {
  margin-top: 28px;
  font-size: 10px;
  color: #acb7bf;
  letter-spacing: 0.04em;
}
.login-panel label {
  margin-bottom: 17px;
}
.modal {
  width: min(440px, calc(100% - 32px));
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 16px;
  color: var(--ink);
  box-shadow: 0 20px 100px #2b435223;
  background: white;
}
.modal::backdrop {
  background: #344a5b55;
  backdrop-filter: blur(4px);
}
.modal h2 {
  font-size: 19px;
}
.modal .section-description {
  margin: 12px 0 22px;
}
.modal label {
  margin-bottom: 14px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #3f5b6df2;
  color: #fff;
  font-size: 12px;
  padding: 12px 22px;
  border-radius: 9px;
  box-shadow: 0 8px 25px #364c6320;
  z-index: 10;
  max-width: calc(100% - 30px);
  text-align: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}
@media (min-width: 1500px) {
  .page-shell {
    padding-top: 10px;
  }
  .hero {
    height: 322px;
  }
  .hero-copy {
    padding-top: 40px;
  }
}
@media (max-width: 960px) {
  .page-shell {
    padding: 0 25px;
  }
  .workspace-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 17px;
  }
  .panel {
    padding: 23px 20px;
  }
  .progress-panel {
    padding: 23px 18px;
  }
  .clock-block,
  .weather-block {
    padding: 0 20px;
  }
  .clock-digits {
    font-size: 27px;
  }
  .header-note {
    font-size: 11px;
  }
  .workspace-heading {
    align-items: flex-start;
  }
  .date-controls {
    margin-top: 22px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .date-controls .button {
    margin-left: 0;
  }
  .composer-bottom {
    align-items: flex-end;
    flex-wrap: wrap;
  }
  .composer-actions {
    margin-left: auto;
  }
  .goal-row-actions {
    gap: 7px;
  }
  .quiet-note {
    padding-left: 10px;
    padding-right: 4px;
  }
  .quiet-note br {
    display: none;
  }
}
@media (max-width: 720px) {
  .page-shell {
    padding: 0 18px;
  }
  .site-header {
    height: 80px;
  }
  .brand > span {
    font-size: 20px;
  }
  .header-note {
    display: none;
  }
  .header-right {
    gap: 0;
  }
  .hero {
    height: 267px;
    border-radius: 14px;
  }
  .hero-copy {
    padding: 27px 25px;
  }
  .hero h1 {
    font-size: 31px;
    margin-top: 9px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 0.13em;
  }
  .hero-description {
    font-size: 11px;
  }
  .hero-art {
    width: 145%;
    max-width: none;
    left: -45%;
    opacity: 0.86;
  }
  .art-caption {
    right: 14px;
    bottom: 12px;
    font-size: 8px;
  }
  .ambient-bar {
    grid-template-columns: 1fr 1fr;
    margin-top: 17px;
    padding: 0 17px;
  }
  .clock-block {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 13px 0;
  }
  .ambient-label {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 10px;
  }
  .ambient-label .muted {
    margin-left: 0;
  }
  .clock-digits {
    font-size: 24px;
    margin-top: 0;
  }
  .clock-digits span {
    font-size: 16px;
  }
  .weather-block {
    padding: 16px 0;
    border-left: 0;
  }
  .weather-block:last-child {
    padding-left: 20px;
    border-left: 1px solid var(--line);
  }
  .weather-value {
    font-size: 22px;
    gap: 9px;
  }
  .weather-heading {
    font-size: 12px;
  }
  .weather-detail {
    font-size: 9px;
  }
  .weather-source {
    font-size: 8px;
    justify-content: space-between;
    gap: 5px;
    margin-top: 7px;
  }
  .workspace-heading {
    display: block;
    margin-top: 28px;
    margin-bottom: 18px;
  }
  .workspace-heading h2 {
    font-size: 22px;
  }
  .workspace-heading .eyebrow {
    font-size: 8px;
  }
  .date-controls {
    justify-content: flex-start;
    margin-top: 16px;
    gap: 5px;
  }
  .date-controls .button {
    margin-left: auto;
  }
  .date-label input {
    width: 145px;
  }
  .workspace-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .writing-column,
  .progress-column {
    width: 100%;
  }
  .panel {
    border-radius: 12px;
    padding: 22px 20px;
  }
  .writing-column {
    gap: 18px;
  }
  .section-heading {
    gap: 8px;
  }
  .section-heading h3 {
    font-size: 15px;
  }
  .section-number {
    margin-right: 8px;
  }
  .panel-description {
    font-size: 10px;
    margin-bottom: 18px;
  }
  .goal-input-row input {
    font-size: 11px;
  }
  .goal-input-row .button {
    padding: 8px 12px;
  }
  .goal-copy {
    font-size: 12px;
  }
  .form-row {
    gap: 11px;
    align-items: stretch;
    flex-wrap: wrap;
  }
  .grow {
    min-width: 120px;
  }
  .date-field {
    width: 143px;
  }
  .form-row label {
    font-size: 11px;
  }
  .form-row input {
    font-size: 12px;
    padding: 10px;
  }
  .composer-panel .text-button {
    font-size: 10px;
  }
  .textarea-footer {
    font-size: 8px;
  }
  .composer-actions .button {
    padding: 10px 14px;
  }
  .composer-bottom {
    gap: 12px;
  }
  .minutes-input input {
    width: 65px;
  }
  .progress-panel .panel-description {
    margin-bottom: 8px;
  }
  .person-stats {
    margin-top: 15px;
  }
  .progress-person {
    padding: 20px 0;
  }
  .person-goals {
    margin-top: 14px;
    padding-top: 13px;
  }
  .quiet-note {
    display: none;
  }
  .journal-section {
    margin-top: 28px;
  }
  .journal-heading {
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
  }
  .journal-heading h2 {
    font-size: 21px;
  }
  .segmented-control button {
    padding: 6px 11px;
  }
  .journal-card {
    grid-template-columns: 37px minmax(0, 1fr);
    gap: 13px;
    padding: 20px 17px;
  }
  .journal-date {
    padding-right: 12px;
  }
  .journal-date strong {
    font-size: 24px;
  }
  .journal-summary {
    font-size: 12px;
  }
  .journal-meta {
    font-size: 9px;
    gap: 6px;
  }
  .journal-actions {
    gap: 10px;
  }
  .journal-timestamps {
    font-size: 8px;
    gap: 6px;
  }
  .site-footer {
    display: block;
    font-size: 9px;
    margin-top: 32px;
    padding: 18px 0 22px;
  }
  .site-footer > span {
    display: block;
    margin-bottom: 5px;
  }
  .auth-panel {
    padding: 25px 22px;
    margin-top: 25px;
  }
  .auth-panel h2 {
    font-size: 22px;
  }
  .setup-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .setup-grid fieldset + fieldset {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 22px;
  }
  .setup-grid fieldset + fieldset legend {
    float: left;
    width: 100%;
    margin-top: 0;
  }
  .setup-grid fieldset + fieldset label:first-of-type {
    clear: both;
  }
  .login-panel {
    display: block;
  }
  .login-intro {
    margin-bottom: 25px;
  }
  .login-decoration {
    display: none;
  }
  .login-panel .section-description {
    margin-top: 6px;
  }
  .setup-submit {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.home-intro,
.hub-section {
  margin-top: 34px;
}
.home-intro > .section-description {
  margin: 10px 0 26px;
}
.home-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.home-features article {
  padding: 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.home-features h3 {
  margin: 12px 0 8px;
}
.home-features p {
  font-size: 12px;
  color: #81919e;
  line-height: 1.9;
}
.hub-heading {
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.hub-heading h2 {
  margin-top: 6px;
}
.hub-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#social-count:not(:empty) {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e1eaf0;
  margin-left: 4px;
  font-size: 10px;
}
.group-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
  gap: 12px;
  margin-top: 22px;
}
.group-card {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-content: center;
  gap: 3px 10px;
  min-height: 98px;
  padding: 18px 22px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
}
.group-card.active {
  border-color: #9eb4c4;
  background: #f0f5f8;
}
.group-card strong {
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.group-card small {
  grid-column: 2;
  font-size: 10px;
  color: var(--muted);
}
.group-card-icon {
  grid-row: span 2;
  font-size: 25px;
  color: #8fa8ba;
}
.group-empty {
  text-align: center;
  padding: 40px 22px;
  border: 1px dashed #cfdce5;
  border-radius: 14px;
  margin-top: 20px;
}
.group-empty p {
  max-width: 510px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 12px;
}
.group-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 30px 0 25px;
  margin-top: 12px;
}
.group-banner-copy {
  min-width: 0;
}
.group-banner h2 {
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.group-banner .section-description {
  max-width: 760px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  margin-top: 8px;
}
.group-banner > button {
  flex-shrink: 0;
  margin-top: 23px;
}
.member-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.member-chip {
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 10px;
  background: #eef3f6;
  color: #7d95a6;
  overflow-wrap: anywhere;
}
.auth-modal {
  width: min(440px, calc(100% - 32px));
}
.auth-tabs {
  margin-bottom: 20px;
}
.auth-tabs button {
  flex: 1;
}
.social-modal {
  width: min(650px, calc(100% - 32px));
}
.modal {
  max-height: calc(100dvh - 40px);
  overflow: auto;
}
.friend-form {
  display: flex;
  gap: 10px;
}
.friend-form input {
  flex: 1;
}
.friend-form button {
  flex-shrink: 0;
}
.social-section {
  margin-top: 25px;
}
.social-section > h3 {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 7px;
  font-size: 13px;
}
.social-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}
.social-copy {
  flex: 1;
  min-width: 0;
}
.social-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.social-copy small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.social-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-shrink: 0;
}
.discussion {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
}
.discussion-heading {
  font-size: 11px;
  color: #7a92a3;
  margin-bottom: 8px;
}
.comment-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f3f5;
}
.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 9px;
  color: #9ba9b3;
}
.comment-meta strong {
  color: #6f8799;
  font-size: 11px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.comment-actions {
  display: flex;
  gap: 12px;
  margin-left: auto;
}
.comment-actions .text-button {
  font-size: 10px;
}
.comment-copy {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #657c8d;
  font-size: 12px;
  line-height: 1.9;
  margin-top: 6px;
}
.comment-form {
  margin-top: 14px;
}
.comment-form textarea,
.comment-edit textarea {
  font-size: 12px;
  line-height: 1.8;
  padding: 10px 12px;
  background: #fbfcfd;
  min-height: 64px;
}
.comment-edit {
  margin-top: 10px;
}
.comment-submit {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}
.comment-submit .form-error {
  flex: 1;
  margin: 0;
}
.message-board {
  margin-top: 28px;
}
.message-list:empty {
  display: none;
}
@media (max-width: 720px) {
  .home-features {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .home-features article {
    padding: 20px;
  }
  .home-intro h2,
  .hub-heading h2 {
    font-size: 22px;
  }
  .hub-actions {
    width: 100%;
  }
  .hub-actions button {
    flex: 1;
  }
  .group-list {
    grid-template-columns: 1fr;
  }
  .group-card {
    min-height: 84px;
  }
  .group-banner {
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
  }
  .group-banner h2 {
    font-size: 21px;
  }
  .group-banner > button {
    margin-top: 0;
  }
  .social-row {
    gap: 8px;
    flex-wrap: wrap;
  }
  .social-actions .button {
    padding: 7px 10px;
  }
  .friend-form {
    flex-wrap: wrap;
  }
  .friend-form input {
    min-width: 140px;
  }
  .modal {
    padding: 23px 20px;
  }
  .comment-meta {
    gap: 7px;
  }
  .comment-copy {
    font-size: 12px;
  }
  .account-controls {
    gap: 12px;
  }
}
