:root {
  color-scheme: light;
  --ink: #432735;
  --muted: #8a6674;
  --paper: #fff3f6;
  --paper-deep: #f7dbe4;
  --blush: #ffc8d8;
  --butter: #ffe6a3;
  --mint: #cfe7d1;
  --leaf: #886074;
  --moss: #a97788;
  --gold: #d79a55;
  --rose: #d95f86;
  --sky: #b6d7dc;
  --line: rgba(126, 68, 91, 0.18);
  --shadow: 0 18px 50px rgba(131, 75, 99, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 184, 207, 0.68), transparent 24rem),
    radial-gradient(circle at 88% 18%, rgba(255, 229, 236, 0.86), transparent 22rem),
    linear-gradient(rgba(255, 244, 248, 0.92), rgba(255, 238, 245, 0.97)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=2200&q=85");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero {
  position: relative;
  min-height: clamp(360px, 58vh, 620px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero__image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(93, 45, 66, 0.68), rgba(217, 95, 134, 0.22) 58%, rgba(255, 200, 216, 0.12)),
    url("./assets/title-card-sep07.jpg");
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(255, 249, 239, 0.46);
  border-radius: 8px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: clamp(360px, 58vh, 620px);
  max-width: 760px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 7vw, 72px);
  color: #fff9ef;
  text-shadow: 0 2px 18px rgba(67, 39, 53, 0.34);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.feed h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.96;
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 8vw, 6.2rem);
  text-wrap: balance;
}

.hero__copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 249, 239, 0.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.workspace {
  display: grid;
  grid-template-columns: 290px minmax(320px, 430px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.workspace--feed-focus {
  grid-template-columns: 290px minmax(0, 1fr);
}

.sidebar-stack {
  display: grid;
  gap: 18px;
}

.panel,
.feed {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 248, 251, 0.9), rgba(255, 248, 251, 0.9)),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(217, 95, 134, 0.08) 28px);
  box-shadow: 0 12px 34px rgba(52, 58, 44, 0.1);
  backdrop-filter: blur(18px);
}

.panel {
  position: relative;
  padding: 18px;
}

.tape {
  position: absolute;
  top: -11px;
  left: 50%;
  width: 92px;
  height: 22px;
  border: 1px solid rgba(36, 48, 40, 0.08);
  background: rgba(255, 200, 216, 0.78);
  transform: translateX(-50%) rotate(-2deg);
}

.tape--gold {
  background: rgba(255, 230, 163, 0.82);
  transform: translateX(-50%) rotate(2deg);
}

.tape--pink {
  background: rgba(255, 182, 204, 0.9);
  transform: translateX(-50%) rotate(1deg);
}

.panel__header,
.feed__header,
.entry__meta,
.entry__actions,
.name-row,
.upload-row,
.composer-actions {
  display: flex;
  align-items: center;
}

.panel__header {
  gap: 10px;
  margin-bottom: 18px;
}

.panel__header h2,
.feed h2,
.entry h3 {
  overflow-wrap: anywhere;
}

.panel__header h2 {
  margin: 0;
  font-size: 1rem;
}

.dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), #b96f9b);
  box-shadow: 0 0 0 5px rgba(68, 98, 74, 0.12);
}

.dot--gold {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(192, 141, 61, 0.18);
}

.field-label {
  display: block;
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(36, 48, 40, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  min-height: 150px;
  padding: 12px;
  line-height: 1.55;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(68, 98, 74, 0.65);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 4px rgba(68, 98, 74, 0.12);
}

.name-row {
  gap: 8px;
}

.identity-panel:empty {
  display: none;
}

.hint,
.status,
.photo-name,
.setup-banner span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.setup-banner {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(192, 141, 61, 0.36);
  border-radius: 8px;
  background: rgba(255, 246, 224, 0.86);
}

.setup-banner strong,
.setup-banner span {
  display: block;
}

.setup-banner code {
  color: var(--leaf);
  font-weight: 700;
}

.notice-panel {
  display: grid;
  gap: 14px;
  background:
    linear-gradient(rgba(255, 242, 247, 0.95), rgba(255, 242, 247, 0.95)),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(217, 95, 134, 0.1) 28px);
}

.notice-copy h2 {
  margin: 0;
  color: #5a3343;
  font-size: 1rem;
  line-height: 1.2;
}

.notice-button,
.notice-card-button {
  display: flex;
  align-items: center;
  border: 1px solid rgba(217, 95, 134, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.notice-button {
  justify-content: flex-start;
  gap: 14px;
  min-height: 54px;
  padding: 9px 12px;
  font-size: 1.08rem;
}

.notice-button:hover,
.notice-card-button:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 95, 134, 0.32);
  background: rgba(255, 255, 255, 0.95);
}

.notice-icon {
  position: relative;
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 200, 216, 0.6);
  color: var(--rose);
}

.notice-icon--small {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

.date-panel {
  display: grid;
  gap: 14px;
  background:
    linear-gradient(rgba(255, 245, 249, 0.94), rgba(255, 245, 249, 0.94)),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(255, 230, 163, 0.14) 28px);
}

.date-panel__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.date-panel--set .date-panel__header {
  display: none;
}

.date-panel__header .eyebrow {
  margin-bottom: 4px;
}

.date-panel__header h2 {
  margin: 0;
  color: #5a3343;
  font-size: 1.02rem;
  line-height: 1.2;
}

.date-panel__icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 200, 216, 0.72), rgba(255, 230, 163, 0.7));
  color: var(--rose);
}

.date-set-button,
.date-edit-button {
  min-height: 44px;
  border: 1px solid rgba(217, 95, 134, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.date-set-button:hover,
.date-edit-button:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 95, 134, 0.34);
  background: rgba(255, 255, 255, 0.95);
}

.date-promise {
  margin: -5px 2px 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
}

.date-promise[hidden] {
  display: none;
}

.date-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(217, 95, 134, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 238, 245, 0.74)),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(217, 95, 134, 0.07) 19px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62), 0 10px 24px rgba(131, 75, 99, 0.1);
}

.date-details[hidden] {
  display: none;
}

.date-display {
  display: block;
  grid-column: 1 / -1;
  color: #5a3343;
  font-weight: 900;
}

.date-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.date-card__calendar {
  display: grid;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid rgba(217, 95, 134, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 18px rgba(131, 75, 99, 0.12);
  text-align: center;
}

.date-card__month {
  display: grid;
  place-items: center;
  min-height: 20px;
  background: rgba(255, 200, 216, 0.84);
  color: #8a4a62;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.date-card__day {
  display: grid;
  place-items: center;
  color: #5a3343;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1;
}

.date-card__main {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.date-card__label {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.date-card__weekday {
  overflow-wrap: anywhere;
  color: #5a3343;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.24rem;
  line-height: 1;
}

.date-card__time,
.date-card__year {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.3;
}

.date-location {
  margin: 0;
  padding: 7px 9px;
  border: 1px dashed rgba(217, 95, 134, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: #5a3343;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.3;
}

.date-countdown {
  justify-self: end;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid rgba(217, 95, 134, 0.2);
  border-radius: 999px;
  background: rgba(255, 200, 216, 0.54);
  color: #8a4a62;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.35;
}

.date-updated {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.45;
}

.date-edit-button {
  grid-column: 1 / -1;
  min-height: 40px;
  margin-top: 0;
  background: rgba(255, 238, 245, 0.86);
  color: var(--rose);
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(67, 39, 53, 0.38);
  backdrop-filter: blur(10px);
}

.modal-shell[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(100%, 430px);
  max-height: min(88vh, 790px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 249, 251, 0.96), rgba(255, 249, 251, 0.96)),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(217, 95, 134, 0.08) 28px);
  box-shadow: 0 24px 70px rgba(67, 39, 53, 0.34);
}

.notice-dialog-card {
  padding: 28px 18px 18px;
}

.date-dialog-card {
  padding: 28px 18px 18px;
}

.composer-dialog-card {
  padding: 28px 18px 18px;
}

.date-dialog-note {
  margin: -6px 42px 18px 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
}

.date-form {
  display: grid;
}

.date-dialog-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.modal-card h2 {
  margin: 0 42px 18px 0;
  color: #5a3343;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  line-height: 1.02;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(217, 95, 134, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--rose);
}

.notice-card-button {
  width: 100%;
  gap: 12px;
  padding: 12px;
  text-align: left;
}

.notice-card-button + .notice-card-button {
  margin-top: 10px;
}

.notice-card-button--new {
  border-color: rgba(230, 57, 103, 0.28);
  background: rgba(255, 248, 251, 0.9);
}

.notice-card-button span:last-child {
  display: grid;
  gap: 2px;
}

.notice-card-button small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.ponchis-card {
  padding: 28px 14px 14px;
}

.ponchis-stage {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.ponchis-bubble {
  position: relative;
  width: 100%;
  min-height: 92px;
  margin-bottom: 18px;
  padding: 18px 18px 22px;
  border: 7px solid rgba(255, 255, 255, 0.94);
  border-radius: 30px;
  background: #fbd0df;
  color: #694456;
  box-shadow: 0 10px 22px rgba(131, 75, 99, 0.12);
  font-size: clamp(1rem, 4.2vw, 1.18rem);
  font-weight: 900;
  line-height: 1.32;
  text-align: center;
}

.ponchis-bubble::after {
  content: "";
  position: absolute;
  bottom: -27px;
  left: 58%;
  width: 38px;
  height: 38px;
  border-right: 7px solid rgba(255, 255, 255, 0.94);
  border-bottom: 7px solid rgba(255, 255, 255, 0.94);
  background: #fbd0df;
  transform: rotate(45deg);
}

.ponchis-image {
  width: min(92%, 315px);
  max-height: 405px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(131, 75, 99, 0.12));
}

.ponchis-controls {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.ponchis-arrow {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(217, 95, 134, 0.24);
  border-radius: 8px;
  background: rgba(255, 238, 245, 0.86);
  color: var(--rose);
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.ponchis-arrow:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 200, 216, 0.9);
}

.ponchis-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.ponchis-count {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
}

.icon-button,
.reaction-button,
.primary-button,
.photo-picker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(36, 48, 40, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.icon-button:hover,
.reaction-button:hover,
.primary-button:hover,
.photo-picker:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(68, 98, 74, 0.35);
}

.icon-button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.upload-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

#entry-photo {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-picker {
  min-height: 44px;
  padding: 0 14px;
  background: rgba(246, 203, 199, 0.28);
  color: var(--rose);
  font-weight: 800;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 8px;
  min-height: 112px;
  margin-top: 14px;
  border-radius: 8px;
}

.photo-preview__item {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 8px 18px rgba(131, 75, 99, 0.1);
}

.composer-actions {
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.primary-button {
  min-height: 48px;
  padding: 0 18px;
  border-color: rgba(68, 98, 74, 0.2);
  background: var(--leaf);
  color: #fffaf1;
  font-weight: 900;
}

.primary-button:hover {
  background: linear-gradient(135deg, #c84d78, #9f5f87);
}

.primary-button:disabled,
.reaction-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.feed {
  min-height: 420px;
  padding: 18px;
}

.feed__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.feed__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.feed-name-row {
  display: flex;
  flex: 1 1 100%;
  gap: 8px;
}

.feed-name-row input {
  min-width: 0;
  flex: 1;
  background: rgba(255, 255, 255, 0.76);
}

.feed-name-row .icon-button {
  background: rgba(255, 238, 245, 0.9);
  color: #5a3343;
}

.feed-compose-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(217, 95, 134, 0.24);
  border-radius: 8px;
  background: rgba(255, 238, 245, 0.9);
  color: var(--rose);
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.feed-compose-button:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 95, 134, 0.38);
  background: rgba(255, 255, 255, 0.96);
}

.feed-compose-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.feed h2 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.entries {
  display: grid;
  gap: 14px;
  padding-top: 16px;
}

.entry {
  padding: 16px;
  border: 1px solid rgba(36, 48, 40, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 200, 216, 0.48), transparent 6px),
    rgba(255, 255, 255, 0.78);
}

.entry__meta {
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.entry__author {
  color: var(--leaf);
  font-weight: 900;
}

.entry h3 {
  margin: 12px 0 8px;
  font-size: 1.25rem;
}

.entry__mood:empty {
  display: none;
}

.entry__body {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #344237;
  line-height: 1.65;
}

.entry__photo {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  margin-top: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.entry-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 238, 245, 0.58);
}

.entry-carousel__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.entry-carousel__button {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(217, 95, 134, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--rose);
  box-shadow: 0 8px 20px rgba(67, 39, 53, 0.18);
  transform: translateY(-50%);
}

.entry-carousel__button--previous {
  left: 10px;
}

.entry-carousel__button--next {
  right: 10px;
}

.entry-carousel__button:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.entry-carousel__count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(67, 39, 53, 0.66);
  color: #fff9ef;
  font-size: 0.78rem;
  font-weight: 900;
}

.entry__actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.reaction-button {
  min-height: 40px;
  padding: 0 12px;
  color: var(--leaf);
  font-weight: 850;
}

.reaction-button.is-active {
  border-color: rgba(167, 86, 86, 0.28);
  background: rgba(167, 86, 86, 0.1);
  color: var(--rose);
}

.comments {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.comment {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(217, 95, 134, 0.16);
  border-radius: 8px;
  background: rgba(255, 238, 245, 0.78);
  color: #5a3343;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.comment:focus-visible {
  outline: 3px solid rgba(217, 95, 134, 0.26);
  outline-offset: 2px;
}

.comment.is-expanded {
  border-color: rgba(217, 95, 134, 0.28);
  background:
    linear-gradient(rgba(255, 248, 251, 0.88), rgba(255, 238, 245, 0.84)),
    repeating-linear-gradient(0deg, transparent 0 20px, rgba(217, 95, 134, 0.08) 21px);
}

.comment__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comment__text {
  margin: 0;
}

.comment strong {
  color: var(--rose);
}

.comment-like-button {
  display: inline-flex;
  min-width: 44px;
  height: 32px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(217, 95, 134, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.comment-like-button svg {
  width: 15px;
  height: 15px;
}

.comment-like-button.is-active {
  border-color: rgba(217, 95, 134, 0.3);
  background: rgba(255, 200, 216, 0.44);
  color: var(--rose);
}

.comment-like-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.comment__details {
  display: grid;
  gap: 5px;
  padding: 8px 9px;
  border: 1px dashed rgba(217, 95, 134, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
}

.comment__details[hidden] {
  display: none;
}

.comment__detail-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
}

.comment-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.comment-input {
  min-height: 40px;
}

.comment-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 40px;
  flex: 0 0 42px;
  border: 1px solid rgba(217, 95, 134, 0.22);
  border-radius: 8px;
  background: rgba(255, 200, 216, 0.42);
  color: var(--rose);
}

.feed-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.page-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(217, 95, 134, 0.24);
  border-radius: 8px;
  background: rgba(255, 238, 245, 0.84);
  color: var(--rose);
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.page-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 200, 216, 0.86);
}

.page-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.page-status {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.empty-state,
.error-state {
  padding: 30px;
  border: 1px dashed rgba(36, 48, 40, 0.25);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr 1fr;
  }

  .sidebar-stack {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .feed {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .hero {
    min-height: 520px;
  }

  .hero__image {
    background:
      linear-gradient(180deg, rgba(217, 95, 134, 0.04), rgba(93, 45, 66, 0.76)),
      url("./assets/title-card-sep07.jpg");
    background-position: 54% 55%;
    background-size: auto 112%;
  }

  .hero__content {
    position: absolute;
    inset: auto 0 0;
    padding: 24px 22px 42px;
    min-height: auto;
  }

  .hero h1 {
    max-width: 10.8ch;
    font-size: clamp(2.8rem, 13.5vw, 4.05rem);
    line-height: 0.94;
  }

  .hero__copy {
    max-width: 32ch;
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .workspace--feed-focus {
    grid-template-columns: 1fr;
  }

  .sidebar-stack {
    grid-template-columns: 1fr;
  }

  .modal-shell {
    align-items: start;
    padding: 56px 10px 16px;
  }

  .ponchis-card {
    max-height: calc(100vh - 72px);
  }

  .ponchis-image {
    max-height: 360px;
  }

  .composer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }

  .feed__header {
    grid-template-columns: 1fr;
  }

  .feed__actions {
    align-items: stretch;
  }

  .feed-name-row {
    width: 100%;
  }

  .feed-compose-button {
    flex: 1;
  }

  .feed-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .page-button {
    width: 100%;
  }
}
