:root { color-scheme: light; font: 16px/1.5 system-ui, sans-serif; color: #152f2b; background: #edf3ef; }
* { box-sizing: border-box; }
body { margin: 0; padding: clamp(.75rem, 4vw, 2rem); }
main { max-width: 42rem; margin: auto; }
main > a { display: inline-block; color: #15594e; font-size: 1.3rem; font-weight: 800; margin-bottom: 1rem; text-decoration: none; }
section { padding: 1.15rem; background: #fffcf7; border: 1px solid #cddcd4; border-radius: 16px; }
h1, h2 { line-height: 1.2; }
h1 { margin-top: 0; }
form, label { display: grid; gap: .65rem; }
label { gap: .25rem; }
textarea, select, button { font: inherit; border-radius: 9px; padding: .5rem .65rem; min-height: 44px; }
textarea, select { width: 100%; border: 1px solid #a4bbb0; background: white; color: inherit; }
button { justify-self: start; border: 0; background: #14594e; color: white; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
#share, article { margin-top: 1rem; }
article { border-block-start: 1px solid #cddcd4; padding-block-start: .55rem; }
article p, #guest-text { white-space: pre-wrap; overflow-wrap: anywhere; }
[hidden], #status:empty { display: none !important; }

#sender-nav { display: flex; flex-wrap: wrap; gap: .45rem; margin-block: 1rem; }
#sender-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .7rem; border-radius: 9px; text-decoration: none; }
#sender-nav a[aria-current="page"] { background: #d7eee5; color: #174e40; font-weight: 700; }
.sent-translation { border-inline-start: 3px solid #77a69b; padding-inline-start: .6rem; }

#thread-messages { display: grid; gap: .55rem; margin-block: 1rem; }
.guest-bubble { justify-self: start; max-inline-size: 90%; margin: 0; padding: .55rem .8rem; background: #edf3ef; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.guest-bubble.mine { justify-self: end; background: #d7eee5; }
#thread-back { display: inline-block; margin-block-end: .75rem; }
#sent article > a { display: inline-flex; align-items: center; min-height: 44px; }

#thread-share { display: flex; flex-wrap: wrap; gap: .45rem; margin-block-start: .75rem; }
#thread-share button { background: #d7eee5; color: #174e40; }

#thread-share { margin-block-start: 0; }
#thread-share #thread-native { background: #14594e; color: #fff; }
#thread-share-text { margin-block-start: .75rem; }
