/* DesignBookmark Motion components, adapted for MiniLens. See MOTION-NOTICES.md. */
:root{--motion-heart:#e84e80;--motion-green:#16824f;--motion-warn:#bd660c;--motion-error:#bf344c;--spring-input-bg:#f0f2f7}
html{scroll-padding-bottom:110px}.shell{padding-bottom:40px}.sidebar{top:20px;height:calc(100dvh - 40px);padding-top:15px;padding-bottom:20px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#dce1ec transparent}.sidebar>*{flex-shrink:0}.sidebar-bottom{padding-bottom:8px}.side-footer{padding-bottom:6px}.rightbar{padding-bottom:50px}main{padding-bottom:96px}dialog{max-height:calc(100dvh - 48px);scroll-padding-block:22px}.modal-head{position:sticky;top:0;z-index:5;background:var(--surface)}.modal-body{padding-bottom:30px}.field-error:empty{display:none}.page-header{position:relative}
/* Command button: quiet pill, lit keycaps, press spring and 300/28 open spring. */
.command-root{position:relative;flex:none;min-width:0;width:174px;z-index:20;transform-origin:right center}.command-shell{height:44px;border-radius:20px;background:#e9edf4;overflow:hidden;position:relative;transition:background .15s}.command-shell:hover{background:#e3e8f1}.command-trigger{width:100%;height:44px;padding:0 10px 0 14px;display:flex;align-items:center;justify-content:space-between;gap:9px;color:#62708a;font-size:11px;font-weight:600;white-space:nowrap}.command-trigger>.icon{width:15px;height:15px}.command-keys{display:flex;gap:3px}.command-root kbd{display:grid;place-items:center;min-width:20px;height:21px;border-radius:6px;background:#dfe5f0;color:#6d7890;padding:0 5px;font-size:10px;transition:background .075s,color .075s}.command-root kbd[data-down=true]{background:var(--blue);color:white}.command-field{position:absolute;inset:0;display:flex;align-items:center;gap:9px;padding:0 10px 0 14px;opacity:0;pointer-events:none;filter:blur(4px);transition:opacity .18s,filter .18s}.command-field>.icon{width:16px;height:16px;color:#7a86a0}.command-field input{width:0;flex:1;min-width:0;border:0;background:none;outline:0;font-size:12px;color:var(--ink);height:44px}.command-field input::placeholder{color:#7b86a0}.command-field input:focus-visible{outline:0}.command-close{padding:0;min-width:30px;min-height:32px;display:grid;place-items:center}.command-root.is-open .command-field{opacity:1;pointer-events:auto;filter:none}.command-root.is-open .command-trigger{opacity:0;filter:blur(4px);pointer-events:none}.command-root:focus-within .command-shell{outline:2px solid #8392ff;outline-offset:3px}.command-panel{position:absolute;top:54px;right:0;width:370px;max-width:calc(100vw - 36px);background:var(--surface);border:1px solid var(--line);border-radius:15px;box-shadow:0 15px 45px #26365b15;padding:9px;transform-origin:top right;z-index:60}.command-panel[hidden]{display:none}.command-panel .search-results{max-height:min(390px,calc(100dvh - 180px));overscroll-behavior:contain}.command-help{display:flex;justify-content:space-between;gap:12px;padding:7px 8px 3px;border-top:1px solid var(--line);color:#7b8699;font-size:9px}.command-panel .search-result{min-height:55px}.command-panel .search-hint{padding:14px 9px}
/* Springy input: native text editing, character mirror, stretching spring caret. */
.auth-form{gap:13px}.spring-label-wrap{display:block!important;position:relative;min-width:0}.spring-shell{height:60px;width:100%;position:relative;overflow:hidden;border:0;border-radius:18px;background:var(--spring-input-bg);outline:2px solid transparent;outline-offset:0;transition:background .25s,outline-color .2s;transform-origin:left center}.spring-shell.is-focused{background:#edf0fa;outline-color:#c5cef4}.spring-shell.is-error{background:#fff1ef;outline-color:#e6a598}.spring-label{position:absolute;left:17px;top:20px;font-size:14px;font-weight:600;color:#737e92;transform-origin:left top;pointer-events:none;white-space:nowrap;z-index:2}.spring-box{position:absolute;left:17px;right:17px;top:28px;height:24px}.spring-shell.has-eye .spring-box{right:53px}.spring-clip{position:absolute;inset:0;overflow:hidden;pointer-events:none}.spring-layer{position:absolute;left:0;top:0;height:24px;line-height:24px;white-space:pre;pointer-events:none}.spring-glyph{display:inline-block;font-size:14px;font-weight:600;line-height:24px;color:var(--ink);font-kerning:none;white-space:pre;transform-origin:50% 80%}.spring-glyph.is-in{animation:si-drop .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--d,0ms)}.spring-glyph.is-out{position:absolute;top:0;animation:si-out .34s cubic-bezier(.5,0,.75,0) forwards}.spring-glyph.is-nope{animation:si-nope .46s ease both;animation-delay:var(--d,0ms)}.spring-glyph.is-fly{animation:si-fly .42s cubic-bezier(.5,0,.75,0) forwards;animation-delay:var(--d,0ms)}.spring-glyph.is-selected{background:#cfd7f6}
.auth-form .spring-box input{position:absolute;inset:0;width:100%;height:24px;border:0!important;border-radius:0;padding:0!important;outline:0!important;background:transparent!important;font:600 14px/24px Manrope,'Segoe UI',sans-serif;letter-spacing:0;font-kerning:none;color:transparent!important;-webkit-text-fill-color:transparent!important;caret-color:transparent}.auth-form .spring-box input::placeholder{color:transparent}.spring-box input::selection{background:#adbce74d;color:transparent}.spring-caret{position:absolute;left:0;top:2px;height:20px;width:2px;border-radius:2px;background:var(--blue);opacity:0;pointer-events:none;transform-origin:left center}.spring-caret.is-blinking{animation:si-blink 1s steps(1) infinite}.spring-error{display:block;min-height:0;margin:6px 3px 0;font-size:10px;line-height:1.6;color:var(--motion-error);font-weight:500}.spring-error:empty{display:none}.spring-done{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:7px;font-size:13px;font-weight:700;color:#fff;opacity:0;pointer-events:none;transition:opacity .15s,transform .3s;transform:scale(.9)}.spring-done .icon{width:18px;height:18px}.spring-shell.is-done{background:var(--motion-green);outline-color:transparent}.spring-shell.is-done .spring-done{opacity:1;transform:scale(1)}.spring-shell.is-done .spring-label,.spring-shell.is-done .spring-box,.spring-shell.is-done .password-eye{opacity:0}
@keyframes si-drop{0%{transform:translateY(14px) rotate(-16deg) scale(.5);opacity:0;filter:blur(3px)}55%{transform:translateY(-3px) rotate(4deg) scale(1.1);opacity:1;filter:none}80%{transform:translateY(1px) rotate(-1deg) scale(.98)}100%{transform:none;opacity:1;filter:none}}@keyframes si-out{to{transform:translateY(-18px) rotate(20deg) scale(.5);opacity:0;filter:blur(3px)}}@keyframes si-nope{0%,100%{transform:none}20%{transform:translateX(-4px) rotate(-8deg)}40%{transform:translateX(4px) rotate(6deg)}60%{transform:translateX(-2px)}80%{transform:translateX(1px)}}@keyframes si-fly{to{transform:translateY(-28px) scale(.6);opacity:0;filter:blur(4px)}}@keyframes si-blink{50%{opacity:0}}
/* Password strength: staggered bar springs, rising label, drawing eye slash. */
.password-eye{position:absolute;right:7px;top:8px;width:44px;height:44px;display:grid;place-items:center;border-radius:12px;color:#7886a0}.password-eye:hover{background:#dfe5f3}.password-eye svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.password-eye .eye-slash{stroke-dasharray:22;stroke-dashoffset:0}.password-eye .eye-pupil{transform-origin:12px 12px;transform:scale(.5)}.password-strength{margin:10px 2px 0;font-weight:500}.strength-bars{display:flex;gap:6px}.strength-bars i{height:5px;flex:1;border-radius:4px;position:relative;background:#e2e6ee;overflow:hidden}.strength-bars b{position:absolute;inset:0 auto 0 0;width:0;background:#bd344a;border-radius:4px;transition:background .25s}.strength-foot{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:7px;font-size:10px;color:#748198}.strength-word{font-weight:700;min-width:105px}.strength-note{font-size:9px;line-height:1.6;color:#738099}.auth-note{font-size:10px}.auth-switch{padding:6px}.auth-form .field-error{margin:0}
/* Like burst: 520/13 icon spring, 300/26 fill spring, 260/20 number roll. */
.post-actions{gap:17px}.post-actions button{min-height:36px;min-width:34px;padding:0 7px;border-radius:20px;transition:background .18s,color .18s;isolation:isolate;overflow:visible}.post-actions button:hover{background:#f1f3f9}.post-actions .reaction-visual{position:relative;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex:none}.reaction-visual>.icon{width:18px;height:18px;overflow:visible}.reaction-sparks{position:absolute;left:50%;top:50%;width:0;height:0;pointer-events:none;z-index:3}.reaction-sparks i{position:absolute;left:-2px;top:-2px;width:4px;height:4px;border-radius:50%;opacity:0}.post-actions button[data-selected=true]{background:#edf1fc;color:var(--blue)}.post-actions button[data-like][data-selected=true]{color:var(--motion-heart);background:#fceef3}.post-actions button[data-repost][data-selected=true]{color:var(--motion-green);background:#eaf5ef}.post-actions button[data-save][data-selected=true] .icon{fill:var(--blue)}.post-actions button .count-window{font-variant-numeric:tabular-nums;height:20px;line-height:20px}.post-actions button .count-track{line-height:20px}.post-actions button .count-track span{height:20px;line-height:20px}
/* Hold to publish: linear fill while held, spring release, server-confirmed check. */
.publish-actions{flex-wrap:wrap;justify-content:flex-end;gap:9px!important}.hold-wrap{display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:220px;max-width:100%}.hold-stage{width:220px;max-width:100%;height:48px;display:flex;justify-content:flex-end}.compose-footer .hold-publish{position:relative;display:block;width:220px;min-width:48px;height:48px;min-height:48px;padding:0;border-radius:24px;background:#e8ecfa;color:#5368b8;overflow:hidden;font-size:11px;font-weight:750;touch-action:none;user-select:none;transition:background .25s}.hold-publish:disabled{opacity:.45}.hold-publish:active{transform:none}.hold-fill{position:absolute;inset:0 auto 0 0;width:100%;background:var(--blue);transform:scaleX(0);transform-origin:left center;border-radius:inherit}.hold-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;transition:opacity .2s,filter .2s}.hold-label.is-top{color:#fff;clip-path:inset(0 100% 0 0)}.hold-check{position:absolute;left:50%;top:50%;width:24px;height:24px;margin:-12px 0 0 -12px;color:#fff;opacity:0}.hold-check path{stroke-dasharray:24;stroke-dashoffset:24}.hold-publish[data-mode=done]{background:var(--motion-green)}.hold-publish[data-mode=done] .hold-label,.hold-publish[data-mode=pending] .hold-label{opacity:0;filter:blur(4px)}.hold-publish[data-mode=done] .hold-fill{opacity:0}.hold-publish[data-mode=done] .hold-check{opacity:1;transition:opacity .1s .12s}.hold-publish[data-mode=done] .hold-check path{stroke-dashoffset:0;transition:stroke-dashoffset .45s cubic-bezier(.65,0,.35,1) .16s}.hold-publish[data-mode=pending]:after{content:'';position:absolute;inset:14px;border-radius:50%;border:2px solid #ffffff60;border-top-color:#fff;animation:hold-spin .7s linear infinite}.hold-hint{font-size:9px;color:#7683a0;font-weight:500}.hold-options{display:flex;justify-content:space-between;align-items:center;gap:12px;width:220px;max-width:100%}.hold-alternative{font-size:9px;padding:4px 0;color:#6c7eaa;text-decoration:underline;text-underline-offset:3px;min-height:24px}.hold-confirm{display:flex;align-items:center;gap:6px;justify-content:flex-end;flex-wrap:wrap;margin-top:5px;font-size:10px;color:#75829d}.hold-confirm[hidden]{display:none}.hold-confirm button{min-height:32px;padding:0 10px;border-radius:9px;background:#e9edfa;color:var(--blue);font-size:10px}.hold-confirm button:first-child{background:var(--blue);color:#fff}@keyframes hold-spin{to{transform:rotate(360deg)}}
@media(max-width:1190px){.command-root{width:165px}.command-trigger{font-size:10px}}
@media(max-width:760px){.shell{padding-bottom:calc(35px + env(safe-area-inset-bottom))}.sidebar{display:none}main{padding-bottom:140px}.page-header .mobile-search{display:none}.command-root{width:44px;margin-left:auto}.command-trigger{padding:0;justify-content:center}.command-trigger>.command-caption,.command-trigger>.command-keys{display:none}.command-trigger>.icon{width:19px;height:19px}.command-root.is-open{position:absolute;top:0;right:0}.command-field input{font-size:16px}.command-panel{width:100%;max-width:none}.command-shell{border-radius:15px}.command-help{font-size:9px}.command-panel .search-results{max-height:min(380px,calc(100dvh - 180px))}.post-actions{gap:8px}.post-actions button{min-height:44px;min-width:36px}.auth-form .spring-box input,.spring-glyph{font-size:16px!important;line-height:24px}.spring-label{font-size:15px}.spring-shell{height:62px}.spring-box{top:29px}.password-eye{top:9px}.compose-footer{gap:16px}.publish-actions{width:100%;justify-content:space-between;align-items:flex-start!important}.hold-wrap{margin-left:auto}.compose-footer .hold-publish{min-height:48px}.modal-body{padding-bottom:30px}.strength-foot{font-size:10px}}
@media(prefers-reduced-motion:reduce){.spring-caret{display:none}.auth-form .spring-box input{color:var(--ink)!important;-webkit-text-fill-color:var(--ink)!important;caret-color:var(--blue)}.spring-layer{visibility:hidden}.command-field{filter:none}.hold-publish[data-mode=pending]:after{animation:none}.spring-glyph,.spring-label,.reaction-visual{animation:none!important;transition:none!important}}
.command-root.is-open{z-index:80}@media(max-width:950px){.page-header:has(.command-root.is-open)>div:first-child{visibility:hidden}}

/* Reactions keep only the icon/count color: no circular or pill backgrounds. */
.post-actions button,.post-actions button:hover,.post-actions button[data-selected=true],.post-actions button[data-like][data-selected=true],.post-actions button[data-repost][data-selected=true]{background:transparent}

/* Feedback states: success belongs to the action button, not a field. */
.auth-form .primary.auth-submit-success,.auth-form .primary.auth-submit-success:disabled{background:#14804f;color:#fff;opacity:1;gap:8px}.auth-submit-success .icon{width:20px;height:20px}
.compose-footer .hold-publish[data-mode=pending],.compose-footer .hold-publish[data-mode=done]{opacity:1}.compose-footer .hold-publish[data-mode=done]{background:#14804f;color:#fff}.hold-success{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;color:white;white-space:nowrap;opacity:0;transform:translateY(5px);transition:opacity .2s .1s,transform .3s .1s}.hold-success .icon{width:21px;height:21px}.hold-publish.is-expanded .hold-check{opacity:0;transition:opacity .1s}.hold-publish.is-expanded .hold-success{opacity:1;transform:translateY(0)}@media(prefers-reduced-motion:reduce){.hold-success{transition:none}}
