:root{--search-surface:#252627}
.personal-library{margin-bottom:24px;color:var(--muted);font-size:14px;line-height:20px}
.personal-library label,.personal-library button{display:inline-block;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:transparent;color:inherit;font:inherit;cursor:pointer}
.personal-library input{display:block;max-width:100%;margin-top:8px}
.personal-library p{max-width:640px;margin:8px 0}
.library-tabs{position:fixed;top:0;left:50%;transform:translateX(-50%);z-index:20;display:flex;justify-content:center;gap:4px;width:max-content;max-width:calc(100% - 24px);padding:8px 12px 12px;padding-top:calc(8px + env(safe-area-inset-top,0px));border-radius:0 0 20px 20px;background:#101112;border:1px solid #303234;border-top:0;box-shadow:0 8px 24px #0003}
.library-tabs button{font:inherit;font-size:14px;line-height:20px;color:var(--muted);background:transparent;border:0;border-radius:8px;padding:12px 16px;cursor:pointer}
.library-tabs button[aria-pressed=true]{background:#292b2d;color:#eeefeb}
.library-tabs button:focus-visible,.import-dropzone:focus-within{outline:2px solid #eeefeb;outline-offset:4px}
.library-tabs button{white-space:nowrap}
body .search-section{padding-top:104px}
@media(max-width:400px){.library-tabs{padding-left:8px;padding-right:8px}.library-tabs button{padding:12px;font-size:14px}}
[hidden]{display:none!important}
.personal-library .import-dropzone{display:block;padding:48px 24px;text-align:center;border:1px dashed var(--muted);border-radius:16px;font-size:20px;line-height:28px}
.import-dropzone span{font-size:14px;line-height:20px}
.import-dropzone input{margin:16px auto 0}
.import-dropzone.drag-over{background:#292b2d}

/* Shared highlight, rather than two independently flashing button backgrounds. */
.library-navigation{display:flex;align-items:center;gap:8px;pointer-events:auto}
body .library-tabs{position:relative;top:auto;left:auto;transform:none;display:flex;gap:8px;padding:0;width:auto;max-width:none;border:0;background:transparent;border-radius:0;box-shadow:none}
body .library-tabs button{padding:8px 12px;min-height:36px;height:36px;border-radius:8px;font-size:14px;line-height:20px;background:var(--subtle);color:var(--muted);white-space:nowrap}
body .library-tabs button[aria-pressed=true]{background:var(--ink);color:var(--surface)}
body .library-highlight{display:none}
.annotation-progress{display:flex;align-items:center;gap:12px;padding:16px 0;color:var(--ink)}
.annotation-progress>div{flex:1;min-width:0}
.annotation-progress strong{font-size:16px;font-weight:500}
.annotation-progress p{margin:4px 0!important}
.annotation-progress progress{width:100%;height:4px;accent-color:var(--ink);border:0;display:block;margin-top:12px}
.annotation-progress progress::-webkit-progress-bar{background:var(--line);border-radius:4px}
.annotation-progress progress::-webkit-progress-value{background:var(--ink);border-radius:4px}
.annotation-progress progress::-moz-progress-bar{background:var(--ink);border-radius:4px}
.annotation-progress:not(.is-working) .reply-orb-sphere{animation-play-state:paused}
.library-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.personal-library .library-actions button{font:inherit;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--subtle);color:var(--ink);cursor:pointer}
.personal-library .library-actions button:disabled{opacity:.5;cursor:wait}
.import-privacy{max-width:440px;color:var(--muted);font-size:12px!important;line-height:16px!important;text-wrap:balance}
.annotation-skeleton{display:block;width:90%;height:12px;margin:6px 0;border-radius:4px;background:var(--line);opacity:.6;animation:annotation-pulse 1.8s ease-in-out infinite}
.annotation-skeleton.short{width:72px}.annotation-skeleton.medium{width:60%}
.bookmark-tags,.annotation-error{display:block;margin-top:8px;font-size:12px;line-height:16px;color:var(--muted)}
@keyframes annotation-pulse{50%{opacity:.25}}
@media(prefers-reduced-motion:reduce){.annotation-skeleton{animation:none}}
@media(max-width:600px){body[data-library=personal] .table-wrap table{min-width:0;width:100%;table-layout:fixed}body[data-library=personal] .site-column{width:34%}body[data-library=personal] .category-column{width:24%}body[data-library=personal] th,body[data-library=personal] td{padding:12px 8px;font-size:14px;line-height:20px;overflow-wrap:anywhere}body[data-library=personal] .site-link{gap:6px;min-width:0}body[data-library=personal] .site-link span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
.library-tabs{gap:0;padding:8px;width:auto;max-width:calc(100% - 32px);border:0;border-radius:0 0 24px 24px;background:var(--search-surface);box-shadow:none}
.library-tabs button{position:relative;z-index:1;padding:12px 16px;border-radius:16px;font-size:14px;line-height:20px;min-height:44px;transition:color 150ms ease-out}
.library-tabs button[aria-pressed=true]{background:transparent}
.library-highlight{position:absolute;left:0;top:8px;height:44px;border-radius:16px;background:var(--surface);box-shadow:none;pointer-events:none}
body .search-section{min-height:400px;padding:152px 0 40px}
body[data-library=personal] .search-section{min-height:0;padding-bottom:24px}
body[data-library=personal] h1{margin-bottom:24px}
.personal-library{max-width:640px;margin:0 auto 32px}
.personal-library .import-dropzone{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:248px;padding:32px 24px;border:1px dashed #666a6c;border-radius:24px;background:linear-gradient(145deg,#ffffff04,transparent);cursor:pointer}
.import-dropzone strong{font-weight:500;font-size:20px;line-height:28px;color:var(--ink)}
.import-dropzone>span{font-size:14px;line-height:20px}
.import-symbol{width:48px;height:48px;color:var(--muted);stroke:currentColor;stroke-width:1.5;margin-bottom:4px}
.import-choose{display:flex;align-items:center;gap:12px;margin-top:8px;padding:12px 16px;border-radius:12px;background:#36393a;color:var(--ink)}
.import-choose svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.import-help{max-width:360px;text-wrap:balance}
.personal-library .annotation-consent{display:flex;gap:12px;align-items:flex-start;border:0;padding:16px 0;font-size:14px;line-height:20px;cursor:pointer}
.annotation-consent input{display:inline-block;flex:none;width:16px;height:16px;margin:2px 0}
.personal-library p{font-size:14px;line-height:20px;margin:16px 4px;color:var(--muted)}
.personal-library [data-export]{margin-top:16px;border:0;padding-left:4px}
.personal-library .import-dropzone.drag-over{border-color:var(--ink);background:#ffffff0a}
@media(hover:hover){.import-dropzone:hover{border-color:#a6a8a2;background:#ffffff06}}
@media(prefers-reduced-motion:no-preference){
 .library-highlight{transition:transform 440ms cubic-bezier(.2,0,0,1),width 440ms cubic-bezier(.2,0,0,1)}
 .import-dropzone{transition:background-color 180ms ease-out,border-color 180ms ease-out,transform 280ms cubic-bezier(.2,0,0,1)}
 .import-dropzone.drag-over{transform:scale(1.012)}
 .import-symbol{transition:transform 280ms cubic-bezier(.2,0,0,1)}
 .drag-over .import-symbol{transform:translateY(4px)}
 .library-tabs button:not(:disabled):active{scale:.96;transition:scale 150ms ease-out}
}
@media(max-width:600px){body .search-section{padding-top:144px;min-height:360px}.personal-library .import-dropzone{min-height:224px;padding:24px 16px}.import-dropzone strong{font-size:18px;line-height:24px}}

/* Product navigation and quiet chat header. */
.links-mobile-bar>.library-navigation{display:none}
.links-mobile-bar .links-bar-panel{left:0;right:auto;align-items:flex-start}
.chat-modal-header{justify-content:flex-end}

/* Chat replies keep breathing room; the assistant only animates while thinking. */
.chat-modal-header>button{border-radius:8px;-webkit-tap-highlight-color:transparent}
.chat-modal-header>button:hover,.chat-modal-header>button:focus{background:transparent}
.chat:focus{outline:none}
.assistant-message{position:relative;display:block;max-width:min(calc(100% - 32px),640px);transform:translateX(0);transition:transform .28s ease-out}
.assistant-message.is-loading{transform:translateX(28px);max-width:min(calc(100% - 60px),612px)}
.assistant-message>.chat-s3{position:absolute;right:calc(100% + 8px);bottom:8px}
.chat-composer{padding-bottom:calc(32px + env(safe-area-inset-bottom))}
.search-section>.search-form{column-gap:10.2px;align-items:center}
@media(max-width:600px){.chat-composer{padding-bottom:calc(28px + env(safe-area-inset-bottom))}.search-section>.search-form{column-gap:6.8px}}
@media(prefers-reduced-motion:reduce){.assistant-message{transition:none}}
