:root{--bg: #f4efe6;--paper: #fffdf8;--ink: #1c1917;--muted: #78665c;--line: #e6d9cc;--accent: #c45c26;--accent-ink: #fff8f3;--danger: #b42318;--shadow: 0 10px 30px rgba(48, 32, 20, .08);--radius: 18px;--safe-top: env(safe-area-inset-top);--safe-bottom: env(safe-area-inset-bottom)}*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;font-family:Segoe UI,Iowan Old Style,Georgia,system-ui,sans-serif;background:radial-gradient(1200px 600px at 20% -10%,#fbe7d4 0%,var(--bg) 45%);color:var(--ink)}button,input,textarea{font:inherit}button{cursor:pointer}.screen{max-width:720px;margin:0 auto;min-height:100dvh;padding-bottom:calc(96px + var(--safe-bottom))}.topbar{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;padding:calc(10px + var(--safe-top)) 16px 10px;background:color-mix(in srgb,var(--bg) 86%,transparent);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.topbar h1{margin:0;font-size:1.15rem;font-weight:650;text-align:center;letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-spacer{width:44px;height:44px}.brand-mark{width:44px;height:44px;display:grid;place-items:center}.brand-mark svg{width:22px;height:22px;fill:var(--accent)}.icon-btn{width:44px;height:44px;border:0;border-radius:14px;background:transparent;color:var(--ink);font-size:1.25rem}.icon-btn.quiet{color:var(--muted)}.content{padding:8px 20px 24px}.kicker{margin:0 0 16px;color:var(--muted);font-size:.95rem}.inbox{width:100%;display:flex;align-items:center;gap:14px;padding:16px;border:0;border-radius:var(--radius);background:var(--paper);box-shadow:var(--shadow);text-align:left}.inbox-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#efe4d6;color:var(--accent);font-size:1.2rem}.inbox b,.inbox small{display:block}.inbox small{color:var(--muted);margin-top:2px}.count{margin-left:auto;min-width:28px;height:28px;padding:0 8px;border-radius:999px;background:var(--ink);color:var(--bg);display:grid;place-items:center;font-size:.85rem}.folder-grid{list-style:none;margin:20px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px}.folder-grid.nested{grid-template-columns:1fr;margin-top:0;margin-bottom:16px}.folder-card{width:100%;min-height:128px;padding:16px;border:0;border-radius:var(--radius);background:var(--paper);box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:flex-start;gap:12px;text-align:left}.folder-card.row{min-height:0;flex-direction:row;align-items:center}.folder-glyph{width:36px;height:36px;border-radius:12px;color:#fff;display:grid;place-items:center;font-weight:700}.folder-glyph.sm{width:32px;height:32px}.folder-name{font-weight:650;line-height:1.25}.folder-meta{margin-top:auto;color:var(--muted);font-size:.85rem}.empty{margin-top:28px;padding:24px;border-radius:var(--radius);background:color-mix(in srgb,var(--paper) 70%,transparent);color:var(--muted)}.empty p{margin:0;line-height:1.45}.home-actions{display:flex;flex-direction:column;gap:4px;margin-top:28px}.text-btn{border:0;background:none;color:var(--muted);text-align:left;padding:10px 0}.text-btn.danger,.danger{color:var(--danger)}.search{width:100%;border:1px solid var(--line);background:var(--paper);border-radius:14px;padding:14px 16px;margin-bottom:16px;outline:none}.search:focus,label input:focus,label textarea:focus{border-color:var(--accent)}.link-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.link-row{display:flex;align-items:stretch;background:var(--paper);border-radius:16px;box-shadow:var(--shadow)}.link-main{flex:1;display:flex;gap:12px;padding:12px 4px 12px 12px;border:0;background:none;text-align:left}.favicon{width:36px;height:36px;border-radius:12px;color:#fff;display:grid;place-items:center;flex:none;font-weight:700}.link-text{display:flex;flex-direction:column;gap:3px;min-width:0}.link-text b{font-weight:650;line-height:1.3}.link-text small,.link-text em{color:var(--muted);font-style:normal;font-size:.82rem}.folder-card.add{background:transparent;box-shadow:none;border:1.5px dashed #d4c4b4}.folder-card.add .folder-name{color:var(--ink)}.add-glyph{background:#efe4d6;color:var(--accent);font-size:1.35rem;font-weight:500}.thought-mark{background:#efe4d6;color:var(--accent);font-size:1.4rem;line-height:1}.link-row.thought .link-text em{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap}.thought-area{min-height:160px;line-height:1.45}.dest{margin:8px 0 4px}.dest-label{color:var(--muted);font-size:.88rem;margin-bottom:8px}.dest-chips{display:flex;flex-wrap:wrap;gap:8px}.chip{border:0;background:#efe4d6;border-radius:999px;padding:8px 12px;color:var(--ink)}.chip.on{background:var(--accent);color:var(--accent-ink)}.dest-new{display:flex;gap:8px;margin-top:10px}.dest-new input{flex:1;border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:#fff;outline:none}.dest-add{width:48px;margin-top:0;flex:none;font-size:1.3rem}.folder-toolbar{display:flex;flex-wrap:wrap;gap:8px 16px;margin-bottom:8px}.fab{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:calc(24px + var(--safe-bottom));width:58px;height:58px;border:0;border-radius:20px;background:var(--accent);color:var(--accent-ink);font-size:2rem;line-height:1;box-shadow:0 12px 24px #c45c2659;z-index:6}.fab-menu{position:fixed;inset:0;background:#1c191747;z-index:7}.fab-menu-inner{position:absolute;right:max(20px,env(safe-area-inset-right));bottom:calc(96px + var(--safe-bottom));display:flex;flex-direction:column;gap:8px}.fab-menu-inner button{border:0;background:var(--paper);padding:12px 18px;border-radius:14px;box-shadow:var(--shadow);text-align:right}.sheet-backdrop{position:fixed;inset:0;background:#1c191759;z-index:8;display:flex;align-items:flex-end;justify-content:center}.sheet{width:min(720px,100%);max-height:88dvh;overflow:auto;background:var(--paper);border-radius:24px 24px 0 0;padding:8px 20px calc(24px + var(--safe-bottom));box-shadow:0 -16px 40px #1c191729}.sheet-handle{width:40px;height:4px;border-radius:99px;background:var(--line);margin:8px auto 4px}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.sheet-head h2{margin:0;font-size:1.1rem}label{display:flex;flex-direction:column;gap:6px;margin:12px 0;color:var(--muted);font-size:.88rem}label input,label textarea{border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:#fff;color:var(--ink);outline:none;resize:vertical}.btn{width:100%;border:0;border-radius:14px;padding:14px;margin-top:8px}.btn.primary{background:var(--accent);color:var(--accent-ink);font-weight:650}.btn.ghost{background:#efe4d6;color:var(--ink)}.hint{color:var(--muted);font-size:.88rem;line-height:1.45}.incoming-preview{display:flex;flex-direction:column;gap:4px;padding:12px 0 8px}.incoming-preview small{color:var(--muted)}.pick-list,.action-list{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}.pick-list button,.action-list button{width:100%;text-align:left;border:0;background:#f6eee4;border-radius:12px;padding:14px}.action-list{display:flex;flex-direction:column}.toast{position:fixed;left:50%;bottom:calc(28px + var(--safe-bottom));transform:translate(-50%);background:var(--ink);color:var(--bg);padding:10px 16px;border-radius:999px;font-size:.9rem;z-index:9;white-space:nowrap}.setup{padding:8px 20px 32px}.lead{line-height:1.5;margin-top:0}.setup-card{background:var(--paper);border-radius:var(--radius);padding:18px;margin:16px 0;box-shadow:var(--shadow)}.setup-card h2{margin:0 0 10px;font-size:1.15rem}.setup-card h3{margin:16px 0 8px;font-size:1rem}.setup-card ol,.setup-card p{line-height:1.5}.setup-card ol{padding-left:1.2rem}.setup-kicker{color:var(--muted);font-size:.82rem;margin-bottom:8px}.addr{display:block;background:#efe4d6;border-radius:12px;padding:12px;overflow-wrap:anywhere;margin:8px 0}.splash{display:flex;flex-direction:column;justify-content:center;padding:48px 24px;min-height:100dvh}.splash h1{margin:0 0 8px}.sync-dot{color:var(--muted);font-size:.88rem}@media(min-width:720px){.sheet{border-radius:24px;margin-bottom:24px}.sheet-backdrop{align-items:center}}
