:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --sidebar: rgba(242, 242, 247, 0.82);
  --label: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #8e8e93;
  --separator: rgba(60, 60, 67, 0.18);
  --separator-strong: rgba(60, 60, 67, 0.26);
  --accent: #007aff;
  --accent-pressed: #0067d8;
  --danger: #ff3b30;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  --small-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --focus: 0 0 0 4px rgba(0, 122, 255, 0.18);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Microsoft YaHei",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100svh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(245, 245, 247, 0.94) 34%),
    var(--bg);
  color: var(--label);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.auth-shell {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(189, 224, 255, 0.88) 0%, rgba(247, 249, 252, 0.96) 58%, #f5f5f7 100%),
    var(--bg);
}

.sky-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sun {
  position: absolute;
  top: clamp(42px, 10vw, 96px);
  right: clamp(30px, 12vw, 170px);
  width: clamp(112px, 14vw, 176px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 32%, rgba(255, 255, 255, 0.9) 0 8%, transparent 9%),
    radial-gradient(circle, #ffd96a 0 48%, #ffb84d 70%, rgba(255, 183, 77, 0.28) 71%);
  box-shadow:
    0 0 0 26px rgba(255, 209, 102, 0.16),
    0 0 90px rgba(255, 184, 77, 0.42);
  animation: sun-breathe 9s ease-in-out infinite;
  transform-origin: center;
}

.cloud {
  position: absolute;
  width: 174px;
  height: 58px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    32px -24px 0 8px rgba(255, 255, 255, 0.82),
    78px -16px 0 14px rgba(255, 255, 255, 0.78),
    118px 0 0 -2px rgba(255, 255, 255, 0.76),
    0 14px 32px rgba(80, 112, 148, 0.08);
  filter: blur(0.1px);
  will-change: transform;
}

.cloud-one {
  top: 20%;
  left: -220px;
  animation: cloud-drift-soft 38s linear infinite;
}

.cloud-two {
  top: 13%;
  left: 32%;
  width: 132px;
  height: 46px;
  opacity: 0.78;
  animation: cloud-float-soft 14s ease-in-out infinite;
}

.cloud-three {
  right: -210px;
  bottom: 25%;
  width: 196px;
  opacity: 0.66;
  animation: cloud-drift-reverse-soft 46s linear infinite;
}

.warm-hill {
  position: absolute;
  bottom: -18%;
  width: 64vw;
  height: 34vh;
  border-radius: 999px 999px 0 0;
  background: rgba(255, 255, 255, 0.22);
  filter: blur(0.2px);
}

.hill-one {
  left: -10vw;
}

.hill-two {
  right: -14vw;
  bottom: -22%;
  background: rgba(232, 243, 255, 0.32);
}

.auth-panel {
  position: relative;
  z-index: 1;
  width: min(414px, 100%);
  padding: 34px 28px 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(1.45);
  animation: sheet-in 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-panel h1,
.brand-row h1 {
  margin: 0;
  color: var(--label);
  letter-spacing: 0;
}

.auth-panel h1 {
  font-size: 36px;
  line-height: 1.08;
  font-weight: 760;
}

.auth-copy {
  margin: 12px 0 26px;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.6;
}

.auth-form,
.editor,
.tag-line,
.search-box {
  display: grid;
  gap: 10px;
}

.auth-form {
  gap: 12px;
}

label,
.search-box span,
.tag-line span {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 650;
}

input,
textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--label);
  outline: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

input {
  min-height: 46px;
  padding: 0 14px;
}

textarea {
  resize: none;
  padding: 16px;
}

input::placeholder,
textarea::placeholder {
  color: var(--tertiary);
}

input:focus,
textarea:focus {
  border-color: rgba(0, 122, 255, 0.34);
  box-shadow: var(--focus);
}

.primary-button,
.ghost-button,
.danger-button,
.icon-button,
.mood-button,
.entry-item {
  min-height: 42px;
  border-radius: 999px;
  transition:
    transform 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.primary-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  padding: 0 18px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(0, 122, 255, 0.22);
}

.primary-button:hover {
  background: var(--accent-pressed);
  border-color: var(--accent-pressed);
  transform: translateY(-1px);
}

.primary-button:active,
.ghost-button:active,
.danger-button:active,
.icon-button:active,
.mood-button:active,
.entry-item:active {
  transform: scale(0.985);
}

.ghost-button,
.icon-button {
  border: 1px solid rgba(60, 60, 67, 0.12);
  background: rgba(255, 255, 255, 0.62);
  color: #555b66;
  padding: 0 14px;
  font-weight: 680;
}

.ghost-button:hover,
.icon-button:hover {
  background: rgba(118, 118, 128, 0.16);
  color: var(--label);
  transform: translateY(-1px) scale(1.01);
}

.danger-button {
  border: 1px solid transparent;
  background: rgba(255, 59, 48, 0.1);
  color: var(--danger);
  padding: 0 16px;
  font-weight: 700;
}

.danger-button:hover {
  background: rgba(255, 59, 48, 0.16);
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
}

.app-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(306px, 380px) 1fr;
  background:
    linear-gradient(180deg, rgba(218, 237, 255, 0.46), rgba(245, 245, 247, 0.94) 38%),
    var(--bg);
  animation: fade-in 220ms ease both;
}

.sidebar {
  min-height: 100svh;
  padding: 18px;
  border-right: 1px solid var(--separator);
  background: var(--sidebar);
  backdrop-filter: blur(28px) saturate(1.55);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand-row,
.action-row,
.editor-topbar,
.editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  padding: 2px 2px 6px;
}

.brand-row h1 {
  font-size: 30px;
  line-height: 1;
  font-weight: 780;
}

.brand-copy {
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(220, 239, 255, 0.82));
  box-shadow:
    0 10px 24px rgba(0, 122, 255, 0.13),
    inset 0 1px rgba(255, 255, 255, 0.86);
}

.brand-cloud,
.empty-cloud,
.entry-empty-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 12px;
  border-radius: 999px;
  background: #5ab8ff;
}

.brand-cloud::before,
.empty-cloud::before,
.entry-empty-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: inherit;
}

.brand-cloud::after,
.empty-cloud::after,
.entry-empty-icon::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: inherit;
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--small-shadow);
  padding: 14px;
}

.stats-row span {
  display: block;
  color: var(--label);
  font-size: 28px;
  font-weight: 760;
  line-height: 1;
}

.stats-row small {
  display: block;
  margin-top: 6px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.35;
}

.stat-icon {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: block;
  margin-bottom: 12px;
  background: rgba(0, 122, 255, 0.12);
  position: relative;
}

.note-icon::before {
  content: "";
  position: absolute;
  inset: 6px 7px;
  border-radius: 3px;
  border: 2px solid var(--accent);
  border-top-width: 5px;
}

.calendar-icon::before {
  content: "";
  position: absolute;
  inset: 7px 6px 6px;
  border-radius: 4px;
  border: 2px solid var(--accent);
}

.calendar-icon::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 12px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.streak-hint {
  min-height: 18px;
  margin: -4px 2px 0;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.4;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr auto;
}

.search-box {
  gap: 0;
}

.search-box input {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: rgba(118, 118, 128, 0.12);
}

.search-box input:focus {
  background: var(--surface);
}

.mood-filter,
.mood-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mood-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 5px;
  border-radius: var(--radius-md);
  background: rgba(118, 118, 128, 0.1);
}

.mood-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--secondary);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 680;
  line-height: 1;
  box-shadow: none;
  transition:
    background-color 110ms ease,
    border-color 110ms ease,
    color 110ms ease;
}

.mood-filter .mood-button {
  width: 100%;
}

.mood-picker .mood-button {
  width: auto;
}

.mood-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mood-button span {
  white-space: nowrap;
}

.mood-button:active {
  transform: none;
}

.mood-button.active {
  background: var(--surface);
  color: var(--label);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.mood-picker .mood-button {
  border-color: var(--separator);
  background: rgba(255, 255, 255, 0.7);
}

.mood-picker .mood-button.active {
  border-color: rgba(0, 122, 255, 0.34);
  background: rgba(0, 122, 255, 0.12);
  color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .mood-button:hover {
    background: rgba(255, 255, 255, 0.32);
    color: var(--label);
  }

  .mood-button.active:hover {
    background: rgba(255, 255, 255, 0.86);
  }

  .mood-picker .mood-button:hover {
    border-color: rgba(0, 122, 255, 0.16);
    background: rgba(255, 255, 255, 0.84);
  }

  .mood-picker .mood-button.active:hover {
    border-color: rgba(0, 122, 255, 0.34);
    background: rgba(0, 122, 255, 0.14);
  }
}

.entry-list {
  flex: 1;
  min-height: 180px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.entry-empty {
  min-height: 150px;
  border: 1px dashed rgba(60, 60, 67, 0.16);
  border-radius: var(--radius-lg);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  padding: 20px;
  color: var(--secondary);
  text-align: center;
  background: rgba(255, 255, 255, 0.44);
}

.entry-empty-icon {
  width: 34px;
  height: 16px;
  margin-bottom: 4px;
  background: #a7cdef;
  opacity: 0.82;
}

.entry-empty strong {
  color: #545963;
  font-size: 14px;
}

.entry-empty p {
  margin: 0;
  color: var(--tertiary);
  font-size: 12px;
  line-height: 1.45;
}

.entry-item {
  width: 100%;
  min-height: 88px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  color: var(--label);
  padding: 13px 14px;
  text-align: left;
}

.entry-item:hover {
  background: rgba(255, 255, 255, 0.84);
}

.entry-item.active {
  border-color: rgba(0, 122, 255, 0.24);
  background: var(--surface);
  box-shadow: var(--small-shadow);
}

.entry-item strong {
  display: block;
  overflow: hidden;
  color: var(--label);
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-item p {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  color: var(--tertiary);
  font-size: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.dot.blank {
  background: #a1a1a6;
}

.dot.happy {
  background: #ff9f0a;
}

.dot.grateful {
  background: #34c759;
}

.dot.tired {
  background: #5856d6;
}

.dot.sad {
  background: #5ac8fa;
}

.dot.angry {
  background: #ff3b30;
}

.editor-shell {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 100svh;
  padding: 28px;
  display: grid;
  background:
    linear-gradient(180deg, rgba(220, 239, 255, 0.72), rgba(255, 255, 255, 0.92) 42%, rgba(245, 245, 247, 0.9) 100%),
    var(--bg);
}

.editor-cloud {
  position: absolute;
  width: 180px;
  height: 58px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    34px -20px 0 8px rgba(255, 255, 255, 0.36),
    92px -10px 0 13px rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.editor-cloud-one {
  top: 58px;
  right: 8%;
  animation: editor-cloud-float 16s ease-in-out infinite;
}

.editor-cloud-two {
  bottom: 72px;
  left: 7%;
  opacity: 0.62;
  transform: scale(0.76);
  animation: editor-cloud-float 18s ease-in-out infinite reverse;
}

.empty-state {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: min(520px, 100%);
  padding: 34px 32px 32px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.74);
  text-align: center;
  box-shadow: 0 20px 60px rgba(59, 104, 145, 0.12);
  backdrop-filter: blur(22px) saturate(1.35);
  animation: sheet-in 340ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.empty-illustration {
  width: 116px;
  height: 86px;
  margin: 0 auto 18px;
  position: relative;
}

.empty-cloud {
  position: absolute;
  top: 3px;
  left: 20px;
  width: 64px;
  height: 28px;
  background: #93cef9;
  opacity: 0.9;
  animation: empty-cloud-float 6s ease-in-out infinite;
}

.empty-cloud::before {
  left: 12px;
  bottom: 8px;
  width: 30px;
  height: 30px;
}

.empty-cloud::after {
  right: 10px;
  bottom: 7px;
  width: 22px;
  height: 22px;
}

.empty-notebook {
  position: absolute;
  left: 38px;
  bottom: 0;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #eef7ff);
  box-shadow: 0 12px 28px rgba(0, 122, 255, 0.14);
  border: 1px solid rgba(0, 122, 255, 0.12);
}

.empty-notebook::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 14px;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.32);
  box-shadow: 0 11px rgba(0, 122, 255, 0.18), 0 22px rgba(0, 122, 255, 0.12);
}

.empty-state h2 {
  margin: 0;
  color: var(--label);
  font-size: 32px;
  font-weight: 760;
  letter-spacing: 0;
}

.empty-state p {
  margin: 10px auto 22px;
  color: var(--secondary);
  max-width: 330px;
  line-height: 1.65;
}

.editor {
  width: min(920px, 100%);
  min-height: calc(100svh - 56px);
  justify-self: center;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 16px;
  padding: 8px 0 0;
  animation: sheet-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.editor-topbar {
  color: var(--secondary);
}

.editor-topbar input {
  width: 160px;
  min-height: 40px;
  border: 1px solid var(--separator);
  background: rgba(255, 255, 255, 0.72);
}

#saveStatus {
  margin: 0;
  color: var(--tertiary);
  font-size: 13px;
}

.title-input {
  min-height: 62px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--label);
  font-size: 38px;
  font-weight: 780;
  letter-spacing: 0;
}

.title-input:focus {
  box-shadow: none;
}

.tag-line {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.tag-line input {
  min-height: 42px;
  border: 1px solid var(--separator);
  background: rgba(255, 255, 255, 0.74);
}

.content-input {
  min-height: 380px;
  border: 1px solid var(--separator);
  border-radius: 24px;
  background: var(--surface);
  color: var(--label);
  box-shadow: 0 1px rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1.82;
}

.editor-actions {
  padding-top: 2px;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
  }
}

@keyframes sun-breathe {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: saturate(1) brightness(1);
    box-shadow:
      0 0 0 26px rgba(255, 209, 102, 0.14),
      0 0 82px rgba(255, 184, 77, 0.36);
  }
  50% {
    transform: translate3d(-8px, 10px, 0) scale(1.045);
    filter: saturate(1.06) brightness(1.04);
    box-shadow:
      0 0 0 34px rgba(255, 209, 102, 0.19),
      0 0 110px rgba(255, 184, 77, 0.5);
  }
}

@keyframes cloud-drift-soft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(calc((100vw + 440px) * 0.25), -10px, 0);
  }
  50% {
    transform: translate3d(calc((100vw + 440px) * 0.5), 8px, 0);
  }
  75% {
    transform: translate3d(calc((100vw + 440px) * 0.75), -6px, 0);
  }
  100% {
    transform: translate3d(calc(100vw + 440px), 0, 0);
  }
}

@keyframes cloud-drift-reverse-soft {
  0% {
    transform: translate3d(0, 0, 0) scale(0.92);
  }
  25% {
    transform: translate3d(calc((-100vw - 440px) * 0.25), 8px, 0) scale(0.92);
  }
  50% {
    transform: translate3d(calc((-100vw - 440px) * 0.5), -12px, 0) scale(0.92);
  }
  75% {
    transform: translate3d(calc((-100vw - 440px) * 0.75), 6px, 0) scale(0.92);
  }
  100% {
    transform: translate3d(calc(-100vw - 440px), 0, 0) scale(0.92);
  }
}

@keyframes cloud-float-soft {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.86);
  }
  25% {
    transform: translate3d(12px, -8px, 0) scale(0.86);
  }
  50% {
    transform: translate3d(26px, 11px, 0) scale(0.86);
  }
  75% {
    transform: translate3d(10px, 7px, 0) scale(0.86);
  }
}

@keyframes editor-cloud-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(18px, -12px, 0);
  }
}

@keyframes empty-cloud-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(8px, -6px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--separator);
  }

  .entry-list {
    max-height: 280px;
  }

  .editor-shell {
    min-height: auto;
    padding: 22px 16px 30px;
  }

  .editor {
    min-height: 70svh;
  }
}

@media (max-width: 560px) {
  .auth-shell {
    padding: 16px;
  }

  .auth-panel {
    padding: 28px 20px 22px;
    border-radius: 24px;
  }

  .auth-panel h1,
  .title-input {
    font-size: 30px;
  }

  .sidebar {
    padding: 16px;
  }

  .brand-row,
  .editor-topbar,
  .editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-row {
    align-items: center;
    grid-template-columns: 42px 1fr;
  }

  .brand-row .icon-button {
    grid-column: 1 / -1;
  }

  .action-row,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .mood-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .editor-topbar input,
  .primary-button,
  .ghost-button,
  .danger-button,
  .icon-button {
    width: 100%;
  }

  .tag-line {
    grid-template-columns: 1fr;
  }

  .content-input {
    min-height: 320px;
    border-radius: 20px;
  }
}
