:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --card: #fffcf7;
  --ink: #392e2d;
  --wine: #802f42;
  --muted: #756861;
  --line: #e5dcd2;
  --blush: #f0e3df;
  --serif: "Songti SC", "Noto Serif CJK SC", "STSong", "SimSun", serif;
  --radius: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
input:focus, textarea:focus { outline: 2px solid #a26370; outline-offset: 2px; }
::selection { background: #e8c9cb; }
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.shell { max-width: 1200px; margin: auto; padding: 0 40px; }
.topbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { font: 34px Georgia, serif; letter-spacing: -1.6px; color: var(--wine); }
.brand span { color: #b27e78; }
.topbar-label { font-size: 12px; letter-spacing: 3px; color: var(--muted); }
.quiet-button, .icon-button, .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  gap: 9px;
}
.quiet-button {
  font-size: 13px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 24px;
}
.quiet-button:hover { background: var(--card); border-color: #c4aaa0; color: var(--wine); }
.quiet-button svg { width: 16px; }
.icon-button { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; }
.icon-button:hover { color: var(--wine); background: #eee5dc; }
.text-button { font-size: 13px; color: var(--wine); min-height: 44px; padding: 0; text-align: left; justify-content: flex-start; gap: 12px; }
.text-button span { font-size: 17px; }
.hero { display: grid; grid-template-columns: 1fr .7fr; gap: 40px; padding: 36px 0 30px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 1.5px; color: var(--wine); margin: 0 0 14px; }
.eyebrow > span { width: 18px; height: 1px; background: currentColor; }
h1 { font: 400 clamp(36px, 3.4vw, 48px)/1.45 var(--serif); letter-spacing: 2px; margin: 0; }
h1 em { font-style: normal; color: var(--wine); }
.hero-note { font-size: 13px; line-height: 1.9; letter-spacing: .3px; color: var(--muted); margin: 14px 0 20px; }
.people { display: flex; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.avatar-stack { display: flex; }
.avatar { display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: #e8d5ce; border: 2px solid var(--paper); color: #7e4a48; font-family: var(--serif); font-size: 13px; }
.avatar.second { background: #dfe3d6; margin-left: -8px; color: #59634e; }
.people-divider { width: 1px; height: 12px; background: #d8ccc0; }
.people-label { font-size: 11px; color: var(--muted); }
.hero-art { position: relative; height: 280px; display: flex; justify-content: center; align-items: center; isolation: isolate; }
.orbit { position: absolute; width: 230px; height: 230px; border: 1px solid #e4d5c7; border-radius: 50%; z-index: -1; }
.orbit.two { width: 270px; height: 270px; border-style: dashed; border-color: #e8dcd0; transform: rotate(-20deg); }
.little-letter { width: 200px; height: 140px; background: #e7cebf; position: relative; transform: rotate(-12deg); box-shadow: 2px 17px 30px #85655318; border-radius: 3px; }
.letter-lines { position: absolute; top: -35px; left: 16px; width: 170px; height: 146px; padding: 22px; background: #fffaf0; border: 1px solid #ecdecc; transform: rotate(5deg); box-shadow: 0 0 6px #9578630d; }
.letter-lines::before { content: "dearest you,"; font: italic 21px Georgia, serif; color: #a2716f; display: block; margin-bottom: 15px; }
.letter-lines span { height: 1px; background: #e9ded0; display: block; margin: 12px 0; }
.letter-lines span:last-child { width: 65%; }
.envelope-fold { position: absolute; inset: 0; background: linear-gradient(145deg, transparent 49.4%, #d8b8a644 50%, transparent 50.6%), linear-gradient(215deg, transparent 49.4%, #d8b8a644 50%, transparent 50.6%); background-color: #ebd9cb; clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); border-radius: 3px; }
.wax { position: absolute; left: 82px; top: 59px; width: 36px; height: 36px; border: 3px double #a26466; border-radius: 50%; background: #954756; box-shadow: 1px 3px 5px #77313b22; display: grid; place-items: center; color: #e7c4b8; }
.wax svg { width: 17px; height: 17px; stroke-width: 1; }
.art-caption { position: absolute; bottom: 23px; left: 50%; transform: translateX(-45%) rotate(-7deg); font: italic 29px Georgia, serif; color: #986466; white-space: nowrap; letter-spacing: -.5px; }
.art-star { position: absolute; color: #b29473; font-size: 29px; }
.star-one { left: 12%; top: 32px; }
.star-two { right: 12%; bottom: 65px; font-size: 19px; }
.art-date { position: absolute; bottom: 0; font-size: 9px; letter-spacing: 1.5px; color: var(--muted); }
.section-rule { display: flex; justify-content: space-between; gap: 12px; padding: 17px 0; border-block: 1px solid var(--line); font-size: 12px; letter-spacing: 1px; color: var(--muted); }
.section-rule time { font-size: 11px; letter-spacing: .3px; }
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  grid-template-areas: "feed together" "feed sidebar";
  grid-template-rows: auto 1fr;
  gap: 24px;
  padding: 28px 0 48px;
  align-items: start;
}
.feed-column { grid-area: feed; min-width: 0; }
.composer-card { background: var(--card); padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 16px #583a2c04; }
.composer-heading { display: flex; align-items: center; justify-content: space-between; }
.mini-label { font-size: 11px; letter-spacing: 1.5px; color: var(--muted); margin: 0 0 9px; }
h2 { font: 400 25px/1.5 var(--serif); letter-spacing: .5px; margin: 0; }
.tiny-heart { font: 30px Georgia, serif; color: #b38c83; }
.composer-prompt { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 62px; background: #f7f2eb; border: 1px solid #e9e0d6; border-radius: 10px; margin-top: 19px; padding: 16px; text-align: left; color: var(--muted); font-size: 14px; line-height: 1.6; }
.composer-prompt:hover { border-color: #b78887; background: #f5eee6; }
.composer-prompt > svg { width: 28px; height: 28px; padding: 5px; background: var(--wine); color: var(--card); border-radius: 50%; }
.composer-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.composer-actions button { display: flex; align-items: center; gap: 9px; padding: 12px 9px; background: transparent; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-align: left; min-height: 68px; }
.composer-actions button:hover { color: var(--wine); border-color: #c4aaa0; background: #f8f1ec; }
.action-icon { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; background: #f3e7e2; color: var(--wine); border-radius: 9px; }
.composer-actions button:nth-child(2) .action-icon { background: #e9ece1; color: #5e6a51; }
.composer-actions button:nth-child(3) .action-icon { background: #f2e8d8; color: #896746; }
.action-icon svg { width: 18px; height: 18px; }
.action-copy { display: grid; gap: 5px; }
.action-copy strong { font-size: 12px; font-weight: 500; }
.action-description { font-size: 10px; color: var(--muted); line-height: 1.5; }
.feed-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 18px; gap: 8px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: #eee8df; border-radius: 28px; }
.tabs button { background: transparent; border: 0; border-radius: 22px; min-height: 40px; padding: 0 18px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.tabs button.active { color: var(--wine); background: var(--card); box-shadow: 0 2px 5px #5031220a; }
.tabs button:hover { color: var(--wine); }
.feed-toolbar svg { width: 18px; height: 18px; }
.feed-status { font-size: 14px; color: var(--muted); line-height: 1.8; margin: 18px 0; }
.feed { display: grid; gap: 18px; }
.entry-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.entry-content { padding: 26px; }
.entry-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.entry-person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.entry-person .avatar { border: 0; flex-shrink: 0; width: 38px; height: 38px; }
.entry-person-name { font-size: 13px; line-height: 1.8; max-width: 220px; overflow-wrap: anywhere; }
.entry-date { font-size: 11px; color: var(--muted); }
.entry-top .icon-button { margin: -4px -8px -4px 0; }
.entry-top .icon-button svg { width: 17px; height: 17px; }
.entry-title { font: 400 23px/1.6 var(--serif); margin: 0 0 9px; overflow-wrap: anywhere; }
.entry-body { font-size: 15px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; color: #62554e; }
.entry-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #eee5dc; color: var(--muted); font-size: 11px; }
.entry-bottom svg { width: 17px; height: 17px; color: #a16c6b; }
.entry-photo { width: 100%; max-height: 550px; object-fit: contain; background: #ede4d9; display: block; min-height: 160px; }
.photo-error { padding: 20px; color: var(--muted); text-align: center; font-size: 13px; }
.locked-letter { background: repeating-linear-gradient(0deg, #faf2e9 0, #faf2e9 31px, #e9ded344 32px); padding: 27px 24px; border: 1px solid #eadbd0; border-radius: 10px; }
.locked-letter > svg { width: 24px; height: 24px; color: #a36e69; margin-bottom: 12px; }
.locked-letter h3 { font: 400 22px/1.6 var(--serif); margin: 0 0 12px; overflow-wrap: anywhere; }
.locked-letter p { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 0; }
.empty-state { padding: 42px 24px; text-align: center; border: 1px dashed #cfb9aa; border-radius: var(--radius); background: #faf7f1; }
.empty-state > svg { width: 40px; height: 40px; color: #a87669; margin-bottom: 16px; stroke-width: 1; }
.empty-state h3 { font: 400 24px/1.6 var(--serif); margin: 0 0 12px; }
.empty-state p { font-size: 14px; color: var(--muted); line-height: 1.9; margin: 0 0 20px; }
.empty-state .text-button { background: var(--wine); color: var(--card); padding: 0 20px; border-radius: 24px; }
.empty-state .text-button:hover { background: #682738; }
.more-button { display: flex; align-items: center; justify-content: center; gap: 20px; background: var(--card); border: 1px solid var(--line); width: 100%; min-height: 48px; margin-top: 18px; color: var(--muted); font-size: 13px; border-radius: 10px; }
.together-card { grid-area: together; background: #eee2d9; padding: 26px 23px 20px; position: relative; overflow: hidden; text-align: center; border-radius: var(--radius); border: 1px solid #e0d0c4; }
.together-card > .mini-label { color: #755d50; }
.together-people { display: flex; justify-content: center; align-items: center; gap: 14px; font: 19px/1.6 var(--serif); margin: 17px 0 12px; overflow-wrap: anywhere; }
.together-people svg { width: 15px; height: 15px; color: #a86c67; }
.together-people span { max-width: 90px; }
.days-label { font-size: 12px; color: #755d50; margin: 0; }
.day-count { font: 64px/1.2 Georgia, serif; letter-spacing: -2px; color: var(--wine); margin: 9px 0; }
.day-count small { font: 12px var(--serif); letter-spacing: 1px; margin-left: 8px; }
.since-label { font-size: 11px; color: #755d50; margin: 8px 0; line-height: 1.8; }
.together-card .text-button { font-size: 12px; position: relative; z-index: 1; }
.card-corner { position: absolute; width: 160px; height: 160px; border: 1px solid #c1a58b44; border-radius: 50%; right: -85px; bottom: -55px; }
.sidebar { grid-area: sidebar; display: grid; gap: 20px; min-width: 0; }
.future-card { padding: 25px 23px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.future-icon { color: #a27b66; width: 29px; height: 29px; stroke-width: 1; margin-bottom: 16px; }
.future-card h2 { font-size: 22px; }
.future-card > p:not(.mini-label) { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 12px 0 8px; }
.future-card .text-button { font-size: 12px; }
.poem-card { display: flex; flex-direction: column; gap: 13px; padding: 25px 23px; background: #783144; border-radius: var(--radius); color: #fff6eb; }
.poem-card > span:first-child { font-size: 12px; color: #ead2c9; line-height: 1.8; }
.poem-card strong { font: 400 20px/1.7 var(--serif); letter-spacing: .5px; }
.poem-link { display: flex; justify-content: space-between; align-items: center; font-size: 12px; min-height: 32px; margin-top: 2px; color: #f1d9cc; }
.poem-link svg { width: 18px; }
.poem-card:hover { background: #682738; }
.space-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 5px 0; }
.space-stats > div { display: grid; gap: 7px; text-align: center; border-right: 1px solid var(--line); }
.space-stats > div:last-child { border: 0; }
.space-stats strong { font: 26px Georgia, serif; color: #875d4c; }
.space-stats span { font-size: 11px; color: var(--muted); }
footer { display: flex; justify-content: space-between; gap: 16px; padding: 25px 0 28px; border-top: 1px solid var(--line); font-size: 10px; letter-spacing: 1px; color: var(--muted); }
footer span:last-child { font: 12px var(--serif); letter-spacing: .5px; }
.access-message { text-align: center; padding: 65px 20px; }
#access-form { max-width: 420px; margin: 24px auto 16px; }
#access-form .field { text-align: left; }
.access-message > svg { color: #ac8077; width: 34px; height: 34px; margin-bottom: 20px; }
.access-message p { font-size: 14px; line-height: 1.9; color: var(--muted); }
dialog { background: var(--card); color: var(--ink); border: 1px solid #e5d9cc; border-radius: 20px; padding: 28px 30px 30px; width: min(520px, calc(100% - 32px)); max-height: calc(100svh - 40px); overflow: auto; box-shadow: 0 24px 100px #3818212b; }
dialog::backdrop { background: #34232166; backdrop-filter: blur(5px); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; margin: -6px -10px 6px 0; }
.dialog-top .mini-label { margin: 0; font-size: 10px; }
.dialog-top .icon-button svg { width: 18px; height: 18px; }
dialog h2 { font-size: 27px; margin-bottom: 24px; }
.field { display: block; margin: 0 0 20px; font-size: 13px; color: #6a584c; line-height: 1.8; }
.field-label { display: block; margin-bottom: 8px; }
.optional { font-size: 11px; color: var(--muted); margin-left: 5px; }
.field input:not([type=radio]):not([type=file]), .field textarea { display: block; width: 100%; min-width: 0; border: 1px solid #dcd0c3; border-radius: 9px; padding: 12px 13px; color: var(--ink); background: #faf6ef; margin-top: 8px; font-size: 16px; line-height: 1.7; }
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #89776b; }
.field small { display: block; font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 7px; }
.author-choices { display: flex; gap: 10px; }
.author-choices label { position: relative; min-width: 0; max-width: 50%; }
.author-choices input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.author-choices span { display: block; border: 1px solid #e4d7cc; border-radius: 24px; padding: 9px 20px; color: var(--muted); background: #f9f3eb; font-size: 13px; min-height: 44px; overflow-wrap: anywhere; }
.author-choices input:checked + span { border-color: #b78887; background: #f0e1db; color: var(--wine); }
.author-choices input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 3px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; border: 1px solid var(--wine); border-radius: 10px; background: var(--wine); color: #fff3e7; padding: 12px 22px; font-size: 14px; letter-spacing: .5px; }
.primary-button svg { width: 18px; height: 18px; }
.primary-button:hover { background: #682738; }
.full { width: 100%; }
.name-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 15px; }
.dialog-description { font-size: 14px; line-height: 1.9; color: var(--muted); margin: -8px 0 22px; }
.form-error { color: #a13f43; font-size: 13px; line-height: 1.8; margin: 12px 0; overflow-wrap: anywhere; }
.form-error:empty { display: none; }
.upload-box { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #cdb3a0; background: #f8f0e5; padding: 23px; text-align: center; cursor: pointer; overflow: hidden; border-radius: 10px; min-height: 135px; }
.upload-box svg { margin-bottom: 9px; }
.upload-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-box:focus-within { outline: 2px solid var(--wine); outline-offset: 3px; }
#photo-preview { width: 100%; max-height: 240px; object-fit: contain; margin-top: 12px; background: #f2e9df; border-radius: 9px; }
.toast { position: fixed; left: 50%; bottom: max(25px, env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100% - 36px); width: max-content; padding: 13px 22px; color: #fff6e9; background: #5b3c3b; border-radius: 12px; box-shadow: 0 5px 25px #3b191522; font-size: 14px; line-height: 1.7; z-index: 9; }
@media (max-width: 1000px) {
  .shell { padding-inline: 28px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; }
  .hero { gap: 20px; }
  .hero-art { transform: scale(.88); }
  .composer-card, .entry-content { padding: 22px; }
  .composer-actions button { flex-direction: column; text-align: center; padding: 12px 6px; gap: 8px; }
  .action-description { display: none; }
  .tabs button { padding-inline: 15px; }
  .together-card, .future-card, .poem-card { padding-inline: 20px; }
}
@media (max-width: 760px) {
  .shell { padding-inline: 20px; }
  .topbar { height: 70px; }
  .brand { font-size: 30px; }
  .topbar-label { display: none; }
  .quiet-button { font-size: 12px; padding-inline: 12px; }
  .hero { grid-template-columns: 1fr; padding: 26px 0 24px; gap: 0; }
  h1 { font-size: clamp(30px, 7.5vw, 43px); letter-spacing: 1px; line-height: 1.45; }
  .eyebrow { font-size: 11px; margin-bottom: 12px; }
  .hero-note { font-size: 13px; margin: 12px 0 16px; }
  .hero-note br { display: none; }
  .people { font-size: 12px; gap: 9px; }
  .people-label { font-size: 11px; }
  .hero-art { display: none; }
  .section-rule { padding: 14px 0; font-size: 12px; }
  .section-rule time { font-size: 10px; }
  .workspace { grid-template-columns: minmax(0, 1fr); grid-template-areas: "together" "feed" "sidebar"; grid-template-rows: auto; gap: 20px; padding: 20px 0 32px; }
  .together-card { padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(85px, 120px); text-align: left; column-gap: 12px; align-items: center; }
  .together-card > .mini-label { grid-column: 1; grid-row: 1; margin: 0 0 8px; font-size: 10px; }
  .together-people { grid-column: 1; grid-row: 2; justify-content: flex-start; margin: 0; font-size: 18px; gap: 10px; }
  .together-people span { max-width: 70px; }
  .days-label { grid-column: 2; grid-row: 1; text-align: center; font-size: 10px; }
  .day-count { grid-column: 2; grid-row: 2/4; font-size: 43px; margin: 0; text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
  .day-count small { font-size: 11px; margin-left: 4px; }
  .since-label { grid-column: 1; grid-row: 3; font-size: 10px; margin: 6px 0 0; }
  .together-card .text-button { grid-column: 1/-1; grid-row: 4; min-height: 44px; font-size: 12px; margin: 4px 0 -8px; }
  .composer-card { padding: 22px 18px 18px; }
  .composer-heading h2 { font-size: 23px; }
  .mini-label { font-size: 10px; letter-spacing: 1px; }
  .composer-prompt { font-size: 13px; margin-top: 16px; min-height: 58px; padding: 14px 12px; }
  .composer-actions { gap: 8px; margin-top: 12px; }
  .composer-actions button { min-height: 74px; gap: 7px; padding: 10px 4px; }
  .action-icon { width: 28px; height: 28px; border-radius: 8px; }
  .action-icon svg { width: 17px; height: 17px; }
  .action-copy strong { font-size: 11px; }
  .feed-toolbar { margin: 20px 0 16px; gap: 4px; }
  .tabs { gap: 1px; padding: 3px; }
  .tabs button { font-size: 12px; min-height: 44px; padding: 0 14px; }
  .entry-content { padding: 21px 20px; }
  .entry-title { font-size: 22px; }
  .entry-body { font-size: 15px; }
  .entry-person-name { max-width: 185px; }
  .entry-bottom { font-size: 10px; letter-spacing: 0; }
  .entry-photo { max-height: 500px; }
  .locked-letter { padding: 24px 18px; }
  .locked-letter h3 { font-size: 21px; }
  .empty-state { padding: 32px 20px; }
  .empty-state h3 { font-size: 22px; }
  .empty-state p { font-size: 13px; }
  .sidebar { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .future-card { padding: 22px; position: relative; }
  .future-icon { position: absolute; right: 22px; top: 26px; width: 27px; height: 27px; }
  .future-card .mini-label { padding-right: 40px; }
  .future-card h2 { font-size: 23px; }
  .future-card > p:not(.mini-label) { margin: 10px 0 4px; }
  .future-card > p:not(.mini-label) br { display: none; }
  .poem-card { padding: 22px; gap: 10px; }
  .poem-card strong { font-size: 23px; }
  .space-stats { padding: 12px 0 4px; }
  footer { font-size: 8px; letter-spacing: .5px; padding-bottom: max(27px, env(safe-area-inset-bottom)); }
  footer span:last-child { font-size: 11px; }
  dialog { width: 100%; max-width: 100%; max-height: calc(100svh - 24px); margin: auto 0 0; border-radius: 22px 22px 0 0; padding: 22px 22px max(24px, env(safe-area-inset-bottom)); }
  dialog h2 { font-size: 25px; }
  .name-fields { gap: 12px; }
  .dialog-description { font-size: 13px; }
}
@media (max-width: 359px) {
  .shell { padding-inline: 16px; }
  .tabs button { padding-inline: 11px; font-size: 11px; }
  .composer-heading h2 { font-size: 21px; }
  .composer-actions { gap: 6px; }
  .action-copy strong { font-size: 10px; }
  .people-label { font-size: 10px; }
  .people { gap: 7px; }
  .field input:not([type=radio]):not([type=file]) { padding-inline: 9px; }
  footer { flex-wrap: wrap; gap: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  button, a { transition: background .15s, color .15s, border-color .15s; }
  .hero-copy { animation: appear .45s both; }
  .hero-art { animation: appear .6s both; }
  @keyframes appear { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
}
