#fourlorn-calendar{box-sizing:border-box;position:fixed;inset:0;margin:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0;padding:max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));overflow:hidden;color:var(--cream);background:var(--ink);font:16px Outfit,sans-serif}
#fourlorn-calendar[open]{display:flex;justify-content:center}
#fourlorn-calendar::backdrop{background:var(--ink)}
#fourlorn-calendar .history-content{width:100%;max-width:1000px;min-height:0;display:flex;flex-direction:column;gap:20px}
#fourlorn-calendar header,#fourlorn-calendar footer{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-shrink:0}
#fourlorn-calendar header{padding-bottom:18px;border-bottom:1px solid var(--brass)}
#fourlorn-calendar footer{padding-top:16px;border-top:1px solid var(--brass)}
#fourlorn-calendar h2{font:42px Cormorant,serif;margin:0}
#fourlorn-calendar h3{font:22px Cormorant,serif;margin:0;overflow-wrap:anywhere}
#fourlorn-calendar p{margin:0;color:var(--muted);line-height:1.5}
#fourlorn-calendar .history-brand{font-size:12px;color:var(--gold)}
#fourlorn-calendar .history-label{font-size:12px}
#fourlorn-calendar .calendar-rows{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:6px;padding:6px;margin:-6px;scroll-padding:6px}
#fourlorn-calendar .history-row{box-sizing:border-box;min-height:60px;flex-shrink:0;display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;padding:8px 14px;border-left:2px solid var(--brass);background:#1a2629}
#fourlorn-calendar .history-detail{flex:1 1 320px;min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:2px 16px}
#fourlorn-calendar .history-detail p,#fourlorn-calendar footer p{font-size:14px}
#fourlorn-calendar .history-completed{color:var(--gold)}
#fourlorn-calendar .history-actions{display:flex;flex-wrap:wrap;gap:6px 8px}
#fourlorn-calendar button,#fourlorn-calendar a{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 20px;border:1px solid var(--brass);border-radius:3px;background:#1f2b2e;color:var(--cream);font:16px Outfit,sans-serif;text-decoration:none;cursor:pointer;flex-shrink:0}
#fourlorn-calendar button:disabled,#fourlorn-calendar a[aria-disabled=true]{color:var(--muted);opacity:.6;cursor:default}
#fourlorn-calendar .history-empty{box-sizing:border-box;flex:1 0 auto;min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:24px;border:1px solid #38423d;background:#131d1f;text-align:center}
#fourlorn-calendar .history-empty h3{font-size:32px}
#fourlorn-calendar .history-empty p{max-width:580px}
#fourlorn-calendar .history-mark{display:flex;align-items:flex-end;gap:7px;height:48px}
#fourlorn-calendar .history-mark span{width:5px;background:var(--gold)}
