382 lines
25 KiB
CSS
382 lines
25 KiB
CSS
:root {
|
|
--bg: #f4f2ed;
|
|
--paper: #fbfaf7;
|
|
--panel: #f8f7f3;
|
|
--ink: #151513;
|
|
--muted: #77736c;
|
|
--line: rgba(21, 21, 19, .11);
|
|
--line-strong: rgba(21, 21, 19, .18);
|
|
--red: #ff626a;
|
|
--red-soft: #ffe7e8;
|
|
--green: #278c62;
|
|
--green-soft: #e7f2eb;
|
|
--shadow: 0 28px 90px rgba(35, 30, 23, .14);
|
|
--ease: cubic-bezier(.18, .78, .16, 1);
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
html { min-height: 100%; background: var(--bg); }
|
|
body {
|
|
margin: 0;
|
|
min-height: 100%;
|
|
color: var(--ink);
|
|
background:
|
|
radial-gradient(circle at 48% 40%, rgba(255,255,255,.98) 0, rgba(255,255,255,.56) 29rem, transparent 62rem),
|
|
var(--bg);
|
|
font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
letter-spacing: -.02em;
|
|
}
|
|
button, input, textarea { font: inherit; color: inherit; }
|
|
button { cursor: pointer; }
|
|
a { color: inherit; }
|
|
::selection { background: rgba(255, 98, 106, .2); }
|
|
|
|
.app { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
|
|
|
|
.nav {
|
|
min-height: 76px;
|
|
padding: 11px clamp(16px, 3vw, 48px);
|
|
display: grid;
|
|
grid-template-columns: minmax(150px, 1fr) auto minmax(270px, 1fr);
|
|
align-items: center;
|
|
gap: 20px;
|
|
border-bottom: 1px solid var(--line);
|
|
background: rgba(248,247,243,.82);
|
|
backdrop-filter: blur(24px);
|
|
position: relative;
|
|
z-index: 50;
|
|
}
|
|
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 900; letter-spacing: -.06em; }
|
|
.brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.11)); }
|
|
.nav-center { display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted); font-size: 11px; font-weight: 800; white-space: nowrap; }
|
|
.nav-center i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(255,98,106,.08); }
|
|
.nav-center i.online { background: var(--green); box-shadow: 0 0 0 6px rgba(39,140,98,.1); }
|
|
.nav-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
|
|
.conversation-toggle, .network-toggle, .share-link {
|
|
min-height: 42px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 14px;
|
|
background: rgba(255,255,255,.74);
|
|
font-size: 11px;
|
|
font-weight: 850;
|
|
box-shadow: 0 4px 16px rgba(20,20,18,.035);
|
|
}
|
|
.conversation-toggle { display: flex; align-items: center; gap: 7px; padding: 0 14px; }
|
|
.conversation-toggle.active { color: white; border-color: var(--ink); background: var(--ink); }
|
|
.conversation-toggle b { min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 99px; background: var(--red); color: white; font-size: 9px; }
|
|
.network-toggle { display: flex; align-items: center; gap: 9px; padding: 0 13px 0 8px; }
|
|
.toggle-track { width: 34px; height: 22px; padding: 3px; display: block; border-radius: 99px; background: #d8d5cf; transition: .2s var(--ease); }
|
|
.toggle-track i { display: block; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .2s var(--ease); }
|
|
.network-toggle.active .toggle-track { background: var(--green); }
|
|
.network-toggle.active .toggle-track i { transform: translateX(12px); }
|
|
.share-link { padding: 0 15px; border-color: rgba(255,98,106,.35); color: #d9434c; background: rgba(255,247,247,.88); }
|
|
|
|
.workspace { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 0; transition: grid-template-columns .36s var(--ease); }
|
|
.panel-open .workspace { grid-template-columns: minmax(0, 1fr) minmax(370px, 440px); }
|
|
|
|
.canvas {
|
|
min-width: 0;
|
|
min-height: 690px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
background:
|
|
linear-gradient(rgba(21,21,19,.025) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(21,21,19,.025) 1px, transparent 1px);
|
|
background-size: 48px 48px;
|
|
}
|
|
.intro { position: absolute; z-index: 7; left: clamp(20px, 3vw, 50px); top: 32px; max-width: 420px; pointer-events: none; }
|
|
.intro small { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
|
|
.intro small::before { content: ""; width: 22px; height: 1px; background: var(--ink); }
|
|
.intro h1 { margin: 12px 0 0; font-size: clamp(43px, 5vw, 74px); line-height: .9; letter-spacing: -.078em; font-weight: 900; }
|
|
.intro h1 em { color: var(--red); font-style: normal; }
|
|
.intro p { max-width: 360px; margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
|
|
|
|
.radar { position: absolute; left: 50%; top: 52%; width: min(650px, 72vw); aspect-ratio: 1; transform: translate(-50%, -50%); }
|
|
.orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(21,21,19,.1); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
|
|
.o1 { width: 35%; height: 35%; }
|
|
.o2 { width: 68%; height: 68%; }
|
|
.o3 { width: 100%; height: 100%; }
|
|
.aim-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
|
|
.aim-layer path { fill: none; stroke: rgba(255,98,106,.58); stroke-width: 1.25; stroke-linecap: round; stroke-dasharray: 6 8; animation: aim-dash 2.4s linear infinite; }
|
|
@keyframes aim-dash { to { stroke-dashoffset: -28; } }
|
|
|
|
.sling-anchor { position: absolute; left: 50%; top: 50%; z-index: 3; width: 1px; height: 1px; }
|
|
.sling-tether { position: absolute; left: 0; top: 0; width: 0; height: 2px; transform-origin: left center; opacity: 0; background: linear-gradient(90deg, rgba(255,98,106,.85), rgba(255,98,106,.12)); transition: opacity .15s; }
|
|
.paper-core {
|
|
position: absolute;
|
|
z-index: 8;
|
|
left: 50%;
|
|
top: 50%;
|
|
width: 186px;
|
|
height: 186px;
|
|
margin: -93px 0 0 -93px;
|
|
display: grid;
|
|
place-items: center;
|
|
border-radius: 50%;
|
|
border: 1px solid rgba(255,255,255,.96);
|
|
background: rgba(255,255,255,.5);
|
|
box-shadow: 0 25px 70px rgba(34,29,22,.14), inset 0 0 0 1px rgba(21,21,19,.045);
|
|
backdrop-filter: blur(16px);
|
|
touch-action: none;
|
|
user-select: none;
|
|
cursor: default;
|
|
}
|
|
.paper-core::before { content: ""; position: absolute; inset: 12px; border: 1px dashed rgba(21,21,19,.14); border-radius: 50%; animation: rotate-ring 24s linear infinite; }
|
|
.paper-core.armed { cursor: grab; box-shadow: 0 28px 80px rgba(34,29,22,.17), 0 0 0 9px rgba(255,98,106,.045), inset 0 0 0 1px rgba(21,21,19,.045); }
|
|
.paper-core.dragging { cursor: grabbing; }
|
|
.paper-core img { width: 150px; height: 150px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 18px 18px rgba(17,17,15,.17)); animation: float-paper 4.2s ease-in-out infinite; }
|
|
.paper-core.dragging img { animation-play-state: paused; }
|
|
@keyframes rotate-ring { to { transform: rotate(360deg); } }
|
|
@keyframes float-paper { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
|
|
|
|
.core-copy { position: absolute; z-index: 7; left: 50%; top: calc(50% + 112px); width: 250px; transform: translateX(-50%); text-align: center; pointer-events: none; }
|
|
.core-copy span, .core-copy strong, .core-copy small { display: block; }
|
|
.self-label { color: var(--red); font-size: 8px; font-weight: 950; letter-spacing: .16em; }
|
|
.core-copy strong { margin-top: 5px; font-size: 13px; }
|
|
.core-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; }
|
|
|
|
.peers { position: absolute; inset: 0; }
|
|
.peer { position: absolute; z-index: 10; min-width: 165px; padding: 7px; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; text-align: left; }
|
|
.device-icon { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.82); box-shadow: 0 10px 28px rgba(0,0,0,.07); transition: .24s var(--ease); }
|
|
.device-icon svg { width: 23px; height: 23px; }
|
|
.peer:hover .device-icon, .peer.active .device-icon { color: white; border-color: var(--ink); background: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.2); }
|
|
.device-icon.catching { animation: catch-pulse 1.25s var(--ease); }
|
|
@keyframes catch-pulse { 0%,62% { transform: translateY(-2px) scale(1); } 80% { transform: translateY(-2px) scale(1.18) rotate(-4deg); box-shadow: 0 0 0 12px rgba(255,98,106,.13), 0 16px 38px rgba(0,0,0,.22); } 100% { transform: translateY(-2px) scale(1); } }
|
|
.peer-copy { min-width: 0; }
|
|
.peer-copy strong, .peer-copy small { display: block; max-width: 138px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.peer-copy strong { font-size: 11px; }
|
|
.peer-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
|
|
.peer.active .peer-copy small { color: var(--red); font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
|
|
.p1 { left: -4%; top: 20%; }
|
|
.p2 { right: -6%; top: 19%; }
|
|
.p3 { right: -1%; bottom: 14%; }
|
|
.p4 { left: -2%; bottom: 13%; }
|
|
.p5 { left: 38%; top: -2%; }
|
|
.p6 { left: 38%; bottom: -3%; }
|
|
.searching { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; font-weight: 850; white-space: nowrap; }
|
|
.searching i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: searching-pulse 1.6s infinite; }
|
|
@keyframes searching-pulse { 50% { box-shadow: 0 0 0 12px rgba(255,98,106,0); } }
|
|
|
|
.conversation-panel {
|
|
min-width: 0;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
display: grid;
|
|
grid-template-rows: auto minmax(0, 1fr) auto auto;
|
|
border-left: 1px solid var(--line);
|
|
background: rgba(250,249,246,.94);
|
|
backdrop-filter: blur(26px);
|
|
box-shadow: -24px 0 70px rgba(33,29,23,.08);
|
|
transform: translateX(24px);
|
|
transition: opacity .25s, transform .35s var(--ease);
|
|
}
|
|
.conversation-panel.open { opacity: 1; pointer-events: auto; transform: translateX(0); }
|
|
.conversation-header { min-height: 86px; padding: 16px 17px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
|
|
.chat-peer-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: var(--ink); color: white; }
|
|
.chat-peer-icon svg { width: 23px; height: 23px; }
|
|
.conversation-header > div:nth-child(2) { min-width: 0; }
|
|
.conversation-header strong, .conversation-header small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.conversation-header strong { font-size: 14px; }
|
|
.conversation-header small { margin-top: 4px; color: var(--muted); font-size: 9px; }
|
|
.chat-status { padding: 7px 9px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 8px; font-weight: 950; letter-spacing: .12em; }
|
|
.panel-close { width: 32px; height: 32px; border: 0; border-radius: 10px; background: rgba(21,21,19,.055); font-size: 19px; }
|
|
|
|
.message-list { min-height: 0; overflow-y: auto; padding: 18px 15px 24px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
|
|
.empty-chat { min-height: 100%; margin: auto; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); }
|
|
.empty-chat img { object-fit: contain; opacity: .7; }
|
|
.empty-chat strong { margin-top: 9px; color: var(--ink); font-size: 13px; }
|
|
.empty-chat span { max-width: 250px; margin-top: 5px; font-size: 10px; line-height: 1.5; }
|
|
.message { max-width: 88%; padding: 12px 13px 10px; border: 1px solid var(--line); border-radius: 17px 17px 17px 5px; background: white; box-shadow: 0 8px 25px rgba(28,25,20,.055); }
|
|
.message.mine { align-self: flex-end; border-color: var(--ink); border-radius: 17px 17px 5px 17px; background: var(--ink); color: white; }
|
|
.message.theirs { align-self: flex-start; }
|
|
.message-meta { margin-bottom: 8px; display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 8px; font-weight: 850; }
|
|
.message.mine .message-meta { color: rgba(255,255,255,.56); }
|
|
.copy-message { margin-top: 8px; padding: 0; border: 0; background: transparent; color: inherit; opacity: .52; font-size: 8px; font-weight: 800; }
|
|
.copy-message:hover { opacity: 1; }
|
|
|
|
.markdown-body { font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
|
|
.markdown-body > :first-child { margin-top: 0; }
|
|
.markdown-body > :last-child { margin-bottom: 0; }
|
|
.markdown-body p { margin: 7px 0; }
|
|
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { margin: 11px 0 6px; line-height: 1.25; letter-spacing: -.035em; }
|
|
.markdown-body h1 { font-size: 20px; }
|
|
.markdown-body h2 { font-size: 17px; }
|
|
.markdown-body h3 { font-size: 14px; }
|
|
.markdown-body h4 { font-size: 12px; }
|
|
.markdown-body ul, .markdown-body ol { margin: 7px 0; padding-left: 20px; }
|
|
.markdown-body li { margin: 3px 0; }
|
|
.markdown-body blockquote { margin: 8px 0; padding: 2px 0 2px 10px; border-left: 3px solid var(--red); color: var(--muted); }
|
|
.message.mine .markdown-body blockquote { color: rgba(255,255,255,.68); }
|
|
.markdown-body hr { height: 1px; margin: 11px 0; border: 0; background: currentColor; opacity: .15; }
|
|
.markdown-body a { color: #d94a54; text-decoration: underline; text-underline-offset: 2px; }
|
|
.message.mine .markdown-body a { color: #ff9ba0; }
|
|
.markdown-body del { opacity: .62; }
|
|
.inline-code { padding: 2px 5px; border-radius: 5px; background: rgba(21,21,19,.08); font: 500 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
|
|
.message.mine .inline-code { background: rgba(255,255,255,.12); }
|
|
.code-block { margin: 9px 0; overflow: hidden; border: 1px solid rgba(21,21,19,.14); border-radius: 11px; background: #11110f; color: #f7f5ef; }
|
|
.code-block header { min-height: 34px; padding: 0 8px 0 11px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.58); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
|
|
.code-block button { padding: 5px 7px; border: 0; border-radius: 6px; background: rgba(255,255,255,.1); color: white; font-size: 8px; text-transform: none; letter-spacing: 0; }
|
|
.code-block pre { max-width: 100%; margin: 0; padding: 12px; overflow-x: auto; white-space: pre; tab-size: 2; }
|
|
.code-block code { font: 500 10.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
|
|
.markdown-table-wrap { max-width: 100%; margin: 8px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
|
|
.markdown-table-wrap table { width: 100%; border-collapse: collapse; font-size: 10px; }
|
|
.markdown-table-wrap th, .markdown-table-wrap td { padding: 7px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
|
|
.markdown-table-wrap tr:last-child td { border-bottom: 0; }
|
|
.markdown-table-wrap th:last-child, .markdown-table-wrap td:last-child { border-right: 0; }
|
|
|
|
.file-message { width: 94%; padding: 11px; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 25px rgba(28,25,20,.05); }
|
|
.file-message.mine { align-self: flex-end; }
|
|
.file-message.theirs { align-self: flex-start; }
|
|
.file-message-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: 17px; }
|
|
.file-message > div { min-width: 0; }
|
|
.file-message strong, .file-message small, .file-message em { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.file-message strong { font-size: 10.5px; }
|
|
.file-message small { margin-top: 3px; color: var(--muted); font-size: 8px; }
|
|
.file-message em { margin-top: 5px; color: var(--green); font-size: 8px; font-style: normal; font-weight: 800; }
|
|
.file-message.status-declined em, .file-message.status-failed em { color: #c54d54; }
|
|
.file-message a { padding: 8px 10px; border-radius: 9px; background: var(--ink); color: white; text-decoration: none; font-size: 8px; font-weight: 900; }
|
|
.file-state { max-width: 66px; color: var(--muted); font-size: 8px; text-transform: uppercase; font-weight: 900; }
|
|
|
|
.attachment-preview { margin: 0 13px 10px; padding: 9px; display: grid; grid-template-columns: 36px minmax(0,1fr) 30px; align-items: center; gap: 9px; border: 1px solid rgba(255,98,106,.22); border-radius: 13px; background: var(--red-soft); }
|
|
.attachment-preview > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: white; color: var(--red); }
|
|
.attachment-preview div { min-width: 0; }
|
|
.attachment-preview strong, .attachment-preview small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.attachment-preview strong { font-size: 10px; }
|
|
.attachment-preview small { margin-top: 3px; color: var(--muted); font-size: 8px; }
|
|
.attachment-preview button { width: 28px; height: 28px; border: 0; border-radius: 9px; background: rgba(21,21,19,.08); }
|
|
|
|
.composer { margin: 0 13px 14px; padding: 8px; display: grid; grid-template-columns: 40px minmax(0,1fr) 43px; align-items: end; gap: 7px; border: 1px solid var(--line-strong); border-radius: 17px; background: white; box-shadow: 0 12px 32px rgba(30,27,22,.07); }
|
|
.attach-button, .send-button { width: 40px; height: 40px; border: 0; border-radius: 12px; font-size: 20px; }
|
|
.attach-button { background: rgba(21,21,19,.06); }
|
|
.send-button { width: 43px; height: 43px; background: var(--ink); color: white; }
|
|
.attach-button:disabled, .send-button:disabled { opacity: .32; cursor: not-allowed; }
|
|
.composer textarea { min-height: 44px; max-height: 140px; padding: 10px 4px 6px; border: 0; outline: 0; resize: vertical; background: transparent; font-size: 11px; line-height: 1.45; }
|
|
.composer > small { grid-column: 2 / 4; color: var(--muted); font-size: 7.5px; }
|
|
|
|
footer { min-height: 54px; padding: 0 clamp(18px, 3vw, 48px); display: flex; align-items: center; justify-content: center; gap: 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
|
|
footer a { color: var(--ink); font-weight: 900; text-decoration: none; }
|
|
|
|
.progress { position: fixed; z-index: 70; left: 50%; bottom: 20px; width: min(390px, calc(100% - 30px)); padding: 14px; transform: translateX(-50%); border: 1px solid white; border-radius: 17px; background: rgba(255,255,255,.94); box-shadow: 0 20px 65px rgba(0,0,0,.18); backdrop-filter: blur(18px); }
|
|
.progress > div { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 8px; font-size: 9px; }
|
|
.progress > div span { color: var(--red); font-weight: 900; }
|
|
.progress > div strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
|
.progress > i { display: block; height: 5px; margin-top: 11px; overflow: hidden; border-radius: 99px; background: #e6e2dc; }
|
|
.progress > i span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), #ff9970); transition: width .18s; }
|
|
|
|
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(18,18,16,.3); backdrop-filter: blur(11px); }
|
|
.modal section { width: min(410px, 100%); padding: 24px; text-align: center; border-radius: 27px; background: var(--paper); box-shadow: 0 38px 110px rgba(0,0,0,.27); }
|
|
.modal section > img { object-fit: contain; filter: drop-shadow(0 14px 14px rgba(0,0,0,.14)); }
|
|
.modal section > small { display: block; color: var(--red); font-size: 8px; font-weight: 950; letter-spacing: .15em; }
|
|
.modal h2 { margin: 9px 0 0; overflow-wrap: anywhere; font-size: 23px; }
|
|
.file-details { margin-top: 14px; padding: 12px; display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 13px; background: white; }
|
|
.file-details span { color: var(--muted); font-size: 9px; }
|
|
.file-details strong { font-size: 14px; }
|
|
.file-details small { color: var(--green); font-size: 8px; }
|
|
.modal p { color: var(--muted); font-size: 10px; line-height: 1.55; }
|
|
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 17px; }
|
|
.modal-actions button, .modal-actions a { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; text-decoration: none; font-size: 10px; font-weight: 850; }
|
|
.modal-actions .accept { border-color: var(--ink); background: var(--ink); color: white; }
|
|
|
|
.toast-stack { position: fixed; z-index: 90; right: 18px; top: 88px; width: min(330px, calc(100% - 30px)); display: grid; gap: 8px; }
|
|
.toast { padding: 12px 13px; display: grid; grid-template-columns: 8px minmax(0,1fr); gap: 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: var(--ink); color: white; box-shadow: 0 16px 48px rgba(0,0,0,.22); animation: toast-in .25s var(--ease); }
|
|
.toast > i { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--red); }
|
|
.toast.success > i { background: #42c78a; }
|
|
.toast.warning > i { background: #ffb04e; }
|
|
.toast strong, .toast span { display: block; }
|
|
.toast strong { font-size: 10px; }
|
|
.toast span { margin-top: 3px; color: rgba(255,255,255,.63); font-size: 8px; line-height: 1.4; overflow-wrap: anywhere; }
|
|
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
|
|
|
|
.drag-overlay { position: fixed; inset: 12px; z-index: 100; display: grid; place-items: center; align-content: center; border: 2px dashed rgba(255,98,106,.6); border-radius: 28px; background: rgba(247,245,240,.9); backdrop-filter: blur(18px); }
|
|
.drag-overlay img { object-fit: contain; filter: drop-shadow(0 16px 18px rgba(0,0,0,.15)); }
|
|
.drag-overlay strong { margin-top: 10px; font-size: 22px; }
|
|
.drag-overlay span { margin-top: 6px; color: var(--muted); font-size: 11px; }
|
|
|
|
.not-found { min-height: 100vh; display: grid; place-items: center; padding: 20px; text-align: center; }
|
|
.not-found section { max-width: 430px; }
|
|
.not-found img { object-fit: contain; }
|
|
.not-found h1 { margin: 10px 0 0; font-size: 42px; letter-spacing: -.06em; }
|
|
.not-found p { color: var(--muted); line-height: 1.6; }
|
|
.not-found a { display: inline-block; margin-top: 12px; padding: 12px 17px; border-radius: 12px; background: var(--ink); color: white; text-decoration: none; font-weight: 800; }
|
|
|
|
@media (max-width: 1120px) {
|
|
.nav { grid-template-columns: auto 1fr auto; }
|
|
.nav-center { justify-content: flex-start; }
|
|
.conversation-toggle span { display: none; }
|
|
.conversation-toggle { padding: 0 11px; }
|
|
.radar { width: min(610px, 78vw); }
|
|
.intro h1 { font-size: 54px; }
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.app { overflow: visible; }
|
|
.nav { min-height: 68px; grid-template-columns: auto 1fr; gap: 10px; padding: 9px 13px; }
|
|
.brand span { display: none; }
|
|
.brand img { width: 40px; height: 40px; }
|
|
.nav-center { min-width: 0; justify-content: flex-start; font-size: 9px; }
|
|
.nav-center span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
|
.nav-actions { grid-column: 1 / -1; justify-content: stretch; padding-top: 7px; border-top: 1px solid var(--line); }
|
|
.nav-actions > button { flex: 1; min-height: 38px; }
|
|
.workspace, .panel-open .workspace { display: block; }
|
|
.canvas { min-height: 690px; }
|
|
.conversation-panel {
|
|
position: fixed;
|
|
z-index: 60;
|
|
inset: 118px 8px 8px;
|
|
height: auto;
|
|
border: 1px solid var(--line);
|
|
border-radius: 22px;
|
|
box-shadow: 0 28px 100px rgba(25,22,18,.25);
|
|
transform: translateY(24px) scale(.985);
|
|
}
|
|
.conversation-panel.open { transform: translateY(0) scale(1); }
|
|
.conversation-header { min-height: 74px; padding: 12px; }
|
|
.panel-close { display: grid; place-items: center; }
|
|
.intro { top: 26px; left: 18px; }
|
|
.intro h1 { font-size: 45px; }
|
|
.intro p { max-width: 300px; font-size: 11px; }
|
|
.radar { top: 57%; width: min(590px, 92vw); }
|
|
footer { min-height: 48px; }
|
|
}
|
|
|
|
@media (min-width: 901px) {
|
|
.panel-close { display: none; }
|
|
}
|
|
|
|
@media (max-width: 620px) {
|
|
.nav { position: sticky; top: 0; }
|
|
.share-link { padding: 0 10px; }
|
|
.network-toggle { padding-right: 10px; }
|
|
.canvas { min-height: 650px; }
|
|
.intro h1 { font-size: 39px; }
|
|
.intro p { display: none; }
|
|
.radar { top: 55%; width: 520px; max-width: none; }
|
|
.paper-core { width: 148px; height: 148px; margin: -74px 0 0 -74px; }
|
|
.paper-core img { width: 120px; height: 120px; }
|
|
.core-copy { top: calc(50% + 90px); }
|
|
.device-icon { width: 45px; height: 45px; border-radius: 14px; }
|
|
.device-icon svg { width: 20px; height: 20px; }
|
|
.peer { min-width: 112px; gap: 7px; }
|
|
.peer-copy strong { max-width: 85px; font-size: 9.5px; }
|
|
.peer-copy small { max-width: 85px; font-size: 7.5px; }
|
|
.p1 { left: 10%; top: 18%; }
|
|
.p2 { right: 8%; top: 18%; }
|
|
.p3 { right: 8%; bottom: 16%; }
|
|
.p4 { left: 9%; bottom: 16%; }
|
|
.p5 { left: 39%; top: 2%; }
|
|
.p6 { left: 39%; bottom: 1%; }
|
|
.conversation-panel { inset: 110px 5px 5px; border-radius: 19px; }
|
|
.message-list { padding: 14px 10px 20px; }
|
|
.message { max-width: 92%; }
|
|
.file-message { width: 100%; }
|
|
.composer { margin: 0 8px 9px; }
|
|
.attachment-preview { margin: 0 8px 7px; }
|
|
.toast-stack { top: 116px; right: 10px; }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
|
|
}
|