@font-face{font-family:'DM Sans';src:url('/fonts/DMSans-Variable.ttf') format('truetype');font-weight:100 1000;font-style:normal;font-display:swap}
@font-face{font-family:'Space Grotesk';src:url('/fonts/SpaceGrotesk-Variable.ttf') format('truetype');font-weight:300 700;font-style:normal;font-display:swap}
:root{font-family:'DM Sans',Arial,sans-serif;font-size-adjust:from-font;font-synthesis:none;color:#171717;background:#fff;--line:#e8e8e8;--muted:#737373;--brand:#171717;--brand-hover:#333;--input-fill:#f2f2f2;accent-color:var(--brand)}
*{box-sizing:border-box}
body{margin:0;font-size:14px;line-height:1.5;-webkit-tap-highlight-color:transparent}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
button,a,input,textarea{touch-action:manipulation}
button{border:0;background:none;color:inherit;cursor:pointer}
button:disabled{opacity:.55;cursor:wait}
button,a,input,textarea{outline-offset:4px}
:focus-visible{outline:2px solid var(--brand);outline-offset:4px}
[hidden]{display:none!important}
.icon{display:inline-block;width:20px;height:20px;vertical-align:middle;flex-shrink:0}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.skip-link{position:fixed;top:10px;left:10px;padding:10px 14px;background:#fff;border:1px solid #171717;border-radius:4px;transform:translateY(-160%);z-index:100}
.skip-link:focus{transform:none}
.site-header{border-bottom:1px solid var(--line)}
.header-inner{max-width:948px;padding:22px 24px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:78px}
.brand{color:var(--brand);display:inline-flex;align-items:center;gap:9px;font-size:24px;font-weight:650;letter-spacing:-1px;line-height:1}
.brand img,.brand-logo{width:111px;height:32px;display:block}
.brand-eye{transform-box:fill-box;transform-origin:center}
@keyframes brand-wink{0%,100%{transform:scale(1)}40%{transform:scale(1.35,.3);animation-timing-function:cubic-bezier(.34,1.36,.64,1);animation-timing-function:linear(0,1.1,.95,1.02,1)}}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.brand:hover .brand-eye{animation:brand-wink 400ms cubic-bezier(.23,1,.32,1)}}
.header-actions{display:flex;align-items:center;gap:14px;font-size:12px}
.header-actions form{display:flex}
.account-name{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#525252}
.text-link:hover,.preview-notice a:hover,.search-summary a:hover{text-decoration:underline;text-underline-offset:3px}
.main-content{max-width:948px;margin:36px auto 60px;padding:0 24px}
.list-toolbar{display:flex;align-items:center;gap:16px;margin-bottom:20px}
.search-field{display:flex;align-items:center;gap:10px;flex:1;min-width:0;height:48px;padding-left:18px;border:1px solid transparent;border-radius:999px;background:var(--input-fill)}
.search-field>.icon{width:17px;height:17px;color:#737373}
.search-field:focus-within{outline:2px solid var(--brand);outline-offset:3px}
.search-field input{min-width:0;width:100%;padding:10px 0;border:0;background:none;font-size:13px;outline:none;color:#171717}
.search-field input::placeholder{color:#737373}
.search-field .icon-button{width:36px;height:36px;margin-right:2px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 17px;border:1px solid transparent;border-radius:999px;font-size:12px;font-weight:550;line-height:1.5;white-space:nowrap;text-decoration:none;transition:background-color 140ms ease,color 140ms ease,transform 140ms cubic-bezier(.23,1,.32,1),box-shadow 140ms ease}
.button:not(:disabled):not([aria-disabled=true]):active{transform:scale(.98)}
.button:disabled,.button[aria-disabled=true]{opacity:.45;cursor:not-allowed;transform:none}
.button .icon{width:17px;height:17px}
.primary{color:#fff;background:var(--brand);border-color:var(--brand)}

.destructive{color:#fff;background:#171717;border-color:#171717}

.secondary{color:#404040;background:var(--input-fill);border-color:transparent}
@media(hover:hover) and (pointer:fine){.primary:not(:disabled):hover,.destructive:not(:disabled):hover{background:var(--brand-hover);border-color:var(--brand-hover)}.secondary:not(:disabled):hover{background:#e8e8e8;color:#171717}}
.full-width{width:100%}
.icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:8px;border-radius:50%;color:#737373;flex-shrink:0;transition:background-color 140ms ease,color 140ms ease,transform 140ms cubic-bezier(.23,1,.32,1)}
.icon-button .icon{width:18px;height:18px}
@media(hover:hover) and (pointer:fine){.icon-button:not(:disabled):hover{color:#171717;background:#f0f0f0}}
.icon-button:not(:disabled):active{transform:scale(.95)}
.preview-notice{font-size:12px;color:#737373;margin:0 0 18px}
.preview-notice a{color:#404040}
.search-summary{display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:12px;margin-bottom:12px;color:#737373}
.search-summary a{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.search-summary .icon{width:13px;height:13px}
.saved-list{list-style:none;padding:0;margin:0}
.saved-row{display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding:16px 0;min-height:89px}
.saved-link{display:flex;align-items:center;gap:16px;min-width:0;flex:1}
.saved-link:hover .row-title{text-decoration:underline;text-underline-offset:3px}
.row-preview{position:relative;width:144px;aspect-ratio:3/2;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:4px;background:#f5f5f5;color:#737373;overflow:hidden}
.row-preview>.icon{width:24px;height:24px}
.row-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
.row-copy{min-width:0;display:block}
.row-title{display:block;font-size:14px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}
.row-meta{display:block;font-size:12px;color:#737373;line-height:1.5;margin-top:3px;overflow-wrap:anywhere}
.row-meta:empty{display:none}
.row-date{font-size:11px;white-space:nowrap;color:#737373;flex-shrink:0}
.row-details{color:#a3a3a3;margin-right:-7px}
.empty-state{font-size:13px;color:#737373;margin:38px 0}
.pagination{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:28px;font-size:12px;color:#737373}
.back-link{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#737373;margin-bottom:25px}
.back-link:hover{color:#171717}
.back-link .icon{width:16px;height:16px}
.item-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px}
.item-heading h1{font-size:26px;font-weight:550;line-height:1.4;letter-spacing:-.6px;margin:0;overflow-wrap:anywhere}
.item-heading .button{flex-shrink:0}
.item-source{display:flex;align-items:center;gap:7px;color:#737373;font-size:12px;margin:8px 0 0;overflow-wrap:anywhere}
.item-source .icon{width:15px;height:15px}
.item-content{max-width:660px}
.item-media{background:#f7f7f7;border:1px solid var(--line);border-radius:5px;overflow:hidden;margin-bottom:28px}
.item-media img,.item-media video{display:block;max-width:100%;max-height:650px;margin:auto}
.item-media video{width:100%}
.item-url{display:block;font-size:13px;color:#737373;overflow-wrap:anywhere;margin-bottom:28px;text-decoration:underline;text-underline-offset:3px}
.file-description{font-size:13px;color:#737373;margin:0 0 28px}
.edit-form{margin-top:24px}
.edit-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px}
.delete-item{color:#737373}
label:not(.upload-zone):not(.checkbox-label):not(.sr-only){display:block;font-size:12px;font-weight:500;margin-bottom:7px}
input:not([type=checkbox]):not([type=file]):not([type=hidden]):not([type=search]):not([type=range]),textarea{display:block;width:100%;min-height:48px;border:1px solid transparent;border-radius:999px;padding:13px 18px;background:var(--input-fill);color:#171717;font-size:14px;margin-bottom:20px}
textarea{resize:vertical;line-height:1.7;border-radius:24px;padding:16px 18px}
input::placeholder,textarea::placeholder{color:#737373}
.optional{font-weight:400;color:#737373}
.field-hint{font-size:11px;line-height:1.6;color:#737373;margin:7px 0 17px;overflow-wrap:anywhere}
.field-hint:empty{display:none}
.form-errors{font-size:12px;color:#171717;background:#f5f5f5;border:1px solid #bdbdbd;border-radius:5px;padding:10px 13px;margin:0 0 17px}
.form-errors p{margin:3px 0}
.form-errors:empty{display:none}
dialog{width:min(540px,calc(100% - 32px));max-height:calc(100svh - 40px);padding:28px;background:#fff;color:#171717;border:1px solid #e5e5e5;border-radius:20px;box-shadow:0 24px 80px #0003,0 4px 16px #0001;scrollbar-gutter:stable}
dialog:modal{overscroll-behavior:contain}
dialog::backdrop{background:#0007;overflow:hidden;overscroll-behavior:contain}
.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:26px}
.dialog-heading h1{font-size:24px;font-weight:500;line-height:1.3;letter-spacing:-.7px;margin:4px 0 0;overflow-wrap:anywhere}
.dialog-description{font-size:13px;color:#737373;line-height:1.7;margin:0 0 24px}
.dialog-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.or-divider{display:flex;align-items:center;gap:12px;font-size:11px;color:#737373;margin:18px 0}
.or-divider::before,.or-divider::after{content:'';height:1px;background:var(--line);flex:1}
.upload-zone{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:128px;padding:20px 12px;margin-bottom:18px;text-align:center;border:1px dashed #bdbdbd;border-radius:16px;background:#fafafa;cursor:pointer}
.upload-zone>.icon{width:25px;height:25px;color:#737373}
.upload-zone strong{font-size:12px;font-weight:500}
.upload-zone>span{font-size:11px;color:#737373}
.upload-zone input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.upload-zone:focus-within,.upload-zone.is-dragging{border-color:var(--brand);outline:2px solid var(--brand);outline-offset:3px}
.help-block{display:flex;gap:15px;margin:22px 0}
.help-block>.icon{margin-top:2px;color:#737373}
.help-block h2{font-size:13px;font-weight:550;margin:0 0 7px}
.help-block p{font-size:12px;line-height:1.7;color:#737373;margin:0}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:80;display:flex;align-items:center;gap:10px;max-width:calc(100% - 32px);width:max-content;padding:12px 18px;background:#171717;color:#fff;border-radius:6px;font-size:12px}
.toast>.icon{width:17px;height:17px}
.auth-shell{max-width:1080px;padding:31px 35px 60px;margin:auto}
.auth-header{display:flex;align-items:center;justify-content:space-between;gap:20px}
.auth-alternate{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:13px}
.auth-alternate .icon{width:15px;height:15px}
.auth-alternate:hover{text-decoration:underline;text-underline-offset:4px}
.auth-shell>.back-link{float:right;margin:5px 0 0}
.auth-card{max-width:400px;margin:90px auto 40px;padding:0;border:0}
.auth-card h1{font-size:42px;font-weight:500;letter-spacing:-1.8px;line-height:1.1;margin:0 0 36px}
.auth-card .dialog-description{font-size:12px}
.auth-submit{margin-top:10px;min-height:48px;border-radius:999px;font-size:14px}
.auth-options{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin:4px 0 20px}
.auth-options .checkbox-label,.auth-options .forgot-link{margin:0}
.auth-card .checkbox-label{color:#525252}
.auth-card .field-hint{margin-top:-10px;margin-bottom:22px}
.auth-card .button.primary{min-height:48px;border-radius:999px}
.auth-card label:not(.checkbox-label){margin-bottom:9px;font-size:13px}
.auth-switch{text-align:center;font-size:12px;color:#737373;margin:22px 0 0}
.auth-switch a{color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.checkbox-label{display:flex;align-items:center;gap:8px;font-size:12px;color:#737373;margin:0 0 20px;cursor:pointer}
.checkbox-label input{accent-color:var(--brand)}
@media(max-width:600px){
 .header-inner{min-height:68px;padding:16px 20px}
 .header-actions{gap:8px}
 .account-name{display:none}
 .main-content{margin:24px auto 40px;padding:0 20px}
 .list-toolbar{gap:10px;margin-bottom:16px}
 .saved-row{gap:7px;padding:14px 0;min-height:80px}
 .saved-link{gap:12px}
 .row-preview{width:96px;aspect-ratio:4/3}
 .row-title{font-size:13px}
 .row-meta{font-size:11px}
 .row-date{font-size:10px;margin-left:2px}
 .row-details{margin-right:-10px;width:32px;padding:6px}
 .row-details .icon{width:15px;height:15px}
 .search-field input{font-size:16px}
 .search-field input::placeholder{font-size:13px}
 .button{padding-inline:12px}
 .item-heading{flex-direction:column;gap:18px}
 .item-heading h1{font-size:24px}
 dialog{width:calc(100% - 24px);padding:22px;max-height:calc(100svh - 24px)}
 input:not([type=checkbox]):not([type=file]):not([type=hidden]):not([type=search]):not([type=range]),textarea{font-size:16px}
 .auth-shell{padding:22px 20px 40px}
 .auth-shell>.back-link{float:none;display:flex;margin-top:24px}
 .auth-card{margin-top:54px;padding:0}
 .auth-card h1{font-size:36px;letter-spacing:-1.4px;margin-bottom:30px}
 .dialog-heading h1{font-size:21px}
 .upload-zone>span{font-size:10px}
 .toast{bottom:calc(20px + env(safe-area-inset-bottom))}
}
@media(pointer:coarse){.icon-button{min-width:40px;min-height:40px}}

.row-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;font-size:12px;color:#737373;line-height:1.5;margin-top:2px;overflow-wrap:anywhere}
.item-description{font-size:14px;line-height:1.7;color:#737373;margin:0 0 24px}
.article-text{margin:24px 0;font-size:13px;line-height:1.8}
.article-text summary{cursor:pointer;font-weight:500}
.article-text>div{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:16px}

.item-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:-6px 0 24px}
.item-tools form{display:flex}
.reader-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:32px}
.reader-toolbar .back-link{margin:0}
.reader{max-width:680px;margin:0 auto 72px}
.reader h1{font-size:32px;line-height:1.3;font-weight:600;letter-spacing:-.7px;overflow-wrap:anywhere;margin:0 0 14px}
.reader-source{font-size:12px;color:#737373;margin:0 0 36px;overflow-wrap:anywhere}
.reader-source a{text-decoration:underline;text-underline-offset:3px}
.reader-source .icon{width:13px;height:13px}
.reader-text{font-size:19px;line-height:1.9;overflow-wrap:anywhere}
.reader-text p{margin:0 0 1.3em}
.offline-title{font-size:26px;line-height:1.4;font-weight:550;letter-spacing:-.5px;margin:0 0 24px}
.settings-content{container:settings / inline-size;max-width:1010px}
.settings-heading{margin-bottom:42px}
.settings-heading .back-link{margin-bottom:23px}
.settings-content h1{font-size:clamp(38px,4.5vw,56px);line-height:1.1;font-weight:500;letter-spacing:-2.8px;margin:0}
.settings-section{display:grid;grid-template-columns:145px minmax(0,1fr);gap:20px;border-top:1px solid #dedede;padding:32px 0}
.settings-section>h2{font-size:13px;font-weight:500;margin:0;padding-top:5px}
.settings-section-body{min-width:0}
.settings-row{display:flex;align-items:center;justify-content:space-between;gap:20px 30px;padding:25px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.settings-row:first-child{padding-top:0}
.settings-row:last-child{padding-bottom:0;border-bottom:0}
.settings-row-copy{flex:1 1 240px;min-width:0}
.settings-content h3{font-family:'Space Grotesk',Arial,sans-serif;font-size:16px;font-weight:500;line-height:1.5;letter-spacing:-.3px;margin:0 0 6px}
.settings-description{font-size:12px;line-height:1.8;color:#737373;margin:0;max-width:440px;text-wrap:pretty}
.settings-content .button{margin:0;min-height:44px;padding:11px 17px;border-radius:999px;flex-shrink:0;font-size:12px}
.settings-import{display:block}
.settings-import form{margin-top:18px}
.settings-file-actions,.avatar-form{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.settings-content input[type=file]{display:block;min-width:0;max-width:100%;flex:1 1 230px;width:100%;min-height:44px;padding:5px 12px 5px 5px;border:1px solid transparent;border-radius:999px;background:var(--input-fill);font-size:12px;color:#737373;line-height:32px}
.settings-content input[type=file]::file-selector-button{margin-right:10px;padding:0 12px;min-height:32px;border:0;border-radius:999px;background:#fff;color:#171717;font:inherit;cursor:pointer}
.settings-avatar{display:grid;place-items:center;width:80px;height:80px;flex-shrink:0;border-radius:50%;background:var(--input-fill);font-family:'Space Grotesk',Arial,sans-serif;font-size:24px;color:#525252;overflow:clip}
.settings-avatar img,.account-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.profile-row{align-items:flex-start;justify-content:flex-start}
.profile-controls{flex:1;min-width:0}
.avatar-form{margin-top:15px}
.avatar-form .form-errors{width:100%;margin:0}
.settings-text-action{font-size:12px;text-decoration:underline;text-underline-offset:4px;min-height:36px;padding:8px 0}
.account-email{overflow-wrap:anywhere}
.settings-row-status{flex-basis:100%;margin:0}
@container settings (max-width:720px){.settings-section{grid-template-columns:minmax(0,1fr);gap:24px}.settings-section>h2{font-size:15px}.settings-row{gap:16px;padding-block:22px}.settings-row-copy{flex-basis:100%}.settings-heading{margin-bottom:32px}.settings-content h1{font-size:39px;letter-spacing:-2px}}
@container settings (max-width:420px){.profile-row{gap:16px}.settings-avatar{width:64px;height:64px;font-size:20px}.profile-controls{flex-basis:100%}.avatar-form .button,.settings-file-actions .button{min-height:44px}}
.forgot-link{font-size:12px;text-align:right;margin:-4px 0 18px}
.forgot-link a{text-decoration:underline;text-underline-offset:3px}
.transfer-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px;margin-top:18px}
.transfer-progress label:not(.sr-only){margin:0;font-size:12px;font-weight:400;overflow-wrap:anywhere}
.transfer-progress button{grid-column:2;grid-row:1;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.transfer-progress progress{grid-row:2;grid-column:1/-1;width:100%;height:5px;appearance:none;border:0;background:#e5e5e5;overflow:clip;border-radius:2px}
.transfer-progress progress::-webkit-progress-bar{background:transparent}
.transfer-progress progress::-webkit-progress-value{background:var(--brand)}
.transfer-progress progress::-moz-progress-bar{background:var(--brand)}
.import-result{font-size:13px;margin:18px 0 0}
.offline-search{display:block;width:100%;border:1px solid transparent;border-radius:999px;padding:13px 18px;font-size:16px;margin-bottom:20px;background:var(--input-fill);color:#171717}
.offline-media{display:block;max-width:100%;max-height:70svh;margin:0 auto 24px}
@media(max-width:600px){.reader h1{font-size:27px}.reader-text{font-size:17px;line-height:1.85}.reader-source{margin-bottom:28px}.reader-toolbar{margin-bottom:26px}}

.search-container{flex:1;min-width:0}

.date-group+.date-group{margin-top:30px}
.date-heading{margin:24px 0 4px;font-size:12px;font-weight:600;color:#737373}
.library-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}
.library-filters>div{min-width:0;max-width:200px;flex:0 1 160px}
.select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:36px;padding:7px 16px;background:var(--input-fill);color:#404040;border:1px solid transparent;border-radius:999px;font-size:12px;line-height:20px;text-align:start;touch-action:manipulation}
.select-trigger>[data-slot=select-value]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.select-arrow{display:flex;flex-shrink:0;color:#737373;pointer-events:none}
.select-arrow>.icon{width:12px;height:12px;transform:rotate(90deg)}
.select-positioner{z-index:50;isolation:isolate}
.select-content{width:max(var(--anchor-width),200px);max-width:var(--available-width);max-height:min(320px,var(--available-height));overflow-x:hidden;overflow-y:auto;padding:4px;background:#fff;color:#171717;border:1px solid #e8e8e8;border-radius:12px;box-shadow:0 8px 24px #0000000f;font-size:13px;line-height:20px;overscroll-behavior:contain}
.select-item{position:relative;display:flex;align-items:center;min-height:36px;padding:8px 32px 8px 12px;border-radius:8px;cursor:default;user-select:none;overflow-wrap:anywhere}
.select-item[data-highlighted]{background:var(--input-fill);outline:none}
.select-check{position:absolute;inset-inline-end:10px;display:flex;pointer-events:none}
.select-check>.icon{width:16px;height:16px}
.select-scroll-arrow{position:sticky;display:flex;align-items:center;justify-content:center;background:#fff;z-index:1}
.select-scroll-arrow>.icon{width:14px;height:14px}
.select-scroll-up{top:0}.select-scroll-up>.icon{transform:rotate(-90deg)}
.select-scroll-down{bottom:0}.select-scroll-down>.icon{transform:rotate(90deg)}
.combobox-content{display:flex;flex-direction:column;overflow:hidden}
.combobox-search{display:flex;align-items:center;gap:8px;flex-shrink:0;margin:-4px -4px 4px;padding:4px 12px;border-bottom:1px solid var(--line)}
.combobox-search:focus-within{box-shadow:inset 0 -2px #171717}
.combobox-search>.icon{width:14px;height:14px;color:var(--muted)}
.combobox-search .combobox-input{display:block;flex:1;width:100%;min-width:0;height:36px;min-height:36px;padding:0;margin:0;border:0;border-radius:0;background:transparent;color:#171717;font-size:13px;line-height:20px;outline:none}
.combobox-list{min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding:4px}
.combobox-empty{color:var(--muted)}
.combobox-empty:not(:empty){padding:12px;text-align:center}
@media(pointer:coarse){.combobox-search .combobox-input{font-size:16px;height:44px;min-height:44px}}
@media(hover:hover) and (pointer:fine){.select-trigger:hover{background:#e8e8e8}}
.library-filters .text-link{font-size:12px}
.list-toolbar:has(.library-filters){align-items:flex-start}
.row-labels{display:flex;flex-wrap:wrap;gap:3px 10px;font-size:11px;line-height:1.5;color:#737373;margin-top:5px;overflow-wrap:anywhere}
.row-labels>span:first-child:not(:last-child){color:#404040}
.media-trigger{text-align:left;padding:0}
.row-preview-image{background-color:#fff;background-image:linear-gradient(45deg,#f0f0f0 25%,transparent 25%),linear-gradient(-45deg,#f0f0f0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f0f0f0 75%),linear-gradient(-45deg,transparent 75%,#f0f0f0 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}
.video-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:2}
.video-play>.icon{width:34px;height:34px;padding:8px;border-radius:50%;background:#171717bd;color:white;box-shadow:0 0 0 1px #ffffff9c}
.file-tile{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11px;font-weight:600;letter-spacing:.04em;color:#525252}
.file-tile>.icon{width:28px;height:28px}
.file-tile-overlay{position:absolute;left:7px;bottom:7px;z-index:2;flex-direction:row;gap:4px;padding:3px 5px;background:#fff;border-radius:3px;letter-spacing:0}
.file-tile-overlay>.icon{width:14px;height:14px}
.row-download{flex-shrink:0}
.save-organisation{margin:4px 0 17px}
.save-organisation summary{cursor:pointer;font-size:12px;color:#525252;padding:7px 0}
.save-organisation[open] summary{margin-bottom:10px}
.media-viewer{width:min(1080px,calc(100% - 32px));max-height:calc(100svh - 32px);padding:24px}
.media-viewer[open]{display:flex;flex-direction:column;gap:20px}
.media-viewer .dialog-heading{margin:0;align-items:flex-start}
.media-viewer .dialog-heading h1{font-size:18px;line-height:1.5;overflow-wrap:anywhere}
.media-viewer .dialog-heading .icon-button{flex-shrink:0;min-width:40px;min-height:40px}
.media-stage{min-height:120px;min-width:0;display:grid;place-items:center;background:#f7f7f7;border-radius:14px;overflow:clip}
.media-stage img,.media-stage video{display:block;max-width:100%;max-height:calc(100svh - 205px);object-fit:contain;margin:auto}
.media-stage video{width:100%}
.media-stage p{padding:24px;font-size:13px}
.media-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:10px}
.media-actions p{margin:0 auto 0 0;font-size:12px;color:var(--muted)}
@media(max-width:640px){.library-filters>div{flex:1 1 120px}.date-heading{margin-top:20px}.saved-row{gap:10px}.row-labels{font-size:11px}.media-viewer{width:calc(100% - 20px);padding:14px}.media-viewer .dialog-heading h1{font-size:16px}}
@media(pointer:coarse){.organisation-fields input,.select-trigger{font-size:16px!important;min-height:44px}.select-item{min-height:44px}.media-viewer .icon-button{min-width:44px;min-height:44px}}

/* Journal layout */
body{border-top:5px solid #171717}
h1,h2,.brand,.row-title{font-family:'Space Grotesk',Arial,sans-serif;font-size-adjust:from-font}
.site-header{border-bottom:0}
.header-inner{max-width:1080px;padding:31px 35px 28px}
.brand{font-weight:500}
.main-content{max-width:1080px;margin:45px auto 72px;padding:0 35px}
.library-page .list-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 264px;gap:35px 24px;border-bottom:1px solid #dcdcdc;padding-bottom:16px;margin-bottom:38px;align-items:center}
.library-title{font-size:clamp(38px,4.5vw,56px);letter-spacing:-2.8px;font-weight:500;line-height:1.1;margin:0}
.library-page .search-container,.library-search-form{display:contents}
.library-page .search-field{border:1px solid transparent;border-radius:999px;padding-left:18px;background:var(--input-fill)}
.library-page .library-filters{grid-column:1/-1;margin:0;gap:8px}
.library-page .date-group{display:grid;grid-template-columns:145px minmax(0,1fr);gap:20px;margin:0 0 40px}
.library-page .date-heading{font-family:'DM Sans',Arial,sans-serif;font-size:12px;font-weight:500;margin:0;padding-top:6px;color:#171717}
.library-page .saved-row{padding:23px 0;gap:18px;border-color:#e5e5e5}
.library-page .saved-row:first-child{padding-top:0}
.library-page .saved-row:last-child{border:0}
.library-page .saved-link{gap:25px}
.library-page .row-preview{width:150px;height:108px;aspect-ratio:auto;border-radius:2px}
.library-page .row-preview img{object-fit:cover}
.library-page .row-title{font-size:22px;font-weight:500;letter-spacing:-.7px;line-height:1.35}
.library-page .row-description{font-size:12px;line-height:1.8;-webkit-line-clamp:2;line-clamp:2;margin-top:8px}
.library-page .row-meta{font-size:10px;margin-top:8px}
.library-page .row-labels{margin-top:8px}
@media(max-width:1000px){.library-page .date-group{grid-template-columns:110px minmax(0,1fr);gap:15px}.library-page .row-preview{width:120px;height:100px}}
@media(max-width:680px){
 .header-inner{padding:23px 20px;gap:12px;flex-wrap:wrap}
 .header-actions{gap:5px}.header-actions .account-name{display:none}
 .main-content{padding:0 20px;margin:25px auto 50px}
 .library-page .list-toolbar{grid-template-columns:minmax(0,1fr);gap:25px;margin-bottom:28px}
 .library-title{font-size:39px;letter-spacing:-2px}
 .library-page .date-group{grid-template-columns:minmax(0,1fr);gap:18px;margin-bottom:25px}
 .library-page .date-heading{font-size:11px}
 .library-page .saved-link{gap:16px}
 .library-page .row-preview{width:100px;height:96px}
 .library-page .row-title{font-size:19px;letter-spacing:-.4px}
 .library-page .row-description{font-size:11px}
 .library-page .row-details{margin-right:-8px}
 .library-page .library-filters>div{flex:1 1 110px;max-width:100%}
}

/* Top navigation */
.site-header .header-inner{min-height:96px;padding-block:24px;flex-wrap:nowrap}
.header-actions{gap:20px;min-width:0}
#library-actions:empty{display:none}
#library-actions .primary{min-height:42px;padding:11px 18px;border-radius:999px;font-size:13px}
.account-control{position:relative;min-width:0}
.account-trigger{display:flex;align-items:center;gap:10px;min-height:44px;padding:3px 8px 3px 3px;border-radius:999px;font-size:12px;anchor-name:--account-trigger}
.account-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#f0f0f0;color:#404040;font-size:11px;font-weight:600;flex-shrink:0}
.account-trigger-name{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-trigger>.icon{width:12px;height:12px;transform:rotate(90deg);color:#737373}
.account-trigger[aria-expanded=true]{background:#f3f3f3}
.account-trigger[aria-expanded=true]>.icon{transform:rotate(-90deg)}
.account-panel{position:fixed;inset:auto;top:80px;right:max(20px,calc((100% - 1010px)/2));width:260px;max-width:calc(100% - 32px);margin:0;padding:8px;border:1px solid #e8e8e8;border-radius:16px;background:#fff;color:#171717;box-shadow:0 12px 40px #00000012;z-index:90}
.account-identity{display:flex;flex-direction:column;gap:3px;padding:12px 12px 16px;margin-bottom:5px;border-bottom:1px solid #ededed;overflow-wrap:anywhere}
.account-identity>span:first-child{font-size:13px;font-weight:550}
.account-identity>span:last-child{font-size:12px;color:#737373}
.account-action{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:11px 12px;border:0;border-radius:9px;background:none;color:#404040;text-align:left;font-size:13px;line-height:1.5}
.account-action .icon{width:16px;height:16px;color:#737373}
@supports(position-area:block-end){.account-panel[popover]{position-anchor:--account-trigger;position-area:block-end span-inline-start;position-try-fallbacks:flip-inline,flip-block;inset:auto;margin-top:8px}}
@media(hover:hover) and (pointer:fine){.account-trigger:hover{background:#f5f5f5}.account-action:hover{background:#f3f3f3;color:#171717}}
@media(max-width:680px){.site-header .header-inner{min-height:84px;padding-block:18px;gap:14px}.header-actions{gap:10px}.account-trigger-name{display:none}.account-trigger{gap:4px;padding-right:3px}.account-trigger>.icon{display:none}#library-actions .primary{min-height:42px;padding:10px 14px;font-size:12px}.account-panel{top:72px}}
@media(max-width:360px){.site-header .brand{font-size:22px;gap:7px}.header-actions{gap:6px}#library-actions .primary{padding-inline:11px}.site-header .header-inner{gap:10px}}

/* Video playback */
.video-player{display:flex;flex-direction:column;width:100%;min-width:0;background:#171717;color:#fff;border-radius:14px;overflow:clip;color-scheme:dark;margin:0;isolation:isolate}
.video-player:focus-visible{outline:2px solid #171717;outline-offset:4px}
.video-surface{position:relative;display:grid;place-items:center;min-height:140px;background:#0b0b0b;flex:0 0 auto;min-width:0}
.video-player .video-surface video{display:block;width:100%;height:auto;max-height:70svh;object-fit:contain;margin:0}
.video-start{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:#fffffff0;color:#171717;box-shadow:0 4px 24px #0003}
.video-start .icon{width:25px;height:25px;margin-left:3px}
.video-start:active{transform:translate(-50%,-50%) scale(.96)}
.video-loading{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:8px 14px;border-radius:999px;background:#171717df;color:#fff;font-size:12px;white-space:nowrap}
.video-controls{padding:4px 12px 8px;flex-shrink:0;background:#171717}
.video-control-row{display:flex;align-items:center;gap:10px;min-height:40px}
.video-control{display:grid;place-items:center;width:36px;height:36px;padding:8px;border-radius:50%;color:#fff;flex-shrink:0}
.video-control .icon{width:19px;height:19px}
.video-control:active{background:#404040}
.video-player :focus-visible{outline:2px solid #fff;outline-offset:3px}
.video-time{font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
.video-time>span{color:#b3b3b3}
.video-volume{display:flex;align-items:center;gap:6px;margin-left:auto}
.video-player input[type=range]{appearance:none;min-width:0;width:80px;height:28px;min-height:0;padding:0;margin:0;border:0;border-radius:0;background:transparent;cursor:pointer;accent-color:#fff}
.video-player input.video-seek{width:100%}
.video-player input[type=range]::-webkit-slider-runnable-track{height:4px;border:0;border-radius:999px;background:linear-gradient(to right,#fff var(--range-fill,0%),#707070 var(--range-fill,0%))}
.video-player input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:12px;margin-top:-4px;border:0;border-radius:50%;background:#fff}
.video-player input[type=range]::-moz-range-track{height:4px;border:0;border-radius:999px;background:#707070}
.video-player input[type=range]::-moz-range-progress{height:4px;border-radius:999px;background:#fff}
.video-player input[type=range]::-moz-range-thumb{height:12px;width:12px;border:0;border-radius:50%;background:#fff}
.video-player input[type=range]:disabled{opacity:.4;cursor:default}
.video-error{padding:12px 16px!important;margin:0;color:#fff;font-size:12px;background:#292929}
.video-player:fullscreen{border-radius:0;width:100%;height:100%;justify-content:center}
.video-player:fullscreen .video-surface video{max-height:calc(100dvh - 94px)}
.media-stage .video-player .video-surface video{max-height:calc(100svh - 300px)}
.media-stage:has(.video-player){flex-shrink:0}
.video-player:fullscreen .video-surface{flex:1;display:grid}
.video-player:fullscreen .video-surface video{max-height:calc(100dvh - 94px)}
.media-stage:has(.video-player){background:#171717;place-items:stretch}
.media-stage>.video-player{min-height:0}
.item-media:has(.video-player){border:0;border-radius:14px}
.reader>.video-player{margin-bottom:24px}
@media(hover:hover) and (pointer:fine){.video-control:hover{background:#ffffff1a}.video-start:hover{background:#fff}}
@media(max-width:480px){.video-volume input[type=range]{display:none}.video-control-row{gap:6px}.video-controls{padding-inline:10px}.video-start{width:52px;height:52px}}
@media(pointer:coarse){.video-control{width:44px;height:44px}.video-player input[type=range]{height:44px}.button{min-height:44px}.icon-button{min-width:44px;min-height:44px}}
@media(prefers-reduced-motion:reduce){.button,.icon-button{transition:none}.button:not(:disabled):active,.icon-button:not(:disabled):active{transform:none}}
