:root {
  --paper: #f7f4ef;
  --white: #fffdf9;
  --ink: #20201d;
  --muted: #6b6962;
  --line: #ddd8cf;
  --coral: #d4513e;
  --coral-dark: #a83429;
  --green: #31584a;
  --mint: #dce9e1;
  --gold: #c4943d;
  --danger: #a52b26;
  --shadow: 0 12px 36px rgba(45, 39, 30, 0.09);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; letter-spacing: 0; }
body, input, textarea, select, button { font-size: 16px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--coral-dark); }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.07; font-weight: 500; }
h1 { font-size: 5rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.3rem; }

.site-header { position: relative; z-index: 20; background: rgba(255, 253, 249, 0.96); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; max-width: var(--max); margin: 0 auto; padding: 12px 28px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: Georgia, serif; font-weight: 700; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--green); color: white; border-radius: 50%; font: 700 12px/1 ui-sans-serif, sans-serif; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; }
.main-nav form { margin: 0; }
.nav-toggle { display: none; margin-left: auto; border: 0; background: transparent; min-height: 44px; cursor: pointer; }
.username { color: var(--muted); }
.link-button { border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; font-weight: 600; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 5px; padding: 0 5px; border-radius: 10px; background: var(--coral); color: white; font-size: 11px; }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border: 1px solid transparent; border-radius: 6px; font-weight: 700; cursor: pointer; transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--coral); color: white; box-shadow: 0 8px 20px rgba(212, 81, 62, .2); }
.button-primary:hover { background: var(--coral-dark); color: white; }
.button-light { background: var(--white); color: var(--ink); }
.button-secondary { border-color: var(--green); color: var(--green); background: transparent; }
.button-secondary:hover { background: var(--green); color: white; }
.button-ghost { border-color: var(--line); background: transparent; }
.button-danger { background: var(--danger); color: white; }
.button-wide { width: 100%; }
.text-link { color: var(--coral-dark); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.eyebrow { margin-bottom: 10px; color: var(--coral-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.muted { color: var(--muted); }

.flash-stack { position: fixed; z-index: 50; top: 88px; right: 24px; width: min(380px, calc(100% - 48px)); display: grid; gap: 8px; }
.flash { padding: 14px 16px; background: var(--white); border-left: 4px solid var(--green); box-shadow: var(--shadow); border-radius: 4px; animation: slide-in .3s ease both; }
.flash-error { border-color: var(--danger); }

.home-hero { min-height: min(720px, calc(100svh - 112px)); position: relative; display: grid; align-items: center; background-image: var(--hero-image); background-position: center; background-size: cover; color: white; }
.home-hero::before { content: ""; position: absolute; inset: 0; background: rgba(18, 26, 22, .62); }
.hero-inner { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 80px 28px 110px; }
.hero-inner > * { max-width: 610px; }
.hero-inner h1 { margin-bottom: 24px; font-size: 6.8rem; }
.hero-inner > p:not(.eyebrow) { max-width: 470px; font-size: 1.18rem; color: #f1eee7; }
.hero-inner .eyebrow { color: #f3bf82; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.reveal { animation: rise-in .65s ease both; }

.content-band { max-width: var(--max); margin: 0 auto; padding: 80px 28px; }
.showcase-band { padding-top: 72px; }
.auctions-band { border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 32px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 400px; margin-bottom: 4px; color: var(--muted); }
.section-heading.compact { margin-bottom: 22px; align-items: center; }
.section-heading.compact > span { color: var(--muted); }
.showcase-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.showcase-card { min-width: 0; background: var(--white); border-radius: 6px; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.showcase-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.showcase-card img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; }
.showcase-copy { display: grid; gap: 4px; padding: 14px; }
.showcase-copy strong { overflow-wrap: anywhere; }
.showcase-copy > span { color: var(--coral-dark); font-weight: 800; }
.showcase-copy small { color: var(--muted); }
.auction-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.auction-card { min-width: 0; background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 0 var(--line); transition: transform .22s ease, box-shadow .22s ease; }
.auction-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; overflow: hidden; background: #d9e1dc; }
.card-media img, .media-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s ease; }
.auction-card:hover .card-media img { transform: scale(1.025); }
.media-placeholder { display: grid; place-items: center; color: var(--green); }
.status { position: absolute; top: 12px; left: 12px; padding: 6px 9px; border-radius: 4px; background: var(--ink); color: white; font-size: 11px; font-weight: 800; }
.status-live { background: var(--green); }
.card-body { padding: 18px; }
.card-meta { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.card-meta a { color: var(--green); font-weight: 800; }
.card-body h3 { margin-bottom: 10px; overflow-wrap: anywhere; }
.card-body > p { min-height: 48px; margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.price-row { display: flex; justify-content: space-between; gap: 12px; padding-top: 15px; border-top: 1px solid var(--line); }
.price-row div { display: grid; gap: 2px; }
.price-row small { color: var(--muted); font-size: 11px; }
.price-row strong { font-size: 16px; }
.price-row .time { text-align: right; }
.empty-state { padding: 70px 24px; text-align: center; border: 1px dashed #b9b3a9; border-radius: 8px; }
.empty-state.compact { padding: 32px; }
.empty-state p { color: var(--muted); }

.form-page { max-width: 1040px; margin: 0 auto; padding: 64px 28px 100px; }
.form-page.narrow { max-width: 760px; }
.form-intro { max-width: 680px; margin-bottom: 34px; }
.form-intro h1 { margin-bottom: 15px; font-size: 3.7rem; }
.form-intro p:last-child { color: var(--muted); }
.form-shell, .auth-form { background: var(--white); border-radius: 8px; box-shadow: var(--shadow); }
.form-shell { padding: 36px; }
.form-section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.form-section:first-of-type { padding-top: 0; }
.form-section h2 { font-size: 1.55rem; }
.section-title-row { display: flex; justify-content: space-between; align-items: center; }
.section-title-row span { color: var(--muted); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field > label, .field-label { font-size: 13px; font-weight: 800; }
.field small { color: var(--muted); font-size: 12px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #c9c4bb; border-radius: 5px; background: #fff; color: var(--ink); outline: none; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(49, 88, 74, .12); }
.field-description textarea { min-height: 170px; font-size: 17px; }
.checkbox-fieldset > div { display: grid; gap: 8px; }
.checkbox-fieldset label { display: flex; align-items: center; gap: 9px; min-height: 40px; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--green); }
input[type="file"] { max-width: 100%; }
.field-error, .errorlist, .form-error { color: var(--danger); font-size: 13px; }
.errorlist { margin: 0; padding-left: 20px; }
.field-invalid input, .field-invalid textarea { border-color: var(--danger); }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 28px; }
.image-previews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.image-preview { position: relative; border: 3px solid transparent; border-radius: 6px; overflow: hidden; background: transparent; }
.image-preview-choose { width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.image-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.image-preview.is-main { border-color: var(--coral); }
.image-preview span { position: absolute; right: 5px; bottom: 5px; padding: 3px 6px; background: var(--ink); color: white; border-radius: 3px; font-size: 10px; }
.image-preview-remove { position: absolute; top: 5px; right: 5px; z-index: 2; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(32, 32, 29, .9); color: white; font-size: 21px; line-height: 1; cursor: pointer; }

.success-page, .confirm-page { min-height: calc(100svh - 152px); max-width: 720px; margin: 0 auto; padding: 100px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.success-page h1, .confirm-page h1 { font-size: 4rem; }
.success-mark { width: 64px; height: 64px; margin-bottom: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--green); font-size: 30px; font-weight: 800; }
.share-row { margin-top: 38px; display: flex; gap: 16px; color: var(--muted); }
.share-row a { color: var(--green); font-weight: 800; }

.detail-page, .profile-page, .messages-page { max-width: var(--max); margin: 0 auto; padding: 52px 28px 100px; }
.detail-header { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 32px; }
.detail-header h1 { max-width: 820px; margin: 0; font-size: 4.4rem; overflow-wrap: anywhere; }
.seller-link { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.seller-link span:last-child { display: grid; }
.seller-link small { color: var(--muted); }
.avatar { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--green); color: white; font-weight: 800; object-fit: cover; }
.avatar-small { width: 40px; height: 40px; }
.avatar-large { width: 96px; height: 96px; font-family: Georgia, serif; font-size: 34px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 46px; align-items: start; }
.gallery-main { width: 100%; padding: 0; border: 0; background: #e3e5df; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.gallery-main img { width: 100%; max-height: 720px; aspect-ratio: 4 / 3; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb { width: 82px; height: 68px; flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 5px; overflow: hidden; cursor: pointer; background: none; }
.gallery-thumb.active { border-color: var(--coral); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { width: min(1100px, calc(100% - 32px)); height: min(820px, calc(100% - 32px)); padding: 44px; border: 0; border-radius: 8px; background: #161714; color: white; }
.lightbox::backdrop { background: rgba(0, 0, 0, .82); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close, .lightbox-nav { position: absolute; z-index: 2; border: 0; background: rgba(255,255,255,.9); color: var(--ink); cursor: pointer; }
.lightbox-close { top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; font-size: 25px; }
.lightbox-nav { top: 50%; width: 44px; height: 54px; border-radius: 4px; transform: translateY(-50%); font-size: 32px; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.detail-section { padding: 44px 0; border-bottom: 1px solid var(--line); }
.detail-section h2 { font-size: 1.8rem; }
.prose { color: #34342f; }
.two-column-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; }
.plain-list { margin: 0; padding-left: 20px; }
.plain-list li { margin: 8px 0; }
.bid-panel { position: sticky; top: 24px; }
.bid-panel-inner { padding: 28px; background: var(--white); border-top: 5px solid var(--coral); border-radius: 5px; box-shadow: var(--shadow); }
.end-time, .price-stack { display: grid; gap: 5px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.end-time span, .price-stack span, .winner-block > span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.end-time small { color: var(--coral-dark); }
.price-stack { padding-top: 22px; }
.price-stack strong, .winner-block > strong { font-family: Georgia, serif; font-size: 2.7rem; font-weight: 500; }
.price-stack small { color: var(--muted); }
.bid-form { margin-top: 22px; }
.bid-form label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 800; }
.bid-form input { margin-bottom: 12px; }
.owner-note, .winner-block { display: grid; gap: 10px; padding: 24px 0; }
.owner-note span, .winner-block p { color: var(--muted); }
.winner-personal { color: var(--green); }
.seller-contact { display: block; padding-top: 20px; border-top: 1px solid var(--line); color: var(--green); font-weight: 800; }
.bid-list { display: grid; }
.bid-list > div { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bid-list time, .question-meta time { color: var(--muted); font-size: 12px; }
.question { padding: 20px 0; border-top: 1px solid var(--line); }
.question-meta { display: flex; justify-content: space-between; gap: 10px; }
.question > p { margin: 10px 0; }
.answer { margin: 16px 0 0 32px; padding: 16px; background: var(--mint); border-left: 3px solid var(--green); border-radius: 3px; }
.answer p { margin: 5px 0 0; }
.inline-form, .question-form { display: grid; gap: 10px; margin-top: 16px; }
.question-form { max-width: 620px; }
.mobile-bid-cta { display: none; }

.profile-header { display: flex; justify-content: space-between; gap: 30px; align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.profile-identity { display: flex; gap: 20px; align-items: center; }
.profile-identity h1 { margin: 0 0 5px; font-size: 3.6rem; }
.profile-identity > div > span { color: var(--muted); }
.profile-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; align-items: center; }
.profile-about { display: grid; grid-template-columns: 240px 1fr; gap: 60px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.profile-about h2 { font-size: 1.6rem; }
.profile-section { padding: 48px 0; border-bottom: 1px solid var(--line); }
.profile-showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 780px; }
.card-actions { display: flex; gap: 12px; margin-top: 8px; font-size: 12px; }
.card-actions a { color: var(--green); text-decoration: underline; }
.empty-inline { color: var(--muted); }

.auth-page { max-width: 1060px; min-height: calc(100svh - 152px); margin: 0 auto; padding: 70px 28px; display: grid; grid-template-columns: 1fr 430px; gap: 80px; align-items: center; }
.auth-copy h1 { font-size: 4.4rem; }
.auth-copy p:last-child { max-width: 480px; color: var(--muted); }
.auth-form { padding: 34px; }
.auth-form h2 { font-size: 1.8rem; }
.auth-form > p { margin: 22px 0 0; color: var(--muted); font-size: 14px; text-align: center; }

.page-heading { margin-bottom: 30px; }
.page-heading h1 { font-size: 4rem; }
.dialog-list { border-top: 1px solid var(--line); }
.dialog-row { min-height: 88px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 16px 8px; border-bottom: 1px solid var(--line); }
.dialog-row:hover { background: var(--white); }
.dialog-copy { min-width: 0; display: grid; gap: 3px; }
.dialog-copy span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dialog-row time { color: var(--muted); font-size: 12px; }
.chat-page { max-width: 900px; height: calc(100svh - 76px); margin: 0 auto; padding: 22px 28px; display: grid; grid-template-rows: auto 1fr auto; }
.chat-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.chat-header > div { display: flex; align-items: center; gap: 10px; }
.chat-history { min-height: 0; padding: 24px 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.message-bubble { max-width: 72%; align-self: flex-start; padding: 11px 13px; background: var(--white); border-radius: 8px 8px 8px 2px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.message-own { align-self: flex-end; background: var(--mint); border-radius: 8px 8px 2px 8px; }
.message-bubble p { margin: 0; }
.message-bubble time { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; text-align: right; }
.message-bubble img { max-width: 280px; max-height: 280px; border-radius: 4px; }
.attachment { color: var(--green); text-decoration: underline; }
.chat-empty { margin: auto; color: var(--muted); }
.chat-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: end; padding-top: 16px; border-top: 1px solid var(--line); }
.chat-compose textarea { min-height: 48px; max-height: 120px; }
.file-button { min-height: 46px; display: flex; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.file-button input { width: 1px; height: 1px; position: absolute; opacity: 0; }

.site-footer { min-height: 110px; max-width: var(--max); margin: 0 auto; padding: 30px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer div { display: grid; }
.site-footer strong { color: var(--ink); }

@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .brand { flex: 1; }
  .nav-toggle { display: block; }
  .main-nav { width: 100%; margin: 0; padding: 12px 0 4px; display: none; flex-wrap: wrap; border-top: 1px solid var(--line); }
  .main-nav.is-open { display: flex; }
  .nav-cta { order: -1; }
  .showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .auction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; }
  .auth-page { gap: 40px; }
}

@media (max-width: 760px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.8rem; }
  .header-inner { padding-inline: 18px; }
  .main-nav { align-items: stretch; gap: 4px; }
  .main-nav a, .main-nav form, .main-nav .link-button, .main-nav .username { min-height: 44px; display: flex; align-items: center; padding: 8px 10px; }
  .main-nav .button { justify-content: center; }
  .home-hero { min-height: min(600px, calc(100svh - 112px)); background-position: 60% center; }
  .hero-inner { padding: 70px 20px 90px; }
  .hero-inner h1 { font-size: 3.8rem; }
  .content-band, .detail-page, .profile-page, .messages-page { padding: 56px 18px; }
  .detail-page { padding-bottom: 110px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 12px; }
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .auction-grid { grid-template-columns: 1fr; }
  .detail-header { display: block; }
  .detail-header h1 { margin-bottom: 22px; font-size: 3rem; }
  .detail-layout { display: block; }
  .bid-panel { position: static; margin-top: 24px; }
  .two-column-info { grid-template-columns: 1fr; gap: 24px; }
  .mobile-bid-cta { position: fixed; z-index: 30; right: 12px; bottom: 12px; left: 12px; min-height: 52px; display: flex; align-items: center; justify-content: center; padding: 12px; border-radius: 6px; background: var(--coral); color: white; font-weight: 800; box-shadow: 0 8px 30px rgba(0,0,0,.22); }
  .form-page { padding: 46px 18px 80px; }
  .form-intro h1 { font-size: 3rem; }
  .form-shell { padding: 22px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .image-previews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-header { display: block; }
  .profile-actions { margin-top: 24px; justify-content: flex-start; }
  .profile-about { grid-template-columns: 1fr; gap: 10px; }
  .profile-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-page { min-height: auto; padding: 50px 18px 80px; grid-template-columns: 1fr; gap: 28px; }
  .auth-copy h1 { font-size: 3.2rem; }
  .auth-form { padding: 24px 18px; }
  .dialog-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .dialog-row time { display: none; }
  .chat-page { height: calc(100svh - 76px); padding: 14px 12px; }
  .chat-compose { grid-template-columns: minmax(0, 1fr) auto; }
  .chat-compose .file-button { grid-column: 1; grid-row: 2; justify-self: start; }
  .chat-compose button { grid-column: 2; grid-row: 1 / 3; height: 48px; }
  .message-bubble { max-width: 86%; }
  .site-footer { padding-inline: 18px; }
}

@media (max-width: 390px) {
  .brand span:last-child { font-size: 14px; }
  .hero-inner h1 { font-size: 3.15rem; }
  .hero-actions .button { width: 100%; }
  .profile-identity { align-items: flex-start; }
  .avatar-large { width: 72px; height: 72px; }
  .profile-identity h1 { font-size: 2.4rem; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .success-page h1, .confirm-page h1 { font-size: 2.8rem; }
  .share-row { flex-wrap: wrap; justify-content: center; }
}
