@charset "UTF-8";
:root {
  --paper: #fffefa;
  --bg: #f6f4f0;
  --ink: #302c33;
  --muted: #89838a;
  --purple: #755b91;
  --purple-dark: #5c4279;
  --lavender: #eee8f4;
  --border: #e8e3e9;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 var(--sans);
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #bca6d5;
  outline-offset: 4px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #bca6d5;
  outline-offset: 2px;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
.app-shell {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  max-width: 1600px;
  margin: auto;
  min-height: 100vh;
}
.sidebar {
  border-right: 1px solid var(--border);
  padding: 42px 24px 28px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
  background: #f2efed;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 10px 55px;
  font: 30px var(--serif);
  letter-spacing: 3px;
}
.brand-mark {
  font: 48px var(--sans);
  color: var(--purple);
  letter-spacing: 0;
}
.brand small {
  display: block;
  font: 8px/2.5 var(--sans);
  letter-spacing: 2px;
  color: var(--muted);
}
nav {
  display: grid;
  gap: 10px;
}
.nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 15px;
  padding: 12px 16px;
  border-radius: 10px;
  color: #817a84;
  text-align: left;
}
.nav-item span {
  font-size: 20px;
}
.nav-item.active {
  background: #e6dfee;
  color: var(--purple-dark);
  font-weight: 600;
}
.nav-item:hover {
  background: #eae5ed;
}
.sidebar-note {
  margin-top: auto;
  padding: 20px 12px 40px;
  color: var(--muted);
  font-size: 12px;
}
.tiny-label {
  font-size: 8px;
  letter-spacing: 1.3px;
}
.sidebar-note p {
  margin-top: 18px;
  line-height: 2.2;
}
.four-marks {
  font-size: 22px;
  letter-spacing: 8px;
  color: #aa97bc;
}
.four-marks span {
  color: #bdb5bd;
}
.settings-link {
  font-size: 12px;
}
main {
  padding: 0 46px;
  min-width: 0;
}
.topbar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.7px;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.connection {
  font-size: 11px;
  color: var(--muted);
}
.connection:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #95aa94;
  margin-right: 6px;
}
.icon-button {
  padding: 4px 8px;
  color: var(--muted);
  font-size: 13px;
}
.date-control {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: var(--purple);
}
.date-control input {
  width: 123px;
  border: 0;
  background: transparent;
  font-size: 11px;
  color: #736b77;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0 32px;
  gap: 20px;
}
.hero h1 {
  font: 44px/1.4 var(--serif);
  font-weight: 500;
  letter-spacing: 1.5px;
  margin: 15px 0 13px;
}
.hero-copy {
  color: var(--muted);
  font-size: 12px;
}
.paper-art {
  position: relative;
  min-width: 175px;
  height: 155px;
  transform: rotate(-7deg);
  color: var(--purple);
  opacity: 0.9;
}
.art-line {
  position: absolute;
  inset: 14px 14px 14px 32px;
  border: 1px solid #dcd0e8;
  border-radius: 65px 65px 20px 20px;
}
.art-dot {
  position: absolute;
  font-size: 45px;
  top: 3px;
  left: 90px;
}
.art-circle {
  position: absolute;
  font: 88px/1 var(--serif);
  top: 36px;
  left: 42px;
  color: #b8a3cd;
}
.art-equal {
  position: absolute;
  top: 46px;
  right: 13px;
  font-size: 44px;
  color: #ceb7db;
}
.art-dash {
  position: absolute;
  left: 14px;
  top: 58px;
  font-size: 45px;
  color: #b7a3c8;
}
.paper-art small {
  position: absolute;
  bottom: 0;
  left: 33px;
  font:
    10px Georgia,
    serif;
  font-style: italic;
  color: #a294a9;
  transform: rotate(7deg);
}
.ritual-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
  gap: 26px;
}
.ritual-tabs button {
  padding: 15px 5px 17px;
  position: relative;
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
}
.ritual-tabs button span {
  font:
    10px Georgia,
    serif;
  color: #aaa0b1;
  margin-right: 8px;
}
.ritual-tabs small {
  font-size: 10px;
  margin-left: 12px;
  opacity: 0.7;
}
.ritual-tabs button.active {
  color: var(--purple-dark);
  font-weight: 600;
}
.ritual-tabs button.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--purple);
}
.journal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 238px;
  gap: 26px;
  align-items: start;
}
.journal-column {
  min-width: 0;
}
.paper {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: 0 5px 22px #38204603;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.section-heading h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 5px 0;
}
.section-heading h2 span {
  font-size: 11px;
  color: var(--muted);
  margin-left: 12px;
  font-weight: 400;
}
.section-heading .eyebrow {
  font-size: 8px;
  letter-spacing: 1.4px;
}
.symbol-chip,
.ai-chip {
  background: #f0eaf5;
  color: var(--purple);
  padding: 5px 10px;
  font-size: 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.ai-chip {
  background: transparent;
  font-size: 11px;
  letter-spacing: 1px;
}
.empty {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 28px 14px;
  line-height: 2;
}
.empty-title {
  display: block;
  color: #8d7c9b;
  margin-bottom: 4px;
}
.entry {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid #eeebee;
}
.entry:last-child {
  border-bottom: 0;
}
.entry .mark {
  min-width: 25px;
  padding: 0;
  font-size: 22px;
  line-height: 1.2;
  color: var(--purple);
  text-align: center;
}
.entry .mark.done {
  color: #a7a0ab;
}
.entry-content {
  flex: 1;
  min-width: 0;
}
.entry-text {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.entry.done .entry-text {
  text-decoration: line-through;
  color: #a49aa9;
}
.entry.moved {
  opacity: 0.65;
}
.entry-meta {
  font-size: 10px;
  color: #a49aa9;
  margin: 4px 0 0;
}
.entry-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}
.entry-actions button {
  font-size: 10px;
  padding: 4px 7px;
  color: #95859f;
  border-radius: 5px;
  white-space: nowrap;
}
.entry-actions button:hover {
  background: var(--lavender);
}
.entry-actions .star {
  font-size: 16px;
  padding: 0 6px;
}
.core-paper .text-button {
  margin-top: 16px;
}
.text-button {
  color: var(--purple);
  font-size: 11px;
  padding: 4px 0;
}
.primary,
.secondary {
  border-radius: 8px;
  padding: 11px 17px;
  font-size: 12px;
  min-height: 42px;
}
.primary {
  background: var(--purple);
  color: #fff;
}
.primary:hover {
  background: var(--purple-dark);
}
.primary span {
  margin-left: 15px;
}
.secondary {
  background: var(--lavender);
  color: var(--purple-dark);
}
textarea {
  display: block;
  width: 100%;
  border: 1px solid #e5ddea;
  border-radius: 8px;
  background: #faf8fb;
  padding: 14px;
  resize: vertical;
  font-size: 13px;
  line-height: 1.9;
  min-height: 90px;
}
textarea::placeholder {
  color: #aca3b0;
}
.composer-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 15px;
  align-items: center;
}
.composer-footer p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.composer-footer > div {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.voice-button {
  color: var(--purple);
  padding: 7px 8px;
  font-size: 16px;
}
.voice-button span {
  font-size: 11px;
  margin-left: 5px;
}
.voice-button.recording {
  background: #f5e1e7;
  color: #b84367;
  border-radius: 7px;
}
.filter-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.filter-row button {
  font-size: 10px;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 20px;
}
.filter-row button.active {
  background: #eee8f3;
  color: var(--purple-dark);
}
.progress-card {
  background: #eee8f3;
  border: 1px solid #e6dfee;
  border-radius: 14px;
  text-align: center;
  padding: 25px 14px;
  margin-bottom: 22px;
}
.progress-card .eyebrow {
  font-size: 8px;
  color: #9c88af;
}
.progress-ring {
  width: 137px;
  height: 137px;
  border-radius: 50%;
  background: conic-gradient(var(--purple) 0deg, #ded3e7 0);
  padding: 3px;
  margin: 22px auto 17px;
  transition: background 0.3s;
}
.progress-ring > div {
  background: #eee8f3;
  border: 7px solid #eee8f3;
  border-radius: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.progress-ring strong {
  font:
    46px/1.1 Georgia,
    serif;
  color: var(--purple-dark);
  font-weight: 400;
}
.progress-ring small {
  font-size: 9px;
  color: #a190ae;
  margin-top: 8px;
}
.progress-card p {
  font-size: 11px;
  color: #8f7c9e;
  line-height: 1.9;
}
.legend-card {
  padding: 8px 10px 20px;
}
.legend-card h3 {
  font-size: 11px;
  color: #85798d;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 8px 0 23px;
}
.legend-card dl {
  margin: 0;
}
.legend-card dl > div {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0;
}
.legend-card dt {
  font-size: 23px;
  color: #8e769f;
  width: 26px;
  text-align: center;
  line-height: 1;
}
.legend-card dd {
  margin: 0;
  font-size: 11px;
  color: #756c7b;
}
.legend-card dd small {
  display: block;
  font-size: 9px;
  color: #a198a5;
  margin-top: 3px;
}
.legend-card > p {
  border-top: 1px solid var(--border);
  padding-top: 15px;
  font-size: 10px;
  color: var(--muted);
  word-spacing: 6px;
}
.legend-card b {
  font-size: 14px;
  font-weight: 400;
  color: var(--purple);
}
.quote-card {
  border-top: 1px solid var(--border);
  padding: 22px 12px;
  color: #a394af;
}
.quote-card > span {
  font:
    50px/1 Georgia,
    serif;
  opacity: 0.55;
}
.quote-card p {
  font: 16px/1.9 var(--serif);
  margin: 0 0 18px;
}
.quote-card em {
  font-style: normal;
  color: #7d668f;
}
.quote-card small {
  font-size: 9px;
  color: #a39aa9;
}
.page-footer {
  padding: 25px 0 30px;
  color: #b1a7b7;
  font-size: 9px;
  letter-spacing: 0.8px;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.page-footer span {
  letter-spacing: 4px;
}
.phase-note {
  padding: 0 5px 18px;
  font-size: 12px;
  color: #8e799e;
}
.phase-note:empty {
  display: none;
}
h3 {
  font-size: 13px;
  font-weight: 500;
  margin: 24px 0 14px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}
.small {
  font-size: 10px;
}
.mood-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}
.mood-picker button {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 13px;
  color: var(--muted);
  font-size: 11px;
}
.mood-picker button.selected {
  background: var(--lavender);
  border-color: #bdacd0;
  color: var(--purple);
}
label {
  font-size: 12px;
}
#review > label {
  display: block;
  margin: 20px 0 8px;
}
#review-done {
  margin-top: 18px;
}
#capture-status {
  font-size: 11px;
  color: var(--purple);
  margin-top: 12px;
  white-space: pre-wrap;
}
#capture-status:empty {
  display: none;
}
#proposals {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 16px;
}
.proposal {
  border: 1px solid #ece4f1;
  background: #faf7fc;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
}
.proposal-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.proposal select {
  border: 0;
  background: #eee6f5;
  border-radius: 5px;
  font-size: 11px;
  padding: 6px;
  max-width: 160px;
}
.proposal textarea {
  font-size: 12px;
  background: white;
  min-height: 60px;
  padding: 10px;
}
.proposal .core-choice {
  display: flex;
  gap: 7px;
  margin-top: 8px;
  font-size: 10px;
  color: var(--purple);
}
.proposal .uncertain {
  font-size: 10px;
  color: #aa7b42;
  margin-left: auto;
}
.proposal evidence,
.proposal .evidence {
  display: block;
  font-size: 10px;
  color: #97889f;
  margin-top: 8px;
}
.proposal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.summary-card {
  background: #f2edf7;
  padding: 23px;
  border-radius: 10px;
  color: var(--purple);
}
.summary-card strong {
  display: block;
  font:
    34px Georgia,
    serif;
  margin-bottom: 8px;
}
.summary-card small {
  font-size: 11px;
  color: var(--muted);
}
.week-row,
.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 16px 5px;
  font-size: 12px;
  gap: 15px;
}
.week-row span {
  color: var(--muted);
  font-size: 11px;
}
.history-row {
  width: 100%;
  text-align: left;
}
.history-row:hover {
  background: #f6f1fa;
}
.migration-note {
  background: #f1ecf6;
  padding: 10px 13px;
  font-size: 11px;
  border-radius: 6px;
  color: #887394;
  margin: 14px 0;
}
.review-actions {
  flex-wrap: wrap;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--paper);
  width: min(490px, calc(100vw - 28px));
  max-height: 88dvh;
  padding: 28px;
  color: var(--ink);
}
dialog::backdrop {
  background: #34253c66;
  backdrop-filter: blur(4px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}
.dialog-header h2 {
  font: 22px var(--serif);
  font-weight: 500;
  margin: 0;
}
.dialog-header .icon-button {
  font-size: 26px;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  gap: 15px;
}
.setting-row input[type="time"] {
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: 5px;
  background: #faf7fc;
}
.setting-row input[type="checkbox"],
input[type="checkbox"] {
  accent-color: var(--purple);
  width: 16px;
  height: 16px;
}
.setting-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.dialog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}
#edit-dialog > label,
#login-dialog > label {
  display: block;
  margin: 16px 0 7px;
}
#edit-kind,
#pair-code {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #faf8fb;
}
#pair {
  margin-top: 20px;
  width: 100%;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: #46334e;
  color: #fff;
  padding: 12px 20px;
  border-radius: 9px;
  font-size: 12px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 8px 30px #46334e22;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1450px) {
  main {
    padding: 0 65px;
  }
  .hero h1 {
    font-size: 51px;
  }
  .journal-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 32px;
  }
  .paper {
    padding: 32px;
  }
  .hero {
    padding: 46px 0;
  }
}
@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 176px minmax(0, 1fr);
  }
  .sidebar {
    padding: 32px 15px;
  }
  .brand {
    font-size: 26px;
    gap: 8px;
    margin-left: 4px;
  }
  .brand small {
    font-size: 7px;
  }
  .nav-item {
    padding: 12px 10px;
    gap: 11px;
  }
  main {
    padding: 0 28px;
  }
  .journal-layout {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 20px;
  }
  .paper {
    padding: 22px;
  }
  .hero h1 {
    font-size: 37px;
  }
  .paper-art {
    min-width: 145px;
    transform: scale(0.85) rotate(-7deg);
  }
  .ritual-tabs {
    gap: 18px;
  }
  .ritual-tabs small {
    margin-left: 5px;
  }
  .composer-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .composer-footer > div {
    align-self: flex-end;
  }
  .entry-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 90px;
  }
}
@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    bottom: 0;
    top: auto;
    height: 68px;
    height: calc(68px + env(safe-area-inset-bottom));
    padding: 5px 8px env(safe-area-inset-bottom);
    width: 100%;
    background: #f9f7f5f5;
    z-index: 5;
    flex-direction: row;
    align-items: center;
    border-top: 1px solid var(--border);
    border-right: 0;
    backdrop-filter: blur(10px);
  }
  .brand,
  .sidebar-note {
    display: none;
  }
  .sidebar nav {
    display: flex;
    width: 75%;
    gap: 0;
  }
  .nav-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 4px;
    border-radius: 8px;
    font-size: 9px;
    height: 51px;
  }
  .sidebar nav .nav-item {
    width: 33.33%;
  }
  .nav-item span {
    font-size: 20px;
    line-height: 1.4;
  }
  .settings-link {
    width: 25%;
    font-size: 9px;
  }
  .nav-item.active {
    background: #eae3f0;
  }
  main {
    padding: 0 22px 75px;
  }
  .topbar {
    height: 64px;
  }
  .topbar > .eyebrow {
    font: 16px var(--serif);
    letter-spacing: 2px;
    color: var(--purple);
  }
  .top-actions {
    gap: 7px;
  }
  .connection {
    font-size: 9px;
  }
  .icon-button {
    font-size: 11px;
    padding: 3px;
  }
  .date-control input {
    width: 112px;
    font-size: 10px;
  }
  .hero {
    padding: 29px 0 23px;
  }
  .hero h1 {
    font-size: 35px;
    margin: 9px 0 12px;
    letter-spacing: 0.5px;
  }
  .hero-copy {
    font-size: 11px;
    max-width: 265px;
    line-height: 1.9;
    margin: 0;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .paper-art {
    min-width: 95px;
    max-width: 95px;
    transform: scale(0.65) rotate(-7deg);
    transform-origin: right center;
    margin-left: -35px;
    height: 140px;
  }
  .journal-layout {
    grid-template-columns: 1fr;
  }
  .day-aside {
    display: none;
  }
  .ritual-tabs {
    gap: 0;
    justify-content: space-between;
    margin-bottom: 22px;
  }
  .ritual-tabs button {
    font-size: 11px;
    padding: 12px 2px;
  }
  .ritual-tabs button span {
    font-size: 9px;
    margin-right: 5px;
  }
  .ritual-tabs small {
    font-size: 8px;
    margin-left: 5px;
  }
  .paper {
    padding: 21px;
    border-radius: 12px;
    margin-bottom: 17px;
  }
  .section-heading {
    margin-bottom: 14px;
  }
  .section-heading h2 {
    font-size: 15px;
  }
  .composer-footer {
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .composer-footer > div {
    align-self: stretch;
    justify-content: space-between;
  }
  .voice-button {
    padding-left: 2px;
  }
  .entry-actions {
    max-width: 110px;
  }
  .filter-row button {
    padding: 5px 7px;
  }
  .section-heading .eyebrow {
    font-size: 7px;
    letter-spacing: 0.7px;
  }
  .page-footer {
    font-size: 8px;
    gap: 8px;
  }
  .summary-grid {
    gap: 8px;
  }
  .summary-card {
    padding: 15px 10px;
  }
  .summary-card strong {
    font-size: 28px;
  }
  .summary-card small {
    font-size: 9px;
  }
  dialog {
    padding: 24px 20px;
  }
  .review-actions {
    max-width: 112px;
  }
  .review-actions button {
    padding: 4px 5px;
    font-size: 10px;
  }
  .proposal select {
    max-width: 140px;
  }
  .date-control > span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media (max-width: 370px) {
  main {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero h1 {
    font-size: 29px;
  }
  .ritual-tabs small {
    display: none;
  }
  .connection {
    max-width: 60px;
    overflow: hidden;
    white-space: nowrap;
  }
  .paper {
    padding: 16px;
  }
}
.journal-column {
  display: flex;
  flex-direction: column;
}
.phase-note {
  order: 0;
}
.composer {
  order: 1;
}
.core-paper {
  order: 2;
}
.notes-paper {
  order: 3;
}
.review-paper {
  order: 4;
}
:root[data-phase="morning"] .core-paper {
  order: 1;
}
:root[data-phase="morning"] .composer {
  order: 2;
}
:root[data-phase="evening"] .review-paper {
  order: 1;
}
:root[data-phase="evening"] .composer {
  order: 2;
}
:root[data-phase="evening"] .core-paper {
  order: 3;
}
:root[data-phase="evening"] .notes-paper {
  order: 4;
}
:root[data-theme="violet"] {
  --muted: #746e7a;
}
.entry-actions button {
  min-height: 32px;
}
.hero {
  padding-top: 30px;
  padding-bottom: 24px;
}
.hero-copy {
  font-size: 13px;
}
.composer-footer p {
  font-size: 11px;
}
.filter-row button {
  font-size: 11px;
}
.empty {
  font-size: 13px;
}
.entry-text {
  font-size: 14px;
}
.section-heading h2 {
  font-size: 17px;
}
.theme-preview strong {
  font-size: 16px;
}
.theme-preview .mini-symbol {
  top: 51px;
}
@media (max-width: 820px) {
  .hero {
    padding-top: 25px;
    padding-bottom: 20px;
  }
  .hero-copy {
    font-size: 12px;
  }
  .composer-footer > div > button {
    min-height: 44px;
  }
  .entry-actions button {
    min-height: 36px;
  }
  .filter-row button {
    min-height: 35px;
  }
  .ritual-tabs button {
    min-height: 46px;
  }
  .entry .mark {
    min-height: 36px;
    min-width: 32px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .theme-preview strong {
    font-size: 14px;
  }
  .hero h1 {
    font-size: 31px;
  }
  .topbar > .eyebrow {
    font-size: 14px;
  }
}
