:root{--bg: #ffffff;--panel: #f7f9fc;--border: #e2e8f0;--text: #1a202c;--muted: #64748b;--blue: #2563eb;--blue-hover: #1d4ed8;--blue-soft: #e8f0fe;--danger: #dc2626;--radius: 8px;--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:var(--font);color:var(--text);background:var(--bg);font-size:15px;line-height:1.5}button{font-family:inherit;font-size:14px;cursor:pointer;border-radius:var(--radius);border:1px solid transparent;padding:8px 14px;transition:background .12s ease,border-color .12s ease}button:disabled{opacity:.55;cursor:default}.primary{background:var(--blue);color:#fff}.primary:not(:disabled):hover{background:var(--blue-hover)}.ghost{background:transparent;color:var(--text);border-color:var(--border)}.ghost:not(:disabled):hover{background:var(--panel)}.link{background:none;border:none;color:var(--blue);padding:0 4px;text-decoration:underline}.small{padding:5px 10px;font-size:13px}.block{width:100%}.row{display:flex;gap:8px;align-items:center}.muted{color:var(--muted)}.notice{background:var(--blue-soft);color:#1e3a8a;padding:8px 12px;border-radius:var(--radius);font-size:14px}.error-text{color:var(--danger);font-size:14px}.error-text.pad{padding:8px 16px}.centered{height:100%;display:flex;align-items:center;justify-content:center;padding:24px;color:var(--muted)}.card{background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:32px;max-width:420px;width:100%;box-shadow:0 1px 3px #0000000a;display:flex;flex-direction:column;gap:14px;text-align:left}.card h2{margin:0;font-size:20px;color:var(--text)}.card.signin{text-align:center;align-items:center}.brand{font-weight:700;letter-spacing:-.02em;color:var(--blue)}.brand.large{font-size:36px}.app{display:grid;grid-template-columns:300px 1fr;height:100%}.sidebar{background:var(--panel);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:16px;gap:12px;min-height:0}.sidebar-head{display:flex;align-items:center;justify-content:space-between}.sidebar-head .brand{font-size:22px}.note-list{list-style:none;margin:0;padding:0;overflow-y:auto;flex:1;min-height:0;display:flex;flex-direction:column;gap:2px}.note-list .empty{padding:16px 8px;font-size:14px}.note-item{width:100%;text-align:left;background:transparent;border:none;border-radius:var(--radius);padding:10px 12px;display:flex;flex-direction:column;gap:2px}.note-item:hover{background:#eef2f7}.note-item.selected{background:var(--blue-soft)}.note-name{font-weight:500;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.note-date{font-size:12px;color:var(--muted)}.sidebar-foot{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-top:1px solid var(--border);padding-top:10px}.editor{display:flex;flex-direction:column;min-width:0;height:100%}.undo-bar{background:#1e293b;color:#fff;padding:10px 16px;display:flex;align-items:center;gap:10px;font-size:14px}.undo-bar .link{color:#93c5fd}.editor-inner{display:flex;flex-direction:column;height:100%;min-height:0}.editor-toolbar{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--border)}.title-input{flex:1;font-size:20px;font-weight:600;border:none;outline:none;color:var(--text);background:transparent;font-family:inherit}.title-input::placeholder{color:#cbd5e1}.body-input{flex:1;width:100%;border:none;outline:none;resize:none;padding:20px;font-size:15px;line-height:1.7;color:var(--text);font-family:inherit;background:var(--bg)}.body-input::placeholder{color:#cbd5e1}.editor-status{font-size:12px;padding:8px 20px;border-top:1px solid var(--border)}@media (max-width: 640px){.app{grid-template-columns:1fr}.sidebar{max-height:45%}}
