/* Personal workspace; the original search header keeps its existing layout. */
/* Keep the footer at the viewport bottom on short pages, after content on long pages. */
body.min-h-screen{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
body>header,body>footer{flex-shrink:0}
body>main{flex:1 0 auto}
body>footer{padding-bottom:0}
[hidden]{display:none!important}
.bookmark-shell{max-width:1120px;margin:8px auto 0;color:#18243a}
.bookmark-workspace-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-bottom:1px solid #e3e9f2;padding-bottom:16px;margin-bottom:24px}
.bookmark-workspace-tab,.bookmark-button,.bookmark-group,.bookmark-text-button,.bookmark-save{font:inherit;cursor:pointer;border:0;border-radius:10px;padding:9px 14px;background:transparent;color:#64748b}
.bookmark-workspace-tab{font-weight:600;font-size:16px}
.bookmark-workspace-tab[aria-pressed=true]{color:#3278f6;background:#eaf2ff}
.bookmark-add{margin-left:auto;background:#3278f6;color:#fff}
.bookmark-button:hover,.bookmark-group:hover{background:#edf4ff;color:#2563eb}
.bookmark-groups-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:26px}
#bookmarkGroupTabs{display:flex;gap:7px;flex-wrap:wrap;flex:1}
.bookmark-group{font-size:13px;padding:6px 12px}
.bookmark-group[aria-pressed=true]{background:white;color:#1e293b;box-shadow:0 2px 6px #203b6510}
.bookmark-custom-group{max-width:100%;overflow-wrap:anywhere;text-align:left;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:pan-y}
.bookmark-menu-content.bookmark-group-context-menu{position:fixed;right:auto;z-index:90;max-width:calc(100vw - 16px)}
.bookmark-text-button{color:#3278f6;font-size:13px;padding:5px 10px}
.bookmark-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:20px 0 14px}
.bookmark-section-heading h2,.bookmark-section-heading h3{font-size:16px;font-weight:650;margin:0;overflow-wrap:anywhere}
.bookmark-section-heading span{font-size:12px;color:#8591a4}
.personal-bookmark-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.personal-bookmark{position:relative;min-width:0;border-radius:14px;background:white;border:1px solid #e9edf4;box-shadow:0 2px 4px #21385804;display:flex;align-items:center;padding:17px 36px 17px 16px;transition:border-color .15s,box-shadow .15s}
.personal-bookmark:hover{border-color:#b6d0fb;box-shadow:0 4px 12px #2563eb0a}
.bookmark-open{display:flex;gap:12px;align-items:center;min-width:0;width:100%;color:inherit;text-decoration:none}
.bookmark-logo{position:relative;width:38px;height:38px;flex-shrink:0;display:grid;place-items:center;border-radius:10px;background:#edf4ff;color:#3278f6;font-size:18px;font-weight:700;overflow:hidden}
.bookmark-logo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:white}
.bookmark-labels{display:flex;flex-direction:column;min-width:0;gap:2px}
.bookmark-name{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.bookmark-domain{font-size:11px;color:#8b97aa;overflow-wrap:anywhere}
.bookmark-menu{position:absolute;right:8px;top:14px}
.bookmark-menu summary{list-style:none;cursor:pointer;padding:0 5px;color:#8491a7;font-size:20px;border-radius:6px}
.bookmark-menu summary::-webkit-details-marker{display:none}
.bookmark-menu[open]{z-index:20}
.bookmark-menu-content{position:absolute;right:0;top:30px;width:180px;padding:6px;background:white;box-shadow:0 8px 30px #1c355526;border:1px solid #e2e8f0;border-radius:12px}
.bookmark-menu-content button{display:block;text-align:left;width:100%;font-size:13px}
.bookmark-remove{color:#d14646}
.bookmark-move{display:block;font-size:12px;color:#64748b;padding:8px 12px}
.bookmark-move select{width:100%;margin-top:6px;font-size:13px;padding:6px;border:1px solid #dce4ef;border-radius:7px;background:white;color:#1e293b}
.bookmark-empty{text-align:center;padding:55px 16px 65px;background:#ffffff85;border:1px dashed #d7e2f1;border-radius:18px}
.bookmark-empty-icon{width:58px;height:58px;border-radius:18px;background:#eaf2ff;color:#4b83ec;display:grid;place-items:center;margin:0 auto 18px;font-size:24px}
.bookmark-empty h3{font-size:19px;font-weight:600;margin:0 0 10px}
.bookmark-empty p{font-size:14px;color:#7a889d;margin:0 0 24px}
.bookmark-empty-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.bookmark-empty-actions button{background:white;border:1px solid #dbe5f4;color:#3278f6}
.bookmark-recent-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:30px;color:#8a96a9;font-size:12px}
#personalRecent{display:flex;gap:16px;flex-wrap:wrap;min-width:0}
#personalRecent a{color:#69778c;text-decoration:none;overflow-wrap:anywhere}
#bookmarkStatus{position:relative;z-index:30;font-size:13px;color:#2563eb;min-height:28px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:15px 0}
#bookmarkStatus:empty{display:none}
.bookmark-history-card{display:block;padding:16px}
.bookmark-create-group{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 20px}
.bookmark-create-group input{padding:8px 12px;border:1px solid #dbe3ef;border-radius:9px;min-width:0;max-width:100%;background:white}
main .page-layout.bookmark-discovery-layout{grid-template-columns:minmax(180px,220px) minmax(0,1fr);gap:24px}
.bookmark-discovery-layout .sidebar-secondary{display:none}
main .page-layout.bookmark-discovery-layout.is-searching{display:block}
.bookmark-discovery-layout.is-searching .sidebar-primary{display:none}
.bookmark-discovery-layout #websiteGrid{grid-template-columns:repeat(3,minmax(0,1fr))}
.bookmark-discovery-card{background:white;border:1px solid #e6edf5;border-radius:14px;padding:18px;display:flex;flex-direction:column;min-width:0}
.bookmark-discovery-description{font-size:13px;line-height:1.7;color:#718096;margin:14px 0;flex:1;overflow-wrap:anywhere}
.bookmark-save{background:#edf4ff;color:#3278f6;font-size:13px;padding:8px 12px;margin-top:10px;width:100%}
.bookmark-save:disabled{background:#f2f5fa;color:#8c98aa;cursor:default}
.bookmark-discovery-empty{grid-column:1/-1;padding:40px 15px;color:#7c899e;text-align:center}
.bookmark-personal-matches{margin-bottom:28px}
.bookmark-search-library-label{font-size:15px;font-weight:600;margin:20px 0 12px}
.bookmark-modal{position:fixed;inset:0;z-index:100;background:#15213a66;display:flex;align-items:center;justify-content:center;padding:20px}
.bookmark-modal-content{background:white;border-radius:20px;padding:26px;width:100%;max-width:440px;max-height:90vh;overflow:auto;box-shadow:0 20px 60px #0c193833}
.bookmark-modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.bookmark-modal-header h2{font-size:18px;font-weight:650}
.bookmark-modal-content label{display:block;margin:15px 0;font-size:13px;color:#617086}
.bookmark-modal-content input,.bookmark-modal-content select{display:block;width:100%;border:1px solid #dbe3ef;border-radius:9px;padding:10px 12px;margin-top:7px;background:white;color:#18243a;font-size:16px}
.bookmark-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
.bookmark-error{color:#c13c3c;font-size:13px}
.dark-mode .bookmark-shell{color:#e3eaf7}
.dark-mode .bookmark-workspace-nav{border-color:#334155}
.dark-mode .bookmark-workspace-tab[aria-pressed=true],.dark-mode .bookmark-save,.dark-mode .bookmark-logo,.dark-mode .bookmark-empty-icon{background:#253d60;color:#9cbeff}
.dark-mode .personal-bookmark,.dark-mode .bookmark-discovery-card,.dark-mode .bookmark-menu-content,.dark-mode .bookmark-modal-content,.dark-mode .bookmark-empty-actions button,.dark-mode .bookmark-group[aria-pressed=true]{background:#1e293b;border-color:#334155;color:#e2e8f0}
.dark-mode .bookmark-empty{background:#1e293b88;border-color:#3c506e}
.dark-mode .bookmark-move select,.dark-mode .bookmark-modal-content input,.dark-mode .bookmark-modal-content select,.dark-mode .bookmark-create-group input{background:#162235;border-color:#42526b;color:#e2e8f0}
.dark-mode .bookmark-save:disabled{background:#263346;color:#93a1b8}
.dark-mode #personalRecent a,.dark-mode .bookmark-domain,.dark-mode .bookmark-modal-content label{color:#a2b0c5}
@media(max-width:1000px){.personal-bookmark-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bookmark-discovery-layout #websiteGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.personal-bookmark-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.personal-bookmark{padding:15px 30px 15px 12px}.bookmark-open{gap:9px}.bookmark-logo{width:32px;height:32px}.bookmark-workspace-tab{font-size:14px}.bookmark-add{padding:8px 10px;font-size:13px}main .page-layout.bookmark-discovery-layout{grid-template-columns:minmax(0,1fr)}.bookmark-discovery-layout .sidebar-primary>.sticky{position:static}.bookmark-discovery-layout #sidebarNav{display:flex;flex-wrap:wrap;gap:6px}.bookmark-discovery-layout .category-item{flex:1 1 135px}.bookmark-discovery-layout #hotTags{justify-content:flex-start}.bookmark-modal-content{padding:20px}.bookmark-workspace-nav{margin-bottom:18px}}
@media(max-width:380px){.bookmark-name{font-size:13px}.bookmark-logo{width:28px;height:28px}.bookmark-domain{font-size:10px}.personal-bookmark-grid{gap:8px}.bookmark-workspace-nav{gap:2px}.bookmark-workspace-tab{padding:8px 10px}}
@media(pointer:coarse){.bookmark-workspace-tab,.bookmark-button,.bookmark-group,.bookmark-text-button,.bookmark-save,.bookmark-menu summary{min-height:44px}.bookmark-menu summary{min-width:30px;display:flex;align-items:center}.bookmark-menu{top:8px}.bookmark-open{min-height:44px}}
