:root{--bg: #f5f6f8;--surface: #ffffff;--text: #1c1d21;--muted: #7a7f8a;--border: #e3e5ea;--accent: #4f6bed;--accent-text: #ffffff;--user-bubble: #4f6bed;--user-text: #ffffff;--bot-bubble: #ffffff;--chip: #e6eaff;--chip-text: #2f45b5;--event-bg: #f1f2f5;--sun: #e5484d;--sat: #3e7bd6;--danger: #e5484d;color-scheme:light}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:-apple-system,BlinkMacSystemFont,Apple SD Gothic Neo,Pretendard,Noto Sans KR,sans-serif;background:var(--bg);color:var(--text);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{opacity:.5;cursor:default}input{font:inherit;font-size:16px;color:inherit}.center-screen{min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px;text-align:center;line-height:1.6}.login{width:100%;max-width:320px;display:flex;flex-direction:column;gap:12px}.login h1{margin:0 0 12px}.login input{padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.error{color:var(--danger);margin:0;font-size:14px}.primary{background:var(--accent);color:var(--accent-text);border:0;border-radius:12px;padding:12px 16px;font-weight:600}.ghost{background:transparent;border:1px solid var(--border);border-radius:10px;padding:8px 12px;font-size:14px}.app{height:100%;display:flex;flex-direction:column;max-width:720px;margin:0 auto}.topbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;padding-top:calc(10px + env(safe-area-inset-top));background:var(--surface);border-bottom:1px solid var(--border)}.topbar h1{font-size:18px;margin:0 0 0 4px}.topbar-actions{display:flex;align-items:center;gap:4px}.logout-btn{font-size:12px;padding:5px 8px;color:var(--muted)}.icon-btn{background:transparent;border:0;font-size:22px;width:40px;height:40px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center}.icon-btn:active{background:var(--border)}.icon-btn.small{font-size:15px;width:34px;height:34px;color:var(--muted)}.messages{flex:1;overflow-y:auto;padding:16px 12px;display:flex;flex-direction:column;gap:10px}.bubble-row{display:flex}.bubble-row.user{justify-content:flex-end}.bubble-col{display:flex;flex-direction:column;gap:6px;max-width:85%}.bubble-row.user .bubble-col{align-items:flex-end}.bubble{padding:10px 14px;border-radius:18px;line-height:1.5;white-space:pre-wrap;word-break:break-word}.user .bubble{background:var(--user-bubble);color:var(--user-text);border-bottom-right-radius:6px}.assistant .bubble{background:var(--bot-bubble);border:1px solid var(--border);border-bottom-left-radius:6px}.bubble-photo{max-width:200px;max-height:260px;border-radius:14px;object-fit:cover}.typing{display:flex;gap:4px;padding:14px 16px}.typing span{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:blink 1.2s infinite}.typing span:nth-child(2){animation-delay:.2s}.typing span:nth-child(3){animation-delay:.4s}@keyframes blink{0%,80%,to{opacity:.25}40%{opacity:1}}.card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:8px;min-width:220px}.card-title{font-weight:600;font-size:14px}.hint{color:var(--muted);font-size:13px;margin:0}.event-list{margin:0;padding-left:18px;font-size:14px;line-height:1.6}.event-list span{color:var(--muted)}.event-list .strike,.event-list .strike span{text-decoration:line-through;color:var(--muted)}.card .ghost{align-self:flex-start}.ghost.small{padding:3px 8px;font-size:12px;flex-shrink:0}.memory-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:14px}.memory-list li{display:flex;align-items:center;justify-content:space-between;gap:8px}.memory-list li.strike span{text-decoration:line-through;color:var(--muted)}.memory-list small{color:var(--muted);flex-shrink:0}.card-actions{display:flex;justify-content:flex-end;gap:8px}.card-actions .primary{padding:8px 14px;font-size:14px}.proposal ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}.proposal li{display:flex;gap:10px;align-items:flex-start}.proposal li.unchecked .proposal-fields{opacity:.4}.proposal input[type=checkbox]{width:20px;height:20px;margin-top:8px;accent-color:var(--accent)}.proposal-fields{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}.proposal-fields input:not([type=checkbox]){width:100%;padding:6px 8px;border:1px solid var(--border);border-radius:8px;background:var(--bg)}.proposal-when{display:flex;gap:6px}.proposal-when input{flex:1;min-width:0}.proposal-fields small{color:var(--muted)}.composer{background:var(--surface);border-top:1px solid var(--border);padding:8px 10px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}.composer-row{display:flex;align-items:center;gap:6px}.text-input{flex:1;min-width:0;padding:10px 14px;border:1px solid var(--border);border-radius:20px;background:var(--bg);outline:none}.text-input:focus{border-color:var(--accent)}.send-btn{width:40px;height:40px;border-radius:50%;border:0;background:var(--accent);color:var(--accent-text);font-size:20px;font-weight:700;flex-shrink:0}.attachment{position:relative;display:inline-block;margin:0 0 8px 46px}.attachment img{height:72px;border-radius:10px;display:block}.attachment button{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;border:0;background:var(--text);color:var(--bg);font-size:12px}.calendar-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--bg);display:flex;flex-direction:column;z-index:10;max-width:720px;margin:0 auto}.month-nav{display:flex;align-items:center;gap:4px}.month-nav h1{margin:0;min-width:120px;text-align:center}.today-btn{padding:6px 10px}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);background:var(--surface);border-bottom:1px solid var(--border)}.weekday{text-align:center;font-size:12px;color:var(--muted);padding:6px 0}.weekday.sun{color:var(--sun)}.weekday.sat{color:var(--sat)}.day{min-height:84px;border:0;border-top:1px solid var(--border);background:transparent;padding:4px 2px;display:flex;flex-direction:column;align-items:stretch;gap:2px;overflow:hidden;text-align:left}.day-num{font-size:13px;align-self:center;width:24px;height:24px;line-height:24px;text-align:center;border-radius:50%}.day.sun .day-num{color:var(--sun)}.day.sat .day-num{color:var(--sat)}.day.other{opacity:.35}.day.today .day-num{background:var(--accent);color:var(--accent-text);font-weight:700}.day.selected{background:var(--chip)}.chip{font-size:9.5px;line-height:1.25;padding:1px;border-radius:4px;background:var(--event-bg);font-weight:600;letter-spacing:-.6px;word-break:keep-all;overflow-wrap:anywhere;overflow:hidden}.chip>span{display:inline-block;white-space:nowrap;max-width:100%;overflow:hidden;vertical-align:top}.day.selected .chip{background:var(--surface)}.more{font-size:10px;color:var(--muted);text-align:center}.day-detail{flex:1;overflow-y:auto;padding:14px 16px calc(14px + env(safe-area-inset-bottom))}.day-detail h2{font-size:16px;margin:0 0 10px}.day-detail ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.day-detail li{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:8px 8px 8px 14px}.day-detail .time{font-size:13px;color:var(--muted);width:76px;flex-shrink:0}.day-detail .title{flex:1;min-width:0;word-break:break-word}@media(min-width:600px){.day{min-height:96px;padding:6px 4px}.chip{font-size:12px}}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#14161e59;z-index:30;display:flex;align-items:flex-end;justify-content:center}.modal{width:100%;max-width:560px;max-height:88vh;overflow-y:auto;background:var(--surface);border-radius:18px 18px 0 0;padding:16px 18px calc(18px + env(safe-area-inset-bottom))}@media(min-width:600px){.modal-backdrop{align-items:center}.modal{border-radius:18px}}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.modal-head h2{margin:0;font-size:18px}.steps{margin:0 0 12px;padding-left:22px;display:flex;flex-direction:column;gap:12px;line-height:1.55;font-size:15px}.steps ul{margin:4px 0 0;padding-left:18px;color:var(--muted);font-size:14px}.steps a{color:var(--accent)}.primary.wide{display:block;width:100%;margin-top:8px}.status{margin:6px 0 0;font-size:13px;color:var(--accent)}.modal .hint{margin-top:8px}.text-link{background:none;border:0;padding:0;color:var(--muted);text-decoration:underline;font-size:13px}.manual-code{width:100%;margin-top:8px;font:12px/1.4 ui-monospace,Menlo,monospace;border:1px solid var(--border);border-radius:8px;padding:8px}
