/* Forge Calendar (2.0). Builds on gym/gym.css (.fg); scoped under .fc. */
.fg.fc { max-width: 560px; margin: 0 auto; padding: 16px 16px 110px; }

/* now / next */
.fc .nowcard { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.fc .nc-clock b { display: block; font-family: var(--fg-hud); font-size: 26px; font-weight: 900; }
.fc .nc-clock span { font-size: 11px; color: var(--fg-muted); }
.fc .nc-rows { display: grid; gap: 8px; min-width: 0; }
.fc .nc-rows .who { display: block; margin-bottom: 2px; }
.fc .nc-rows p { font-size: 14px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc .nc-rows small { color: var(--fg-muted); font-size: 11px; }

/* day strip */
.fc .daystrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 14px 0 18px; }
.fc .daystrip button { background: var(--fg-bg1); border: 1px solid var(--fg-border); border-radius: 10px; padding: 8px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fc .daystrip b { font-family: var(--fg-hud); font-size: 9px; letter-spacing: 0.08em; color: #999; }
.fc .daystrip span { font-size: 8px; color: var(--fg-xp); letter-spacing: 1px; height: 10px; }
.fc .daystrip button.today b { color: var(--fg-xp); }
.fc .daystrip button.active { background: #fff; border-color: #fff; }
.fc .daystrip button.active b { color: #000; }
.fc .daystrip button.active span { color: #555; }

/* timeline */
.fc .dayhead { display: flex; justify-content: space-between; align-items: baseline; }
.fc .dayhead + .card { margin-top: 10px; }
.fc .tl { padding: 4px 12px; }
.fc .slot { display: grid; grid-template-columns: 52px 1fr 30px 22px; gap: 10px; align-items: center; padding: 10px 0 10px 10px; border-bottom: 1px solid var(--fg-border); position: relative; }
.fc .slot::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--c); }
.fc .slot:last-child { border-bottom: none; }
.fc .slot.past:not(.done) { opacity: 0.55; }
.fc .slot.done .sl-main b { text-decoration: line-through; color: #777; }
.fc .sl-t { font-size: 12px; color: #aaa; }
.fc .sl-main { min-width: 0; }
.fc .sl-main b { display: block; font-family: var(--fg-ui); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc .sl-main small { display: block; font-size: 11px; color: var(--fg-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc .sl-chk { width: 28px; height: 28px; border-radius: 8px; border: 2px solid #333; color: #000; font-weight: 900; }
.fc .slot.done .sl-chk { background: var(--fg-good); border-color: var(--fg-good); }
.fc .sl-x { color: #444; font-size: 17px; }
.fc .nowline { display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.fc .nowline::after { content: ''; flex: 1; height: 1px; background: var(--fg-pr); }
.fc .nowline span { font-family: var(--fg-hud); font-size: 8px; letter-spacing: 0.2em; color: var(--fg-pr); }

.fc .row2 { display: flex; gap: 8px; margin-top: 12px; }
.fc .row2 .btn { margin: 0; }
.fc .row2 .btn-ghost { width: auto; padding: 14px 16px; }
.fc .addform { margin-top: 12px; }
.fc .af-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fc .fg input[type=time], .fc input[type=time], .fc input[type=date] { color-scheme: dark; }
.fc .swatches { display: flex; gap: 8px; padding-top: 6px; }
.fc .swatches button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; }
.fc .swatches button.on { border-color: #fff; box-shadow: 0 0 0 2px #000 inset; }
.fc .af-every { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #bbb; margin: -4px 0 4px; }

/* events */
.fc .evrow { display: grid; grid-template-columns: 70px 1fr 22px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--fg-border); }
.fc .evrow.pastev { opacity: 0.4; }
.fc .cd { font-family: var(--fg-hud); font-size: 9px; letter-spacing: 0.06em; color: #666; }
.fc .cd.soon { color: var(--fg-pr); }
.fc .ev-main { min-width: 0; }
.fc .ev-main b { display: block; font-family: var(--fg-ui); font-size: 14px; }
.fc .ev-main small { display: block; font-size: 11px; color: var(--fg-muted); margin-top: 2px; }
.fc .evform { padding: 10px 0; display: grid; gap: 8px; }
.fc .evform input { width: 100%; background: var(--fg-bg3); border: 1px solid var(--fg-border); border-radius: 10px; padding: 11px 12px; font-size: 16px; outline: none; min-width: 0; }
.fc .nowcard > * { min-width: 0; }
.fc .nc-rows > div { min-width: 0; }
.fc .row2 .btn-ghost { white-space: nowrap; flex-shrink: 0; }

.fc .fc-plan { width: 100%; margin: 12px 0 8px; background: linear-gradient(135deg, #7c6cff, #5b4bd6); color: #fff; border: none; font-weight: 700; }
