*,*::before,*::after{box-sizing:border-box}html,body{margin:0;padding:0}body{background:#f3f6fc;color:#1c2333;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Noto Sans JP",sans-serif;font-size:15.5px;line-height:1.65;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}h1,h2,h3{font-weight:700;line-height:1.35;margin:0 0 8px;letter-spacing:-0.01em}a{color:#2f6fed;text-decoration:none}a:hover{text-decoration:underline}button{font-family:inherit}textarea,input,button,select{font-size:16px}textarea,input{font-family:inherit;color:#1c2333}textarea:focus-visible,input:focus-visible{outline:2px solid rgba(47,111,237,.35);outline-offset:1px}::selection{background:#eaf1ff;color:#1f56d6}::placeholder{color:#8b93a7;opacity:.8}.app-shell{max-width:640px;margin:0 auto;padding:16px 16px 40px;min-height:100vh;display:flex;flex-direction:column}.app-header{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;margin-bottom:24px;background:linear-gradient(to bottom, #f3f6fc 80%, rgba(243, 246, 252, 0))}.app-brand{display:inline-flex;align-items:center;flex-shrink:0}.app-brand__logo{height:39px;width:auto;display:block}.app-nav{display:flex;gap:4px;background:#fff;border:1px solid #e7ecf5;border-radius:999px;padding:4px;box-shadow:0 1px 2px rgba(28,35,51,.04),0 8px 20px rgba(47,111,237,.07);overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}.app-nav a{text-decoration:none;color:#8b93a7;font-size:.85rem;font-weight:600;padding:7px 14px;border-radius:999px;transition:.16s ease;white-space:nowrap}.app-nav a:hover{color:#1c2333;text-decoration:none}.app-nav a.is-active{color:#fff;background:#2f6fed;background:linear-gradient(135deg, #2f6fed 0%, #4f8cff 100%);box-shadow:0 6px 16px rgba(47,111,237,.28)}.app-main{flex:1}.auth-shell{min-height:100vh;display:flex;justify-content:center;align-items:center;padding:16px}@media only screen and (max-width:400px){.app-header{flex-direction:column;align-items:stretch;gap:8px}.app-nav{justify-content:space-between}.app-nav a{padding:6px 10px;font-size:.8rem}}.btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:11px 24px;border:none;border-radius:999px;background:#2f6fed;background:linear-gradient(135deg, #2f6fed 0%, #4f8cff 100%);color:#fff;cursor:pointer;font-weight:700;font-size:.92rem;letter-spacing:.01em;transition:filter .16s ease,transform .16s ease,box-shadow .16s ease;box-shadow:0 6px 16px rgba(47,111,237,.28)}.btn:hover:not(:disabled){filter:brightness(1.06)}.btn:active:not(:disabled){transform:scale(0.98)}.btn:disabled{opacity:.5;cursor:default;box-shadow:none}.btn--ghost{background:#fff;color:#1c2333;border:1px solid #d3dcec;box-shadow:none}.btn--ghost:hover:not(:disabled){background:#eaf1ff;border-color:#2f6fed}.card,.settings-section,.composer,.auth-card{background:#fff;border:1px solid #e7ecf5;border-radius:18px;padding:24px;box-shadow:0 1px 2px rgba(28,35,51,.04),0 8px 20px rgba(47,111,237,.07)}.auth-card{width:100%;max-width:360px;display:flex;flex-direction:column;gap:16px}.auth-card__title{font-size:1.15rem;text-align:center}.auth-card__logo{height:32px;width:auto;display:block;margin:0 auto}.auth-card__error{color:#e0503c;font-size:.9rem;margin:0}.auth-form{display:flex;flex-direction:column;gap:16px}.form-field{display:flex;flex-direction:column;gap:4px;font-size:.85rem;color:#8b93a7;font-weight:600}.form-field input{padding:11px 14px;border:1px solid #d3dcec;border-radius:10px;background:#f3f6fc;font-weight:400}.form-field input:focus-visible{border-color:#2f6fed;background:#fff}.composer{display:flex;flex-direction:column;gap:16px}.composer__textarea{width:100%;min-height:120px;resize:vertical;border:1px solid #e7ecf5;border-radius:10px;padding:16px;font-family:inherit;background:#f3f6fc;line-height:1.7;transition:border-color .16s ease,background-color .16s ease}.composer__textarea:focus-visible{border-color:#2f6fed;background:#fff}.composer__textarea--compact{min-height:60px}.composer__footer{display:flex;justify-content:space-between;align-items:center}.composer__hint{color:#8b93a7;font-size:.82em}.section-title{font-size:.82rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#8b93a7;margin:40px 0 8px}.timeline{display:flex;flex-direction:column;gap:8px}.timeline__date-nav{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.timeline__date-nav strong{font-size:1.05rem;font-weight:700}.note-item{display:flex;gap:16px;background:#fff;border:1px solid #e7ecf5;border-left:3px solid #2f6fed;border-radius:18px;padding:16px;box-shadow:0 1px 2px rgba(28,35,51,.04),0 8px 20px rgba(47,111,237,.07);transition:box-shadow .16s ease,transform .16s ease}.note-item:hover{box-shadow:0 2px 4px rgba(28,35,51,.06),0 12px 28px rgba(47,111,237,.12);transform:translateY(-1px)}.note-item__time{flex-shrink:0;color:#2f6fed;background:#eaf1ff;border-radius:999px;padding:2px 10px;font-size:.74em;font-weight:700;font-variant-numeric:tabular-nums;height:fit-content}.note-item__body{white-space:pre-wrap;word-break:break-word}.empty-state{color:#8b93a7;text-align:center;padding:40px 0;font-size:.92rem}.chat-log{display:flex;flex-direction:column;gap:16px;margin-bottom:24px;max-height:60vh;overflow-y:auto;padding:4px}.chat-bubble{max-width:82%;padding:11px 16px;border-radius:18px;white-space:pre-wrap;word-break:break-word;line-height:1.65}.chat-bubble--user{align-self:flex-end;background:#2f6fed;background:linear-gradient(135deg, #2f6fed 0%, #4f8cff 100%);color:#fff;border-bottom-right-radius:4px;box-shadow:0 6px 16px rgba(47,111,237,.28)}.chat-bubble--assistant{align-self:flex-start;background:#fff;border:1px solid #e7ecf5;border-bottom-left-radius:4px;box-shadow:0 1px 2px rgba(28,35,51,.04),0 8px 20px rgba(47,111,237,.07)}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(8px);background:#1c2333;color:#fff;padding:10px 24px;border-radius:999px;font-size:.88rem;opacity:0;transition:opacity .16s ease,transform .16s ease;pointer-events:none;box-shadow:0 8px 24px rgba(28,35,51,.25)}.toast.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}.settings-section{margin-bottom:16px}.settings-section h2{font-size:.98rem;margin-bottom:16px}.status-list{display:flex;flex-direction:column;gap:8px}.status-item{display:flex;justify-content:space-between;align-items:center;font-size:.92rem}.status-badge{font-size:.78rem;font-weight:700;padding:3px 10px;border-radius:999px;white-space:nowrap}.status-badge--on{background:rgba(46,163,111,.12);color:#1f8a5c}.status-badge--off{background:rgba(139,147,167,.14);color:#8b93a7}.field-readonly{font-size:.88rem;color:#8b93a7}.category-list{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 16px}.category-chip{display:flex;align-items:center;gap:4px;padding:6px 10px 6px 8px;border:1px solid #d3dcec;border-radius:999px;background:#fff;cursor:pointer;font-size:.85rem;transition:border-color .16s ease,background-color .16s ease}.category-chip:has(.category-chip__checkbox:checked){border-color:#2f6fed;background:#eaf1ff;color:#1f56d6;font-weight:600}.category-chip__checkbox{accent-color:#2f6fed}.category-chip__delete{border:none;background:rgba(0,0,0,0);color:#8b93a7;cursor:pointer;font-size:1rem;line-height:1;padding:0 0 0 4px}.category-chip__delete:hover{color:#e0503c}.category-add-form{display:flex;gap:8px}.category-add-form input{flex:1;padding:9px 12px;border:1px solid #d3dcec;border-radius:10px;background:#f3f6fc;font-size:.9rem}.category-add-form input:focus-visible{border-color:#2f6fed;background:#fff}.settings-actions{display:flex;gap:8px;flex-wrap:wrap}.settings-result{margin-top:16px;padding:8px 16px;background:#f3f6fc;border-radius:10px;white-space:pre-wrap;color:#8b93a7;font-size:.88rem}.settings-result:empty{display:none}.link-list{display:flex;flex-direction:column;gap:4px}
