.day-heading,
.section-heading,
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero {
  position: relative;
  min-height: 230px;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: transparent;
  box-shadow: none;
}

.hero-copy,
.hero-friend,
.hero .quiet-button {
  position: relative;
  z-index: 1;
}
.hero-copy {
  flex: 1 1 560px;
}
.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--plum);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.13em;
}
h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin: 0.55rem 0 0.8rem;
  font-family: "Jua", "Noto Sans KR", sans-serif;
  font-size: clamp(2.25rem, 5vw, 4.35rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

h1 em {
  color: var(--plum);
  font-family: Georgia, "Noto Serif KR", serif;
  font-weight: 600;
}
h2 {
  margin-bottom: 0;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  letter-spacing: -0.035em;
}
.hero-copy > p:last-child {
  margin: 0;
  color: var(--muted);
}

.quiet-button,
.examples button {
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--plum-dark);
  background: var(--paper);
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
}

.brief-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.brief-card,
.week-panel,
.assistant-panel,
.sync-note {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: none;
}

.brief-card {
  min-height: 185px;
  padding: 1.4rem;
}
.primary-card {
  background: var(--paper);
}
.card-heading > div {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.card-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: var(--plum-dark);
  font-weight: 600;
}

.card-icon.lilac {
  background: var(--subtle);
}
.card-icon.peach {
  background: var(--peach);
}
.card-icon.mint {
  background: var(--mint);
}

.count {
  display: grid;
  min-width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 99px;
  color: var(--plum);
  background: var(--subtle);
  font-weight: 600;
}

.mini-label {
  color: var(--muted);
  font-size: 0.78rem;
}
.event-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}
.event {
  display: grid;
  grid-template-columns: 5px 1fr;
  gap: 0.7rem;
  align-items: stretch;
}
.event::before {
  border-radius: 99px;
  background: var(--event-color, var(--plum));
  content: "";
}
.event strong,
.event span {
  display: block;
}
.event strong {
  line-height: 1.5;
}
.event span,
.empty {
  color: var(--muted);
  font-size: 0.88rem;
}
.empty {
  margin: 1.2rem 0 0;
}

.week-panel {
  margin-top: 1rem;
  padding: clamp(1.35rem, 3vw, 2rem);
}
.section-heading h2 {
  margin-top: 0.35rem;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.3rem;
  border-radius: 50%;
  background: var(--plum);
}
.meetings {
  background: var(--blue);
}
.career {
  background: var(--pink);
}
.personal {
  background: var(--green);
}
.fixed {
  background: var(--amber);
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(105px, 1fr));
  gap: 0.65rem;
  margin-top: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.day-column {
  position: relative;
  min-height: 145px;
  padding: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
}

.day-column:nth-child(3n + 2) {
  background: var(--paper);
}
.day-column:nth-child(3n) {
  background: var(--paper);
}
.day-column.today {
  border-color: var(--accent);
  background: var(--lilac);
}
.day-column.today::after {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  color: var(--plum);
  content: "•";
  font-size: 1.4rem;
}
.day-column time,
.day-column b {
  display: block;
}
.day-column time {
  color: var(--muted);
  font-size: 0.76rem;
}
.day-column b {
  margin: 0.1rem 0 0.7rem;
  font-family: Georgia, serif;
  font-size: 1.3rem;
}
.day-event {
  margin-top: 0.45rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--event-color, var(--plum));
  font-size: 0.76rem;
  line-height: 1.5;
}

.assistant-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.55fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  background: var(--paper);
}

.assistant-copy {
  position: relative;
  color: var(--ink);
}
.assistant-copy p:not(.eyebrow) {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.assistant-panel .eyebrow {
  color: var(--accent-ink);
}

.assistant-face {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 1.1rem;
  place-items: center;
  border-radius: 17px;
  color: var(--plum-dark);
  background: var(--peach);
  font-weight: 600;
  transform: rotate(-3deg);
}

form label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 500;
}
.command-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}
.command-row input,
.command-row button {
  min-height: 54px;
  border-radius: 15px;
}
.command-row input {
  min-width: 0;
  padding: 0 1rem;
  color: var(--ink);
  border: 2px solid transparent;
  background: var(--paper);
}

.command-row button,
.proposal-actions a,
.proposal-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 13px;
  color: var(--plum-dark);
  background: var(--peach);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}
.command-row button:hover,
.proposal-actions a:hover,
.proposal-actions button:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}
.command-row button:disabled {
  cursor: wait;
  filter: saturate(0.6);
}
#command-form.is-submitting .command-row button::after {
  width: 0.75rem;
  height: 0.75rem;
  margin-left: 0.45rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: schedule-spinner 700ms linear infinite;
}
@keyframes schedule-spinner {
  to {
    transform: rotate(360deg);
  }
}
.field-help,
.field-error {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
}
.field-help {
  color: var(--muted);
}
.field-error {
  color: var(--ink);
  font-weight: 600;
}
.field-error[hidden] {
  display: none;
}
.command-row input[aria-invalid="true"] {
  border-color: var(--pink);
}

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}
.examples button {
  min-height: 36px;
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
  box-shadow: none;
  font-size: 0.78rem;
}
.form-status {
  grid-column: 2;
  min-height: 1.5rem;
  margin: -1.5rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.proposal {
  grid-column: 1 / -1;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--subtle);
}
.proposal dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem 1rem;
  margin: 0;
}
.proposal dt {
  color: var(--muted);
}
.proposal dd {
  margin: 0;
  font-weight: 600;
}
.proposal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.proposal-actions button.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
}

.sync-note {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  color: var(--muted);
  font-size: 0.86rem;
  background: var(--butter);
}

.sync-note > span {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--plum);
  background: var(--subtle);
  font-weight: 600;
}
.sync-note strong {
  color: var(--ink);
}
.sync-note p {
  margin: 0.15rem 0 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .brief-grid {
    grid-template-columns: 1fr;
  }
  .brief-card {
    min-height: 155px;
  }
  .assistant-panel {
    grid-template-columns: 1fr;
  }
  .form-status {
    grid-column: 1;
    margin: -0.7rem 0 0;
  }
}

@media (max-width: 600px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 285px;
    padding: 1.35rem;
    border-radius: 25px;
  }
  .hero-copy {
    grid-column: 1 / -1;
  }
  .hero .quiet-button {
    align-self: end;
    justify-self: end;
  }
  .command-row {
    grid-template-columns: 1fr;
  }
  .command-row button {
    width: 100%;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* The watercolor stays as a scene behind the schedule instead of a digital card effect. */
.hero {
  border-radius: 14px;
  background: rgb(255 253 245 / 42%);
  box-shadow: none;
  backdrop-filter: blur(1px);
}
.brief-card,
.week-panel,
.assistant-panel,
.sync-note,
.day-column,
.proposal {
  box-shadow: none;
}
.brief-card,
.week-panel,
.assistant-panel,
.sync-note {
  border-radius: 12px;
}
.day-column,
.proposal,
.empty,
.assistant-face,
.command-row input,
.command-row button,
.proposal-actions a,
.proposal-actions button {
  border-radius: 10px;
}
:root[saved-theme="dark"] .hero,
:root[saved-theme="dark"] .brief-card,
:root[saved-theme="dark"] .week-panel,
:root[saved-theme="dark"] .assistant-panel,
:root[saved-theme="dark"] .sync-note,
:root[saved-theme="dark"] .day-column,
:root[saved-theme="dark"] .proposal {
  background-color: rgb(46 58 48 / 86%);
}

/* A hand-painted calendar room: grounded surfaces, not glossy dashboard cards. */
.hero {
  border-color: color-mix(in srgb, var(--line) 78%, var(--green));
  border-radius: 14px;
  background: rgb(255 253 245 / 42%);
  box-shadow: none;
  backdrop-filter: blur(1px);
}
.hero-friend img,
.assistant-face img {
  filter: drop-shadow(0 5px 5px rgb(61 81 62 / 14%));
}
.brief-card,
.week-panel,
.assistant-panel,
.sync-note,
.day-column,
.proposal {
  border-color: color-mix(in srgb, var(--line) 88%, var(--green));
  box-shadow: none;
}
.brief-card,
.week-panel,
.assistant-panel,
.sync-note {
  border-radius: 12px;
}
.day-column,
.proposal,
.empty {
  border-radius: 10px;
}
.primary-card,
.assistant-panel {
  background: var(--lilac);
}
.quiet-button,
.examples button,
.count {
  border-radius: 12px;
}
.command-row button,
.proposal-actions a,
.proposal-actions button {
  background: var(--green);
}

@media (prefers-reduced-motion: reduce) {
  .quiet-button {
    transition: none;
  }
}

/* Final forest palette after the page-specific rhythm layers. */
.hero {
  border-color: color-mix(in srgb, var(--line) 78%, var(--green));
  border-radius: 14px;
  background: rgb(255 253 245 / 42%);
  box-shadow: none;
  backdrop-filter: blur(1px);
}
.brief-card,
.week-panel,
.assistant-panel,
.sync-note,
.day-column,
.proposal {
  border-color: color-mix(in srgb, var(--line) 88%, var(--green));
  box-shadow: none;
}

/* Today's list leads; upcoming items and the week are supporting detail. */
.hero {
  min-height: 0;
  padding: 0 0 1.25rem;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.hero-copy {
  flex: 1 1 auto;
}
h1 {
  margin: 0.3rem 0 0.45rem;
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
}
.eyebrow {
  color: var(--accent-ink);
  letter-spacing: 0.08em;
}
.quiet-button,
.examples button {
  min-height: 44px;
  border-radius: 2px;
}
.brief-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}
.brief-card,
.week-panel,
.assistant-panel,
.sync-note {
  min-height: 0;
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}
.brief-card {
  padding: 1.25rem;
}
.primary-card {
  grid-row: span 2;
  border-top: 3px solid var(--accent);
  background: var(--paper);
}
.card-icon {
  display: none;
}
.count {
  background: var(--subtle);
  border-radius: 0;
}
.event-list {
  gap: 0.9rem;
}
.event {
  grid-template-columns: 3px minmax(0, 1fr);
}
.day-column,
.day-column:nth-child(3n + 2),
.day-column:nth-child(3n) {
  border-radius: 0;
  background: var(--paper);
}
.day-column.today {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.day-column.today::after {
  display: none;
}
.assistant-panel {
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.5fr);
  gap: 1.5rem;
  background: var(--paper);
}
.assistant-copy,
.assistant-copy p:not(.eyebrow),
.assistant-panel .eyebrow,
form label,
.form-status,
.proposal {
  color: var(--ink);
}
.assistant-copy p:not(.eyebrow),
.form-status {
  color: var(--muted);
}
.assistant-face {
  display: none;
}
.command-row input {
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: var(--paper);
}
.command-row button,
.proposal-actions a,
.proposal-actions button {
  min-height: 48px;
  border-radius: 2px;
  color: var(--paper);
  background: var(--accent);
}
.examples button {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
}
.proposal {
  border-color: var(--line);
  border-radius: 0;
  background: var(--subtle);
}
.proposal dt {
  color: var(--muted);
}
.proposal-actions button.secondary {
  color: var(--ink);
  border-color: var(--line);
}
.sync-note {
  background: var(--subtle);
}
.sync-note > span {
  background: var(--paper);
}
@media (max-width: 860px) {
  .brief-grid {
    grid-template-columns: 1fr 1fr;
  }
  .primary-card {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .assistant-panel {
    grid-template-columns: 1fr;
  }
}

/* Final painted-surface overrides after legacy schedule layers. */
.hero {
  border-radius: 14px;
  background: rgb(255 253 245 / 42%);
  box-shadow: none;
  backdrop-filter: blur(1px);
}
.brief-card,
.week-panel,
.assistant-panel,
.sync-note,
.day-column,
.proposal {
  box-shadow: none;
}
.brief-card,
.week-panel,
.assistant-panel,
.sync-note {
  border-radius: 12px;
}
.day-column,
.proposal,
.empty,
.assistant-face,
.command-row input,
.command-row button,
.proposal-actions a,
.proposal-actions button {
  border-radius: 10px;
}
:root[saved-theme="dark"] .hero,
:root[saved-theme="dark"] .brief-card,
:root[saved-theme="dark"] .week-panel,
:root[saved-theme="dark"] .assistant-panel,
:root[saved-theme="dark"] .sync-note,
:root[saved-theme="dark"] .day-column,
:root[saved-theme="dark"] .proposal {
  background-color: rgb(46 58 48 / 86%);
}

/* The schedule keeps its calm hierarchy while preserving an explicit reduced-motion path. */
[data-ui-section] {
  animation: schedule-section-enter 260ms ease-out both;
}

.brief-card,
.day-column,
.examples button,
.quiet-button {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.brief-card:hover,
.brief-card:focus-within,
.day-column:hover,
.examples button:hover,
.examples button:focus-visible,
.quiet-button:hover,
.quiet-button:focus-visible {
  transform: translateY(-2px);
}

.day-column:focus-within {
  border-color: var(--focus);
}

@keyframes schedule-section-enter {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-ui-section] {
    animation: none;
  }

  .brief-card,
  .day-column,
  .examples button,
  .quiet-button,
  .command-row button,
  .proposal-actions a,
  .proposal-actions button {
    transition: none;
  }
  #command-form.is-submitting .command-row button::after {
    animation: none;
  }
}
@media (max-width: 600px) {
  .hero {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 0;
    padding: 0 0 1.25rem;
  }
  .hero-copy {
    grid-column: auto;
  }
  .hero .quiet-button {
    align-self: flex-start;
    justify-self: auto;
  }
  .brief-grid {
    grid-template-columns: 1fr;
  }
  .primary-card {
    grid-column: auto;
  }
  .section-heading {
    align-items: flex-start;
  }
  .week-strip {
    grid-template-columns: repeat(7, minmax(112px, 1fr));
  }
}

/* Keep the seven-day board and form intact while bringing back the warm guide. */
.hero {
  display: flex;
  align-items: center;
  min-height: 210px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--hero);
  box-shadow: var(--shadow);
}
.hero-friend {
  display: grid;
  flex: 0 0 132px;
  justify-items: center;
  align-self: end;
  color: var(--plum-dark);
  font-size: 0.74rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}
.hero-friend img {
  width: min(100%, 112px);
  height: auto;
  filter: drop-shadow(0 10px 12px rgb(87 65 83 / 14%));
}
.quiet-button,
.examples button {
  border-radius: 999px;
}
.quiet-button:active,
.examples button:active {
  background: var(--accent-soft);
}
.empty {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--subtle);
}
.brief-card,
.week-panel,
.assistant-panel,
.sync-note {
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.primary-card {
  border-top: 1px solid var(--line);
  background: var(--lilac);
}
.brief-card:nth-child(2) {
  background: var(--peach);
}
.brief-card:nth-child(3) {
  background: var(--mint);
}
.card-icon {
  display: grid;
}
.count {
  border-radius: 999px;
  background: var(--paper);
}
.day-column,
.day-column:nth-child(3n + 2),
.day-column:nth-child(3n) {
  border-radius: 18px;
  background: var(--paper);
}
.day-column:nth-child(3n + 2) {
  background: var(--peach);
}
.day-column:nth-child(3n) {
  background: var(--mint);
}
.day-column.today {
  border: 2px solid var(--plum);
  background: var(--lilac);
}
.day-column.today::after {
  display: block;
}
.assistant-panel {
  background: var(--lilac);
}
.assistant-face {
  display: grid;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--paper);
}
.assistant-face img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.command-row input {
  border: 1px solid var(--line);
  border-radius: 14px;
}
.command-row button,
.proposal-actions a,
.proposal-actions button {
  border-radius: 14px;
  color: var(--paper);
  background: var(--accent);
}
.proposal {
  border-radius: 16px;
  background: var(--paper);
}
.sync-note {
  background: var(--butter);
}
@media (max-width: 860px) {
  .assistant-panel {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    min-height: 0;
    padding: 1.25rem;
  }
  .hero-copy {
    grid-column: 1;
    min-width: 0;
  }
  .hero-friend {
    grid-column: 2;
    grid-row: 1;
    width: 82px;
    font-size: 0.66rem;
    white-space: normal;
  }
  .hero .quiet-button {
    grid-column: 1 / -1;
    justify-self: end;
  }
  h1 {
    font-size: clamp(1.8rem, 7vw, 2.35rem);
  }
  .brief-grid {
    grid-template-columns: 1fr;
  }
  .assistant-panel {
    grid-template-columns: 1fr;
  }
}

/* Applied last: the watercolor is the scenery, not a digital card decoration. */
.hero {
  border-radius: 14px;
  background: rgb(255 253 245 / 42%);
  box-shadow: none;
  backdrop-filter: blur(1px);
}
.brief-card,
.week-panel,
.assistant-panel,
.sync-note,
.day-column,
.proposal {
  box-shadow: none;
}
.brief-card,
.week-panel,
.assistant-panel,
.sync-note {
  border-radius: 12px;
}
.day-column,
.proposal,
.empty,
.assistant-face,
.command-row input,
.command-row button,
.proposal-actions a,
.proposal-actions button {
  border-radius: 10px;
}
:root[saved-theme="dark"] .hero,
:root[saved-theme="dark"] .brief-card,
:root[saved-theme="dark"] .week-panel,
:root[saved-theme="dark"] .assistant-panel,
:root[saved-theme="dark"] .sync-note,
:root[saved-theme="dark"] .day-column,
:root[saved-theme="dark"] .proposal {
  background-color: rgb(46 58 48 / 86%);
}
