@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap");:root{--bg-gradient:linear-gradient(135deg,#f6f8fb,#e9edf4);--panel-bg:hsla(0,0%,100%,.92);--text-main:#0f172a;--text-sub:#4b5563;--theme-accent:#c96a4a;--theme-accent-rgb:201,106,74;--theme-accent-outline:#d9a08d;--theme-topbar-bg:#f1e9dd;--theme-tab-bg:#fff;--theme-tab-active-bg:#f1e9dd;--c-yellow:#faf2b1;--c-green:#dff5e3;--c-sky:#ddeaf9;--c-pink:#f5d5d5;--c-purple:#dce1fa;--shadow-soft:0 12px 30px rgba(15,23,42,.08);--shadow-card:0 6px 18px rgba(15,23,42,.08);--shadow-inset:inset 0 1px 2px 0 rgba(0,0,0,.04);--font-main:"Manrope",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;--cell-min-width:230px;--ui-scale:1}*{box-sizing:border-box}body{margin:0;font-family:var(--font-main);background:radial-gradient(circle at 20% 20%,hsla(0,0%,100%,.6),transparent 35%),radial-gradient(circle at 80% 0,hsla(0,0%,100%,.5),transparent 30%),var(--bg-gradient);color:var(--text-main);min-height:100vh;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}.app{min-height:100vh;padding:32px 16px 48px;gap:16px;margin:0}.app,.main-glass-panel{display:flex;flex-direction:column;width:100%;max-width:100%}.main-glass-panel{background:var(--panel-bg);border:1px solid #e6ebf5;box-shadow:var(--shadow-soft);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);gap:0;position:relative;border-radius:18px;padding:16px}.text-toolbar{position:absolute;z-index:30;display:flex;align-items:center;gap:10px;padding:6px 10px;border-radius:12px;border:1px solid #e6e6e6;background:#fff;box-shadow:0 8px 20px rgba(0,0,0,.08);transition:opacity .12s ease,transform .12s ease;transform:translateY(0);overflow:visible}.text-toolbar.hidden{opacity:0;pointer-events:none;transform:translateY(4px)}.text-toolbar-size{display:inline-flex;align-items:center;gap:6px}.text-toolbar-size-btn{padding:0 6px;height:22px;border-radius:6px;border:0;background:transparent;color:#6b7280;font-size:12px;line-height:1}.text-toolbar-size-btn:hover{background:#f3f4f6;color:#111827}.text-toolbar-color{position:absolute;width:1px;height:1px;padding:0;border:0;opacity:0}.text-toolbar button{height:24px;min-width:20px;padding:0 2px;border-radius:4px;border:0;background:transparent;font-size:12px;color:#6b7280}.text-toolbar button:hover{background:#f3f4f6;color:#111827}.text-toolbar-color-btn{width:16px;height:16px;min-width:16px;max-width:16px;line-height:16px;border-radius:999px;border:1px solid #d1d5db;background:#111827;padding:0!important;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}.text-toolbar-palette{position:absolute;bottom:calc(100% + 8px);top:auto;left:0;display:grid;grid-template-columns:repeat(10,20px);grid-gap:6px;gap:6px;padding:10px;border-radius:12px;border:1px solid #e6e6e6;background:#fff;box-shadow:0 12px 24px rgba(0,0,0,.12);z-index:40}.text-toolbar-palette.hidden{display:none}.text-toolbar-swatch{width:20px;height:20px;border-radius:999px;border:1px solid rgba(0,0,0,.08);padding:0;display:inline-flex;align-items:center;justify-content:center}.text-toolbar-swatch.selected{border-color:#111827}.text-toolbar-check{font-size:12px;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35)}header{position:-webkit-sticky;top:0;z-index:20;padding:14px 16px;background:var(--panel-bg);color:var(--text-main);font-size:18px;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e6ebf5;border-radius:18px 18px 0 0;box-shadow:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);max-height:120px;transition:max-height .2s ease,opacity .2s ease,transform .2s ease,padding .2s ease,border .2s ease,box-shadow .2s ease;position:sticky}.top-actions{position:static;display:inline-flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto}.floating-toggle-wrap{display:none;width:100%;justify-content:space-between;align-items:center;position:-webkit-sticky;position:sticky;top:12px;z-index:25;padding:0 8px 8px 25px}.floating-toggle-wrap .header-toggle{position:static}.floating-title{font-size:14px;font-weight:700;color:var(--theme-accent)}.header-left{display:inline-flex;align-items:center;gap:10px}header .hint{font-size:13px;opacity:.7;font-weight:500}.top-bar{position:-webkit-sticky;position:sticky;top:52px;z-index:18;padding:8px 10px;background:var(--theme-topbar-bg);--topbar-gap:8px;gap:var(--topbar-gap);border-radius:0;box-shadow:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);max-height:90px;transition:max-height .2s ease,opacity .2s ease,transform .2s ease,padding .2s ease,border .2s ease,box-shadow .2s ease;border:1px solid #e5e7eb;border-top:none;border-bottom:1px solid transparent}.top-bar,.top-left-actions{display:flex;align-items:center}.top-left-actions{gap:10px;flex-wrap:wrap;padding-left:20px}.zoom-slider{margin-left:auto;margin-right:4px;display:inline-flex;align-items:center;gap:8px}.zoom-btn{border:none;background:transparent;color:#6b7280;font-size:16px;font-weight:600;cursor:pointer;line-height:1;padding:2px 4px}.zoom-range-wrap{position:relative;width:140px;display:flex;align-items:center}.zoom-center-mark{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:2px;height:12px;background:#9ca3af;border-radius:999px;pointer-events:none}.zoom-range{width:140px;background:transparent;accent-color:var(--theme-accent);-webkit-appearance:none;-moz-appearance:none;appearance:none}.zoom-range::-webkit-slider-runnable-track{height:4px;background:rgba(var(--theme-accent-rgb),.35);border-radius:999px}.zoom-range::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;border-radius:999px;background:var(--theme-accent);border:2px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.2);margin-top:-5px}.zoom-range::-moz-range-track{height:4px;background:rgba(var(--theme-accent-rgb),.35);border-radius:999px}.zoom-range::-moz-range-thumb{width:14px;height:14px;border-radius:999px;background:var(--theme-accent);border:2px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.2)}#nextMonth,#prevMonth{display:none}.month-title{font-size:18px;font-weight:700;color:#111827;letter-spacing:-.5px}.month-number,.month-title .month-number{color:var(--theme-accent)}.title-with-logout{gap:12px}.tab-bar,.title-with-logout{display:inline-flex;align-items:center}.tab-bar{gap:6px}.tab-strip{position:-webkit-sticky;position:sticky;top:-15px;left:12px;display:flex;align-items:flex-end;padding:0;margin:-15px 0 -9px;z-index:4}.tab-btn{border-radius:0 0 12px 12px;border:1px solid #d9d9d9;border-top:none;background:var(--theme-tab-bg);padding:6px 14px;font-size:12px;font-weight:700;color:#8a8a8a;cursor:pointer;box-shadow:none;transition:color .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease}.tab-btn.active,.tab-btn:hover{color:var(--theme-accent)}.tab-btn.active{border-color:#d9d9d9;border-top:2px solid transparent;background:var(--theme-tab-active-bg);box-shadow:none}.title-with-logout .title{font-size:18px;font-weight:700;color:#1f2937}.top-link{background:transparent;border:none;padding:0;font-size:12px;color:#6b7280;cursor:pointer;text-decoration:none}.top-link:hover{color:#111827;text-decoration:underline}.btn{border-radius:12px;border:1px solid #e6ebf5;background:#fff;padding:8px 16px;font-size:13px;font-weight:600;color:#3a6be0;cursor:pointer;box-shadow:var(--shadow-card);transition:background .15s ease,transform .15s ease,color .15s ease,border-color .15s ease,box-shadow .15s ease}.btn:hover{background:#f5f7fb;transform:translateY(-1px);box-shadow:0 10px 24px rgba(15,23,42,.12)}#emojiUploadTrigger,#feedbackSubmit,#settingsClose,#settingsPwdBtn{color:var(--theme-accent)}.header-toggle{position:static}.scale-control{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#4b5563}.btn-green{background:#fff;border-color:#e5e7eb;color:#3b82f6}.btn-green:hover{background:#f8fafc;border-color:#e5e7eb;color:#2563eb}.btn-today{border-color:#e5e7eb;color:#3b82f6;background:#fff;font-weight:600;box-shadow:0 2px 4px rgba(0,0,0,.05);margin-left:4px}.btn-today:hover{background:#f8fafc;border-color:#e5e7eb;color:#2563eb}.month-picker{position:relative;overflow:visible;display:flex;align-items:center;justify-content:center;min-width:180px}.month-display{display:inline-flex;align-items:center;gap:4px;padding:4px 0;border:none;background:transparent;font-size:13px;font-weight:700;color:#1f2937;cursor:pointer;box-shadow:none;transition:color .15s ease,-webkit-text-decoration .15s ease;transition:color .15s ease,text-decoration .15s ease;transition:color .15s ease,text-decoration .15s ease,-webkit-text-decoration .15s ease}.month-display:hover{color:#0f172a;text-decoration:underline}.month-caret{font-size:10px;color:#6b7280;transition:transform .15s}.month-display.open .month-caret{transform:rotate(180deg)}.auth-page{min-height:100vh;align-items:center;justify-content:center;background:radial-gradient(circle at 15% 20%,hsla(0,0%,100%,.55),transparent 38%),radial-gradient(circle at 85% 5%,hsla(0,0%,100%,.45),transparent 32%),linear-gradient(135deg,#f7f2ea,#efe3cf);padding:24px;gap:12px}.auth-card,.auth-page{display:flex;flex-direction:column}.auth-card{background:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");background-size:120px 120px;border:1px solid #e6ebf5;border-radius:16px;box-shadow:0 12px 30px rgba(15,23,42,.08);padding:28px;width:min(420px,100%);gap:18px}.auth-header-row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.auth-preview-link{font-size:12px;font-weight:600;color:var(--theme-accent);text-decoration:none;padding:2px 6px;border-radius:6px}.auth-preview-link:hover{box-shadow:0 2px 6px rgba(var(--theme-accent-rgb),.2)}.auth-hero{display:flex;align-items:baseline;gap:10px}.auth-hero-top{justify-content:center;align-items:baseline;margin-bottom:4px;text-align:center}.auth-logo{font-size:18px;font-weight:800;letter-spacing:.02em;color:#2b2b2b}.auth-tagline{font-size:13px;color:#9a9a9a}.auth-title{margin:0;font-size:22px;font-weight:700;color:var(--text-main)}.auth-form{gap:12px}.auth-field,.auth-form{display:flex;flex-direction:column}.auth-field{gap:6px;font-size:13px;color:var(--text-sub)}.auth-input{border:1px solid #e6ebf5;border-radius:12px;padding:8px 12px;height:38px;font-size:14px;box-sizing:border-box;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}.auth-input:focus{outline:none;border-color:#3a6be0;box-shadow:0 0 0 3px rgba(58,107,224,.15)}.auth-error{color:#dc2626;background:#fef2f2;border:1px solid #fecaca;border-radius:10px}.auth-error,.auth-success{font-size:13px;padding:8px 10px}.auth-success{color:#15803d;background:#ecfdf3;border:1px solid #bbf7d0;border-radius:10px}.auth-submit{width:100%;background:var(--theme-accent);color:#fff;border-color:var(--theme-accent)}.auth-submit:hover{background:#b85e43;border-color:#b85e43;color:#fff}.auth-actions{display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;color:var(--text-sub)}.auth-link{color:var(--theme-accent);font-weight:600;text-decoration:none}.auth-link:hover{text-decoration:underline}.auth-secondary{width:100%;margin-top:6px;color:#1f2937;border-color:#e5e7eb;background:#f9fafb}.auth-secondary:hover{background:#f1f5f9}.auth-google,.auth-reset{margin-top:-8px}.auth-modal-overlay{position:fixed;inset:0;background:rgba(15,23,42,.35);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1200;padding:16px;box-sizing:border-box}.auth-modal{background:#fff;border-radius:16px;border:1px solid #e5e7eb;box-shadow:0 20px 50px rgba(15,23,42,.12);padding:20px 20px 16px;width:min(420px,100%);display:flex;flex-direction:column;gap:12px}.auth-helper{margin:0;font-size:13px;color:#6b7280}.auth-modal-actions{display:flex;gap:8px;justify-content:flex-end}@media (max-width:1024px){header{padding:12px;gap:10px}.top-bar{flex-wrap:wrap;padding:8px 10px;--topbar-gap:10px;gap:var(--topbar-gap)}.top-actions{width:100%;justify-content:flex-end}.search-wrap{width:100%;justify-content:flex-start}.search-input{width:100%;min-width:auto}.calendar-wrapper{max-height:none;padding:10px}.calendar-grid{min-width:1180px;grid-template-columns:repeat(7,minmax(160px,1fr));gap:0}.weekend-hidden .calendar-grid{min-width:850px;grid-template-columns:repeat(5,minmax(160px,1fr))}.weekday-row{gap:6px}.day-cell{padding:14px;min-height:180px}}@media (max-width:768px){.app{padding:20px 10px 32px}header{flex-direction:column;align-items:flex-start;border-radius:14px 14px 0 0}.title-with-logout{width:100%}.top-bar{position:static;border-radius:0;--topbar-gap:2px;gap:var(--topbar-gap);padding:2px;align-items:center;flex-wrap:wrap}.top-actions,.top-bar{justify-content:flex-start}.top-actions{width:100%;gap:6px}.top-left-actions{width:auto;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;gap:6px}.top-left-actions>*{flex-shrink:0;white-space:nowrap;font-size:11px}.zoom-slider{margin-left:0;gap:6px}.zoom-range,.zoom-range-wrap{width:90px}.zoom-btn{font-size:14px}.month-display{padding:0;min-width:auto;padding:0 2px;gap:2px}.search-wrap{width:auto;flex:0 0 auto;justify-content:flex-start}.btn,.month-display,.search-input{font-size:11px}.btn{padding:5px 8px}.search-input{width:60px;min-width:60px;flex:0 0 60px}.month-title{font-size:14px;padding:0;margin:0}.calendar-grid{min-width:980px;grid-template-columns:repeat(7,minmax(140px,1fr));gap:0}.weekend-hidden .calendar-grid{min-width:720px;grid-template-columns:repeat(5,minmax(140px,1fr))}.day-cell{padding:12px;min-height:170px}.day-header{font-size:9px}.card{font-size:10px}.expanded-overlay{padding:12px}.expanded-overlay-inner{width:100%;height:95vh}}.month-dropdown{position:absolute;top:110%;left:50%;transform:translateX(-50%);margin-top:4px;padding:16px;background:hsla(0,0%,100%,.9);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-radius:20px;border:1px solid #fff;box-shadow:0 20px 40px rgba(0,0,0,.15);font-size:12px;z-index:20;display:none;min-width:240px}.month-dropdown.open{display:block}.ym-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.ym-year-label{font-weight:700;font-size:14px}.ym-year-btn{border-radius:999px;border:1px solid rgba(209,213,219,.5);background:hsla(0,0%,100%,.5);padding:4px 10px;font-size:11px;cursor:pointer}.ym-year-btn:hover{background:hsla(0,0%,100%,.8)}.ym-month-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:6px;gap:6px}.ym-month-btn{border-radius:999px;border:1px solid rgba(229,231,235,.5);background:hsla(0,0%,100%,.5);padding:6px 8px;font-size:12px;cursor:pointer;text-align:center}.ym-month-btn:hover{background:hsla(0,0%,100%,.8);border-color:rgba(191,219,254,.8)}.ym-month-btn.active{background:#3b82f6;border-color:#2563eb;color:#fff}.search-wrap{margin-left:0;gap:8px}.emoji-panel,.search-wrap{display:flex;align-items:center}.emoji-panel{position:relative;gap:6px}.emoji-panel-hidden{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}.emoji-palette{position:absolute;top:110%;right:0;min-width:220px;padding:10px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;box-shadow:0 8px 18px rgba(15,23,42,.12);display:none;z-index:400}.emoji-upload-row{display:flex;justify-content:flex-end;margin-bottom:10px}.emoji-upload-row .btn{padding:6px 10px;font-size:12px}.emoji-palette.open{display:block}.emoji-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(36px,1fr));grid-gap:6px;gap:6px}.emoji-btn-wrap{position:relative;display:inline-flex}.emoji-btn,.emoji-btn-wrap{align-items:center;justify-content:center}.emoji-btn{border:1px solid #e5e7eb;border-radius:10px;background:#f8fafc;width:100%;height:36px;display:flex;cursor:pointer;font-size:18px;padding:4px;transition:transform .15s ease,box-shadow .15s ease}.emoji-btn:hover{transform:translateY(-1px);box-shadow:0 4px 10px rgba(15,23,42,.08)}.emoji-btn img{max-width:100%;max-height:100%;object-fit:contain}.emoji-remove{position:absolute;top:-6px;right:-6px;z-index:2;width:18px;height:18px;border-radius:999px;border:1px solid #e5e7eb;background:#fff;color:#9aa0a6;font-size:12px;line-height:1;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 2px 6px rgba(15,23,42,.12);cursor:pointer}.emoji-remove:hover{border-color:var(--theme-accent);color:var(--theme-accent)}.sticker-panel{position:relative;display:flex;align-items:center;gap:6px}.sticker-panel-title{font-size:12px;font-weight:600;color:var(--theme-accent)}.sticker-palette-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.sticker-palette-header .btn{padding:4px 10px;font-size:12px;line-height:1.2;border-radius:10px}.sticker-panel-hidden{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}.sticker-palette{position:absolute;top:110%;right:0;min-width:220px;padding:10px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;box-shadow:0 8px 18px rgba(15,23,42,.12);display:none;z-index:400}.sticker-palette.open{display:block}.sticker-upload-row{display:flex;justify-content:flex-end;margin-bottom:8px}.sticker-upload-row .btn{padding:6px 10px;font-size:12px}.sticker-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));grid-gap:6px;gap:6px}.sticker-btn-wrap{position:relative;display:inline-flex}.sticker-btn,.sticker-btn-wrap{align-items:center;justify-content:center}.sticker-btn{border:1px solid #e5e7eb;border-radius:10px;background:#f8fafc;width:100%;height:44px;display:flex;cursor:pointer;padding:6px;transition:transform .15s ease,box-shadow .15s ease}.sticker-btn:hover{transform:translateY(-1px);box-shadow:0 4px 10px rgba(15,23,42,.08)}.sticker-btn img{max-width:100%;max-height:100%;object-fit:contain}.sticker-remove{position:absolute;top:-6px;right:-6px;width:18px;height:18px;border-radius:999px;border:1px solid #e5e7eb;background:#fff;color:#9aa0a6;font-size:12px;line-height:1;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 2px 6px rgba(15,23,42,.12);cursor:pointer}.sticker-remove:hover{border-color:var(--theme-accent);color:var(--theme-accent)}.day-sticker-layer{position:absolute;top:40px;left:12px;right:12px;bottom:12px;pointer-events:none;z-index:9999;transform:translateZ(0)}.sticker-item{position:absolute;border:1px solid transparent;border-radius:8px;box-sizing:border-box;pointer-events:auto;cursor:-webkit-grab;cursor:grab;background:transparent;will-change:transform}.sticker-item.selected{border-color:transparent;outline:none;box-shadow:inset 0 0 0 1px var(--theme-accent)}.sticker-item *{cursor:inherit}.sticker-item img{width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.sticker-delete{position:absolute;top:-8px;right:-8px;width:20px;height:20px;border-radius:999px;border:1px solid #e5e7eb;background:#fff;color:#111827;font-size:12px;display:none;align-items:center;justify-content:center;cursor:pointer}.sticker-item.selected .sticker-delete{display:flex}.sticker-handle{position:absolute;width:10px;height:10px;border-radius:3px;background:#fff;border:1px solid #cbd5e1;display:none}.sticker-item.selected .sticker-handle{display:block}.sticker-handle.br{bottom:-5px;right:-5px;cursor:nwse-resize}.day-sticker-btn{position:absolute;right:10px;bottom:10px;width:28px;height:28px;border-radius:999px;border:1px solid #e5e7eb;background:#fff;box-shadow:0 2px 6px rgba(15,23,42,.08);font-size:14px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:45}.day-sticker-btn:hover{box-shadow:0 4px 10px rgba(15,23,42,.12)}.emoji-placeholder{height:4px;background:#2563eb;border-radius:999px;margin:2px 4px}.emoji-img{width:20px;height:20px;vertical-align:middle}.search-input{padding:8px 16px;font-size:13px;border-radius:999px;border:1px solid hsla(0,0%,100%,.6);background:hsla(0,0%,100%,.4);min-width:200px;transition:all .2s}.search-input:focus{background:hsla(0,0%,100%,.8);outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.2)}.calendar-wrapper{flex:1 1;padding:12px;background:var(--panel-bg);border-radius:0 0 18px 18px;box-shadow:none;max-height:calc(100vh - 190px);overflow-y:auto;overflow-x:auto;position:relative;border:1px solid #e5e7eb;border-top:none}.header-collapsed .calendar-wrapper{border-top:1px solid #e5e7eb;border-radius:18px}.header-toggle{position:absolute;top:12px;right:16px;z-index:25;padding:8px 14px;font-size:13px;border-radius:12px;background:#fff;border:1px solid #e5e7eb;color:var(--theme-accent);box-shadow:var(--shadow-card)}.header-collapsed header{display:none}.header-collapsed .top-bar{max-height:0;opacity:0;transform:translateY(-12px);padding-top:0;padding-bottom:0;border-width:0;box-shadow:none;overflow:hidden;pointer-events:none}.header-collapsed .floating-toggle-wrap{display:inline-flex}.header-collapsed .calendar-wrapper{max-height:calc(100vh - 80px)}.weekday-row{display:grid;grid-template-columns:repeat(7,1fr);grid-gap:8px;gap:8px;margin-bottom:12px;font-size:12px;font-weight:700;color:rgba(17,24,39,.6);text-align:center;letter-spacing:.3px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(230px,1fr));grid-gap:0;gap:0;min-width:1680px;transform:scale(var(--ui-scale));transform-origin:top left;width:calc(100% / var(--ui-scale))}.weekend-hidden .weekday-row{grid-template-columns:repeat(5,1fr)}.weekend-hidden .weekday-row div:nth-child(6),.weekend-hidden .weekday-row div:nth-child(7){display:none}.weekend-hidden .calendar-grid{grid-template-columns:repeat(5,minmax(230px,1fr));min-width:1200px}.expanded-overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);display:none;align-items:center;justify-content:center;z-index:120;padding:24px}.expanded-overlay.open{display:flex}.expanded-overlay-inner{background:#f8fafc;border-radius:14px;padding:12px;width:min(1100px,95vw);height:min(90vh,95vh);box-shadow:0 10px 30px rgba(0,0,0,.25);display:flex;flex-direction:column;gap:8px}.expanded-overlay-bar{display:flex;justify-content:flex-end;gap:10px}.icon-btn{width:32px;height:32px;padding:0;border-radius:10px;font-size:14px}.expanded-container{flex:1 1;overflow:auto;display:flex}.day-cell.expanded{width:100%;height:100%;max-height:none;min-height:auto;margin:0}.day-cell.expanded .day-sections{max-height:none}.week-row-outside .week-row-title{color:rgba(156,163,175,.8);font-weight:600}.week-row-header{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:600;color:hsla(220,9%,46%,.9);padding:4px 12px;margin:0;cursor:pointer;transition:background .15s}.week-row-header:hover{background:rgba(59,130,246,.12);border-radius:99px;color:#2563eb}.week-row-title{font-weight:700}.week-row-body{display:grid;grid-template-columns:repeat(7,minmax(150px,1fr));grid-gap:12px;gap:12px}.week-row.collapsed .week-row-body{display:none}.day-cell{min-height:210px;padding:18px;background:#fff;border:1px solid #e5e7eb;box-shadow:var(--shadow-card);display:flex;flex-direction:column;position:relative;transition:transform .2s ease,box-shadow .2s ease;margin:0;border-radius:12px;isolation:isolate;overflow:visible}.day-cell.placeholder{visibility:hidden;border:none;box-shadow:none;pointer-events:none;margin:0}.day-cell:last-child{border-right:1px solid hsla(0,0%,100%,.9)}.day-cell:hover{transform:translateY(-1px);box-shadow:0 8px 16px rgba(15,23,42,.16);background:#fff;z-index:20}.day-cell.hovered-day,.day-cell:hover{transform:none!important;box-shadow:none!important}body.sticker-hovering .day-cell.hovered-day,body.sticker-hovering .day-cell:hover{transform:none;box-shadow:none;transition:none}.day-cell.sticker-hover-cell,.day-cell.sticker-hover-cell:hover{transform:none;box-shadow:none;outline:none;z-index:20}.day-cell.hovered-day{transform:translateY(-1px) scale(1.01);box-shadow:0 10px 18px rgba(15,23,42,.16)}.day-cell.sticker-hover-cell.hovered-day{transform:none;box-shadow:none;transition:none}.day-cell.active-day{outline:2px solid var(--theme-accent-outline);box-shadow:0 0 0 4px rgba(var(--theme-accent-rgb),.15);position:relative;z-index:80}.day-cell.has-sticker{z-index:60}.day-cell.active-day.hovered-day,.day-cell.active-day:hover{transform:none;box-shadow:0 0 0 4px rgba(var(--theme-accent-rgb),.15);transition:none}.day-cell.today{border:1px solid #e5e7eb;background:#fff;box-shadow:var(--shadow-card)}.day-cell.other-month{background:#fff;border-color:#e5e7eb;opacity:1}.day-cell.drop-target{outline:2px solid #3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.2);background:rgba(224,242,254,.6)}.day-header{display:flex;justify-content:flex-start;align-items:flex-start;font-size:10px;margin-bottom:10px;gap:6px;padding-right:32px;min-height:0}.day-meta-wrap{display:flex;align-items:center;gap:6px}.day-number{font-size:10px;font-weight:500}.day-number.sun{color:#ef4444}.day-number.sat{color:#2563eb}.day-number.holiday{color:#ef4444}.day-expand-btn{position:absolute;top:8px;right:8px;width:22px;height:22px;border:none;background:rgba(148,163,184,.15);border-radius:50%;font-size:11px;cursor:pointer;color:#475569;display:inline-flex;align-items:center;justify-content:center;transition:background .15s ease,color .15s ease,transform .15s ease}.day-expand-btn:hover{background:rgba(37,99,235,.14);color:#2563eb;transform:translateY(-1px)}.day-cell.expanded .day-expand-btn{display:none}.day-placeholder-slot{min-height:210px;margin:2px}.day-meta{font-size:11px;font-weight:600;color:#9ca3af}.day-cell.today .day-meta{background:var(--theme-accent);color:#fff;padding:2px 8px;border-radius:99px}.day-sections{position:relative;flex:1 1;padding-top:.15px;padding-bottom:0;display:flex;flex-direction:column;gap:10px;z-index:0}.day-section{border-radius:0;border:none;background:transparent;padding:0}.day-section-header{display:flex;align-items:center;gap:6px;margin-bottom:0;padding-top:0;border-top:1px solid rgba(var(--theme-accent-rgb),.7);cursor:default;height:10px;justify-content:flex-start;position:relative}.day-section-title{width:100%;border:none;background:transparent;font-size:11px;font-weight:600;color:#9ca3af;padding:2px 0}.day-section-title:focus{outline:1px solid rgba(var(--theme-accent-rgb),.35);border-radius:6px}.day-section-body{position:relative}.day-section-done{border-style:none;background:transparent;margin-top:auto;display:flex;flex-direction:column}.day-section-done .day-section-body{display:flex;flex-direction:column;justify-content:flex-end;min-height:0}.day-section-done .day-section-header{justify-content:flex-end;align-items:center;border-top:none;gap:6px;margin-top:20px}.day-section-done .day-section-title{text-align:right;flex-shrink:0;width:auto}.day-line-add{border:1px dashed #d1d5db;background:#fff;color:#6b7280;font-size:11px;padding:6px 8px;border-radius:8px;cursor:pointer;position:absolute;left:10px;bottom:10px}.day-line-add:hover{background:rgba(var(--theme-accent-rgb),.05)}.day-line-add:disabled{opacity:.5;cursor:not-allowed}.day-empty-hint{position:absolute;top:2px;left:2px;font-size:10px;color:hsla(220,9%,46%,.5);pointer-events:none}.card{position:relative;margin-bottom:10px;padding:10px 12px 10px 18px;border-radius:10px;background:#fff;border:1px solid #e5e7eb;box-shadow:var(--shadow-card);font-size:11px;line-height:1.4;cursor:default;overflow-wrap:break-word;min-height:36px;font-weight:500;transition:transform .15s ease,box-shadow .15s ease}.card:hover{transform:scale(1.01);z-index:5}.card.selected{border:1px solid var(--theme-accent)!important;outline:1px solid var(--theme-accent);outline-offset:2px;box-shadow:0 0 0 1px rgba(var(--theme-accent-rgb),.2);z-index:10}.card-placeholder{height:3px;margin:2px 0;border-radius:2px;background:rgba(59,130,246,.6)}.card.color-yellow{background:#fdf7d9;border-color:#f4e29c}.card.color-green{background:#e3ece1;border-color:#cfdcc9}.card.color-pink{background:#f2d3d7;border-color:#e4b7bd}.card.done{background:#f8fafc;border-color:#e2e8f0;color:#64748b;box-shadow:none}.card.done .card-content{text-decoration:none;color:#9aa3af}.card.done .card-content *{color:#9aa3af!important}.card-done-badge{position:absolute;top:-11px;left:-11px;width:22px;height:22px;border-radius:50%;border:1px solid #e5e7eb;font-size:0;font-weight:700;background:#fff;color:#475569;display:none;align-items:center;justify-content:center}.card.done .card-done-badge{display:inline-flex;background:var(--theme-accent);border-color:var(--theme-accent)}.card-done-badge:before{content:"✓";font-size:12px;line-height:1;color:#fff}.card-handle{position:absolute;top:6px;bottom:6px;left:6px;width:4px;border-radius:999px;background:rgba(15,23,42,.2);cursor:-webkit-grab;cursor:grab}.card-content{white-space:pre-wrap;position:relative;cursor:text}.card-content:focus{outline:none}.card-content:empty:before{content:attr(data-placeholder);color:rgba(156,163,175,.8);pointer-events:none}.card-content:focus:empty:before{content:""}.card-toolbar{position:absolute;top:-11px;right:-11px;display:flex;flex-direction:row;align-items:flex-end;justify-content:flex-start;gap:4px;opacity:0;transition:opacity .15s;z-index:3}.card:hover .card-toolbar{opacity:1}.card-btn{border:1px solid #e5e7eb;background:#fff;border-radius:999px;font-size:9px;padding:0 6px;min-width:32px;height:20px;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 4px rgba(0,0,0,.05)}.card-btn:hover{background:#fff;font-weight:600}.card-btn-delete{width:22px;min-width:22px;height:22px;padding:0;border-radius:50%;background:#fff;color:#475569;font-size:12px}.card-btn-delete:hover{background:#fee2e2;color:#ef4444;font-weight:600}.card-btn-done{width:22px;min-width:22px;height:22px;padding:0;border-radius:50%;background:#fff;color:#475569;font-size:10px}.card-btn-done:hover{background:#e2e8f0;color:#475569;font-weight:600}.card-btn-color{width:22px;min-width:22px;height:22px;padding:0;border-radius:50%;background:#fff;color:#475569;font-size:10px}.card-btn-color:hover{background:#dbeafe;color:#2563eb;font-weight:600}.card-btn-emoji{width:22px;min-width:22px;height:22px;padding:0;border-radius:50%;background:#fff;color:#475569;font-size:11px}.card-btn-emoji:hover{background:#f1f5f9;color:#334155;font-weight:600}.marquee-selection{position:fixed;pointer-events:none;border:1px solid rgba(59,130,246,.6);background:rgba(59,130,246,.12);border-radius:6px;z-index:999;display:none}.help-bar{margin-top:12px;background:hsla(0,0%,100%,.9);border-radius:14px;padding:12px 20px;border:1px solid #e5e7eb;font-size:13px;color:#4b5563;box-shadow:var(--shadow-card);width:100%}.debug-hint{font-size:11px;color:hsla(220,9%,46%,.8);margin-left:4px}.help-modal{position:fixed;inset:0;background:rgba(0,0,0,.4);display:none;align-items:center;justify-content:center;z-index:150;padding:16px}.help-modal.open{display:flex}.help-modal-inner{background:#fff;border-radius:14px;padding:16px;width:min(480px,95vw);box-shadow:0 10px 30px rgba(0,0,0,.2);display:flex;flex-direction:column;gap:12px}.help-modal-header{display:flex;justify-content:space-between;align-items:center;gap:8px}.help-modal-title{font-weight:700;font-size:16px;color:#111827}.help-modal-body ul{margin:0;padding-left:18px;display:grid;grid-gap:6px;gap:6px;font-size:13px;color:#374151}.search-scope-toggles{display:flex;background:hsla(0,0%,100%,.4);border-radius:999px;padding:4px;border:1px solid hsla(0,0%,100%,.6)}.scope-btn{border:none;background:transparent;border-radius:999px;padding:4px 12px;font-size:12px;font-weight:600;color:#6b7280;cursor:pointer;transition:all .2s}.scope-btn.active{background:#fff;box-shadow:0 2px 4px rgba(0,0,0,.05)}#searchBtn,.scope-btn.active{color:var(--theme-accent)}.card.search-hit{outline:2px solid #f97316!important;background:rgba(255,237,213,.9)!important;transition:background .5s ease,outline .5s ease}.search-input.error{border-color:#ef4444!important;box-shadow:0 0 0 3px rgba(239,68,68,.2)!important;animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}.toast-container{position:fixed;bottom:40px;left:50%;transform:translateX(-50%);z-index:100;display:flex;flex-direction:column;gap:10px;pointer-events:none}.toast{background:rgba(31,41,55,.9);color:#fff;padding:10px 20px;border-radius:999px;font-size:14px;font-weight:500;box-shadow:0 10px 25px rgba(0,0,0,.2);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:toast-in .3s ease forwards;opacity:0;transform:translateY(20px)}@keyframes toast-in{to{opacity:1;transform:translateY(0)}}@keyframes toast-out{to{opacity:0;transform:translateY(-20px)}}.link-btn{background:transparent;border:none;padding:0;font-size:12px;font-weight:600;color:#6b7280;cursor:pointer;display:inline-flex;align-items:center;gap:4px}.link-btn:hover{color:#111827;text-decoration:underline}.settings-modal{position:fixed;inset:0;background:rgba(0,0,0,.45);display:none;align-items:center;justify-content:center;z-index:200}.settings-modal.open{display:flex}.settings-content{background:#fff;border-radius:14px;padding:16px;width:min(480px,95%);box-shadow:0 20px 40px rgba(15,23,42,.18);border:1px solid #e5e7eb;display:flex;flex-direction:column;gap:12px}.settings-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.settings-header h3{margin:0;font-size:16px;font-weight:700;color:#111827}.settings-body{display:flex;flex-direction:column;gap:10px}.settings-tabs{display:flex;gap:8px;margin-bottom:4px}.settings-tab{border:1px solid #e5e7eb;background:#f8fafc;border-radius:10px;padding:8px 12px;font-size:13px;color:#1f2937;cursor:pointer;transition:all .15s ease}.settings-tab.active{background:#e8efff;border-color:#c7d2fe;color:#1e3a8a}.settings-panel{display:none}.settings-panel.active{display:block}.settings-tips{margin:8px 0 0;padding-left:16px;display:flex;flex-direction:column;gap:6px;color:#4b5563;font-size:13px}.settings-item{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#1f2937;padding:8px 0;border-bottom:1px solid #f1f5f9}.settings-item:last-child{border-bottom:none}.settings-label{font-weight:600;color:#111827}.settings-value{color:#6b7280}.settings-item.column{flex-direction:column;align-items:flex-start;gap:8px}.settings-fields{display:flex;flex-direction:column;gap:6px;width:100%}.settings-fields input{width:100%;border:1px solid #e5e7eb;border-radius:10px;padding:8px 10px;font-size:13px}.settings-actions{display:flex;align-items:center;gap:8px}.settings-msg{font-size:12px;color:#6b7280}.link-btn.faded{opacity:.4}.theme-options{display:flex;flex-wrap:wrap;gap:8px}.theme-option{border:1px solid #e5e7eb;background:#fff;color:#6b7280;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:600;cursor:pointer;transition:border-color .15s ease,color .15s ease,box-shadow .15s ease}.theme-option:hover{border-color:var(--theme-accent-outline);color:var(--theme-accent)}.theme-option.active{border-color:var(--theme-accent);color:var(--theme-accent);box-shadow:0 0 0 1px rgba(var(--theme-accent-rgb),.2)}