:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;color:#102644;background:#eaf1fb;font-synthesis:none;--ink:#102644;--muted:#64758d;--card:rgba(255,255,255,.78);--card-solid:#fff;--edge:rgba(255,255,255,.67);--chip:rgba(255,255,255,.66);--blue:#427cff;--shadow:0 14px 50px rgba(30,54,92,.10)}*{box-sizing:border-box}body{min-height:100vh;margin:0;background:radial-gradient(ellipse at 88% 47%,#ffe3ce 0%,transparent 45%),radial-gradient(ellipse at 10% 3%,#a9ccef 0%,transparent 47%),linear-gradient(160deg,#eef4fc 0%,#eae8ee 51%,#f8e7d9 100%);background-attachment:fixed}body:before{content:'';pointer-events:none;position:fixed;inset:auto 0 0;height:28vh;background:linear-gradient(transparent,rgba(142,174,197,.25));z-index:-1}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}.container{max-width:1260px;margin:auto;padding:25px 30px}.topbar,.line,.between{display:flex;align-items:center;justify-content:space-between;gap:15px}.brand{display:flex;align-items:center;gap:12px;font-weight:650;font-size:24px;letter-spacing:-.8px}.brand svg{width:40px;height:40px;stroke:var(--ink)}.brand small{display:block;font-size:11px;letter-spacing:0;font-weight:400;color:var(--muted)}.top-actions{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:13px}.iconbtn{border:1px solid var(--edge);background:var(--chip);border-radius:50%;width:43px;height:43px;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;font-size:19px}.hero{max-width:1110px;margin:95px auto 0;text-align:center}.hero h1{font-size:clamp(38px,5vw,65px);line-height:1.15;letter-spacing:-2.5px;margin:0;font-weight:620}.subtitle{color:var(--muted);font-size:22px;margin:10px 0 29px}.groups{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin-bottom:17px}.group,.smallbtn{border:1px solid rgba(255,255,255,.60);border-radius:999px;padding:10px 16px;background:var(--chip);color:var(--ink);white-space:nowrap}.group.active{background:var(--blue);color:white;box-shadow:0 6px 16px rgba(53,111,243,.18)}.group-plus{width:42px;padding:9px}.searchbar{height:80px;display:flex;align-items:center;padding:10px;gap:9px;background:var(--card-solid);border-radius:45px;box-shadow:var(--shadow);text-align:left;position:relative}.searchglass{font-size:26px;padding-left:23px;color:var(--ink)}.searchbar input{min-width:0;flex:1;border:0;background:none;outline:0;font-size:20px;color:var(--ink);padding:8px}.searchbar input::placeholder{color:#9ca6b8}.engine{display:flex;align-items:center;gap:8px;background:#f3f5fa;border:0;border-radius:14px;padding:13px 15px;color:#14294b;max-width:220px;white-space:nowrap}.engine img,.engine-list img{width:20px;height:20px;object-fit:contain}.go{height:56px;width:60px;border:0;border-radius:17px;background:var(--blue);color:white;font-size:28px}.engine-wrap{position:relative}.engine-list,.suggestions{position:absolute;background:var(--card-solid);border-radius:18px;box-shadow:0 16px 46px rgba(14,39,80,.23);z-index:10;text-align:left;overflow:hidden}.engine-list{right:0;top:54px;min-width:220px;padding:7px}.engine-list button,.suggestions button{width:100%;display:flex;align-items:center;gap:10px;background:none;border:0;text-align:left;padding:12px;border-radius:9px;color:var(--ink)}.engine-list button:hover,.engine-list button:focus,.suggestions button:hover,.suggestions button:focus{background:#edf3ff}.suggestions{top:85px;left:22px;right:22px;padding:7px}.muted{color:var(--muted)}.tip{margin:12px auto;color:var(--muted);font-size:12px}.favorites{display:flex;flex-wrap:wrap;justify-content:center;gap:22px;margin:38px auto 55px}.fav{width:90px;display:flex;align-items:center;flex-direction:column;gap:8px;font-size:13px}.fav-square{width:80px;height:80px;border-radius:22px;background:var(--card);border:1px solid var(--edge);display:grid;place-items:center;transition:transform .15s,background .15s}.fav:hover .fav-square{transform:translateY(-4px);background:white}.fav-square img{width:39px;height:39px;object-fit:contain}.recent-card,.panel{background:var(--card);backdrop-filter:blur(20px);border:1px solid var(--edge);border-radius:22px;box-shadow:var(--shadow)}.recent-card{max-width:1060px;margin:auto;padding:20px 26px;text-align:left}.recent-card h3{font-size:15px;margin:0}.history-items{display:flex;gap:9px;margin-top:12px;flex-wrap:wrap}.history-items button{background:var(--chip);border:0;border-radius:30px;padding:9px 14px;color:var(--ink)}.bottom{display:flex;justify-content:space-between;gap:15px;margin-top:65px;color:var(--muted);font-size:13px;flex-wrap:wrap}.pill{padding:9px 16px;border-radius:30px;background:var(--chip);border:1px solid var(--edge)}.settings-header{margin:44px 0 25px}.settings-header h1{font-size:35px;letter-spacing:-1px;margin:0}.settings-header p{margin:5px 0;color:var(--muted)}.settings-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:17px}.span12{grid-column:span 12}.span6{grid-column:span 6}.span4{grid-column:span 4}.panel{padding:24px}.section-head{display:flex;justify-content:space-between;gap:10px;align-items:start;margin-bottom:18px}.section-head h2{font-size:19px;margin:0;letter-spacing:-.4px}.section-head p{font-size:13px;color:var(--muted);margin:4px 0 0}.section-icon{font-size:25px;margin-right:12px}.panel-title{display:flex;align-items:center}.linkrow{display:grid;grid-template-columns:180px minmax(0,1fr) auto auto;gap:10px;align-items:center;margin:13px 0}.linkrow strong{font-size:13px}.linkrow small{display:block;color:var(--muted);font-size:11px}.readonly{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #e0e6ef;background:#f6f8fc;padding:12px;border-radius:11px;color:#4a5d7b}.btn{background:rgba(255,255,255,.75);border:1px solid #dce5f3;color:#124079;border-radius:10px;padding:11px 13px;white-space:nowrap}.btn.primary{background:var(--blue);color:white;border-color:var(--blue)}.btn.danger{color:#b03245}.item-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.item{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.56);border:1px solid #e0e5ef;border-radius:11px;padding:9px;min-width:0}.item img{width:23px;height:23px}.item .item-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.item button{border:0;background:transparent;color:var(--muted);padding:4px}.toggle{accent-color:var(--blue);width:17px;height:17px}.fav-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.fav-edit{min-width:0;position:relative;padding:14px 4px 10px;background:rgba(255,255,255,.55);border:1px solid #e1e7f0;border-radius:13px;display:flex;align-items:center;gap:7px;flex-direction:column;font-size:12px}.fav-edit img{width:29px;height:29px}.fav-edit .x{position:absolute;right:4px;top:2px;background:transparent;border:0;color:#8e9cb1;font-size:17px}.seg{display:flex;border-radius:12px;background:#eef1f8;padding:4px;gap:3px}.seg button{flex:1;padding:10px 5px;background:transparent;border:0;border-radius:9px;color:var(--muted)}.seg button.active{background:#fff;color:var(--blue);box-shadow:0 2px 8px rgba(24,44,86,.07)}label.field{display:block;font-size:12px;color:var(--muted);margin:12px 0 6px}.fieldinput{width:100%;border:1px solid #dfe5ef;border-radius:10px;background:#fff;color:#14294b;padding:11px;outline-color:var(--blue)}.settingrow{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px;font-size:14px}.settingrow small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.hint{font-size:12px;color:var(--muted);line-height:1.5}.note{background:rgba(66,124,255,.07);padding:13px;border-radius:12px;color:#4e6284;font-size:13px}.modal-backdrop{position:fixed;inset:0;background:rgba(8,19,38,.43);display:grid;place-items:center;z-index:30;padding:18px}.modal{width:min(490px,100%);border-radius:22px;padding:25px;background:var(--card-solid);color:var(--ink);box-shadow:0 20px 70px #15274444}.modal h2{margin-top:0}.modal .buttons{display:flex;justify-content:flex-end;gap:8px;margin-top:19px}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#102644;color:white;padding:12px 18px;border-radius:12px;z-index:90}.tag{background:#eff4ff;color:#316bd7;border-radius:10px;padding:5px 9px;font-size:12px}.group-settings{display:flex;flex-wrap:wrap;gap:8px}.group-settings button{padding:9px 12px;border:1px solid #dfe6f2;border-radius:10px;background:#fff;color:#14294b}html[data-theme=dark]{--ink:#eaf0ff;--muted:#a5b0c5;--card:rgba(29,40,62,.82);--card-solid:#1b2941;--edge:rgba(169,194,236,.13);--chip:rgba(39,54,81,.84);--shadow:0 14px 45px rgba(0,0,0,.22);background:#121e33}html[data-theme=dark] body{background:radial-gradient(ellipse at 85% 45%,#423a54 0%,transparent 50%),radial-gradient(ellipse at 0 0,#263d61 0%,transparent 55%),#121e33}html[data-theme=dark] .engine,html[data-theme=dark] .seg,html[data-theme=dark] .readonly{background:#253650;color:#eaf0ff;border-color:#3a4d69}html[data-theme=dark] .btn,html[data-theme=dark] .item,html[data-theme=dark] .fav-edit,html[data-theme=dark] .fieldinput,html[data-theme=dark] .group-settings button{background:#263651;border-color:#40516b;color:#eaf0ff}html[data-theme=dark] .seg button.active{background:#41567a;color:white}html[data-theme=dark] .engine-list button:hover,html[data-theme=dark] .suggestions button:hover{background:#344a6a}html[data-theme=dark] .note{color:#cad7f8}@media(max-width:780px){.container{padding:16px}.hero{margin:75px auto 0}.searchbar{height:67px}.searchglass{padding-left:10px}.searchbar input{font-size:15px}.engine{padding:10px;max-width:100px}.engine span{display:none}.go{height:45px;width:43px}.favorites{gap:9px}.fav{width:70px}.fav-square{width:60px;height:60px}.span6,.span4{grid-column:span 12}.linkrow{grid-template-columns:1fr auto}.linkrow .readonly{grid-column:1/-1;grid-row:auto}.item-list{grid-template-columns:1fr}.top-actions .date{display:none}.bottom{margin-top:38px}.subtitle{font-size:18px}.settings-header{margin-top:28px}}

/* v0.2 refinements */
html[data-theme=dark] .hero h1{color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.28)}
html[data-theme=dark] .hero .subtitle{color:#d4def0}
html[data-theme=dark] .searchbar{background:#1b2941}
html[data-theme=dark] .searchbar input{color:#fff}
html[data-theme=dark] .searchbar input::placeholder{color:#c4d1e5}
[hidden]{display:none!important}
.recent-card .between{flex-wrap:nowrap;gap:16px}
.recent-card .between h3{flex:1;min-width:0}
.recent-card .between .smallbtn{flex-shrink:0;padding:7px 12px;color:var(--muted);font-size:12px}
.history-items{flex-wrap:nowrap;overflow:hidden;align-items:center}
.history-items button{white-space:nowrap;flex-shrink:0;max-width:220px;text-overflow:ellipsis;overflow:hidden}
.history-items .history-more{background:rgba(128,143,164,.18);color:var(--ink);font-weight:600}
.history-all{display:flex;flex-wrap:wrap;gap:8px;max-height:45vh;overflow:auto}
.group{display:inline-flex;align-items:center;gap:7px;font-weight:500}
.group .group-symbol{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px}
.group .group-symbol svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:650px){.recent-card{padding:15px}.history-items button{max-width:150px}}

/* v0.3 usability refinements */
.go{display:grid;place-items:center;padding:0;line-height:1;font-family:Arial,sans-serif}
.group-plus{width:39px;height:39px;padding:0;display:inline-flex;justify-content:center;align-items:center;background:rgba(255,255,255,.46);border:1px dashed rgba(104,128,163,.45);color:var(--muted)}
.group-plus svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.weather-link{display:inline-flex;align-items:center;color:var(--ink);padding:7px 10px;border-radius:999px}
.weather-link:hover{background:var(--chip)}
.search-result-modal{width:min(520px,100%)}
.search-result-modal p{line-height:1.6}
.result-links{display:grid;gap:9px;margin:17px 0}
.result-link{display:flex;align-items:center;gap:13px;padding:13px 15px;border:1px solid var(--edge);border-radius:14px;background:var(--chip);font-weight:600;transition:background .15s,transform .15s}
.result-link:hover{background:rgba(66,124,255,.12);transform:translateY(-1px)}
.result-link img{width:25px;height:25px;object-fit:contain}
.result-link .result-arrow{margin-left:auto;color:var(--muted);font-size:20px}
html[data-theme=dark] .result-link{border-color:#3a4d69}

/* v0.4 subtle usability adjustments */
.history-privacy{font-size:11px;color:var(--muted);font-weight:400;margin-left:10px}
.background-control{font:inherit;color:var(--muted);cursor:pointer}
.background-control:hover{background:var(--card-solid);color:var(--ink)}
.background-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.engine .group-symbol{flex:none}
.engine .chevron{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;margin-left:1px}
html[data-theme=dark] .background-control:hover{background:#30435f}
@media(max-width:540px){.history-privacy{display:block;margin:3px 0 0}.background-choices{grid-template-columns:1fr}}
