:root{font-family:Inter,PingFang SC,Microsoft YaHei,Noto Sans CJK SC,system-ui,sans-serif;color:#20382f;background:#f1f4ee;font-synthesis:none;--accent: #126747;--muted: #596a61;--surface: #f9faf6;--border: #dbe4da;--sidebar: #203a31;--sidebar-ink: #f3f9f4;--focus: #3c986e}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-width:280px}button,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.58}:focus-visible{outline:2px solid var(--focus);outline-offset:3px}h1,h2,p{margin:0}a{color:inherit}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.brand{display:flex;align-items:center;gap:12px;font-weight:730;letter-spacing:.02em}.brand-mark{display:grid;place-items:center;width:41px;height:41px;flex:0 0 auto;border-radius:13px;background:#c5efce;color:#193d2c}.primary-button,.secondary-button{min-height:43px;display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:0 17px;border-radius:10px;font-weight:650;border:1px solid transparent}.primary-button{color:#fff;background:var(--accent)}.primary-button:hover:not(:disabled){background:#0c5439}.secondary-button{color:#294336;background:#fff;border-color:var(--border)}.secondary-button:hover{background:#f4f8f3}.icon-button{display:inline-grid;place-items:center;flex:0 0 auto;width:40px;height:40px;color:inherit;border:0;border-radius:10px;background:transparent;text-decoration:none}.icon-button:hover:not(:disabled){background:#e5efe6}.login-page{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 25% 20%,#dceee0,transparent 52%),#f1f4ee}.login-card{width:min(100%,420px);border:1px solid var(--border);border-radius:21px;overflow:hidden;background:#fff;box-shadow:0 18px 60px #23433311}.login-card .brand{color:var(--sidebar-ink);background:var(--sidebar);padding:21px 28px}.login-content{padding:30px 28px 32px}.login-icon{color:var(--accent);margin-bottom:10px}.login-content h1{font-size:26px;letter-spacing:-.03em;margin-bottom:23px}.login-form{display:grid;gap:11px}.login-form button{margin-top:7px}label{font-size:.88rem;font-weight:600}input:not([type=file]),textarea{min-width:0;width:100%;color:inherit;background:#fff;border:1px solid #ccd9ce;border-radius:9px;font-size:16px}input:not([type=file]){min-height:44px;padding:9px 12px}.transfer-app{display:grid;grid-template-columns:minmax(240px,285px) minmax(0,1fr);height:100vh;height:100dvh;overflow:hidden}.sidebar{display:flex;flex-direction:column;min-height:0;background:var(--sidebar);color:var(--sidebar-ink);padding:25px 16px 14px}.sidebar .brand{padding:1px 8px 27px}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;padding:0 7px 9px 9px}.sidebar h2{font-size:13px;font-weight:620;color:#c2d4c9}.new-room{width:33px;height:33px;border-radius:9px;background:#3a584a}.sidebar .icon-button:hover,.logout-button:hover{background:#496657}.room-list{overflow-y:auto;min-height:0;flex:1 1 auto;padding:2px 3px 10px}.room-row{display:flex;align-items:center;gap:11px;text-align:left;width:100%;padding:10px 9px;color:inherit;background:transparent;border:1px solid transparent;border-radius:12px}.room-row+.room-row{margin-top:3px}.room-row:hover{background:#2e493c}.room-row[aria-current=true]{background:#365446;border-color:#4c6d5c}.room-avatar{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:10px;background:#4a6556;color:#e5f8e8}.room-row[aria-current=true] .room-avatar{background:#c5efce;color:#1f4834}.room-summary{flex:1;min-width:0;display:grid;gap:4px}.room-summary strong,.room-summary small,.file-label strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-summary strong{font-size:14px}.room-summary small{font-size:12px;color:#c4d6ca}.room-chevron{flex:0 0 auto;color:#b6c9bc}.logout-button{display:flex;align-items:center;gap:9px;align-self:flex-start;min-height:42px;padding:0 11px;color:#d4e4d8;background:transparent;border:0;border-radius:9px;font-size:13px}.empty-room,.conversation-empty{display:grid;place-content:center;justify-items:center;gap:12px;text-align:center}.empty-room{background:var(--surface);padding:24px}.empty-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:20px;background:#e1efe1;color:var(--accent);margin-bottom:3px}.empty-room h1{font-size:clamp(23px,3vw,31px)}.empty-room p,.conversation-empty p{color:var(--muted);font-size:14px;line-height:1.7}.empty-room .primary-button{margin-top:8px}.conversation{display:flex;flex-direction:column;min-height:0;min-width:0}.room-header{display:flex;align-items:center;gap:12px;min-height:73px;padding:10px 28px;background:var(--surface);border-bottom:1px solid var(--border)}.room-title{flex:1;min-width:0}.room-title h1{font-size:clamp(18px,3vw,22px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-actions{display:flex;gap:4px;color:#426153}.mobile-back{display:none}.manual-link{display:flex;align-items:center;gap:9px;padding:8px 25px;border-bottom:1px solid var(--border);background:var(--surface)}.manual-link label{flex-shrink:0}.timeline{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}.timeline-content{display:flex;flex-direction:column;min-height:100%;width:min(100%,970px);margin-inline:auto;padding:18px clamp(17px,4vw,45px) 10px}.conversation-empty{flex:1 1 auto;padding:20px 12px}.conversation-empty h2{font-size:18px}.date-separator{text-align:center;color:var(--muted);font-size:12px;padding-block:11px 17px}.message{align-self:flex-end;min-width:0;max-width:min(82%,660px);margin:0 0 13px}.message-body{background:#deefdd;border:1px solid #cedfcc;border-radius:14px 5px 14px 14px;overflow:hidden}.message-text{margin:0;padding:11px 14px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;font-size:15px}.message-text a{color:#10573b;text-underline-offset:3px}.message-time{display:block;margin-top:5px;text-align:right;color:var(--muted);font-size:11px}.message-file{min-width:min(245px,100%);max-width:min(420px,100%)}.image-preview,.message-file video{display:block;width:100%;max-height:270px;border:0;background:#223b31;color:#fff}.image-preview{padding:0}.image-preview img{display:block;width:100%;max-height:270px;object-fit:contain}.message-file audio{display:block;width:100%}.file-info{display:flex;min-width:0;align-items:center;gap:9px;padding:8px 9px}.file-icon{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:8px;background:#cfe6d2;color:var(--accent)}.file-label{min-width:0;flex:1;display:grid;gap:3px}.file-label strong{font-size:13px}.file-label small{color:var(--muted);font-size:12px}.file-info .icon-button{width:35px;height:35px}.older-button{align-self:center;padding:6px 11px;background:#fff;border:1px solid var(--border);border-radius:8px;color:var(--accent);font-size:13px}.composer{padding:13px clamp(12px,4vw,27px) max(13px,env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border)}.composer-row{display:flex;align-items:flex-end;gap:9px}.attachment-button{height:44px;width:44px;color:#426153;cursor:pointer}.attachment-input:focus-visible+.attachment-button{outline:2px solid var(--focus);outline-offset:3px}.attachment-input:disabled+.attachment-button{opacity:.55;cursor:default}.composer textarea{flex:1;min-height:44px;max-height:125px;resize:vertical;padding:10px 12px;line-height:1.4}.composer textarea::placeholder{color:#627168}.send-button{min-height:44px;white-space:nowrap}.queued-files{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 9px}.queued-file{max-width:100%;display:inline-flex;gap:3px;align-items:center;padding-left:10px;border-radius:7px;background:#e5efe5;font-size:12px}.queued-file>span,.upload-progress>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.queued-file .icon-button{width:28px;height:28px}.upload-progress{display:flex;align-items:center;gap:9px;font-size:12px;margin-block:0 9px}.upload-progress progress{accent-color:var(--accent);min-width:50px}.notice{display:flex;align-items:center;gap:8px;padding:10px;border-radius:8px;color:#913429;background:#fae8e1;font-size:13px;overflow-wrap:anywhere}.notice svg{flex-shrink:0}.composer .notice,.timeline .notice{margin-bottom:8px}dialog{color:inherit;border:1px solid var(--border);border-radius:16px;box-shadow:0 16px 72px #132e2b3b}dialog::backdrop{background:#172d28a3}.room-dialog{width:min(420px,calc(100% - 30px));padding:20px}.room-dialog form{display:grid;gap:11px}.dialog-heading,.dialog-actions{display:flex;align-items:center;gap:10px}.dialog-heading{justify-content:space-between}.dialog-heading h2{font-size:21px}.dialog-actions{justify-content:flex-end;margin-top:9px}.image-dialog{padding:8px;max-width:min(900px,calc(100% - 24px));max-height:92dvh}.image-dialog-bar{display:flex;align-items:center;gap:5px;min-width:0}.image-dialog-bar span{margin-right:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.image-dialog>img{display:block;max-width:100%;max-height:76dvh;object-fit:contain;margin:0 auto}@media (max-width: 640px){.transfer-app{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.sidebar{padding:18px 12px 11px}.sidebar .brand{padding-bottom:16px}.transfer-app:has(.conversation) .sidebar{grid-row:1 / -1}.transfer-app:not(.mobile-room-open) .conversation{display:none}.mobile-room-open .sidebar{display:none}.mobile-room-open .conversation{grid-row:1 / -1}.mobile-back{display:inline-grid;margin-left:-5px}.room-header{min-height:62px;padding:8px 11px;gap:6px}.room-actions{gap:0}.message{max-width:90%}.composer-row{gap:5px}.attachment-button{width:38px}.send-button{padding-inline:10px}.empty-room{padding:14px}}
