:root{color-scheme:dark;--bg:#080d19;--panel:#111b2d;--panel2:#17253d;--line:#263853;--text:#eef3ff;--muted:#8799b6;--blue:#3978f4}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 60% 0%,#14284a 0%,#080d19 60%);font:14px -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text)}[hidden]{display:none!important}.shell{max-width:1180px;margin:auto;padding:24px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.brand{display:flex;gap:12px;align-items:center}.brand strong{font-size:19px}.brand small{color:#74a4ff;font-size:12px}.brand p, .hint, .chathead p,footer,.hero p,.panel p{color:var(--muted);font-size:12px;line-height:1.6}.logo{display:grid;place-items:center;background:var(--blue);border-radius:12px;width:42px;height:42px;font-size:26px}.pill{border:1px solid #2a6657;background:#12352f;color:#77e3bb;border-radius:30px;padding:7px 12px;font-size:12px}.welcome{max-width:690px;margin:65px auto}.hero h1{font-size:clamp(34px,6vw,56px);line-height:1.1;letter-spacing:-2px;margin:14px 0}.hero em{font-style:normal;color:#77a5ff}.eyebrow{font-size:10px;letter-spacing:2px;color:#7eaaff;font-weight:800}.panels{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:30px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:20px;min-width:0}.panel h2{font-size:16px;margin:0 0 10px}.panel h3{font-size:13px;margin-top:18px}button,input{font:inherit;border-radius:9px}button{background:var(--blue);border:1px solid var(--blue);color:white;padding:11px 15px;cursor:pointer;font-weight:650}button:hover{filter:brightness(1.12)}button.outline{background:#1d304d;border-color:#2b4364}input:not([type=file]){background:#0b1526;border:1px solid #263957;color:white;padding:12px;min-width:0;width:100%;margin:5px 0}input::placeholder{color:#70839f}.panels button{width:100%;margin-top:10px}.workspace{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;height:min(760px,calc(100dvh - 135px));min-height:510px}.sidebar{display:flex;flex-direction:column;gap:12px;overflow-y:auto}.digits{font-size:36px;letter-spacing:5px;color:#81adff;font-weight:800;margin:12px 0}.sidebar img{display:block;width:155px;max-width:100%;border:8px solid white;border-radius:10px;margin:10px auto}.sidebar button{width:100%}.person{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px;border:1px solid var(--line);border-radius:9px;margin-top:6px;font-size:12px;overflow-wrap:anywhere}.person button{width:auto;padding:7px 10px;font-size:11px}.actions{display:flex;gap:4px}.chat{display:flex;flex-direction:column;padding:0;overflow:hidden}.chathead{padding:17px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.chathead p{margin:0}.messages{flex:1;min-height:0;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:12px}.empty{margin:auto;text-align:center;color:#7189b0;line-height:2}.msg{background:var(--panel2);border:1px solid var(--line);border-radius:13px;padding:10px 13px;max-width:85%;align-self:flex-start;overflow-wrap:anywhere}.msg.mine{align-self:flex-end;background:#1a3764}.msg b{display:block;font-size:11px;color:#89b1ff;margin-bottom:5px}.msg span{white-space:pre-wrap}.filetitle{font-weight:650;margin-bottom:6px}.filemeta{font-size:11px;color:var(--muted);margin:5px 0}.download{display:inline-block;color:#91baff;text-decoration:none;border:1px solid #44648e;border-radius:7px;padding:7px 10px;margin-top:8px}.composer{display:flex;align-items:center;gap:10px;padding:12px 14px;border-top:1px solid var(--line)}.composer input:not([type=file]){margin:0;flex:1}.attach{position:relative;display:grid;place-items:center;background:#223656;border-radius:9px;width:42px;height:42px;font-size:25px;cursor:pointer;flex-shrink:0;overflow:hidden}.attach input{position:absolute;inset:0;opacity:0;cursor:pointer}.chat>.hint{padding:0 16px;margin:0 0 9px}#notice{min-height:25px;color:#f3bf65;margin:12px 0;font-size:12px}footer{text-align:center;margin-top:14px}.waiting{max-width:550px;margin:60px auto}@media(max-width:700px){.shell{padding:12px}.welcome{margin:25px auto}.panels{grid-template-columns:1fr}.workspace{display:flex;flex-direction:column;height:auto;min-height:0}.sidebar{overflow:visible}.sidebar>.panel:first-child{display:grid;grid-template-columns:1fr 130px;gap:5px 12px;align-items:center}.sidebar .eyebrow,.sidebar .digits,.sidebar .hint,.sidebar button{grid-column:1}.sidebar img{grid-column:2;grid-row:1/5;width:115px;margin:0}.digits{font-size:27px;letter-spacing:3px}.chat{height:65dvh;min-height:430px}.messages{padding:12px}.msg{max-width:94%}}
/* KirDrop 3.4 */
.logo{width:44px;height:44px;object-fit:cover;border-radius:12px;background:#0a1730}
.fold{padding:0;overflow:hidden}
.fold-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;padding:17px 19px;border:0;border-radius:0;background:transparent;color:var(--text);font-size:13px;font-weight:800;letter-spacing:.6px;text-align:left}
.fold-toggle:hover{background:#1a2a43}
.fold-toggle .chevron{font-size:21px;color:#86b1ff;line-height:1;transition:transform .2s}
.fold.collapsed .chevron{transform:rotate(-90deg)}
.fold.collapsed .fold-content{display:none}
.fold-content{padding:0 19px 18px}
.rename{display:flex;gap:7px;margin-top:14px;align-items:center}
.rename input:not([type=file]){margin:0;font-size:12px;padding:9px}
.rename button{width:auto;white-space:nowrap;padding:9px 11px;font-size:11px}
.person.offline{opacity:.52}
.file-progress{height:7px;border-radius:12px;background:#293d5a;overflow:hidden;margin:8px 0 3px}
.file-progress-fill{height:100%;width:0%;background:linear-gradient(90deg,#2869e8,#34d3fb);transition:width .15s}
.drop-overlay{position:absolute;inset:0;display:grid;place-items:center;background:rgba(10,25,50,.92);border:2px dashed #62a9ff;border-radius:15px;font-size:20px;font-weight:700;z-index:5;pointer-events:none}
.chat{position:relative}
.msg{min-width:160px}
@media(max-width:700px){.shell{padding:10px}.brand p{margin:2px 0}.brand strong{font-size:17px}.brand small{font-size:11px}.pill{padding:6px 9px;font-size:11px}.workspace{gap:8px}.sidebar{gap:8px}.sidebar>.panel:first-child{display:block}.sidebar .eyebrow,.sidebar .digits,.sidebar .hint,.sidebar button{grid-column:auto}.sidebar img{width:125px;margin:8px auto}.fold-content{padding:0 14px 14px}.fold-toggle{padding:13px 14px}.sidebar-note{display:none}.chat{height:calc(100dvh - 210px);min-height:370px}.composer{gap:7px;padding:9px}.composer input:not([type=file]){padding:11px}.attach{width:44px;height:44px}.chathead{padding:12px 14px}.chat>.hint{font-size:10px}.msg{max-width:95%}}

/* QR invitation: joining is the primary action, creating is optional */
.create-details{min-width:0}
.create-details>summary{display:none;cursor:pointer;list-style:none}
.create-details>summary::-webkit-details-marker{display:none}
.create-details>.panel{height:100%}
.panels.qr-mode{grid-template-columns:1fr;max-width:520px;margin-left:auto;margin-right:auto}
.panels.qr-mode .join-panel{order:0}
.panels.qr-mode .create-details{order:1}
.panels.qr-mode .create-details>summary{display:flex;align-items:center;justify-content:space-between;padding:15px 19px;background:var(--panel);border:1px solid var(--line);border-radius:13px;color:var(--muted);font-weight:650}
.panels.qr-mode .create-details[open]>summary{border-radius:13px 13px 0 0}
.panels.qr-mode .create-details>.panel{border-radius:0 0 13px 13px}
.panels.qr-mode .join-panel #join{background:var(--blue);border-color:var(--blue);color:#fff}
.panels.qr-mode .join-panel #code{font-weight:700;letter-spacing:2px}
@media(max-width:700px){.panels.qr-mode{margin-top:20px}.panels.qr-mode .join-panel{padding:18px}}
/* 3.6: запросы на вход — кнопки не сжимаются в узкой колонке */
#pending .person{display:grid;grid-template-columns:1fr 1fr;gap:7px}
#pending .person>span{grid-column:1/-1;min-width:0;overflow-wrap:anywhere}
#pending .person>button{width:100%;min-width:0;padding:8px 5px;font-size:11px}

.cancel-transfer{margin-top:8px;font-size:12px;padding:5px 9px;max-width:160px;}
