:root{--bg:#f5f7fb;--panel:#fff;--panel-2:#f8faff;--text:#1c2434;--muted:#738097;--line:#e5eaf2;--blue:#4268e8;--blue-dark:#3154ce;--violet:#7967e8;--green:#16a675;--red:#df5a62;--shadow:0 12px 36px rgba(34,54,97,.07);--radius:20px;color-scheme:light}
:root[data-theme="dark"]{--bg:#101522;--panel:#181f2d;--panel-2:#20293a;--text:#edf2ff;--muted:#9caac0;--line:#303a4e;--blue:#6e8bff;--blue-dark:#5473eb;--violet:#9b8cff;--green:#35c596;--red:#f07c82;--shadow:0 12px 36px rgba(0,0,0,.22);color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:"DM Sans","Noto Sans JP",system-ui,sans-serif;min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.app-shell{max-width:1480px;margin:0 auto;padding:0 34px}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);font-size:19px;font-weight:800;letter-spacing:-.5px}.brand-mark{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(140deg,#5b82fa,#7b65e9);box-shadow:0 6px 16px #5377e83d}.brand-mark svg{width:21px;stroke:white;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.brand-accent{color:var(--blue)}.topbar-right{display:flex;align-items:center;gap:16px}.security-pill,.status-pill{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;font-weight:600;padding:8px 11px;border:1px solid var(--line);border-radius:30px}.security-pill i,.status-pill i,.online-dot,.eyebrow-dot{width:7px;height:7px;background:var(--green);border-radius:50%;display:inline-block;box-shadow:0 0 0 3px color-mix(in srgb,var(--green) 14%,transparent)}.icon-button{border:1px solid var(--line);background:var(--panel);color:var(--muted);width:38px;height:38px;border-radius:12px;display:grid;place-items:center;transition:.15s}.icon-button:hover,.outline-button:hover,.ghost-button:hover{border-color:var(--blue);color:var(--blue)}.icon-button svg,.outline-button svg,.danger-button svg,.ghost-button svg,.primary-button svg,.secondary-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.home-view{padding:64px 0 34px}.hero{text-align:center;margin-bottom:42px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:var(--blue);display:flex;justify-content:center;align-items:center;gap:10px}.eyebrow-dot{background:var(--blue)}.hero h1{font-size:clamp(40px,6vw,68px);line-height:1.06;letter-spacing:-2.8px;margin:19px 0 17px;font-weight:800}.hero h1 span{color:var(--blue)}.hero-copy{color:var(--muted);font-size:15px;line-height:1.8;margin:0}.mobile-only{display:none}.connection-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;max-width:920px;margin:0 auto}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.create-panel,.join-panel{padding:28px 30px}.panel-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:14px;margin-bottom:18px}.panel-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.panel-icon.blue{background:#eaf0ff;color:#4168e7}.panel-icon.violet{background:#f0edff;color:#7967e8}:root[data-theme="dark"] .panel-icon.blue{background:#27375d}:root[data-theme="dark"] .panel-icon.violet{background:#352e59}.panel-heading h2{font-size:20px;margin:0 0 6px;letter-spacing:-.4px}.panel-heading p{font-size:12px;color:var(--muted);margin:0 0 23px}.field-label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:var(--text);margin:14px 0 8px}.field-label span{font-weight:500;color:var(--muted);font-size:10px}.text-input{width:100%;height:46px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel-2);color:var(--text);outline:none;transition:.15s}.text-input:focus,.clip-textarea:focus,.search-box:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 12%,transparent)}.code-input{text-transform:uppercase;letter-spacing:4px;font-weight:800;font-size:17px}.primary-button,.secondary-button,.outline-button,.danger-button,.ghost-button{height:42px;border-radius:11px;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:12px;font-weight:700;border:1px solid transparent;transition:.15s}.primary-button{background:var(--blue);color:white;box-shadow:0 5px 12px color-mix(in srgb,var(--blue) 20%,transparent)}.primary-button:hover{background:var(--blue-dark);transform:translateY(-1px)}.secondary-button{background:var(--panel-2);border-color:var(--line);color:var(--text)}.secondary-button:hover{border-color:var(--blue);color:var(--blue)}.wide{width:100%;margin-top:17px}.micro-note{font-size:10px;color:var(--muted);margin:13px 0 0;text-align:center}.feature-strip{max-width:1030px;margin:38px auto 0;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.feature-strip>div{display:flex;gap:12px;align-items:center;padding:13px 16px}.feature-icon{width:36px;height:36px;border:1px solid var(--line);border-radius:12px;display:grid;place-items:center;color:var(--blue);flex:none}.feature-icon svg{width:18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.feature-strip b,.feature-strip small{display:block}.feature-strip b{font-size:11px}.feature-strip small{font-size:10px;color:var(--muted);margin-top:4px}.footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;padding:19px 0;color:var(--muted);font-size:10px}.room-view{padding:24px 0 40px}.hidden{display:none!important}.room-header{padding:16px 20px;display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.room-title-wrap,.room-actions{display:flex;align-items:center;gap:13px}.back-button{width:34px;height:34px}.room-kicker,.section-kicker{font-size:9px;letter-spacing:1.5px;color:var(--muted);font-weight:800}.room-title-wrap h2{font-size:19px;letter-spacing:3px;margin:3px 0 0}.room-actions{gap:9px}.outline-button,.danger-button{height:37px;border-color:var(--line);background:var(--panel);color:var(--text)}.danger-button{color:var(--red)}.status-pill{border:0;background:color-mix(in srgb,var(--green) 10%,var(--panel));color:var(--green);padding:8px 10px}.room-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}.compose-column,.sidebar-column{display:grid;gap:18px}.compose-panel,.history-panel,.devices-panel,.invite-panel,.privacy-panel{padding:22px}.compose-title-row,.history-header,.side-title-row{display:flex;justify-content:space-between;align-items:center;gap:14px}.compose-title-row h3,.history-header h3,.side-title-row h3,.invite-panel h3{font-size:17px;margin:5px 0 0;letter-spacing:-.4px}.private-tag{display:flex;align-items:center;gap:6px;color:var(--green);font-size:10px;font-weight:700}.private-tag svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8}.compose-controls{display:flex;gap:9px;margin:20px 0 10px}.select-wrap{position:relative;display:inline-flex;align-items:center;gap:7px}.select-wrap select{border:1px solid var(--line);background:var(--panel-2);color:var(--text);border-radius:9px;padding:8px 27px 8px 11px;font-size:11px;outline:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23808da3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center}.clip-textarea{width:100%;min-height:164px;resize:vertical;border:1px solid var(--line);border-radius:13px;background:var(--panel-2);color:var(--text);padding:15px;font-size:13px;line-height:1.65;outline:none}.clip-textarea::placeholder{color:var(--muted)}.compose-footer{display:flex;justify-content:space-between;align-items:center;margin-top:10px;color:var(--muted);font-size:10px}.compose-buttons{display:flex;gap:8px;align-items:center}.ghost-button{height:35px;border-color:var(--line);background:var(--panel);color:var(--muted);padding:0 11px}.send-button{height:37px}.advanced-options{border-top:1px solid var(--line);margin-top:16px;padding-top:13px;display:flex;justify-content:space-between;align-items:center}.check-option{display:inline-flex;gap:8px;align-items:center;font-size:11px;color:var(--muted);cursor:pointer;user-select:none}.check-option input{position:absolute;opacity:0;pointer-events:none}.checkmark{width:15px;height:15px;border:1px solid var(--line);border-radius:4px;display:inline-block;background:var(--panel-2);position:relative}.check-option input:checked+.checkmark{background:var(--blue);border-color:var(--blue)}.check-option input:checked+.checkmark:after{content:"";position:absolute;left:4px;top:1px;width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}.expiry-select{font-size:10px;color:var(--muted)}.expiry-select select{padding:6px 25px 6px 9px}.receive-option{border-top:1px solid var(--line);margin-top:12px;padding-top:12px;display:flex;justify-content:space-between;align-items:center;gap:10px}.receive-option small{color:var(--muted);font-size:9px}.count-badge{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 6px;border-radius:7px;background:var(--panel-2);color:var(--muted);font-size:10px;margin-left:5px;vertical-align:2px}.history-tools{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.ghost-button.small{height:31px;font-size:10px;padding:0 9px}.ghost-button.small svg{width:14px;height:14px}.import-label{cursor:pointer}.history-filter-row{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:20px 0 13px}.search-box{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;background:var(--panel-2);height:36px;padding:0 10px;min-width:180px}.search-box svg{width:15px;height:15px;stroke:var(--muted);fill:none;stroke-width:1.8}.search-box input{width:100%;border:0;outline:0;background:transparent;color:var(--text);font-size:11px}.filter-tabs{display:flex;gap:3px;background:var(--panel-2);padding:3px;border-radius:9px}.filter-tab{border:0;background:transparent;color:var(--muted);font-size:10px;border-radius:7px;padding:6px 9px}.filter-tab.active{background:var(--panel);color:var(--blue);box-shadow:0 2px 6px rgba(20,40,80,.08);font-weight:700}.history-list{display:grid;gap:9px}.history-card{border:1px solid var(--line);border-radius:13px;padding:12px 13px;background:var(--panel-2);min-width:0}.history-card-top,.history-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.history-card-top{margin-bottom:8px}.clip-kind{font-size:9px;font-weight:800;letter-spacing:.5px;color:var(--blue);background:color-mix(in srgb,var(--blue) 10%,transparent);border-radius:6px;padding:4px 7px}.clip-meta{font-size:9px;color:var(--muted)}.clip-content{font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;max-height:95px;overflow:hidden;color:var(--text);margin:0 0 12px}.clip-content.code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:var(--panel);border-radius:8px;padding:9px}.clip-content a{color:var(--blue)}.history-actions{display:flex;gap:5px}.mini-action{height:29px;padding:0 9px;border-radius:8px;border:1px solid var(--line);background:var(--panel);color:var(--muted);font-size:10px;display:inline-flex;align-items:center;gap:5px}.mini-action:hover{color:var(--blue);border-color:var(--blue)}.mini-action svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:1.8}.mini-action.favorite.active{color:#e6a329;border-color:#e6a329}.empty-state{padding:32px 10px;text-align:center;color:var(--muted);display:grid;justify-items:center;gap:7px}.empty-state b{font-size:12px;color:var(--text)}.empty-state small{font-size:10px}.empty-icon{width:40px;height:40px;border-radius:13px;background:var(--panel-2);display:grid;place-items:center;color:var(--muted)}.empty-icon svg{width:21px;stroke:currentColor;fill:none;stroke-width:1.7}.side-title-row{margin-bottom:15px}.device-list{display:grid;gap:9px}.device-row{display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid var(--line);border-radius:11px}.device-avatar{width:31px;height:31px;border-radius:10px;background:color-mix(in srgb,var(--blue) 12%,var(--panel));display:grid;place-items:center;color:var(--blue)}.device-avatar svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.7}.device-info{flex:1;min-width:0}.device-info b,.device-info small{display:block}.device-info b{font-size:11px}.device-info small{font-size:9px;color:var(--muted);margin-top:2px}.device-state{width:6px;height:6px;background:var(--green);border-radius:50%}.owner-note{display:flex;gap:8px;align-items:flex-start;margin-top:14px;padding:11px;border-radius:10px;background:var(--panel-2);color:var(--muted);font-size:9px;line-height:1.6}.owner-note svg{width:14px;height:14px;stroke:var(--green);fill:none;stroke-width:1.8;flex:none}.invite-panel .section-kicker{margin-bottom:5px}.invite-panel p{font-size:10px;line-height:1.65;color:var(--muted);margin:8px 0 13px}.invite-code-row{display:flex;align-items:center;justify-content:space-between;background:var(--panel-2);border:1px dashed var(--line);border-radius:11px;padding:9px 10px;margin-bottom:10px}.invite-code-row strong{letter-spacing:4px;font-size:18px}.invite-code-row .icon-button{width:31px;height:31px}.invite-panel .wide{margin:0}.privacy-panel{display:flex;gap:12px;align-items:flex-start;background:color-mix(in srgb,var(--green) 5%,var(--panel))}.privacy-icon{width:33px;height:33px;border-radius:10px;background:color-mix(in srgb,var(--green) 13%,var(--panel));display:grid;place-items:center;color:var(--green);flex:none}.privacy-icon svg{width:17px;stroke:currentColor;fill:none;stroke-width:1.7}.privacy-panel b{font-size:11px}.privacy-panel p{font-size:9px;color:var(--muted);line-height:1.65;margin:5px 0 0}.modal-layer{position:fixed;inset:0;background:rgba(9,15,28,.55);backdrop-filter:blur(5px);display:grid;place-items:center;padding:20px;z-index:50}.modal-card{width:min(440px,100%);background:var(--panel);border:1px solid var(--line);border-radius:22px;padding:26px;box-shadow:0 25px 80px #0003}.modal-symbol{width:42px;height:42px;border-radius:13px;background:color-mix(in srgb,var(--blue) 12%,var(--panel));color:var(--blue);display:grid;place-items:center;margin-bottom:15px}.modal-symbol svg{width:21px;stroke:currentColor;fill:none;stroke-width:1.8}.modal-card h2{font-size:19px;margin:0 0 9px}.modal-card p{font-size:12px;line-height:1.7;color:var(--muted);margin:0}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.modal-actions button{min-width:93px}.modal-actions .ghost-button{border-color:var(--line)}.modal-extra-input{width:100%;height:40px;border:1px solid var(--line);border-radius:10px;margin-top:14px;padding:0 11px;background:var(--panel-2);color:var(--text)}.toast-region{position:fixed;right:18px;bottom:18px;display:grid;gap:8px;z-index:70;pointer-events:none}.toast{background:#20293b;color:#fff;border:1px solid #ffffff20;border-radius:11px;padding:11px 14px;font-size:11px;box-shadow:0 10px 30px #0003;animation:toast-in .2s ease-out;max-width:min(360px,calc(100vw - 36px))}.toast.error{background:#8d303d}.toast.success{background:#17694f}@keyframes toast-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1050px){.app-shell{padding:0 22px}.room-layout{grid-template-columns:minmax(0,1fr) 285px}.compose-panel,.history-panel,.devices-panel,.invite-panel,.privacy-panel{padding:18px}.history-filter-row{align-items:flex-start;flex-direction:column}.filter-tabs{max-width:100%;overflow-x:auto}.filter-tab{white-space:nowrap}}
@media(max-width:760px){.app-shell{padding:0 15px}.topbar{height:64px}.security-pill{font-size:0;padding:8px}.security-pill i{margin:0}.home-view{padding:48px 0 24px}.hero{margin-bottom:30px}.hero h1{font-size:46px;letter-spacing:-2px}.hero-copy{font-size:13px}.mobile-only{display:block}.connection-grid{grid-template-columns:1fr;gap:14px}.create-panel,.join-panel{padding:22px}.feature-strip{grid-template-columns:1fr;gap:3px;margin-top:23px}.feature-strip>div{padding:8px 5px}.footer{padding:15px 0}.room-view{padding:14px 0 30px}.room-header{padding:12px;align-items:flex-start;gap:10px}.room-title-wrap{gap:8px}.room-actions{flex-wrap:wrap;justify-content:flex-end;gap:6px}.room-actions .status-pill{font-size:0;padding:9px}.room-actions .status-pill i{margin:0}.room-actions button{height:34px;padding:0 9px;font-size:10px}.room-layout{grid-template-columns:1fr}.sidebar-column{grid-template-columns:1fr 1fr}.privacy-panel{grid-column:1/-1}.compose-panel,.history-panel{padding:16px}.compose-title-row h3,.history-header h3{font-size:16px}.private-tag{font-size:0}.private-tag svg{width:17px;height:17px}.compose-controls{flex-wrap:wrap}.compose-footer{align-items:flex-end;gap:8px}.compose-buttons{gap:5px}.compose-buttons .ghost-button{font-size:0;width:38px;padding:0}.compose-buttons .ghost-button svg{width:17px;height:17px}.compose-buttons .send-button{padding:0 11px}.advanced-options{align-items:flex-start;gap:8px;flex-wrap:wrap}.receive-option{align-items:flex-start;flex-direction:column;gap:6px}.history-header{align-items:flex-start;flex-direction:column}.history-tools{justify-content:flex-start}.history-filter-row{margin-top:15px}.search-box{width:100%}.filter-tabs{width:100%;justify-content:space-between}.filter-tab{padding:6px 8px}.sidebar-column{gap:12px}.devices-panel,.invite-panel{padding:14px}.invite-code-row strong{font-size:15px;letter-spacing:3px}.privacy-panel{padding:14px}}
@media(max-width:420px){.hero h1{font-size:40px}.sidebar-column{grid-template-columns:1fr}.privacy-panel{grid-column:auto}.room-title-wrap h2{font-size:16px}.back-button{width:30px;height:30px}.room-actions .outline-button span,.room-actions .danger-button span{display:none}.room-actions button{width:34px;padding:0}.room-actions button svg{width:16px;height:16px}.compose-buttons .send-button{font-size:10px}.filter-tab{font-size:9px;padding:6px 6px}}
