@font-face{font-family:GeorgiaLocal;src:local("Georgia");font-display:swap}
:root{--paper:#f7f5f0;--white:#fdfcf9;--ink:#292b25;--muted:#77786f;--line:#dfded5;--accent:#bf5735;--accent-pale:#f4e7dd;--serif:GeorgiaLocal,Georgia,"Times New Roman",serif;--sans:Inter,"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:14px;-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:5px}input:focus,textarea:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px #bf573510}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button{color:inherit}h1,h2,h3,p{margin:0}button{border:0;background:none}button,textarea,input{transition:background .18s,border-color .18s,opacity .18s}button:not(:disabled):hover{filter:brightness(.96)}[hidden]{display:none!important}.wordmark{font-family:var(--serif);font-size:39px;font-weight:bold;letter-spacing:-2px;line-height:1}.wordmark span{color:var(--accent);margin-left:2px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;font-weight:600;color:var(--muted)}.muted{color:var(--muted)}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;flex-shrink:0}.icon-btn:hover{background:#ece9e1}.btn{display:flex;align-items:center;justify-content:center;gap:12px;padding:16px 22px;min-height:53px;border-radius:9px;background:var(--ink);color:white;font-weight:500;line-height:1.3}.btn svg{width:18px}.btn-accent{background:var(--accent)}.btn-secondary{background:transparent;color:var(--ink);border:1px solid var(--line)}.btn-wide{width:100%;justify-content:space-between}.text-btn{padding:0;color:var(--accent);text-decoration:underline;text-underline-offset:4px}.avatar{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e8e3d7;font-family:var(--serif);font-size:20px;flex-shrink:0}.avatar.small{width:34px;height:34px;font-size:16px}.boot{min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px}.boot p{color:var(--muted)}
/* Entrance */
.auth-page{min-height:100svh;max-width:1600px;margin:auto;padding:38px 5vw 24px;display:flex;flex-direction:column}.auth-top{display:flex;justify-content:space-between;align-items:center}.quiet-tag{display:flex;gap:9px;align-items:center;color:var(--muted);font-size:12px}.quiet-dot{width:6px;height:6px;background:var(--accent);border-radius:50%}.auth-content{flex:1;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:9vw;padding:55px 5vw 70px}.auth-story h1{font-family:var(--serif);font-weight:normal;font-size:clamp(48px,5.3vw,82px);letter-spacing:-3px;line-height:1.05;margin:26px 0}.auth-story h1 em{font-weight:normal;color:var(--accent)}.auth-story>p{font-size:16px;line-height:1.9;color:var(--muted);max-width:350px}.letter-art{position:relative;height:166px;width:240px;margin-bottom:42px;display:flex;align-items:center;justify-content:center}.letter-art:before,.letter-art:after{content:"";position:absolute;border:1px solid #e3ded4;width:164px;height:164px;border-radius:50%;left:30px}.letter-art:after{width:220px;height:220px;left:2px;border-style:dashed;opacity:.6}.letter{position:relative;width:137px;height:92px;background:#eee7d9;border:1px solid #d4c8b3;border-radius:5px;transform:rotate(-10deg);box-shadow:10px 17px 32px #4b3d2410;z-index:1;display:flex;align-items:center;justify-content:center}.letter svg{height:100%;width:100%;stroke:#b5a78b;stroke-width:.7}.letter-seal{position:absolute;right:25px;bottom:14px;background:var(--accent);color:#f5e7dc;border:3px double #d78d70;box-shadow:0 2px 4px #61371825;width:31px;height:31px;border-radius:50%;display:grid;place-items:center;font:italic 18px var(--serif)}.auth-card{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:38px;max-width:440px;width:100%;box-shadow:0 10px 50px #3e372407}.auth-card h2{font:normal 32px var(--serif);letter-spacing:-.8px;margin:13px 0 10px}.auth-card .sub{color:var(--muted);line-height:1.65;font-size:13px;margin-bottom:28px}.field{display:flex;flex-direction:column;gap:9px;margin-bottom:19px}.field label{font-size:12px;font-weight:500}.field input{width:100%;height:51px;border:1px solid var(--line);border-radius:8px;background:var(--white);padding:0 14px;color:var(--ink)}.field input::placeholder{color:#a4a49a}.field small{color:var(--muted);font-size:11px;line-height:1.6}.password-wrap{position:relative}.password-wrap input{padding-right:49px}.password-wrap .icon-btn{position:absolute;right:6px;top:7px}.form-error{color:#a03826;background:#f8e8e0;padding:11px 13px;border-radius:7px;font-size:12px;line-height:1.6;margin-bottom:15px}.auth-switch{margin-top:27px;padding-top:24px;border-top:1px solid var(--line);text-align:center;font-size:12px;color:var(--muted);line-height:2}.auth-bottom{display:flex;justify-content:space-between;gap:15px;padding-top:22px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.auth-bottom span{display:flex;align-items:center;gap:8px}.auth-bottom svg{width:14px;height:14px}
/* Workspace */
.workspace{display:grid;grid-template-columns:290px 1fr;min-height:100svh}.sidebar{border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100svh;background:#f2f0e9}.sidebar-brand{padding:38px 30px 33px}.sidebar-brand p{font-size:10px;color:var(--muted);margin-top:12px;letter-spacing:.3px}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;padding:14px 22px 16px 30px;border-top:1px solid var(--line)}.sidebar-heading h2{font-size:12px;font-weight:500}.sidebar-heading .icon-btn{height:28px;width:28px;border:1px solid #d6d3c8}.contact-list{padding:0 12px;overflow-y:auto;flex:1}.contact{width:100%;display:flex;align-items:center;gap:12px;padding:17px 14px;border-radius:9px;text-align:left;border:1px solid transparent;margin-bottom:5px}.contact.active{background:var(--white);border-color:var(--line);box-shadow:0 2px 5px #28292304}.contact:hover{background:#eae7dd}.contact-details{flex:1;min-width:0}.contact-name{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:6px}.contact-status{font-size:10px;color:var(--muted);display:flex;gap:5px;align-items:center}.contact-status.unread{color:var(--accent)}.contact-status svg{width:11px;height:11px}.unread-dot{width:7px;height:7px;border-radius:50%;background:var(--accent);flex-shrink:0}.sidebar-empty{padding:26px 15px;color:var(--muted);font-size:12px;line-height:1.8}.sidebar-note{padding:22px 30px;color:var(--muted);font-size:11px;line-height:1.9}.sidebar-note svg{width:16px;height:16px;margin-bottom:10px}.profile-link{border-top:1px solid var(--line);padding:21px 27px;display:flex;align-items:center;gap:11px;width:100%;text-align:left}.profile-link .profile-info{flex:1}.profile-info strong{display:block;font-size:12px;font-weight:500;margin-bottom:4px}.profile-info small{color:var(--muted);font-size:10px}.main-area{min-width:0;display:flex;flex-direction:column}.topbar{height:89px;padding:0 46px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.breadcrumb{display:flex;align-items:center;gap:14px;font-size:11px;color:var(--muted)}.breadcrumb span:last-child{color:var(--ink)}.topbar-right{display:flex;align-items:center;gap:22px}.topbar-right .quiet-tag{font-size:10px}.main-content{padding:41px 46px 26px;flex:1;display:flex;flex-direction:column;max-width:1250px;width:100%;margin:0 auto}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:33px}.page-heading h1{font:normal 39px var(--serif);letter-spacing:-1.2px;margin-top:11px}.page-heading .page-note{font-size:11px;color:var(--muted);line-height:1.8;text-align:right}.conversation-card{width:100%;max-width:760px;margin:0 auto;background:var(--white);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 8px 30px #3c352004}.conversation-head{display:flex;align-items:center;gap:13px;padding:23px 30px;border-bottom:1px solid var(--line)}.conversation-person{flex:1;min-width:0}.conversation-person h2{font:normal 22px var(--serif);overflow-wrap:anywhere}.conversation-person p{font-size:10px;color:var(--muted);margin-top:6px}.status-pill{border:1px solid #d8a28e;color:var(--accent);border-radius:99px;padding:7px 11px;font-size:10px;white-space:nowrap;display:flex;align-items:center;gap:6px}.status-pill.paused{border-color:var(--line);color:var(--muted)}.status-pill svg{width:12px;height:12px}.conversation-body{padding:27px 30px 30px}.privacy-line{display:flex;justify-content:center;align-items:center;gap:7px;font-size:10px;line-height:1.6;color:var(--muted);margin:0 0 27px}.privacy-line svg{width:13px;height:13px}.inbox-card{background:var(--accent-pale);border:1px solid #e6cfc1;padding:20px;border-radius:10px;display:flex;gap:17px;align-items:center;margin-bottom:25px}.inbox-icon{border:1px solid #d9bbaa;border-radius:50%;width:45px;height:45px;display:grid;place-items:center;color:var(--accent);flex-shrink:0}.inbox-copy{flex:1}.inbox-copy h3{font:normal 20px var(--serif);margin-bottom:6px}.inbox-copy p{font-size:10px;color:#856f60;line-height:1.7}.inbox-card .btn{font-size:11px;min-height:38px;padding:10px 16px}.compose-intro{margin:9px 0 24px}.compose-intro h3{font:normal 28px var(--serif);letter-spacing:-.6px;margin-bottom:8px}.compose-intro p{font-size:12px;color:var(--muted);line-height:1.7}.compose-box{position:relative}.compose-box textarea{resize:vertical;min-height:170px;max-height:400px;width:100%;border:1px solid #d8d7ce;border-radius:9px;padding:18px 19px 36px;background:#fcfbf7;color:var(--ink);font:normal 20px/1.55 var(--serif)}.compose-box textarea::placeholder{color:#a8a69a}.char-count{position:absolute;bottom:16px;right:15px;color:#929185;font-size:10px;font-variant-numeric:tabular-nums}.send-footnote{font-size:11px;color:var(--muted);display:flex;gap:8px;align-items:center;margin:18px 0}.send-footnote svg{width:15px;height:15px}.send-button{width:100%;justify-content:space-between}.send-button>span{display:flex;align-items:center;gap:11px}.send-button small{font-size:10px;opacity:.75}.empty-conversation{padding:66px 30px;text-align:center;display:flex;flex-direction:column;align-items:center}.empty-conversation .letter-art{margin:0 0 24px;transform:scale(.85)}.empty-conversation h2{font:normal 37px var(--serif);letter-spacing:-1px;margin-bottom:14px}.empty-conversation p{font-size:13px;line-height:1.9;max-width:350px;color:var(--muted);margin-bottom:27px}.app-footer{display:flex;justify-content:space-between;gap:18px;font-size:10px;color:#939286;margin-top:auto;padding-top:32px}.app-footer span:first-child{font-family:var(--serif);font-style:italic;font-size:13px}.mobile-back{display:none}.connection-banner{font-size:11px;color:#9a462a;background:var(--accent-pale);padding:10px 20px;text-align:center}
/* Persistent conversation history */
#message-history{margin-bottom:26px;border-bottom:1px solid var(--line);padding-bottom:22px}
.history-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}
.history-more,.history-retry{font-size:11px}
.history-list{max-height:340px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d8d2c6 transparent;padding:0 6px 4px 0;outline-offset:3px}
.history-date{text-align:center;color:var(--muted);font-size:10px;margin:19px 0 14px}
.history-date:first-child{margin-top:5px}
.history-message{width:fit-content;max-width:85%;margin:10px 0;padding:15px 18px;border:1px solid #e6e1d6;border-radius:12px 12px 12px 3px;background:#f0ede5}
.history-message.outgoing{margin-left:auto;background:var(--accent-pale);border-color:#e9d2c3;border-radius:12px 12px 3px 12px}
.history-text{white-space:pre-wrap;overflow-wrap:anywhere;font:normal 19px/1.55 var(--serif)}
.history-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;margin-top:9px;font-size:9px;color:var(--muted)}
.history-empty{padding:24px 8px;text-align:center;color:var(--muted);font-size:12px;line-height:1.8}
.history-error{font-size:11px;color:#9a462a;line-height:1.7;margin-bottom:10px}
.history-retry{margin-bottom:15px}
.conversation-card:has(#message-history) .wait-state{display:grid;grid-template-columns:105px 1fr;column-gap:20px;text-align:left;align-items:center}
.conversation-card:has(#message-history) .wait-state .delivered{grid-column:2;justify-content:flex-start;margin:0;font-size:9px}
.conversation-card:has(#message-history) .wait-state .timer{grid-column:1;grid-row:1/4;width:105px;height:105px;margin:0}
.conversation-card:has(#message-history) .wait-state .timer-digits{font-size:18px;letter-spacing:-.5px;text-align:center}
.conversation-card:has(#message-history) .wait-state .timer-caption{display:none}
.conversation-card:has(#message-history) .wait-state h3{font-size:25px;margin:5px 0;grid-column:2}
.conversation-card:has(#message-history) .wait-state>p{font-size:11px;margin:0;grid-column:2}
.conversation-card:has(#message-history) .pause-bar{grid-column:1/-1;margin-top:17px}
@media(max-width:760px){.history-list{max-height:310px}.history-message{max-width:92%;padding:12px 14px}.history-text{font-size:18px}.conversation-card:has(#message-history) .wait-state{column-gap:13px;grid-template-columns:90px 1fr}.conversation-card:has(#message-history) .wait-state .timer{width:90px;height:90px}.conversation-card:has(#message-history) .wait-state h3{font-size:23px}}
/* Emoji picker */
.compose-box textarea{padding-bottom:58px}
.emoji-toggle{position:absolute;left:10px;bottom:9px;color:var(--muted)}
.emoji-toggle:hover,.emoji-toggle[aria-expanded="true"]{background:var(--accent-pale);color:var(--accent)}
.emoji-picker{position:absolute;z-index:2;left:10px;bottom:55px;width:290px;max-width:calc(100% - 20px);padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--white);box-shadow:0 8px 28px #292b2520}
.emoji-heading{display:block;padding:5px 5px 10px;color:var(--muted);font-size:11px}
.emoji-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px}
.emoji-option{display:grid;place-items:center;min-width:0;height:40px;border-radius:7px;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:24px;line-height:1}
.emoji-option:hover,.emoji-option:focus-visible{background:var(--accent-pale)}
/* The quiet state */
.wait-state{text-align:center;padding:3px 0 0}.delivered{font-size:10px;display:flex;align-items:center;justify-content:center;gap:6px;color:var(--muted);margin-bottom:8px}.delivered svg{width:14px;height:14px}.timer{position:relative;width:234px;height:234px;margin:9px auto 22px;display:flex;align-items:center;justify-content:center}.timer>svg{width:100%;height:100%;position:absolute;inset:0;transform:rotate(-90deg);stroke-width:2.5}.timer-track{stroke:#eae8df}.timer-progress{stroke:var(--accent);stroke-linecap:round;transition:stroke-dashoffset 1s linear}.timer-digits{font-family:Consolas,"Courier New",monospace;font-size:37px;letter-spacing:-1px;font-variant-numeric:tabular-nums}.timer-caption{font-size:10px;color:var(--muted);line-height:1.7;margin-top:10px}.wait-state h3{font:normal 31px var(--serif);letter-spacing:-.8px;margin-bottom:10px}.wait-state>p{font-size:12px;color:var(--muted);margin-bottom:26px}.pause-bar{display:flex;align-items:center;justify-content:center;gap:8px;padding:15px;border:1px solid var(--line);background:#f3f1ea;border-radius:8px;color:#929185;font-size:12px}.pause-bar svg{width:15px;height:15px}.reading-card{background:#f4eddf;border:1px solid #ded1ba;border-radius:10px;padding:26px;margin-bottom:25px;position:relative}.reading-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:23px}.reading-heading .eyebrow{color:#8e7960;font-size:9px;letter-spacing:1.3px}.read-text{font:normal 24px/1.6 var(--serif);overflow-wrap:anywhere;white-space:pre-wrap;margin:0 0 26px}.reading-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #ded1ba;padding-top:17px}.reading-footer p{font-size:10px;line-height:1.7;color:#8e7960}.reading-footer .text-btn{font-size:11px;white-space:nowrap}
/* Dialogs and notices */
dialog{width:min(440px,calc(100% - 32px));padding:32px;border:1px solid var(--line);border-radius:15px;background:var(--white);color:var(--ink);box-shadow:0 30px 90px #292b2525}dialog::backdrop{background:#292b2545;backdrop-filter:blur(3px)}.modal-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}.modal-top h2{font:normal 29px var(--serif);letter-spacing:-.6px}.modal-description{font-size:12px;line-height:1.8;color:var(--muted);margin-bottom:24px}.modal-actions{display:flex;gap:12px;margin-top:25px}.modal-actions .btn{flex:1;font-size:12px}.profile-card{text-align:center;padding:8px 0 24px}.profile-card .avatar{margin:0 auto 15px;width:60px;height:60px;font-size:28px}.profile-card h3{font:normal 25px var(--serif);margin-bottom:7px;overflow-wrap:anywhere}.profile-card p{font-size:12px;color:var(--muted)}.profile-rules{border-top:1px solid var(--line);padding:20px 0 0;font-size:12px;line-height:1.9;color:var(--muted)}.profile-rules strong{font-weight:500;color:var(--ink)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--paper);padding:14px 22px;border-radius:10px;box-shadow:0 6px 30px #0002;font-size:12px;max-width:min(90vw,480px);line-height:1.7;z-index:10}body:has(dialog[open]){overflow:hidden}
@media(min-width:1450px){.main-content{padding-top:55px}.page-heading{margin-bottom:42px}.conversation-body{padding:32px 38px 36px}.conversation-head{padding:25px 38px}.compose-box textarea{min-height:205px}}
@media(max-width:1100px){.workspace{grid-template-columns:250px 1fr}.topbar{padding:0 28px}.main-content{padding:32px 28px 24px}.page-heading .page-note{display:none}.sidebar-brand{padding-left:25px}.auth-content{gap:6vw;padding-left:1vw;padding-right:1vw}.auth-card{padding:29px}.inbox-card{flex-wrap:wrap}.inbox-card .btn{margin-left:62px}.send-button small{display:none}}
@media(max-width:760px){.auth-page{padding:26px 22px 20px}.auth-top .quiet-tag{font-size:10px}.auth-content{grid-template-columns:1fr;gap:32px;padding:35px 0}.auth-story{text-align:center}.auth-story .letter-art{height:100px;margin:0 auto 20px;transform:scale(.65)}.auth-story .eyebrow{display:none}.auth-story h1{font-size:44px;letter-spacing:-1.8px;margin:15px 0}.auth-story h1 br{display:none}.auth-story>p{font-size:12px;max-width:290px;margin:auto}.auth-card{max-width:420px;margin:auto;padding:28px}.auth-card h2{font-size:29px}.auth-bottom{font-size:9px;align-items:center}.auth-bottom>span:last-child{max-width:120px;text-align:right}.auth-card .sub{margin-bottom:23px}.workspace{display:block}.sidebar{position:static;width:100%;min-height:100svh;height:100svh;border:0}.workspace.has-selection .sidebar{display:none}.workspace:not(.has-selection) .main-area{display:none}.sidebar-brand{padding:30px 25px}.sidebar-brand p{font-size:11px}.sidebar-heading{padding:20px 25px}.contact-list{padding:0 14px}.contact{padding:20px 14px}.contact-name{font-size:16px}.contact-status{font-size:12px}.main-area{min-height:100svh}.topbar{height:70px;padding:0 21px}.topbar-right .quiet-tag{display:none}.breadcrumb{font-size:11px}.mobile-back{display:inline-flex;width:28px;height:28px}.topbar .breadcrumb{gap:9px}.main-content{padding:26px 18px 20px}.page-heading{margin-bottom:23px}.page-heading h1{font-size:33px;margin-top:8px}.eyebrow{font-size:9px}.conversation-head{padding:19px 19px;gap:11px}.conversation-person h2{font-size:21px}.conversation-body{padding:23px 19px}.status-pill{font-size:9px;padding:6px 8px}.conversation-head .avatar{width:38px;height:38px}.privacy-line{font-size:9px;margin-bottom:22px}.compose-intro h3{font-size:27px}.compose-intro p{font-size:11px}.compose-box textarea{min-height:180px;font-size:20px}.timer{width:215px;height:215px;margin-bottom:21px}.timer-digits{font-size:34px}.wait-state h3{font-size:29px}.app-footer{font-size:9px;gap:10px;padding-top:27px}.app-footer span:first-child{font-size:12px}.inbox-card{padding:16px;gap:12px}.inbox-card .btn{margin-left:57px}.read-text{font-size:22px}.reading-card{padding:20px}.reading-footer{flex-direction:column;align-items:flex-start;gap:12px}.auth-story h1 em{white-space:nowrap}dialog{padding:25px}.empty-conversation{padding:50px 20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
