:root{color:#1c3428;font-synthesis:none;--green:#206045;--muted:#52675a;--border:#dce7df;--soft:#eaf3ed;background:#f3f7f4;font-family:Segoe UI,Hiragino Sans,Yu Gothic UI,system-ui,sans-serif}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit;color:inherit}button{border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:9px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:0 15px;display:inline-flex}button:disabled{opacity:.6;cursor:default}button:hover:not(:disabled),.choices a:hover{background:var(--soft)}:focus-visible{outline:2px solid var(--green);outline-offset:3px}h1,h2,p{margin:0}h1{letter-spacing:-.04em;font-size:clamp(1.65rem,4vw,2.2rem)}.top{padding:max(12px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left));border-bottom:1px solid var(--border);background:#fff;justify-content:space-between;align-items:center;display:flex}.brand{letter-spacing:-.05em;align-items:center;gap:10px;font-size:1.35rem;font-weight:750;display:inline-flex}.brand span,.large-icon{border-radius:10px;place-items:center;display:grid}.brand span{background:var(--green);color:#fff;width:38px;height:38px}.large-icon{background:var(--soft);width:54px;height:54px;color:var(--green)}.large-icon svg{width:26px;height:26px}.header-right,.role{align-items:center;gap:10px;display:flex}.role{color:var(--muted);font-size:.85rem}.icon-button{width:44px;padding:0}.landing{border:1px solid var(--border);background:#fff;border-radius:20px;width:min(100% - 32px,470px);margin:clamp(32px,10vh,96px) auto;padding:clamp(22px,5vw,40px)}.landing h1{margin-top:16px}.landing p{color:var(--muted);margin-top:8px;line-height:1.6}.choices,form{gap:10px;margin-top:24px;display:grid}.choices a{border:1px solid var(--border);border-radius:10px;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:16px;display:grid}form input{border:1px solid var(--border);border-radius:8px;width:100%;padding:11px}.form-actions{justify-content:flex-end;gap:10px;display:flex}.primary{background:var(--green);color:#fff;border-color:var(--green);white-space:nowrap;padding-inline:20px;font-weight:650}.primary:hover:not(:disabled){background:#174c35}.workspace{max-width:1250px;padding:clamp(16px,4vw,44px);padding-bottom:max(24px, env(safe-area-inset-bottom));margin:auto}.workspace-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:19px;display:flex}.workspace-heading p{color:var(--muted);margin-top:4px;font-size:.83rem}.timestamp{text-align:right}.timestamp time{white-space:nowrap;margin-left:6px}.panes{border:1px solid var(--border);background:#fff;border-radius:15px;grid-template-columns:minmax(210px,30%) minmax(0,1fr);min-height:min(68vh,780px);display:grid;overflow:hidden}.sidebar{border-right:1px solid var(--border);background:#f9fbf9;min-width:0;padding:16px}.sidebar-heading{justify-content:space-between;align-items:center;gap:8px;margin-bottom:15px;display:flex}.sidebar-heading h2{font-size:1rem}.sidebar-heading span,.list-empty{color:var(--muted);font-size:.83rem}.new{width:100%;color:var(--green);margin-bottom:12px}.notes{gap:4px;margin:0;padding:0;list-style:none;display:grid}.notes button{text-align:left;background:0 0;border-color:#0000;justify-content:flex-start;width:100%;min-width:0;padding:10px;display:flex}.notes button[aria-pressed=true]{background:var(--soft);border-color:#d5e8db}.notes svg{color:var(--green);flex:none}.notes button span,.notes strong,.notes small{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}.notes small{color:var(--muted);margin-top:4px}.detail{overflow-wrap:anywhere;flex-direction:column;min-width:0;padding:clamp(16px,4vw,40px);display:flex}.detail h2{white-space:pre-wrap;margin-bottom:20px;font-size:1.5rem}.note-body{white-space:pre-wrap;line-height:1.8}.detail-bar{justify-content:flex-end;margin-bottom:8px;display:flex}.mobile-back{display:none}.delete{color:#934637}.note-title,textarea{background:0 0;border:0;border-radius:0;width:100%;padding:10px 2px}.note-title{border-bottom:1px solid var(--border);font-size:1.45rem;font-weight:700}textarea{resize:vertical;flex:1;min-height:240px;line-height:1.8}.empty{min-height:170px;color:var(--muted);text-align:center;flex:1;place-content:center;justify-items:center;gap:14px;display:grid}.message{border-radius:8px;margin-bottom:12px;padding:10px 14px}.error,.landing .error{color:#8a362c;background:#fff2ef}.success{color:var(--green);background:var(--soft)}.sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@media (width<=640px){.panes{grid-template-columns:1fr;min-height:0}.sidebar{border-right:0}.editor[data-editing=false] .detail,.editor[data-editing=true] .sidebar{display:none}.editor .detail-bar{justify-content:space-between}.mobile-back{display:inline-flex}.viewer .detail{border-top:1px solid var(--border)}}.reader-heading{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.copy{color:var(--green);flex-shrink:0}.copy-status{color:var(--muted);margin-top:12px;font-size:.85rem}.copy-status:empty{margin:0}.note-body a{color:var(--green);text-underline-offset:3px;text-decoration:underline}
