:root{color:#f7f9fc;background:#111827;color-scheme:dark;font-family:Segoe UI,Yu Gothic UI,Hiragino Kaku Gothic ProN,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;--header-height: 104px;--note-width: 250px;--note-height: 220px;--header-bg: rgba(17, 24, 39, .96);--header-border: rgba(255, 255, 255, .08);--header-shadow: rgba(4, 9, 20, .2);--muted-text: #aebbd0;--search-color: #7f91aa;--search-bg: rgba(255, 255, 255, .07);--search-border: rgba(255, 255, 255, .1);--search-focus-bg: rgba(255, 255, 255, .1);--search-input: #f7f9fc;--search-placeholder: #8291a8;--panel-bg: #202d43;--panel-text: #eaf0f9;--panel-muted: #c9d4e5;--panel-border: rgba(255, 255, 255, .12);--panel-item-bg: rgba(255, 255, 255, .04);--panel-item-hover: rgba(255, 255, 255, .1);--board-bg: #18243a;--grid-line: rgba(255, 255, 255, .024);--board-sheen: rgba(255, 255, 255, .025);--empty-text: #8190a8;--empty-title: #9cabc1;--empty-note: rgba(174, 190, 214, .08);--empty-note-border: rgba(174, 190, 214, .2);--empty-note-icon: #617089;--theme-button-bg: rgba(255, 255, 255, .07);--theme-button-border: rgba(255, 255, 255, .12);--theme-button-hover: rgba(255, 255, 255, .13)}:root[data-theme=light]{color:#243047;background:#eef2f7;color-scheme:light;--header-bg: rgba(248, 250, 252, .96);--header-border: rgba(51, 65, 85, .12);--header-shadow: rgba(42, 57, 78, .12);--muted-text: #64748b;--search-color: #64748b;--search-bg: #ffffff;--search-border: rgba(51, 65, 85, .16);--search-focus-bg: #ffffff;--search-input: #243047;--search-placeholder: #8290a3;--panel-bg: #ffffff;--panel-text: #243047;--panel-muted: #526177;--panel-border: rgba(51, 65, 85, .14);--panel-item-bg: #f1f5f9;--panel-item-hover: #e6edf5;--board-bg: #e8eef6;--grid-line: rgba(63, 79, 103, .07);--board-sheen: rgba(255, 255, 255, .42);--empty-text: #718198;--empty-title: #526177;--empty-note: rgba(80, 101, 132, .06);--empty-note-border: rgba(80, 101, 132, .2);--empty-note-icon: #718198;--theme-button-bg: #ffffff;--theme-button-border: rgba(51, 65, 85, .16);--theme-button-hover: #f1f5f9}*{box-sizing:border-box}html,body,#app{min-width:320px;min-height:100%;margin:0}body{min-height:100vh;min-height:100dvh;overflow-x:hidden}button,textarea,input{font:inherit}.app-header{position:sticky;z-index:100;top:0;display:flex;min-height:var(--header-height);align-items:center;justify-content:space-between;gap:24px;padding:20px clamp(24px,4vw,64px);background:var(--header-bg);border-bottom:1px solid var(--header-border);box-shadow:0 8px 24px var(--header-shadow);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.brand{display:flex;min-width:0;align-items:center;gap:16px}.brand-mark{position:relative;display:block;width:48px;height:48px;flex:0 0 auto;transform:rotate(-4deg);background:#ffd84d;border-radius:4px 4px 14px;box-shadow:5px 6px #0003}.brand-mark:after{position:absolute;right:0;bottom:0;width:14px;height:14px;background:linear-gradient(135deg,#e8b923 50%,#ffffff8c 51%);border-radius:10px 0;content:""}h1{margin:0;font-size:clamp(1.35rem,2vw,1.75rem);line-height:1.2;letter-spacing:.03em}.brand p{margin:5px 0 0;color:var(--muted-text);font-size:.875rem}.search-box{display:flex;width:clamp(190px,28vw,360px);min-height:46px;align-items:center;gap:10px;padding:0 14px;color:var(--search-color);background:var(--search-bg);border:1px solid var(--search-border);border-radius:12px;transition:background .14s ease,border-color .14s ease,box-shadow .14s ease}.search-box:focus-within{color:#ffd84d;background:var(--search-focus-bg);border-color:#ffd84d80;box-shadow:0 0 0 3px #ffd84d1f}.search-box svg{width:20px;height:20px;flex:0 0 auto}.search-box input{width:100%;min-width:0;color:var(--search-input);background:transparent;border:0;outline:0;font-size:1rem}.search-box input::placeholder{color:var(--search-placeholder)}.search-box input::-webkit-search-cancel-button{cursor:pointer;filter:invert(1) opacity(.65)}:root[data-theme=light] .search-box input::-webkit-search-cancel-button{filter:none}.theme-toggle{display:grid;width:46px;height:46px;flex:0 0 auto;padding:0;place-items:center;color:var(--muted-text);background:var(--theme-button-bg);border:1px solid var(--theme-button-border);border-radius:12px;cursor:pointer;transition:color .14s ease,background .14s ease,transform .14s ease}.theme-toggle:hover{color:#d19e00;background:var(--theme-button-hover);transform:translateY(-1px)}.theme-icon{width:22px;height:22px}.theme-icon--moon,:root[data-theme=light] .theme-icon--sun{display:none}:root[data-theme=light] .theme-icon--moon{display:block}.header-actions{position:relative;display:flex;flex:0 0 auto;align-items:center;gap:18px}.new-note-colors{position:absolute;z-index:120;top:calc(100% + 14px);right:0;width:260px;padding:14px;color:var(--panel-text);background:var(--panel-bg);border:1px solid var(--panel-border);border-radius:16px;box-shadow:0 18px 36px #0409146b}.new-note-colors[hidden],.note-color-panel[hidden]{display:none}.new-note-colors:before{position:absolute;top:-7px;right:30px;width:14px;height:14px;transform:rotate(45deg);background:var(--panel-bg);border-top:1px solid var(--panel-border);border-left:1px solid var(--panel-border);content:""}.new-note-colors p{margin:0 0 12px;color:var(--panel-muted);font-size:.875rem;font-weight:700}.new-note-color-list{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.new-note-color{display:grid;min-width:0;min-height:58px;padding:6px 2px;place-items:center;gap:4px;color:var(--panel-muted);background:var(--panel-item-bg);border:1px solid transparent;border-radius:10px;cursor:pointer;font-size:.75rem;font-weight:700}.new-note-color:hover{color:var(--panel-text);background:var(--panel-item-hover);border-color:var(--panel-border)}.color-swatch{width:28px;height:28px;border:2px solid rgba(255,255,255,.52);border-radius:50%;box-shadow:0 2px 7px #00000047}.color-swatch--yellow{background:#ffe477}.color-swatch--pink{background:#ffaaa3}.color-swatch--blue{background:#9edcf1}.color-swatch--green{background:#9ee6c5}.note-count{color:var(--muted-text);font-size:.9rem;font-weight:600}.add-button{display:inline-flex;min-height:48px;align-items:center;justify-content:center;gap:8px;padding:0 20px;color:#172033;background:#ffd84d;border:0;border-radius:12px;box-shadow:0 5px #cda91b,0 9px 22px #00000038;cursor:pointer;font-weight:800;transition:transform .14s ease,box-shadow .14s ease,background .14s ease}.add-button span:first-child{font-size:1.4rem;line-height:1}.add-button:hover{background:#ffe370;transform:translateY(-1px);box-shadow:0 6px #cda91b,0 11px 24px #0000003d}.add-button:active{transform:translateY(3px);box-shadow:0 2px #cda91b,0 5px 14px #00000038}main{min-height:calc(100vh - var(--header-height));min-height:calc(100dvh - var(--header-height));background:radial-gradient(circle at 15% 18%,rgba(74,111,159,.18),transparent 25%),radial-gradient(circle at 90% 80%,rgba(36,71,117,.2),transparent 28%),var(--board-bg)}.board{position:relative;min-height:calc(100vh - var(--header-height));min-height:calc(100dvh - var(--header-height));overflow:hidden;background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);background-size:28px 28px;isolation:isolate}.board:before{position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,var(--board-sheen),transparent 140px);content:"";pointer-events:none}.empty-state{position:absolute;top:50%;left:50%;display:grid;justify-items:center;transform:translate(-50%,-50%);color:var(--empty-text);text-align:center;pointer-events:none}.empty-state[hidden]{display:none}.empty-note{display:grid;width:72px;height:64px;margin-bottom:20px;place-items:center;transform:rotate(-5deg);color:var(--empty-note-icon);background:var(--empty-note);border:2px dashed var(--empty-note-border);border-radius:6px 6px 18px;font-size:2rem}.empty-state p{margin:0 0 6px;color:var(--empty-title);font-size:1.05rem;font-weight:700}.empty-state>span{font-size:.875rem}.sticky-note{position:absolute;width:var(--note-width);height:var(--note-height);overflow:hidden;color:#293042;background:var(--note-color);border:1px solid rgba(59,50,17,.12);border-radius:5px 5px 20px;box-shadow:0 14px 28px #04091447,0 3px 6px #0409142e;transition:box-shadow .16s ease,transform .16s ease;animation:note-in .19s ease-out both}.sticky-note:after{position:absolute;right:0;bottom:0;width:22px;height:22px;background:linear-gradient(135deg,var(--note-fold) 50%,rgba(255,255,255,.6) 51%);border-radius:14px 0;content:"";pointer-events:none}.sticky-note.is-dragging{z-index:50;transform:rotate(1.5deg) scale(1.025);box-shadow:0 24px 40px #04091457,0 5px 10px #04091433;transition:box-shadow .1s ease,transform .1s ease}.sticky-note.is-color-open{z-index:40}.note-toolbar{display:flex;height:48px;align-items:center;justify-content:space-between;padding:8px 9px 6px 14px;cursor:grab;touch-action:none}.note-toolbar:active{cursor:grabbing}.drag-hint{display:inline-flex;align-items:center;gap:2px;color:#29304273;font-size:.8rem;font-weight:700;letter-spacing:.06em;-webkit-user-select:none;user-select:none}.drag-dots{width:18px;height:18px;background-image:radial-gradient(circle,currentColor 1.4px,transparent 1.6px);background-size:6px 6px}.note-toolbar-actions{display:flex;align-items:center;gap:4px}.color-button,.delete-button{display:grid;width:36px;height:36px;padding:0;place-items:center;color:#2930429e;background:#ffffff47;border:0;border-radius:50%;cursor:pointer;transition:color .12s ease,background .12s ease,transform .12s ease}.palette-icon{width:18px;height:18px;background:conic-gradient(#ffe477 0 25%,#ffaaa3 0 50%,#9edcf1 0 75%,#9ee6c5 0);border:2px solid rgba(41,48,66,.45);border-radius:50%}.color-button:hover,.color-button[aria-expanded=true]{background:#ffffffa8;transform:scale(1.06)}.note-color-panel{position:absolute;z-index:3;top:48px;right:10px;display:grid;grid-template-columns:repeat(4,40px);gap:6px;padding:8px;background:#1f2837f0;border:1px solid rgba(255,255,255,.16);border-radius:14px;box-shadow:0 10px 22px #181e284d}.note-color-option{width:40px;height:40px;padding:0;background:var(--swatch-color);border:3px solid transparent;border-radius:50%;box-shadow:inset 0 0 0 1px #2930421f;cursor:pointer}.note-color-option:hover,.note-color-option[aria-pressed=true]{border-color:#fff;box-shadow:0 0 0 2px #29304285;transform:scale(1.05)}.delete-button:hover{color:#8f2436;background:#ffffff94;transform:scale(1.06)}.delete-button svg{width:18px;height:18px}.note-text{width:100%;height:calc(100% - 48px);padding:8px 20px 24px;resize:none;color:#252c3b;background:transparent;border:0;outline:0;font-size:1rem;line-height:1.62}.note-text::placeholder{color:#29304275}.note-text:focus{box-shadow:inset 0 -3px #29304229}button:focus-visible,textarea:focus-visible{outline:3px solid #ffffff;outline-offset:3px}@keyframes note-in{0%{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:900px){:root{--header-height: 164px}.app-header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"brand theme actions" "search search search";align-content:center;row-gap:12px;padding:16px 24px}.brand{grid-area:brand}.search-box{grid-area:search;width:100%}.theme-toggle{grid-area:theme}.header-actions{grid-area:actions}}@media(max-width:767px){:root{--header-height: 144px;--note-width: min(250px, calc(100vw - 32px) );--note-height: 210px}.app-header{gap:12px;padding:14px 16px}.brand{gap:10px}.brand-mark{width:40px;height:40px}.brand p{display:none}.note-count{min-width:48px;text-align:right}.header-actions{gap:10px}.app-header{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand actions" "search theme"}.theme-toggle{width:52px;height:52px}.add-button{min-width:52px;min-height:52px;padding:0 15px}.add-button span:last-child{display:none}.add-button span:first-child{font-size:1.75rem}.note-toolbar{height:52px}.delete-button,.color-button{width:44px;height:44px}.new-note-colors{right:0;width:252px}.note-color-panel{top:52px;grid-template-columns:repeat(4,44px)}.note-color-option{width:44px;height:44px}.note-text{height:calc(100% - 52px);font-size:1rem}}@media(max-width:420px){h1{font-size:1.2rem}.board{background-size:24px 24px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
