.app{max-width:430px;margin:0 auto;min-height:100vh;padding:calc(12px + var(--safe-top)) 12px calc(100px + var(--safe-bottom))}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.title{font-size:28px;font-weight:700;letter-spacing:-.3px}.segmented{display:inline-flex;background:#e5e5ea;border-radius:10px;padding:2px}.segmented button{border:0;background:transparent;padding:6px 12px;border-radius:8px;font-size:13px;font-weight:600;color:#333;transition:color .2s ease}.segmented button.active{background:#fff;color:#000;box-shadow:0 1px 4px #0000001f}.panel{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:12px;margin-bottom:12px}.month-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.month-nav .label{font-size:17px;font-weight:600;text-transform:capitalize;min-height:22px}.icon-btn{border:0;background:#f0f0f0;color:var(--text);width:34px;height:34px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;transition:background .15s ease,transform .1s ease}.icon-btn:active{transform:scale(.95)}.icon-btn svg{width:18px;height:18px}.weekdays,.grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;width:100%}.weekdays div{text-align:center;font-size:11px;color:var(--text-secondary);padding:4px 0;font-weight:600}.day{min-height:44px;width:100%;border-radius:10px;border:1px solid transparent;background:transparent;padding:4px 2px;text-align:center;position:relative;font-size:15px;color:var(--text);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;transition:background .15s ease,color .15s ease,box-shadow .15s ease,border-color .15s ease}.day:active{background:#f0f0f0}.day.muted{color:#c7c7cc}.day.today{border-color:#d1d5db}.day.selected{background:var(--accent);color:#fff;box-shadow:0 4px 14px #007aff4d}.day.day-pinned:not(.selected){background:#fff4e5;border-color:#ffd9a8}.day .dot{width:5px;height:5px;border-radius:50%;background:var(--dot);position:absolute;left:50%;bottom:5px;transform:translate(-50%)}.day.selected .dot{background:#fff}.day-pin-dot{width:5px;height:5px;border-radius:50%;background:#ff9500;position:absolute;right:6px;top:6px}.day.selected .day-pin-dot{background:#ffe3b0}.section-title-row{margin:2px 4px 10px}.section-title{font-size:15px;font-weight:600;color:#333}.section-sub{font-size:12px;color:var(--text-secondary);margin-top:2px}.empty{color:var(--text-secondary);font-size:14px;padding:16px 8px;text-align:center}.cards{display:flex;flex-direction:column;gap:10px}.day-group{border-radius:14px;padding:6px;background:#fafafa;border:1px solid #eeeeee;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease}.day-group.selected{background:#eaf4ff;border-color:#7cc0ff;box-shadow:0 0 0 1px #007aff14 inset}.day-group.pinned:not(.selected){background:#fffaf0;border-color:#ffdca8}.day-group-head{display:flex;align-items:center;gap:4px;margin-bottom:6px}.day-group-main{flex:1;display:flex;align-items:center;justify-content:space-between;border:0;background:transparent;padding:4px;font-size:13px;color:#444;text-align:left;border-radius:8px}.day-group.selected .day-group-main{color:#0a4fa8}.day-group-date{font-weight:700;text-transform:capitalize}.day-group-count{min-width:22px;height:22px;border-radius:11px;background:#e9e9ee;color:#333;font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;padding:0 6px}.day-group.selected .day-group-count{background:#007aff;color:#fff}.day-group.pinned:not(.selected) .day-group-count{background:#ffe8c2;color:#8a5200}.day-pin-btn svg{width:18px;height:18px}.day-group-items{display:flex;flex-direction:column;gap:8px}.card-short{background:var(--card-muted);border-radius:12px;padding:12px 14px;display:flex;align-items:center;gap:10px;cursor:pointer}.day-group.selected .card-short{background:#f4f9ff}.card-short .time{font-weight:700;font-size:15px;min-width:48px}.card-short .text{flex:1;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#222}.card-full{background:var(--card-muted);border-radius:14px;padding:12px 14px;position:relative;overflow:hidden}.day-group.selected .card-full{background:#f4f9ff}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:6px}.card-head-left{min-width:0;flex:1}.card-date-title{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-head-actions{display:flex;gap:2px}.card-desc{font-size:14px;color:#444;margin:4px 0 8px;white-space:pre-wrap}.card-image{width:100%;max-height:220px;object-fit:cover;border-radius:10px;margin:6px 0 8px;background:#ddd}.card-footer{display:flex;align-items:center;justify-content:space-between;margin-top:4px}.card-time-big{font-size:22px;font-weight:700;letter-spacing:-.3px}.icon-ghost{border:0;background:transparent;color:#444;padding:6px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;transition:background .15s ease,color .15s ease}.icon-ghost:hover{background:#0000000f}.icon-ghost svg{width:20px;height:20px}.icon-ghost.active{color:#d97706;background:#ff950024}.fab{position:fixed;right:calc(16px + env(safe-area-inset-right,0px));bottom:calc(20px + var(--safe-bottom));width:56px;height:56px;border-radius:50%;background:var(--accent);color:#fff;border:0;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 22px #007aff59;z-index:20}.fab svg{width:26px;height:26px}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000047;display:flex;align-items:flex-end;justify-content:center;z-index:30}.sheet{width:100%;max-width:430px;max-height:92vh;overflow:auto;background:#fff;border-radius:22px 22px 0 0;padding:14px 16px calc(18px + var(--safe-bottom));box-shadow:0 -10px 40px #0000001f}.sheet h2{margin:4px 0 14px;font-size:20px}.field{margin-bottom:12px}.field label{display:block;font-size:13px;color:#444;margin-bottom:4px;font-weight:600}.field input[type=text],.field input[type=date],.field input[type=time],.field textarea,.field select{width:100%;padding:11px 12px;border:1px solid var(--border);border-radius:10px;font-size:16px;background:#fff;color:#111;transition:border-color .15s ease,box-shadow .15s ease}.field input:focus,.field textarea:focus,.field select:focus{outline:none;border-color:#9ecbff;box-shadow:0 0 0 3px #007aff1f}.field textarea{min-height:72px;resize:vertical}.row{display:flex;gap:8px}.row .field{flex:1}.photo-box{border:1px dashed #c7c7cc;border-radius:12px;padding:14px;text-align:center;background:#fafafa}.photo-box img{max-width:100%;max-height:180px;border-radius:10px;display:block;margin:0 auto 8px}.photo-box input[type=file]{display:none}.photo-placeholder{color:#666;font-size:14px;margin-bottom:6px;display:flex;align-items:center;justify-content:center;gap:6px}.photo-placeholder svg{width:18px;height:18px}.photo-actions{display:flex;gap:8px;justify-content:center;align-items:center}.link-btn{color:var(--accent);background:transparent;border:0;font-size:15px;font-weight:600;cursor:pointer;padding:6px 4px}.danger-text{color:var(--danger)}.check{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:500;color:#222}.sheet-actions{display:flex;gap:8px;margin-top:16px}.btn{flex:1;border:0;border-radius:12px;padding:12px;font-size:16px;font-weight:600;transition:transform .12s ease,filter .15s ease}.btn:active{transform:scale(.98)}.btn.primary{background:var(--accent);color:#fff}.btn.secondary{background:#efeff4;color:#111}.btn.danger{background:#ffeceb;color:var(--danger);flex:0 0 auto;padding:12px 14px}.toast{position:fixed;left:50%;bottom:calc(90px + var(--safe-bottom));background:#111;color:#fff;padding:12px 16px;border-radius:14px;font-size:14px;z-index:40;max-width:calc(100% - 32px);box-shadow:0 10px 30px #00000040;display:flex;align-items:center;gap:8px}.toast svg{width:18px;height:18px;flex:0 0 auto}.toast.ringing{box-shadow:0 10px 30px #0000004d,0 0 0 2px #ffffff14 inset}:root{--bg: #f2f2f7;--card: #ffffff;--card-muted: #f2f2f2;--text: #111111;--text-secondary: #6b7280;--border: #e5e7eb;--accent: #007aff;--accent-soft: #e8f2ff;--danger: #ff3b30;--dot: #007aff;--pin: #ff9500;--shadow: 0 2px 12px rgba(0,0,0,.06);--radius: 16px;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px)}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{margin:0;padding:0;min-height:100%}body{font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.35}button,input,textarea,select{font-family:inherit}button{cursor:pointer}svg{display:block}
