*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:Segoe UI,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;background:#f8fafc;color:#1e3a5f;-webkit-font-smoothing:antialiased}input,textarea,button{font-family:inherit;font-size:inherit}a{color:inherit}button{-webkit-tap-highlight-color:transparent}.login-page{min-height:100vh;background:radial-gradient(1200px 600px at top,#1e3a5f,#0b1f4a 60%,#060f29);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px}.login-card{width:100%;max-width:380px;background:#ffffff0d;border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:28px 24px 24px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);text-align:center}.login-petals{font-size:40px;margin-bottom:6px}.login-title{font-size:22px;font-weight:700;margin:4px 0 2px}.login-sub{font-size:13px;opacity:.75;margin:0 0 22px}.login-input{width:100%;background:#ffffff14;border:1px solid rgba(255,255,255,.18);color:#fff;border-radius:10px;padding:13px 14px;font-size:15px;outline:none;margin-bottom:12px;text-align:center;letter-spacing:.04em}.login-input:focus{border-color:#f7a8c4;box-shadow:0 0 0 3px #f7a8c42e}.login-btn{width:100%;background:linear-gradient(180deg,#f7a8c4,#e36b97);color:#fff;border:none;border-radius:10px;padding:13px;font-weight:700;cursor:pointer;font-size:15px}.login-btn:active{transform:translateY(1px)}.login-err{color:#fecaca;font-size:12px;margin:6px 0 0;min-height:16px}.app{max-width:800px;margin:0 auto;min-height:100vh;background:#f8fafc}.header{background:linear-gradient(135deg,#0b1f4a,#1e3a5f);color:#fff;padding:16px 20px 14px;text-align:center;position:relative}.header h1{margin:4px 0 2px;font-size:20px;font-weight:700}.header p{margin:0;opacity:.8;font-size:12px}.logout-btn{position:absolute;right:12px;top:12px;background:#ffffff26;border:1px solid rgba(255,255,255,.18);color:#fff;font-size:11px;font-weight:600;padding:5px 10px;border-radius:16px;cursor:pointer}.sakura-mark{font-size:22px}.tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;background:#fff;border-bottom:2px solid #e2e8f0;position:sticky;top:0;z-index:10;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tab{flex:0 0 auto;min-width:0;padding:12px 14px;border:none;background:none;cursor:pointer;border-bottom:3px solid transparent;color:#64748b;font-weight:500;font-size:13px;white-space:nowrap;transition:all .18s}.tab.active{color:#e36b97;border-bottom-color:#e36b97;font-weight:700}.page{padding:16px 16px 60px}.card{background:#fff;border-radius:12px;box-shadow:0 1px 4px #00000014;overflow:hidden;margin-bottom:12px}.card-banner{background:linear-gradient(135deg,#0b1f4a,#2d5986);color:#fff;border-radius:12px;padding:16px 20px;margin-bottom:16px}.card-banner h2{margin:0;font-size:17px}.card-banner p{margin:4px 0 0;opacity:.85;font-size:12px}.maps-btn{display:inline-block;background:#0ea5e9;color:#fff!important;font-size:11px;font-weight:700;padding:4px 10px;border-radius:5px;text-decoration:none;margin-top:6px}.section-head{font-weight:700;font-size:14px;color:#1e3a5f;padding:12px 0 6px;border-bottom:2px solid #e36b97;margin-bottom:10px;display:flex;align-items:center;justify-content:space-between}.section-head .add-btn{background:#f7a8c4;color:#fff;border:none;border-radius:6px;padding:4px 10px;font-size:11px;font-weight:700;cursor:pointer}.section-head .add-btn:hover{background:#e36b97}.item-card{background:#fff;border-radius:10px;padding:12px 14px;margin-bottom:8px;box-shadow:0 1px 3px #00000014;border-left:4px solid #0ea5e9;position:relative}.item-card.starred{background:#fff8f1;border-left-color:#f97316}.item-title{font-weight:700;font-size:14px;color:#1e3a5f}.item-sub{font-size:11px;color:#6b7280;margin-top:2px}.item-body{font-size:13px;color:#475569;margin-top:6px;line-height:1.5}.item-ref{font-size:12px;color:#059669;font-weight:600;margin-top:4px}.del-btn{position:absolute;right:8px;top:8px;background:#ef444414;color:#ef4444;border:none;width:24px;height:24px;border-radius:50%;cursor:pointer;font-size:14px;display:none;align-items:center;justify-content:center}.item-card:hover .del-btn,.day-card:hover .del-btn{display:flex}@media (hover: none){.del-btn{display:flex}}.summary-row{display:grid;grid-template-columns:36px 90px auto 1fr;padding:10px 14px;border-bottom:1px solid #f1f5f9;gap:0 10px;align-items:start;position:relative}.summary-row:last-child{border-bottom:none}.summary-num{width:32px;height:32px;border-radius:50%;background:#1e3a5f;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px}.summary-date{font-size:12px;color:#64748b;padding-top:7px}.summary-pill{padding:3px 8px;border-radius:20px;font-size:11px;font-weight:700;background:#f8fafc;color:#374151;margin-top:4px;white-space:nowrap}.summary-plan{font-size:13px;color:#374151;line-height:1.5;padding-top:5px}.day-card{border:1px solid #e2e8f0}.day-head{width:100%;padding:12px 14px;background:#fff;border:none;cursor:pointer;text-align:left;display:flex;align-items:center;gap:10px}.day-num{width:36px;height:36px;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;flex-shrink:0}.day-title{font-weight:700;font-size:14px;color:#1e3a5f}.day-date{font-size:11px;color:#64748b;margin-top:2px}.day-badge{font-size:10px;font-weight:700;padding:3px 8px;border-radius:20px;flex-shrink:0}.day-blocks{border-top-width:3px;border-top-style:solid}.block-row{display:grid;grid-template-columns:78px 1fr}.block-row:not(:last-child){border-bottom:1px solid #f1f5f9}.block-time{padding:12px 8px 12px 12px;font-size:10px;font-weight:700;color:#f97316;text-transform:uppercase;letter-spacing:.04em;text-align:right}.block-body{border-left:2px solid #e2e8f0;padding:12px 12px 12px 14px;position:relative}.block-title{font-weight:700;font-size:13px;color:#1e3a5f;margin-bottom:4px}.block-content{font-size:13px;color:#475569;line-height:1.55;white-space:pre-line}.grand-total{background:linear-gradient(135deg,#0b1f4a,#2d5986);color:#fff;border-radius:12px;padding:20px;margin-bottom:16px;text-align:center}.grand-total .label{font-size:12px;opacity:.8;margin-bottom:4px}.grand-total .total{font-size:34px;font-weight:700;font-family:ui-monospace,monospace}.grand-total .sub{font-size:12px;opacity:.7;margin-top:4px}.budget-dash{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.budget-dash>div{background:#fff;border-radius:10px;padding:12px;box-shadow:0 1px 4px #00000014;border-top:3px solid #0ea5e9}.budget-dash .dash-label{font-size:12px;color:#64748b;margin-bottom:4px}.budget-dash .dash-value{font-size:20px;font-weight:700;font-family:ui-monospace,monospace}.budget-section .row{display:flex;justify-content:space-between;align-items:flex-start;padding:10px 14px;gap:10px}.budget-section .row:not(:last-child){border-bottom:1px solid #f1f5f9}.budget-section .row .item{font-size:13px;color:#374151;flex:1;line-height:1.4}.budget-section .row .amt{font-size:13px;font-weight:700;font-family:ui-monospace,monospace}.budget-section .header-row{padding:11px 14px;background:#f8fafc;border-bottom:1px solid #e2e8f0;font-weight:700;font-size:14px}.budget-section .total-row{display:flex;justify-content:space-between;padding:10px 14px;background:#f8fafc;border-top:2px solid #e2e8f0;font-weight:700}.ai-page{padding:12px 12px 80px;display:flex;flex-direction:column;min-height:calc(100vh - 110px)}.ai-intro{background:linear-gradient(135deg,#f7a8c4,#e36b97);color:#fff;border-radius:12px;padding:14px 16px;margin-bottom:12px}.ai-intro h2{margin:0;font-size:16px}.ai-intro p{margin:4px 0 0;font-size:12px;opacity:.95;line-height:1.5}.chat-list{flex:1;overflow-y:auto;padding:4px 2px 8px}.chat-msg{margin-bottom:10px;display:flex}.chat-msg.user{justify-content:flex-end}.chat-bubble{max-width:88%;padding:10px 13px;border-radius:14px;font-size:14px;line-height:1.5;white-space:pre-wrap;word-break:break-word}.chat-msg.user .chat-bubble{background:#1e3a5f;color:#fff;border-bottom-right-radius:4px}.chat-msg.assistant .chat-bubble{background:#fff;color:#1e3a5f;border:1px solid #e2e8f0;border-bottom-left-radius:4px}.chat-msg.system .chat-bubble{background:#ecfeff;color:#075985;font-size:12px;border:1px solid #bae6fd}.chat-form{position:sticky;bottom:0;background:#f8fafc;padding:8px 0 4px;display:flex;gap:8px}.chat-input{flex:1;border:1px solid #cbd5e1;border-radius:14px;padding:10px 14px;font-size:14px;outline:none;resize:none;max-height:120px;line-height:1.4}.chat-input:focus{border-color:#e36b97;box-shadow:0 0 0 3px #e36b972e}.chat-send{background:#e36b97;color:#fff;border:none;border-radius:14px;padding:0 16px;font-weight:700;cursor:pointer;font-size:14px}.chat-send:disabled{opacity:.5;cursor:not-allowed}.banner{background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;padding:10px 14px;font-size:12px;color:#92400e;margin:10px 0}.add-form{background:#fff;padding:12px;border-radius:10px;border:1px dashed #e36b97;margin-bottom:10px}.add-form input,.add-form textarea{width:100%;padding:8px 10px;font-size:13px;border:1px solid #e2e8f0;border-radius:6px;margin-bottom:6px}.add-form .row{display:flex;gap:6px}.add-form button{background:#e36b97;color:#fff;border:none;border-radius:6px;padding:8px 14px;font-weight:700;cursor:pointer;font-size:12px}.add-form .cancel{background:#94a3b8}.save-indicator{position:fixed;bottom:12px;right:12px;background:#059669;color:#fff;font-size:11px;font-weight:600;padding:6px 12px;border-radius:18px;box-shadow:0 4px 14px #0596694d;opacity:0;transition:opacity .25s;pointer-events:none}.save-indicator.show{opacity:1}.save-indicator.error{background:#ef4444;box-shadow:0 4px 14px #ef44444d}
