:root{--bg:#f4f6f9;--surface:#fff;--text:#1f2937;--muted:#6b7280;--line:#e5eaf0;--blue:#2f67b2;--blue-soft:#eaf2ff;--green:#147d64;--green-soft:#e8f6f1;--amber:#946300;--amber-soft:#fff4d9;--purple:#7352a5;--purple-soft:#f1ebfb;--radius:14px;--shadow:0 3px 14px rgba(26,42,67,.045)}
body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;font-size:15px;line-height:1.55}button,input,textarea,select{font:inherit}button{cursor:pointer}.app{min-height:100vh;display:flex}.main{flex:1;min-width:0}.topbar{height:70px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px}.crumb,.today-label{font-size:13px;color:var(--muted)}.top-right,.user{display:flex;align-items:center;gap:16px}.user{font-size:13px;font-weight:700}.avatar{width:34px;height:34px;border-radius:50%;background:#e6edf7;color:#315b91;display:grid;place-items:center}.content{max-width:1600px;margin:0 auto;padding:28px 30px 45px}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:22px}.eyebrow{color:var(--blue);font-size:12px;font-weight:800;letter-spacing:.08em;margin-bottom:6px}.page-head h1{font-size:28px;line-height:1.3;margin:0 0 8px}.page-head p{margin:0;color:var(--muted);font-size:14px}.btn{border:1px solid var(--line);background:#fff;color:var(--text);border-radius:9px;padding:10px 14px;font-weight:700;font-size:13px;display:inline-flex;align-items:center;gap:7px}.btn-primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn-primary:hover{background:#25589c}.btn:hover{filter:brightness(.98)}.notice{display:flex;gap:10px;background:#fff9e9;border:1px solid #f0dfad;border-radius:10px;padding:12px 15px;color:#775b18;font-size:12px;line-height:1.7;margin-bottom:18px}.summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.summary-card,.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.summary-card{padding:15px 18px}.summary-label{font-size:12px;color:var(--muted)}.summary-value{font-size:26px;font-weight:800;margin-top:4px}.summary-value small{font-size:13px}.summary-foot{font-size:11px;color:var(--muted)}.workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}.panel{overflow:hidden}.panel-head{padding:17px 19px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-title{font-size:16px;font-weight:800}.panel-sub{font-size:11px;color:var(--muted);margin-top:3px}.calendar-tools{display:flex;align-items:center;gap:7px}.month-label{font-size:18px;font-weight:800;min-width:135px;text-align:center}.icon-btn{width:34px;height:34px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#42536a;font-size:18px}.view-label{font-size:11px;color:var(--muted);padding:6px 9px;background:#f5f7fa;border-radius:7px}.legend{display:flex;gap:15px;flex-wrap:wrap;padding:12px 18px;border-bottom:1px solid var(--line);background:#fbfcfe}.legend-item{display:flex;align-items:center;gap:6px;font-size:11px;color:#596779}.dot{width:9px;height:9px;border-radius:3px}.dot-personal{background:#8b6bc1}.dot-booking{background:#4d86d8}.dot-work{background:#3b9b72}.calendar{padding:12px 15px 16px}.weekdays,.days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.weekday{text-align:center;padding:7px 0;color:var(--muted);font-size:11px;font-weight:700}.weekday:first-child{color:#c05a5a}.weekday:last-child{color:#4d78b8}.day{min-height:112px;border-top:1px solid var(--line);border-right:1px solid #f0f2f5;padding:7px 5px;min-width:0}.day:nth-child(7n){border-right:0}.day.other{background:#fafbfd;color:#b7bec8}.day.today{background:#f2f7ff}.day-number{font-size:12px;font-weight:800;margin-bottom:5px}.day.today .day-number{display:inline-grid;place-items:center;width:23px;height:23px;background:var(--blue);color:#fff;border-radius:50%}.event{display:block;width:100%;text-align:left;border:0;border-radius:5px;padding:4px 5px;margin:3px 0;font-size:10px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.event.personal{background:var(--purple-soft);color:#63458e;border-left:3px solid #8b6bc1}.event.booking{background:var(--blue-soft);color:#2f67b2;border-left:3px solid #4d86d8}.event.work{background:var(--green-soft);color:#147d64;border-left:3px solid #3b9b72}.event.more{background:#f1f3f6;color:#687486;text-align:center}.day.addable{cursor:pointer}.day.addable:hover{background:#f8fbff}.side-panel{margin-bottom:0}aside{width:100%}.agenda{padding:4px 17px 12px}.agenda-date{font-size:12px;font-weight:800;color:#526174;padding:12px 0 6px;border-bottom:1px solid #edf1f5}.agenda-item{display:grid;grid-template-columns:48px 1fr;gap:10px;padding:10px 0;border-bottom:1px solid #f0f2f5}.agenda-item:last-child{border-bottom:0}.agenda-time{font-size:12px;font-weight:800;color:#405875}.agenda-name{font-size:12px;font-weight:700}.agenda-meta{font-size:11px;color:var(--muted);margin-top:2px}.agenda-tag{display:inline-block;font-size:10px;padding:2px 6px;border-radius:4px;margin-left:5px}.tag-personal{background:var(--purple-soft);color:#63458e}.tag-booking{background:var(--blue-soft);color:#2f67b2}.tag-work{background:var(--green-soft);color:#147d64}.empty{padding:24px 10px;text-align:center;color:var(--muted);font-size:12px}.section-foot{padding:12px 17px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);line-height:1.7}.modal-backdrop{display:none;position:fixed;inset:0;z-index:20;background:rgba(16,31,52,.48);padding:18px;align-items:center;justify-content:center}.modal-backdrop.open{display:flex}.modal{width:min(540px,100%);background:#fff;border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.2);overflow:hidden}.modal-head{padding:17px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modal-head h2{font-size:17px;margin:0}.close{border:0;background:transparent;font-size:24px;color:#718096}.modal-body{padding:19px 20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field{display:flex;flex-direction:column;gap:5px}.field.full{grid-column:1/-1}.field label{font-size:12px;font-weight:700;color:#526174}.field input,.field textarea,.field select{width:100%;border:1px solid #d9e1eb;border-radius:8px;padding:10px 11px;font-size:13px;background:#fff}.field textarea{min-height:78px;resize:vertical}.modal-actions{display:flex;justify-content:space-between;gap:8px;margin-top:18px}.right-actions{display:flex;gap:8px}.btn-danger{color:#b93838;border-color:#f0d4d4}.toast{position:fixed;bottom:22px;right:22px;background:#24364d;color:#fff;padding:11px 15px;border-radius:9px;font-size:12px;display:none;z-index:30;box-shadow:0 5px 20px #0002}.toast.show{display:block}
@media(max-width:1100px){.workspace{grid-template-columns:1fr}.summary{grid-template-columns:repeat(3,1fr)}.day{min-height:100px}}
@media(max-width:760px){.app{display:block}.topbar{height:auto;min-height:58px;padding:10px 14px}.crumb{font-size:11px}.top-right{gap:8px}.today-label{display:none}.content{padding:20px 12px 30px}.page-head{display:block}.page-head h1{font-size:24px}.page-head .btn{margin-top:14px}.summary{gap:8px}.summary-card{padding:12px}.summary-value{font-size:22px}.summary-label{font-size:10px}.panel-head{padding:13px}.calendar{padding:8px 6px}.day{min-height:78px;padding:4px 2px}.day-number{font-size:10px}.event{font-size:9px;padding:3px 2px}.legend{gap:9px;padding:10px}.month-label{font-size:15px;min-width:112px}.view-label{display:none}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}}

/* Prevent the 今日 calendar button from breaking vertically. */
.calendar-tools{flex-wrap:nowrap}
.calendar-tools .icon-btn{flex:0 0 auto;white-space:nowrap;writing-mode:horizontal-tb}
.calendar-tools .icon-btn[title="今月へ"]{width:auto;min-width:52px;padding:0 9px;font-size:13px;font-weight:700}
@media(max-width:760px){.calendar-tools{gap:5px}.calendar-tools .icon-btn[title="今月へ"]{min-width:46px;padding:0 6px}}
