.fmth-toolbar,.fmth-calendar{--fmth-purple:#7137ef;--fmth-surface:var(--bg-card,#fff);--fmth-muted:var(--text-muted,#80768a);--fmth-text:var(--text-primary,#241c30);color:var(--fmth-text);min-width:0}
.fmth-toolbar *,.fmth-calendar *{box-sizing:border-box}
.fmth-toolbar button,.fmth-calendar button{font-family:inherit;touch-action:manipulation;cursor:pointer}
.fmth-toolbar button:focus-visible,.fmth-calendar button:focus-visible{outline:3px solid #a78bfa;outline-offset:2px}
.fmth-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.fmth-top h1{font-size:25px;margin:0;letter-spacing:-.6px}
.fmth-actions{display:flex;align-items:center;border:1px solid var(--border,#e5dfea);border-radius:999px;background:var(--fmth-surface);padding:4px;box-shadow:0 6px 22px #29144408}
.fmth-actions button{position:relative;display:flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;border:0;border-radius:999px;background:transparent;color:var(--fmth-text);font-size:14px;font-weight:600}
.fmth-actions button:last-child{padding:0 15px}
.fmth-actions button:hover{background:#7137ef0b}
.fmth-filter-dot{position:absolute;right:8px;top:8px;width:6px;height:6px;border-radius:50%;background:var(--fmth-purple)}
.fmth-views{display:flex;width:100%;max-width:440px;gap:4px;margin:18px 0;padding:4px;background:var(--fmth-surface);border:1px solid var(--border,#e5dfea);border-radius:12px}
.fmth-views button{flex:1;min-width:0;min-height:40px;padding:8px 13px;background:none;border:0;border-radius:8px;font-size:13px;font-weight:600;color:var(--fmth-muted)}
.fmth-views button[aria-pressed=true]{background:var(--fmth-purple);color:#fff;box-shadow:0 3px 8px #7137ef25}
.fmth-month-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-top:4px}
.fmth-month-heading h2{margin:0;font-size:23px;font-weight:700;letter-spacing:-.5px}
.fmth-month-heading>div{display:flex;gap:8px}
.fmth-month-heading button{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:12px;background:transparent;color:var(--fmth-purple)}
.fmth-month-heading button:hover{background:#7137ef0b}
.fmth-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;padding:14px;margin-bottom:15px;background:var(--fmth-surface);border:1px solid var(--border,#e5dfea);border-radius:12px}
.fmth-filters label{display:flex;flex-direction:column;min-width:0;gap:6px;color:var(--fmth-muted);font-size:12px}
.fmth-filters input,.fmth-filters select{font-family:inherit;font-size:16px;min-width:0;width:100%;height:44px;border:1px solid var(--border,#e5dfea);border-radius:8px;background:var(--fmth-surface);color:var(--fmth-text);padding:8px}
.fmth-clear,.fmth-filter-summary{border:0;background:none;color:var(--fmth-purple);font-size:13px;min-height:40px;text-align:left}
.fx-calendar-page:has(.fmth-toolbar){gap:12px!important}
.fx-calendar-page:has(.fmth-toolbar)>.calendar-container{border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;border-radius:0!important}
.fmth-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;padding:3px 4px 15px;background:var(--bg-app,#f6f4f8);border-radius:16px 16px 0 0}
.fmth-weekday{text-align:center;text-transform:uppercase;font-size:12px;font-weight:600;color:var(--fmth-muted);padding:11px 0 12px}
.fmth-date,.fmth-blank{min-height:65px;min-width:0}
.fmth-date{display:flex;flex-direction:column;align-items:center;justify-content:center;border:0;background:transparent;color:var(--fmth-text);padding:3px 0;border-radius:10px}
.fmth-number{display:grid;place-items:center;width:40px;height:40px;font-size:23px;font-weight:500;border-radius:50%;line-height:1}
.fmth-date.is-today:not(.is-selected) .fmth-number{color:var(--fmth-purple);box-shadow:inset 0 0 0 1px #7137ef50}
.fmth-date.is-selected .fmth-number{background:var(--fmth-purple);color:#fff;font-weight:700}
.fmth-date:hover{background:#7137ef08}
.fmth-dots{height:12px;display:flex;align-items:center;justify-content:center;gap:3px}
.fmth-dots i{width:5px;height:5px;border-radius:50%;display:block}
.fmth-dots small{font-size:10px;line-height:10px;color:var(--fmth-muted)}
.fmth-agenda{border-top:1px solid var(--border,#e5dfea);background:var(--fmth-surface);border-radius:0 0 16px 16px;min-height:180px}
.fmth-day-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:17px 20px 13px}
.fmth-day-heading h3{font-size:15px;line-height:1.5;margin:0;font-weight:700}
.fmth-day-heading p{font-size:11px;color:var(--fmth-muted);margin:3px 0 0;line-height:1.6}
.fmth-day-heading button{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border:1px solid var(--border,#e5dfea);border-radius:50%;background:transparent;color:var(--fmth-purple)}
.fmth-event{display:flex;position:relative;align-items:stretch;gap:14px;width:100%;min-width:0;border:0;background:transparent;text-align:left;color:var(--fmth-text);padding:17px 20px}
.fmth-event+.fmth-event:before{content:'';position:absolute;left:41px;right:20px;top:0;border-top:1px solid var(--border,#e5dfea)}
.fmth-event:hover{background:#7137ef04}
.fmth-event-bar{width:6px;flex:0 0 6px;border-radius:999px;background:var(--creator-color);min-height:60px}
.fmth-event-copy{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.fmth-event-copy>strong{font-size:18px;font-weight:650;line-height:1.35;overflow-wrap:anywhere}
.fmth-event-time{font-size:13px;font-weight:600;line-height:1.6;color:var(--fmth-text)}
.fmth-separator{color:var(--fmth-muted)}
.fmth-detail{font-size:12px;line-height:1.5;color:var(--fmth-muted);overflow-wrap:anywhere}
.fmth-creator{display:flex;align-items:center;gap:7px;margin-top:3px;font-size:11px;line-height:1.5;color:var(--fmth-muted);overflow-wrap:anywhere}
.fmth-creator .fx-avatar{flex-shrink:0}
.fmth-event-chevron{display:flex;align-items:center;color:var(--fmth-muted)}
.fmth-empty{padding:25px 24px 38px;text-align:center;color:var(--fmth-muted)}
.fmth-empty strong{font-size:14px;font-weight:600}.fmth-empty p{font-size:12px;line-height:1.7;margin:7px auto 0;max-width:300px}
@media(min-width:1000px){.fmth-grid{padding:5px 20px 20px}.fmth-date,.fmth-blank{min-height:77px}.fmth-number{font-size:25px;width:44px;height:44px}.fmth-day-heading{padding:18px 26px 12px}.fmth-event{padding:18px 26px}}
@media(max-width:600px){.fmth-top h1{font-size:22px}.fmth-views{max-width:none;margin:14px 0}.fmth-month-heading h2{font-size:21px}.fmth-month-heading>div{gap:2px}.fmth-grid{padding:0 0 12px}.fmth-weekday{font-size:10px}.fmth-date,.fmth-blank{min-height:54px}.fmth-number{width:34px;height:34px;font-size:22px}.fmth-filters{grid-template-columns:1fr}.fmth-day-heading{padding:14px 12px 8px}.fmth-event{padding:15px 12px;gap:11px}.fmth-event-copy>strong{font-size:16px}.fmth-event-time{font-size:12px}.fmth-event+.fmth-event:before{left:29px;right:12px}.fmth-top{gap:5px}.fmth-actions button:last-child{padding:0 12px}}
html[data-fluxes-theme=dark] .fmth-toolbar,html[data-fluxes-theme=dark] .fmth-calendar{--fmth-purple:#a886ff}
html[data-fluxes-theme=dark] .fmth-views button[aria-pressed=true],html[data-fluxes-theme=dark] .fmth-date.is-selected .fmth-number{background:#7137ef;color:#fff}
