.modal-back.calendar-back{padding:12px}
.modal.calendar-modal{width:calc(100vw - 24px);max-width:none;max-height:calc(100vh - 24px);padding:0;overflow:hidden;background:#f8fafc}
.calendar-head{padding:20px 22px 16px;background:#0f2f2b;color:#fff;margin:0;align-items:center}
.calendar-head h2{font-size:22px;margin-bottom:4px}
.calendar-head .muted{color:#b8d5cf}
.calendar-head-copy{min-width:220px}.calendar-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.calendar-head-actions .btn.light{background:#fff;color:#0f513f;border-color:#a9c5bd}.calendar-head-actions .btn.light:hover{background:#e7f4ef;color:#0a3b2f;border-color:#6e9f91}.calendar-view-tabs{display:flex;gap:4px;padding:4px;border:1px solid rgba(255,255,255,.24);border-radius:8px;background:rgba(255,255,255,.08)}.calendar-view-tab{border:0;border-radius:5px;padding:8px 12px;background:transparent;color:#cfe4df;font-size:13px;font-weight:850}.calendar-view-tab:hover{background:rgba(255,255,255,.1)}.calendar-view-tab.active{background:#fff;color:#123b35;box-shadow:0 2px 8px rgba(0,0,0,.16)}
.calendar-toolbar{display:grid;grid-template-columns:auto minmax(260px,1fr) auto;gap:12px;padding:14px 18px;background:#fff;border-bottom:1px solid #dce5e3;align-items:center}
.calendar-nav{display:flex;align-items:center;gap:7px}
.calendar-month-title{min-width:130px;text-align:center;font-family:Georgia,"Times New Roman",serif;font-size:21px;color:#153b36}
.calendar-filters{display:grid;grid-template-columns:minmax(180px,1.5fr) repeat(3,minmax(120px,.7fr));gap:8px}
.calendar-filters input,.calendar-filters select{width:100%;border:1px solid #cbd8d5;border-radius:6px;padding:9px 10px;background:#fff;color:#29443f}
.calendar-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;min-height:620px}
.calendar-main{padding:16px 18px 22px;min-width:0}
.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.calendar-weekdays{border:1px solid #d8e2df;border-bottom:0;border-radius:8px 8px 0 0;overflow:hidden}
.calendar-weekday{padding:9px;text-align:center;background:#eaf2ef;color:#45615c;font-size:12px;font-weight:850}
.calendar-weekday:first-child{color:#b54a3e}.calendar-weekday:last-child{color:#2563a8}
.calendar-grid{border-left:1px solid #d8e2df;border-top:1px solid #d8e2df;background:#fff}
.calendar-day{min-height:106px;padding:7px;border-right:1px solid #d8e2df;border-bottom:1px solid #d8e2df;background:#fff;overflow:hidden}
.calendar-day:hover{background:#f5faf8}.calendar-day.outside{background:#f4f6f6;color:#9aa9a6}.calendar-day.selected{box-shadow:inset 0 0 0 2px #169b81;background:#f0faf7}.calendar-day.today .calendar-date{background:#153b36;color:#fff}
.calendar-day-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}
.calendar-date{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;font-size:12px;font-weight:850}
.calendar-add{border:0;background:transparent;color:#15977e;font-size:18px;line-height:1;padding:0 3px}
.calendar-item,.agenda-card{--calendar-item-bg:rgba(17,24,39,.3);--calendar-item-border:#111827;background:var(--calendar-item-bg);border-left-color:var(--calendar-item-border);color:#111827}
.calendar-item.tone-important,.agenda-card.tone-important{--calendar-item-bg:rgba(239,68,68,.46);--calendar-item-border:#dc2626}
.calendar-item{display:block;width:100%;border:0;border-left:3px solid var(--calendar-item-border);border-radius:3px;background:var(--calendar-item-bg);color:#111827;text-align:left;font-size:9px;font-weight:700;line-height:1.3;padding:4px 5px;margin:3px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calendar-item:hover{filter:brightness(.97)}.calendar-item.completed{text-decoration:line-through}
.calendar-more{font-size:10px;color:#728580;padding:2px 5px}
.calendar-agenda{border-left:1px solid #d8e2df;background:#f2f6f4;padding:18px;overflow:auto}
.calendar-agenda h3{font-family:Georgia,"Times New Roman",serif;color:#153b36;font-size:20px;margin-bottom:4px}
.calendar-agenda-actions{display:flex;gap:7px;margin:14px 0}
.calendar-agenda-list{display:grid;gap:9px}
.agenda-card{border:1px solid rgba(15,23,42,.18);border-left:4px solid var(--calendar-item-border);border-radius:6px;background:var(--calendar-item-bg);padding:11px;text-align:left;color:#111827}
.agenda-card-title{font-weight:850;font-size:13px;line-height:1.35;margin-bottom:5px}.agenda-card-meta{font-size:11px;color:#111827;line-height:1.5}.agenda-empty{border:1px dashed #c8d6d2;border-radius:7px;padding:22px 12px;text-align:center;color:#728580;font-size:12px;background:rgba(255,255,255,.55)}
.calendar-legend{display:flex;flex-wrap:wrap;gap:10px;margin-top:11px;color:#334155;font-size:11px}.calendar-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:4px;background:var(--calendar-dot-color,#111827)}
.event-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.event-form-grid .field.full{grid-column:1/-1}.participant-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:10px;border:1px solid #cbd5e1;border-radius:6px;background:#f8fafc}.participant-option{display:flex;align-items:center;gap:6px;font-size:12px;color:#415751}.participant-option input{width:auto}.event-view-note{background:#edf5f2;border-left:4px solid #4c9586;padding:10px 12px;color:#36564f;font-size:12px;margin-bottom:14px}
.calendar-integration-modal{width:min(900px,100%)}.calendar-integration-summary{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 14px;margin-bottom:14px;border-radius:8px;background:#ecfdf5;color:#14532d;font-size:13px}.calendar-integration-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.calendar-provider{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;border:1px solid #dbe4ec;border-radius:10px;padding:18px;background:#f8fafc}.calendar-provider h3,.calendar-import-panel h3{margin:0 0 5px;font-size:16px}.calendar-provider p,.calendar-import-panel p{margin:0;color:#64748b;font-size:12px;line-height:1.55}.calendar-provider .btn{width:100%;grid-column:1/-1}.calendar-provider-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;color:#fff;font-size:21px;font-weight:900}.calendar-provider.google .calendar-provider-mark{background:linear-gradient(135deg,#4285f4 0 45%,#34a853 45% 65%,#fbbc05 65% 82%,#ea4335 82%)}.calendar-provider.naver .calendar-provider-mark{background:#03c75a}.calendar-import-panel{display:grid;grid-template-columns:1fr auto;align-items:center;gap:18px;margin-top:14px;padding:16px 18px;border:1px dashed #7ba99f;border-radius:10px;background:#f4faf8}.calendar-file-button{display:inline-flex;align-items:center;justify-content:center;margin:0}.calendar-integration-note{margin:14px 0 0;padding:11px 13px;border-radius:7px;background:#fff7ed;color:#9a5b16;font-size:11px;line-height:1.55}
.calendar-personal-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px;border-bottom:1px solid #dce5e3;background:#effaf5}.calendar-sync-state{display:flex;align-items:center;gap:10px;min-width:0}.calendar-sync-state div{display:grid;gap:2px}.calendar-sync-state b{font-size:13px;color:#123b35}.calendar-sync-state span:last-child{font-size:11px;color:#5c716c}.calendar-sync-dot{width:10px;height:10px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 4px rgba(148,163,184,.18);flex:0 0 auto}.calendar-sync-dot.connected{background:#03c75a;box-shadow:0 0 0 4px rgba(3,199,90,.18)}.calendar-sync-dot.error{background:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.18)}.calendar-sync-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.btn.naver{background:#03c75a;color:#fff}.btn.naver:hover{background:#02ad4e}.naver-connect-modal{width:min(520px,100%)}.naver-security-note{display:grid;gap:4px;padding:12px 14px;border-left:4px solid #03c75a;border-radius:6px;background:#effaf5;color:#36564f;font-size:12px;line-height:1.5;margin-bottom:12px}.calendar-connect-message{min-height:18px;margin:0 0 12px;color:#475569;font-size:12px}.calendar-connect-message.error{color:#b91c1c}.calendar-connect-message.success{color:#15803d}
.btn.naver:disabled{background:#94a3b8;cursor:not-allowed}.naver-connect-modal{width:min(620px,100%)}.naver-oauth-step{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:start;margin-bottom:18px;padding:16px;border:1px solid #a7e7c4;border-radius:10px;background:#f2fff7}.naver-step-number{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#03c75a;color:#fff;font-size:13px;font-weight:900;flex:0 0 auto}.naver-oauth-copy h3,.naver-step-heading h3{margin:2px 0 4px;font-size:15px;color:#123b35}.naver-oauth-copy>p,.naver-step-heading p{margin:0;color:#64748b;font-size:12px;line-height:1.5}.naver-oauth-state{display:grid;grid-template-columns:auto auto 1fr;gap:6px 8px;align-items:center;margin-top:12px}.naver-oauth-state b{font-size:13px;color:#123b35}.naver-oauth-state span:last-child{grid-column:2/-1;font-size:11px;color:#5c716c}.naver-oauth-actions{display:grid;gap:7px;min-width:145px}.naver-step-heading{display:flex;align-items:flex-start;gap:10px;margin:0 0 12px;padding-top:2px;border-top:1px solid #dce5e3}.naver-step-heading .naver-step-number{margin-top:-14px;box-shadow:0 0 0 6px #fff}
@media(max-width:1100px){.calendar-head{align-items:flex-start}.calendar-head-actions{justify-content:flex-start}.calendar-toolbar{grid-template-columns:1fr}.calendar-nav{justify-content:center}.calendar-filters{grid-template-columns:1fr 1fr}.calendar-layout{grid-template-columns:1fr}.calendar-agenda{border-left:0;border-top:1px solid #d8e2df}.calendar-day{min-height:92px}}
@media(max-width:700px){.calendar-back{padding:0}.modal.calendar-modal{width:100vw;max-height:100vh;border-radius:0}.calendar-head{padding:15px}.calendar-head-actions,.calendar-view-tabs{width:100%}.calendar-view-tab{flex:1}.calendar-head-actions>.btn{flex:1}.calendar-toolbar{padding:10px}.calendar-filters{grid-template-columns:1fr}.calendar-personal-actions{align-items:stretch;flex-direction:column;padding:12px}.calendar-sync-actions{display:grid;grid-template-columns:1fr 1fr}.calendar-sync-actions .btn{width:100%}.calendar-main{padding:10px}.calendar-day{min-height:72px;padding:4px}.calendar-date{width:21px;height:21px}.calendar-add{display:none}.calendar-item{font-size:9px;padding:3px}.calendar-layout{min-height:0}.event-form-grid,.participant-list,.calendar-integration-grid{grid-template-columns:1fr}.calendar-agenda-actions{display:grid}.calendar-agenda-actions .btn{width:100%}.calendar-integration-summary,.calendar-import-panel{align-items:stretch;grid-template-columns:1fr;flex-direction:column}.calendar-file-button{width:100%}}
@media(max-width:700px){.naver-oauth-step{grid-template-columns:auto 1fr}.naver-oauth-actions{grid-column:1/-1;grid-template-columns:1fr}.naver-oauth-state{grid-template-columns:auto 1fr}.naver-oauth-state span:last-child{grid-column:1/-1}.naver-connect-modal{max-height:100vh}}
