@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&display=swap');
:root{--bg:#f7f8f5;--paper:#fff;--ink:#24372e;--muted:#7a827b;--green:#315c48;--line:#e4e8e1;--soft:#edf2e9;--gold:#bb9552}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}button,input,textarea,select{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button{color:inherit}a{color:var(--green)}svg{width:20px;height:20px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}button{border:0;background:none}button:disabled{opacity:.45;cursor:wait}.sidebar{width:244px;position:fixed;inset:0 auto 0 0;background:#fcfdfb;border-right:1px solid var(--line);padding:32px 20px;display:flex;flex-direction:column;z-index:5}.brand{font-family:Georgia,serif;font-size:37px;display:flex;align-items:center;gap:10px;text-decoration:none;letter-spacing:-1.7px;font-weight:600;margin:0 12px 32px}.brand-mark{background:var(--green);color:white;border-radius:9px;width:35px;height:39px;font-size:30px;letter-spacing:-2px;display:grid;place-content:center;padding-right:4px}.brand-dot{font-size:19px;color:#8ba58c;margin-left:-8px}.workspace{display:flex;align-items:center;gap:10px;padding:13px 10px;border:1px solid var(--line);border-radius:8px;font-size:12px;font-weight:600;margin-bottom:31px}.workspace small,.profile small{display:block;margin-top:4px;color:var(--muted);font-size:10px;font-weight:400}.avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#e8ece3;font-size:11px;color:#56644c;font-weight:650;flex-shrink:0}.nav-label{font-size:10px;font-weight:600;color:#93998e;letter-spacing:1.4px;padding:0 14px;margin-bottom:12px}.nav-item{display:flex;align-items:center;width:100%;gap:11px;border-radius:6px;padding:12px 13px;text-align:left;font-size:12px;color:#717b71;margin:3px 0}.nav-item svg{width:18px;height:18px}.nav-item:hover{background:#f1f4ed}.nav-item.active{color:var(--green);background:#eaf0e5;font-weight:650}.nav-item b{margin-left:auto;font-size:10px;background:#dbe6d2;padding:2px 6px;border-radius:4px;font-weight:550}.new{margin-left:auto;font-size:8px;letter-spacing:.7px;border:1px solid #d8e2d1;border-radius:4px;padding:2px 4px;color:#728766}.collection-label{margin-top:34px;display:flex;align-items:center;justify-content:space-between}.collection-label button{font-size:20px;color:#919b8c}.collection{width:100%;text-align:left;display:flex;gap:12px;align-items:center;font-size:12px;color:#7b8377;padding:10px 15px}.collection i{width:7px;height:7px;border-radius:2px;background:#95a77b}.collection:nth-child(2) i{background:#b7a1c5}.collection:nth-child(3) i{background:#c7ac7b}.collection span{margin-left:auto;color:#a0a79b;font-size:10px}.sidebar-bottom{margin-top:auto;padding-top:24px}.drive-card{background:#f0f3eb;border:1px solid #e4e9dc;border-radius:8px;padding:14px 13px;margin-bottom:15px}.drive-title{font-size:11px;display:flex;align-items:center;gap:8px;font-weight:650}.drive-card p{font-size:11px;line-height:1.7;color:#8a9381}.drive-card button{background:white;border:1px solid #dbe2d2;border-radius:5px;padding:9px 10px;font-size:10px;width:100%;text-align:left}.drive-card button span{float:right}.profile{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);margin-top:15px;padding-top:21px;font-size:11px}.local-dot{width:6px;height:6px;background:#94a88b;border-radius:50%;margin-left:auto}.main-shell{margin-left:244px}.topbar{height:79px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 42px;background:#fcfdfb}.breadcrumb{font-size:11px;color:#90988e}.breadcrumb span{padding:0 13px;color:#c3c9be}.breadcrumb strong{font-weight:500;color:#61705d}.top-actions{display:flex;align-items:center;gap:20px}.local-status{font-size:10px;color:#8b9384;display:flex;gap:7px;align-items:center}.local-status i{width:5px;height:5px;background:#9ab28b;border-radius:50%}.tiny{width:28px;height:28px;font-size:10px}.icon-button{padding:6px;color:#88927f}.icon-button svg{width:17px;height:17px}main{max-width:1430px;margin:0 auto;padding:38px 42px 20px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.eyebrow{font-size:9px;letter-spacing:1.6px;color:#8b9785;font-weight:550;margin-bottom:10px}h1{font-family:Georgia,serif;font-size:35px;letter-spacing:-1.1px;font-weight:400;margin:0 0 9px}p{color:var(--muted);line-height:1.7}.page-heading p{margin:0;font-size:12px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #dfe5d9;border-radius:6px;background:white;padding:11px 16px;font-size:11px;font-weight:550;text-decoration:none}.button svg{width:16px;height:16px}.button.primary{background:var(--green);border-color:var(--green);color:white;box-shadow:0 3px 7px #315c4810}.button:hover{filter:brightness(.96)}.heading-actions{display:flex;gap:10px}.hero{background:#eaf0e4;border:1px solid #e1e8d9;border-radius:10px;position:relative;padding:27px 29px;min-height:186px;display:flex;align-items:center;overflow:hidden}.hero-content{position:relative;z-index:1;max-width:65%}.hero .eyebrow{color:#69805e;font-size:9px;letter-spacing:1.2px;display:flex;gap:7px;align-items:center}.hero .eyebrow svg{height:13px;width:13px}.hero h2{font-family:Georgia,serif;font-weight:400;font-size:28px;letter-spacing:-.6px;margin:10px 0}.hero p{font-size:11px;color:#7d8a71;margin:0 0 17px}.hero .button{font-size:10px;padding:8px 13px;background:#fffdf9;border-color:#dce3d1}.hero-art{position:absolute;right:49px;top:20px;width:220px;height:158px;transform:rotate(-9deg)}.art-ring{position:absolute;inset:-32px -60px;border:1px solid #d9e2cd;border-radius:50%;transform:rotate(20deg)}.art-ring.second{inset:-14px -29px}.book-cover{position:absolute;width:102px;height:137px;top:12px;right:20px;border-radius:3px 8px 8px 3px;background:#9bac84;box-shadow:5px 6px 0 #d3dac8,6px 8px 0 #b4c1a3;transform:rotate(19deg);border-left:8px solid #879b70}.book-front{width:103px;height:142px;position:absolute;top:4px;left:25px;background:#fbfbf1;border-radius:2px 7px 7px 2px;border:1px solid #d4dcca;box-shadow:-3px 3px 0 #e2e5d8,-5px 5px 0 #bdc9ab;transform:rotate(-8deg);padding:21px 13px}.book-front small{font-size:6px;letter-spacing:1px;color:#8b9b78}.book-front em{font-family:Georgia,serif;display:block;font-size:15px;line-height:1.15;margin-top:6px;font-style:normal;color:#66805a}.book-front .lines{height:30px;background:repeating-linear-gradient(transparent 0 5px,#d2d9c9 5px 6px);margin-top:13px}.spark{position:absolute;right:0;top:2px;color:#9bad84;font-size:24px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:22px 0 30px}.stat{border:1px solid var(--line);background:white;border-radius:8px;padding:17px 18px;display:flex;align-items:center;gap:13px}.stat-icon{background:#f0f3eb;border-radius:7px;padding:10px;color:#7d946c}.stat:nth-child(2) .stat-icon{background:#fbf4e5;color:#bc9851}.stat:nth-child(3) .stat-icon{background:#edf1e9;color:#7d956c}.stat:nth-child(4) .stat-icon{background:#f1eef7;color:#a193b7}.stat strong{font-size:23px;font-weight:500;line-height:1.1}.stat small{display:block;font-size:10px;color:#93998f;margin-top:6px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:6px 0 17px}.section-title h2{font-size:16px;font-weight:600;margin:0}.section-title h2 span{font-size:10px;color:#98a08f;font-weight:400;padding-left:10px}.subtle-link{font-size:10px;color:#8b9483}.toolbar{display:flex;gap:10px;margin-bottom:20px;align-items:center}.search{display:flex;align-items:center;gap:9px;flex:1;background:white;border:1px solid var(--line);border-radius:6px;padding:10px 12px;min-width:130px}.search svg{width:16px;height:16px;color:#a0a896}.search input{width:100%;border:0;outline:0;background:none;font-size:11px}.toolbar select{border:1px solid var(--line);background:white;border-radius:6px;padding:10px;color:#737e6b;font-size:10px;max-width:150px}.view-toggle{border:1px solid var(--line);background:white;border-radius:5px;padding:3px;display:flex}.view-toggle button{padding:5px 6px;color:#8f9885}.view-toggle button svg{width:15px;height:15px}.view-toggle button.selected{background:#edf2e8;border-radius:3px;color:var(--green)}.paper-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.paper-card{background:white;border:1px solid var(--line);border-radius:8px;padding:20px;display:flex;flex-direction:column;min-height:253px;transition:transform .15s,box-shadow .15s}.paper-card:hover{transform:translateY(-2px);box-shadow:0 6px 20px #24372e07;border-color:#cbd6c4}.card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.badge{font-size:9px;background:#f3f3eb;color:#939374;border-radius:4px;padding:4px 7px;display:inline-flex;align-items:center;gap:4px}.badge i{width:4px;height:4px;border-radius:50%;background:currentColor}.badge.read{background:#edf3e7;color:#7f956b}.badge.reading{background:#edf0f8;color:#8192b0}.star-button{color:#c3c8bc;font-size:19px;padding:0 3px;line-height:1}.star-button.on{color:#bd9e60}.paper-title{font-size:14px;font-weight:600;line-height:1.5;text-align:left;display:block;padding:0;margin-bottom:8px;letter-spacing:-.2px}.authors{font-size:10px;color:#92998d;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:12px}.tags{display:flex;gap:5px;flex-wrap:wrap;margin:2px 0 18px}.tag{font-size:8px;background:#f1f4ed;border:1px solid #e8ece1;color:#89987a;padding:3px 6px;border-radius:4px}.tag:nth-child(2){background:#f4f0f8;border-color:#ede7f3;color:#a18db1}.card-bottom{margin-top:auto;display:flex;justify-content:space-between;border-top:1px solid #eef0e8;padding-top:12px;gap:8px;align-items:center}.venue{font-size:9px;color:#7c8873;max-width:70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.venue svg{width:12px;height:12px;margin-right:3px;color:#a7b39a}.paper-year{font-size:9px;color:#969e8e;display:flex;gap:6px;align-items:center}.paper-year svg{width:12px;height:12px}.metric-line{font-size:8px;color:#a1a796;margin-top:10px}.sample-note{display:flex;justify-content:space-between;font-size:10px;color:#939c8a;padding:16px 0}.sample-note button{font-size:10px;text-decoration:underline;color:#8b9483}.page-footer{max-width:1430px;margin:0 auto;padding:16px 42px 25px;font-size:9px;color:#a4ac9b;display:flex;justify-content:space-between}.empty{grid-column:1/-1;border:1px dashed #d7dfcd;border-radius:8px;padding:55px;text-align:center;color:#8d9983}.empty h3{font-family:Georgia,serif;font-size:25px;color:#5a7051;font-weight:400}.paper-grid.list{grid-template-columns:1fr}.list .paper-card{min-height:auto;display:grid;grid-template-columns:95px 1fr 130px;column-gap:18px;align-items:center}.list .card-top{margin:0;grid-row:1/4}.list .paper-title{font-size:14px}.list .authors{margin:0}.list .tags{margin:8px 0 0}.list .card-bottom{grid-column:3;grid-row:1/4;border:0;display:block}.list .metric-line{display:none}.list .paper-year{margin-top:7px}.panel{background:white;border:1px solid var(--line);border-radius:9px;padding:25px;margin:20px 0}.panel h2{font-family:Georgia,serif;font-weight:400;font-size:23px;margin-top:0}.panel p{font-size:12px;max-width:700px}.setting-row{display:flex;gap:12px;align-items:center;margin-top:20px;flex-wrap:wrap}.setting-row input{max-width:550px;flex:1}.field{display:flex;flex-direction:column;gap:7px;margin:14px 0}.field label{font-size:11px;font-weight:550;color:#6f7e65}.field input,.field select,.field textarea,.setting-row input{width:100%;border:1px solid #dfe5d8;border-radius:5px;padding:11px;background:#fcfdf9;font-size:12px;color:var(--ink)}.field textarea{min-height:95px;resize:vertical}.field small{color:#96a08d;font-size:10px;line-height:1.6}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.help{background:#f3f6ee;border-radius:7px;padding:15px;font-size:11px;color:#7a896d;line-height:1.8}.help code{font-size:10px;overflow-wrap:anywhere}.help ol{padding-left:20px}.danger{color:#aa6a53}.danger-zone{display:flex;align-items:center;justify-content:space-between;gap:10px}.discover-search{display:flex;gap:10px;margin:23px 0}.discover-search .search input{font-size:13px}.discover-message{font-size:11px;color:#899580;margin-bottom:20px}dialog{border:1px solid #dfe5d7;border-radius:13px;width:min(680px,calc(100vw - 32px));max-height:90vh;padding:0;color:var(--ink);box-shadow:0 20px 100px #24372e30}dialog::backdrop{background:#24372e50;backdrop-filter:blur(3px)}.modal-inner{padding:28px 32px}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:18px;gap:15px}.modal-header h2{font-family:Georgia,serif;font-size:28px;font-weight:400;margin:0;line-height:1.25}.close{font-size:25px;color:#9aa48f}.modal-actions{display:flex;gap:8px;justify-content:flex-end;border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.tabs{display:flex;gap:15px;border-bottom:1px solid var(--line);margin-bottom:20px}.tabs button{padding:10px 0;font-size:11px;color:#8c9881}.tabs button.active{border-bottom:2px solid var(--green);color:var(--green)}.upload-zone{border:1px dashed #c9d5bd;border-radius:8px;padding:22px;text-align:center;background:#f7f9f2;cursor:pointer}.upload-zone svg{color:#8da57a;width:27px;height:27px}.upload-zone p{font-size:12px;margin:9px 0 2px}.upload-zone small{font-size:10px;color:#9ba78f}.citation-block{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;background:#f4f6ef;border:1px solid #e4e9db;border-radius:6px;padding:17px;line-height:1.8;max-height:300px;overflow:auto}.detail-links{display:flex;gap:8px;margin:15px 0}.error{font-size:11px;color:#ac6e58;line-height:1.6;min-height:18px}.reader{width:100%;height:60vh;border:1px solid var(--line);border-radius:6px}dialog.reader-modal{width:min(1100px,95vw)}#toast{position:fixed;bottom:25px;left:calc(50% + 100px);transform:translateX(-50%) translateY(20px);background:#2d4f3c;color:white;font-size:12px;padding:13px 23px;border-radius:7px;box-shadow:0 8px 25px #24372e25;opacity:0;pointer-events:none;transition:all .2s;z-index:100}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.queue-options{display:flex;gap:12px;align-items:center;margin-top:16px;font-size:11px;color:#768b66}.queue-options label{display:flex;align-items:center;gap:6px}.queue-options input{accent-color:var(--green)}@media(min-width:1500px){main{padding-top:48px}.paper-card{min-height:270px}.hero{min-height:200px}}@media(max-width:1150px){.paper-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats{gap:10px}.stat{padding:13px 10px;gap:8px}.stat-icon{padding:7px}.sidebar{width:215px;padding:30px 14px}.main-shell{margin-left:215px}main{padding:30px}.topbar{padding:0 30px}.hero-art{right:22px;opacity:.7}}@media(max-width:800px){.sidebar{width:65px;padding:22px 7px}.brand{font-size:0;margin:0 7px 30px;gap:0}.brand-mark{font-size:26px;width:30px;height:34px}.brand-dot,.workspace,.nav-label,.collection,.sidebar-bottom,.nav-item b,.nav-item .new{display:none}.nav-item{font-size:0;gap:0;justify-content:center;padding:14px 0}.nav-item svg{width:20px;height:20px}.main-shell{margin-left:65px}.topbar{height:60px;padding:0 20px}.top-actions{gap:12px}.local-status{display:none}main{padding:25px 20px}.page-heading{align-items:flex-start;gap:12px}h1{font-size:30px}.heading-actions .button{padding:10px}.heading-actions .export-text{display:none}.hero-art{right:-5px;opacity:.35}.hero-content{max-width:85%}.hero h2{font-size:24px}.stats{grid-template-columns:repeat(2,1fr)}.toolbar{flex-wrap:wrap}.toolbar .search{flex-basis:100%}.toolbar select{flex:1;max-width:none}.page-footer{padding:15px 20px}.page-footer span{display:none}.paper-grid{gap:12px}.paper-card{padding:17px}.list .paper-card{display:flex;align-items:stretch}.list .card-bottom{display:flex}.modal-inner{padding:24px}.two-fields{gap:10px}}@media(max-width:520px){.paper-grid{grid-template-columns:1fr}.hero{padding:23px}.hero-art{display:none}.hero-content{max-width:100%}.page-heading{flex-wrap:wrap}.heading-actions{margin-top:5px}.paper-card{min-height:230px}.stat-icon{padding:8px}.stat{padding:13px}.section-title h2 span{display:none}.two-fields{grid-template-columns:1fr;gap:0}.sample-note{gap:15px}.breadcrumb{font-size:10px}#toast{left:50%;width:max-content;max-width:90vw}.queue-options{flex-wrap:wrap}}

#collections{max-height:210px;overflow:auto;flex-shrink:0}.sidebar-bottom{flex-shrink:0}
.sidebar{overflow-y:auto}.sidebar>*{flex-shrink:0}

.mobile-brand,.mobile-nav{display:none}
.collection.active{background:#eaf0e5;border-radius:6px;color:var(--green);font-weight:600}
.collection.active i{background:var(--green)}
.desktop-collections{background:#fff;border:1px solid var(--line);border-radius:9px;padding:17px 19px;margin:0 0 18px}
.tag-filter-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.tag-filter-heading h3{margin:0;font-size:12px;font-weight:600;color:#566a4d}
.tag-filter-heading>span{font-size:10px;color:#8b9782}
.filter-tag-list{display:flex;flex-wrap:wrap;gap:8px}
.filter-tag{display:inline-flex;align-items:center;gap:8px;min-height:36px;max-width:100%;border:1px solid #dfe6d8;background:#f9fbf6;border-radius:22px;padding:8px 12px;font-size:11px;color:#728364;text-align:left}
.filter-tag>span:first-child{overflow-wrap:anywhere;min-width:0}
.filter-tag:hover{background:#edf3e7;border-color:#b9c9ac}
.filter-tag.selected{background:var(--green);border-color:var(--green);color:white}
.filter-tag-count{flex-shrink:0;min-width:19px;border-radius:12px;text-align:center;background:#e7eddf;padding:2px 5px;font-size:9px;color:#7a8c6b}
.filter-tag.selected .filter-tag-count{background:#ffffff20;color:#fff}
.tag-filter-empty{margin:12px 0 0;font-size:11px}
@media(min-width:601px) and (max-width:900px){.tag-filter-heading{align-items:flex-start;flex-direction:column;gap:5px}.desktop-collections{padding:15px}.filter-tag{min-height:40px}}
@media(max-width:600px){
  body{height:100vh;height:100dvh;overflow:hidden;display:flex;flex-direction:column}
  .sidebar{display:none}
  .main-shell{margin-left:0;flex:1;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain}
  .topbar{position:sticky;top:0;height:64px;padding:0 20px;background:#f7f8f5f5;backdrop-filter:blur(12px);z-index:6}
  .mobile-brand{display:flex;align-items:center;gap:3px;font-family:Georgia,serif;font-size:30px;font-weight:600;letter-spacing:-1.5px;text-decoration:none;color:var(--ink)}
  .mobile-brand span{color:#96aa81;font-size:22px}
  .breadcrumb,.top-actions .tiny{display:none}
  .top-actions .icon-button{width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:#fff}
  main{padding:25px 18px 28px;max-width:100%;min-width:0}
  .page-footer{display:none}
  .mobile-nav{display:flex;flex-shrink:0;position:relative;z-index:10;justify-content:space-around;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#fcfdfbf5;backdrop-filter:blur(16px);border-top:1px solid var(--line)}
  .mobile-nav button{flex:1;min-height:54px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#7a8676;font-size:10px;border-radius:12px}
  .mobile-nav button svg{width:21px;height:21px}
  .mobile-nav button.active{color:var(--green);background:#eaf0e5;font-weight:650}
  .phone-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:23px}
  .phone-heading>div{min-width:0}
  .phone-heading .eyebrow{font-size:8px;letter-spacing:1.5px}
  .phone-heading h1{font-size:33px;line-height:1.12;overflow-wrap:anywhere}
  .phone-heading p{margin:0;font-size:12px;color:#829077}
  .phone-add{flex-shrink:0;width:48px;height:48px;border-radius:50%;background:var(--green);color:#fff;box-shadow:0 4px 14px #315c4820}
  .phone-add svg{width:23px;height:23px}
  .phone-next{border:1px solid #dfe7d8;background:linear-gradient(130deg,#eaf0e4,#f0f4ea);border-radius:17px;padding:20px;margin-bottom:28px}
  .phone-next-top{display:flex;align-items:center;justify-content:space-between;color:#6e815f;font-size:11px}
  .phone-next-top>span:first-child{display:flex;align-items:center;gap:7px}
  .phone-next-top svg{width:15px;height:15px}
  .phone-next-top>span:last-child{font-size:24px;color:#a1b18a}
  .phone-next h2{font-family:Georgia,serif;font-size:24px;font-weight:400;line-height:1.25;letter-spacing:-.6px;max-width:245px;margin:12px 0 18px}
  .phone-next .button{min-height:44px;border-radius:9px;padding:11px 16px;font-size:12px}
  .phone-next .queue-options{gap:12px;font-size:12px;flex-wrap:wrap}
  .queue-options input{width:18px;height:18px}
  .phone-section h2{display:flex;justify-content:space-between;gap:10px;font-size:15px;font-weight:600;margin:0 0 14px}
  .phone-section h2 span{font-size:11px;font-weight:400;color:#8d9983;align-self:center}
  .phone-search{width:100%;min-height:48px;border-radius:11px;padding:0 14px;display:flex}
  .search input{font-size:16px;min-width:0;width:100%}
  .phone-collections{display:flex;gap:8px;overflow-x:auto;max-width:100%;padding:14px 0 10px;scrollbar-width:none}
  .phone-collections::-webkit-scrollbar{display:none}
  .phone-collections button{flex-shrink:0;border:1px solid #e0e6d9;border-radius:24px;min-height:44px;padding:9px 14px;font-size:11px;background:#fff;color:#7b896f}
  .phone-collections button.selected{background:var(--green);border-color:var(--green);color:white}
  .phone-collections .phone-new-collection{width:44px;padding:10px}
  .phone-new-collection svg{width:17px;height:17px}
  .phone-filters{margin:0 0 16px;font-size:12px;color:#718165}
  .phone-filters summary{min-height:44px;cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px}
  .phone-filters summary::-webkit-details-marker{display:none}
  .phone-filters summary:after{content:'+';margin-left:auto;font-size:20px}
  .phone-filters[open] summary:after{content:'−'}
  .phone-filters summary svg{width:16px;height:16px}
  .phone-filter-fields{display:grid;gap:12px;border:1px solid var(--line);border-radius:12px;padding:14px;background:white;margin-bottom:16px}
  .phone-filter-fields label{display:flex;flex-direction:column;gap:7px;font-size:12px}
  .phone-filter-fields select{width:100%;min-height:44px;background:#f7f9f3;border:1px solid var(--line);border-radius:7px;padding:9px;font-size:16px;color:var(--ink)}
  .paper-grid{grid-template-columns:1fr;gap:12px}
  .paper-card{min-height:0;border-radius:13px;padding:17px 18px}
  .card-top{margin-bottom:9px}
  .star-button{min-width:44px;min-height:44px;margin:-7px -8px -7px 0}
  .paper-title{font-size:19px;line-height:1.3;text-align:left;padding:5px 0;overflow-wrap:anywhere}
  .authors{font-size:11px;line-height:1.6;margin:9px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .tags{gap:6px;flex-wrap:wrap;margin:9px 0 13px}
  .tag{font-size:10px;padding:4px 7px;overflow-wrap:anywhere;max-width:100%}
  .card-bottom{padding-top:12px}
  .venue,.paper-year{font-size:10px}
  .metric-line{font-size:9px;margin-top:10px}
  .empty{padding:30px 20px}
  .empty .button{min-height:44px}
  .page-heading h1{font-size:30px}
  .page-heading .eyebrow{font-size:8px}
  .hero{padding:20px;min-height:0;border-radius:15px}
  .hero-art{display:none}
  .hero-content{max-width:100%}
  .discover-search{flex-wrap:wrap}
  .discover-search .search{flex-basis:100%;min-height:48px}
  .discover-search .button{width:100%;min-height:44px}
  .panel{padding:20px 17px;border-radius:13px}
  .panel p{font-size:13px}
  .panel code{overflow-wrap:anywhere}
  .panel ol{padding-left:22px;line-height:1.7;font-size:13px}
  .field label,.field small{font-size:12px}
  .field input,.field select,.field textarea,.setting-row input{font-size:16px;min-height:46px}
  .setting-row{align-items:stretch;gap:10px}
  .setting-row .button{min-height:44px;flex:1 1 100%;font-size:12px}
  .danger-zone{display:block}
  .danger-zone .button{min-height:44px}
  dialog{width:100%;max-width:100%;max-height:92vh;max-height:92dvh;margin:auto 0 0;border-radius:20px 20px 0 0;border-bottom:0;overflow-x:hidden}
  .modal-inner{padding:24px 20px calc(24px + env(safe-area-inset-bottom))}
  .modal-header h2{font-size:25px;overflow-wrap:anywhere}
  .close{min-width:44px;min-height:44px;margin:-8px -8px 0 0}
  .two-fields{grid-template-columns:1fr;gap:0}
  .modal-actions{flex-wrap:wrap}
  .modal-actions .button{flex:1;min-height:46px;font-size:12px}
  .detail-links{flex-wrap:wrap}
  .detail-links .button{min-height:44px}
  .tabs{gap:18px}
  .tabs button{min-height:44px;font-size:12px}
  dialog.reader-modal{width:100%;max-height:96dvh}
  #toast{bottom:calc(86px + env(safe-area-inset-bottom));left:50%;width:max-content;max-width:calc(100vw - 32px);text-align:center}
  @media(prefers-reduced-motion:reduce){#toast{transition:none}}
}
