/* Nasaq 3.3 / BoardUI calendar language — independently authored calendar presentation.
 * Explicitly scoped; changes neither task data nor permissions. */
#nasaq-root .ns33-calendar{--ns33-bg:var(--color-background-primary-default,var(--ns-surface,#fff));--ns33-alt:var(--color-background-secondary-default,var(--ns-surface-alt,#fafafa));--ns33-line:var(--color-separator-border,var(--ns-border,#e9eaee));--ns33-ink:var(--color-text-primary,var(--ns-text,#171717));--ns33-muted:var(--color-text-secondary,var(--ns-text-secondary,#737373));--ns33-accent:var(--color-accent-500,var(--ns-accent,#526cf1));--ns33-radius:16px;--ns33-due:#526deb;--ns33-publish:#16856b;--ns33-stage:#ba7b31;display:flex;flex-direction:column;gap:18px;min-width:0;max-width:100%;color:var(--ns33-ink);font-size:14px;letter-spacing:0}
#nasaq-root .ns33-calendar :is(button,input,select){font-family:inherit}
#nasaq-root .ns33-calendar button{cursor:pointer}
#nasaq-root .ns33-calendar button:disabled{cursor:not-allowed}
#nasaq-root .ns33-page-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-block:0 3px}
#nasaq-root .ns33-page-title h1{font-size:25px;line-height:1.45;font-weight:650;margin:4px 0 3px;color:var(--ns33-ink)}
#nasaq-root .ns33-page-title p{font-size:13px;line-height:1.8;color:var(--ns33-muted);margin:0}
#nasaq-root .ns33-eyebrow{font-size:11px;line-height:18px;color:var(--ns33-muted)}
#nasaq-root .ns33-calendar-card{overflow:hidden;min-width:0;width:100%;border:1px solid var(--ns33-line);border-radius:var(--ns33-radius);background:var(--ns33-bg);box-shadow:0 1px 2px rgba(0,0,0,.025)}
#nasaq-root .ns33-calendar-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:95px;padding:21px 24px 20px}
#nasaq-root .ns33-month-heading{min-width:0}
#nasaq-root .ns33-month-overline{font-size:12px;color:var(--ns33-muted);margin-bottom:4px}
#nasaq-root .ns33-month-heading h2{font-size:26px;font-weight:650;line-height:1.4;letter-spacing:0;color:var(--ns33-ink);margin:0}
#nasaq-root .ns33-month-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
#nasaq-root .ns33-month-actions button:not(.ns-btn){min-width:35px;min-height:35px;border:1px solid var(--ns33-line);border-radius:9px;background:var(--ns33-bg);color:var(--ns33-ink);display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;font-size:13px;font-weight:550}
#nasaq-root .ns33-month-actions button:hover:not(:disabled):not(.ns-btn),#nasaq-root .ns33-filter-trigger:hover{background:var(--ns33-alt)}
#nasaq-root .ns33-month-actions button:disabled{opacity:.4}
#nasaq-root .ns33-month-switch{display:flex;align-items:center;gap:0;border:1px solid var(--ns33-line);border-radius:9px;overflow:hidden}
#nasaq-root .ns33-month-switch button:not(.ns-btn){border:0;border-radius:0;padding:7px 10px}
#nasaq-root .ns33-month-switch button+button{border-inline-start:1px solid var(--ns33-line)!important}
#nasaq-root .ns33-month-input{height:35px;width:133px;min-width:0;background:var(--ns33-bg);color:var(--ns33-muted);border:1px solid var(--ns33-line);border-radius:9px;padding:5px 8px;font-size:12px;direction:ltr}
#nasaq-root .ns33-month-actions .ns-btn{min-height:36px;padding:7px 14px;font-size:13px;border-radius:9px}
#nasaq-root .ns33-calendar-toolbar{border-top:1px solid var(--ns33-line);border-bottom:1px solid var(--ns33-line);padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:57px;background:var(--ns33-bg)}
#nasaq-root .ns33-calendar-tabs{display:flex;align-items:stretch;gap:22px;align-self:stretch}
#nasaq-root .ns33-calendar-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;border-radius:0;padding:3px 1px 0;display:flex;align-items:center;justify-content:center;color:var(--ns33-muted);font-size:13px;white-space:nowrap}
#nasaq-root .ns33-calendar-tabs button.is-active{color:var(--ns33-ink);font-weight:650;border-bottom-color:var(--ns33-accent)}
#nasaq-root .ns33-calendar-tabs button:hover{color:var(--ns33-ink)}
#nasaq-root .ns33-toolbar-controls{display:flex;align-items:center;gap:8px;justify-content:flex-end;min-width:0}
#nasaq-root .ns33-toolbar-controls .ns-search{width:220px;max-width:38vw;min-width:130px;min-height:35px}
#nasaq-root .ns33-toolbar-controls .ns-search input{min-height:35px;font-size:13px}
#nasaq-root .ns33-filter-trigger{display:inline-flex;gap:7px;align-items:center;justify-content:center;border:1px solid var(--ns33-line);background:var(--ns33-bg);color:var(--ns33-ink);min-height:35px;padding:0 11px;border-radius:9px;font-size:13px;white-space:nowrap}
#nasaq-root .ns33-filter-trigger.is-filtering{border-color:color-mix(in srgb,var(--ns33-accent) 35%,var(--ns33-line))}
#nasaq-root .ns33-filter-count{display:grid;place-items:center;min-width:17px;height:17px;border-radius:5px;background:var(--ns33-alt);font-size:10px;font-weight:650}
#nasaq-root .ns33-filter-panel{display:flex;flex-direction:column;gap:16px;border-bottom:1px solid var(--ns33-line);padding:20px 24px;background:var(--ns33-alt)}
#nasaq-root .ns33-filter-events{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
#nasaq-root .ns33-filter-caption{color:var(--ns33-muted);font-size:12px;font-weight:550}
#nasaq-root .ns33-filter-panel .ns-tabs{background:transparent;margin:0}
#nasaq-root .ns33-filter-panel .ns-tab{min-height:34px}
#nasaq-root .ns33-filter-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#nasaq-root .ns33-filter-fields .ns-field{min-width:0;margin:0}
#nasaq-root .ns33-filter-fields select{width:100%;min-width:0}
#nasaq-root .ns33-filter-bottom{display:flex;align-items:center;gap:22px;flex-wrap:wrap;border-top:1px solid var(--ns33-line);padding-top:13px}
#nasaq-root .ns33-filter-bottom .ns-btn{margin-inline-start:auto}
#nasaq-root .ns33-active-filters{display:flex;align-items:center;flex-wrap:wrap;gap:7px;border-bottom:1px solid var(--ns33-line);padding:10px 24px}
#nasaq-root .ns33-active-filters button{border:1px solid var(--ns33-line);border-radius:7px;background:var(--ns33-alt);display:inline-flex;align-items:center;gap:7px;padding:4px 8px;font-size:11px;color:var(--ns33-ink)}
#nasaq-root .ns33-active-filters button:hover{border-color:var(--ns33-accent)}
#nasaq-root .ns33-calendar-card .ns-tcal-progress,#nasaq-root .ns33-calendar-card .ns-tcal-partial,#nasaq-root .ns33-calendar-card .ns-tcal-fetch-state{margin:12px 24px}
#nasaq-root .ns33-legend-bar{min-height:51px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--ns33-line);background:var(--ns33-bg)}
#nasaq-root .ns33-legend{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
#nasaq-root .ns33-legend span{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--ns33-muted)}
#nasaq-root .ns33-legend i,#nasaq-root .ns33-agenda-dot,#nasaq-root .ns33-event-dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0;background:var(--ns33-due)}
#nasaq-root .ns33-legend i.is-publish,#nasaq-root .ns33-agenda-dot.is-publish{background:var(--ns33-publish)}
#nasaq-root .ns33-legend i.is-stage,#nasaq-root .ns33-agenda-dot.is-stage{background:var(--ns33-stage)}
#nasaq-root .ns33-legend-total{font-size:11px;color:var(--ns33-muted);white-space:nowrap}
#nasaq-root .ns33-month-grid.ns-tcal-grid{width:100%;min-width:0;direction:rtl;background:var(--ns33-bg)}
#nasaq-root .ns33-weekdays,#nasaq-root .ns33-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
#nasaq-root .ns33-weekdays{min-height:43px;border-bottom:1px solid var(--ns33-line);background:var(--ns33-alt)}
#nasaq-root .ns33-weekdays>div{min-width:0;display:flex;align-items:center;justify-content:center;padding:8px 3px;color:var(--ns33-muted);font-size:12px;font-weight:550}
#nasaq-root .ns33-weekday-short{display:none}
#nasaq-root .ns33-week:not(:last-child){border-bottom:1px solid var(--ns33-line)}
#nasaq-root .ns33-day{position:relative;min-width:0;min-height:128px;padding:9px 7px 8px;background:var(--ns33-bg);transition:background .12s}
#nasaq-root .ns33-day:not(:last-child){border-inline-end:1px solid var(--ns33-line)}
#nasaq-root .ns33-day.is-outside{background:var(--ns33-alt)}
#nasaq-root .ns33-day.is-selected:not(.is-today){background:color-mix(in srgb,var(--ns33-accent) 3%,var(--ns33-bg))}
#nasaq-root .ns33-day.is-today{background:color-mix(in srgb,var(--ns33-accent) 3%,var(--ns33-bg))}
#nasaq-root .ns33-day-trigger.ns-tcal-day-trigger{display:flex;align-items:center;justify-content:flex-start;min-height:26px;width:100%;gap:5px;border:0;padding:0 0 7px;border-radius:6px;background:transparent;cursor:pointer;text-align:start}
#nasaq-root .ns33-date-number{width:28px;height:28px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:var(--ns33-ink);font-size:12px;line-height:1;font-weight:600;direction:ltr;font-variant-numeric:tabular-nums}
#nasaq-root .ns33-day.is-outside .ns33-date-number{color:var(--ns33-muted);opacity:.55}
#nasaq-root .ns33-day.is-today .ns33-date-number{background:var(--ns33-accent);color:#fff}
#nasaq-root .ns33-day-trigger:hover .ns33-date-number{outline:1px solid var(--ns33-line)}
#nasaq-root .ns33-today-dot{width:5px;height:5px;display:none;border-radius:50%;background:var(--ns33-accent)}
#nasaq-root .ns33-mobile-count,#nasaq-root .ns33-mobile-dots{display:none}
#nasaq-root .ns33-cell-events{display:flex;flex-direction:column;gap:4px;min-width:0}
#nasaq-root .ns33-event-pill{width:100%;min-height:24px;max-height:28px;display:flex;align-items:center;justify-content:flex-start;gap:6px;min-width:0;text-align:start;border:1px solid transparent;border-radius:6px;padding:3px 7px;background:#eef1ff;color:#344ec1;line-height:18px;font-size:11px;transition:background .12s,border-color .12s;cursor:pointer}
#nasaq-root .ns33-event-pill .ns33-event-dot{width:6px;height:6px;background:#6176dc}
#nasaq-root .ns33-event-pill.is-publish{background:#e8f7f2;color:#18785e}
#nasaq-root .ns33-event-pill.is-publish .ns33-event-dot{background:#27a17b}
#nasaq-root .ns33-event-pill.is-stage{background:#fff4e7;color:#9a651e}
#nasaq-root .ns33-event-pill.is-stage .ns33-event-dot{background:#d59b4e}
#nasaq-root .ns33-event-pill.is-overdue{border-inline-start:2px solid #d44a53}
#nasaq-root .ns33-event-pill:hover{filter:brightness(.97);border-color:color-mix(in srgb,currentColor 18%,transparent)}
#nasaq-root .ns33-event-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;min-width:0;flex:1;font-size:11px;font-weight:550}
#nasaq-root .ns33-more{display:flex;align-items:center;justify-content:flex-start;min-height:20px;padding:1px 6px;color:var(--ns33-muted);background:transparent;border:0;border-radius:5px;text-align:start;font-size:11px;font-weight:550}
#nasaq-root .ns33-more:hover{color:var(--ns33-accent);background:var(--ns33-alt)}
#nasaq-root .ns33-calendar-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 24px;border-top:1px solid var(--ns33-line);color:var(--ns33-muted);font-size:11px;line-height:1.7}
#nasaq-root .ns33-calendar-card .ns-tcal-undated{border:0;border-radius:0;box-shadow:none;padding:24px;background:var(--ns33-bg)}
#nasaq-root .ns33-empty-month{display:flex;gap:9px;align-items:center;flex-wrap:wrap;border:1px dashed var(--ns33-line);border-radius:12px;padding:15px;color:var(--ns33-muted);font-size:13px}
/* Anchored event details: a popover, not a permanent side panel. */
#nasaq-root .ns33-popover{position:fixed;z-index:9000;box-sizing:border-box;max-width:calc(100vw - 24px);display:flex;flex-direction:column;max-height:min(520px,calc(100dvh - 24px));overflow:hidden;border:1px solid var(--ns33-line);border-radius:15px;background:var(--ns33-bg);box-shadow:0 18px 54px rgba(15,23,42,.16),0 2px 12px rgba(15,23,42,.06);color:var(--ns33-ink);animation:ns33-popup-in .14s ease-out}
@keyframes ns33-popup-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
#nasaq-root .ns33-popover-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:19px 18px 14px;border-bottom:1px solid var(--ns33-line)}
#nasaq-root .ns33-popover-head>div{min-width:0;flex:1}
#nasaq-root .ns33-popover-kicker{font-size:11px;color:var(--ns33-muted)}
#nasaq-root .ns33-popover-head h3{font-size:16px;line-height:1.55;font-weight:650;margin:5px 0 0;overflow-wrap:anywhere}
#nasaq-root .ns33-close{flex:none;width:27px;height:27px;display:grid;place-items:center;border:1px solid var(--ns33-line);border-radius:7px;background:transparent;color:var(--ns33-muted)}
#nasaq-root .ns33-close:hover{background:var(--ns33-alt);color:var(--ns33-ink)}
#nasaq-root .ns33-event-details{padding:16px 18px;display:flex;flex-direction:column;gap:14px;min-height:0;overflow:auto}
#nasaq-root .ns33-popover-type{display:inline-flex;align-self:flex-start;align-items:center;gap:6px;border-radius:6px;background:#eef1ff;color:#344ec1;font-size:11px;font-weight:650;padding:5px 9px}
#nasaq-root .ns33-popover-type.is-publish{background:#e8f7f2;color:#18785e}
#nasaq-root .ns33-popover-type.is-stage{background:#fff4e7;color:#9a651e}
#nasaq-root .ns33-popover-type .ns33-event-dot{width:6px;height:6px}
#nasaq-root .ns33-popover-type.is-publish .ns33-event-dot{background:#27a17b}
#nasaq-root .ns33-popover-type.is-stage .ns33-event-dot{background:#d59b4e}
#nasaq-root .ns33-detail-line{display:flex;align-items:center;gap:10px;min-width:0;color:var(--ns33-muted);font-size:13px;line-height:1.7}
#nasaq-root .ns33-detail-line svg{flex:none}
#nasaq-root .ns33-detail-line>span{min-width:0;overflow-wrap:anywhere}
#nasaq-root .ns33-detail-platforms{padding-top:10px;border-top:1px solid var(--ns33-line)}
#nasaq-root .ns33-detail-warning{color:var(--ns33-muted);font-size:11px;margin:0}
#nasaq-root .ns33-popover-foot{padding:12px 18px;border-top:1px solid var(--ns33-line);background:var(--ns33-alt)}
#nasaq-root .ns33-popover-action{width:100%;min-height:36px;background:var(--ns33-accent);color:#fff;display:flex;justify-content:center;align-items:center;gap:8px;border:1px solid var(--ns33-accent);border-radius:9px;font-size:12px;font-weight:600}
#nasaq-root .ns33-popover-action:hover{filter:brightness(.95)}
#nasaq-root .ns33-day-agenda{min-height:66px;max-height:350px;overflow:auto;padding:8px}
#nasaq-root .ns33-empty-day{font-size:13px;color:var(--ns33-muted);padding:22px 12px;margin:0;text-align:center}
#nasaq-root .ns33-agenda-row{display:flex;align-items:center;gap:9px;min-height:55px;padding:9px 10px;width:100%;color:var(--ns33-ink);background:transparent;border:0;border-radius:8px;text-align:start}
#nasaq-root .ns33-agenda-row:hover{background:var(--ns33-alt)}
#nasaq-root .ns33-agenda-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}
#nasaq-root .ns33-agenda-copy strong{font-size:13px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
#nasaq-root .ns33-agenda-copy small{font-size:11px;color:var(--ns33-muted)}
#nasaq-root .ns33-agenda-row>svg{color:var(--ns33-muted);flex:none}
#nasaq-root .ns33-calendar :is(button,input,select):focus-visible,#nasaq-root .ns33-popover button:focus-visible{outline:2px solid var(--ns33-accent);outline-offset:2px}
/* Dark scheme uses identical layout, only semantic surfaces change. */
html[data-theme="dark"] #nasaq-root .ns33-calendar{--ns33-due:#98a7ff;--ns33-publish:#65cba8;--ns33-stage:#e2b676}
html[data-theme="dark"] #nasaq-root .ns33-event-pill.is-due,html[data-theme="dark"] #nasaq-root .ns33-popover-type.is-due{background:#242e55;color:#c1c9ff}
html[data-theme="dark"] #nasaq-root .ns33-event-pill.is-publish,html[data-theme="dark"] #nasaq-root .ns33-popover-type.is-publish{background:#173c36;color:#a7e4cd}
html[data-theme="dark"] #nasaq-root .ns33-event-pill.is-stage,html[data-theme="dark"] #nasaq-root .ns33-popover-type.is-stage{background:#463722;color:#ffe2ad}
html[data-theme="dark"] #nasaq-root .ns33-event-pill.is-due .ns33-event-dot{background:#98a7ff}
html[data-theme="dark"] #nasaq-root .ns33-event-pill.is-publish .ns33-event-dot{background:#65cba8}
html[data-theme="dark"] #nasaq-root .ns33-event-pill.is-stage .ns33-event-dot{background:#e2b676}
@media(max-width:1150px){#nasaq-root .ns33-day{min-height:109px;padding:7px 5px}#nasaq-root .ns33-event-pill{padding:3px 5px}#nasaq-root .ns33-calendar-topbar{padding:18px}#nasaq-root .ns33-calendar-toolbar,#nasaq-root .ns33-legend-bar,#nasaq-root .ns33-calendar-footer{padding-inline:18px}#nasaq-root .ns33-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){#nasaq-root .ns33-calendar{gap:11px}#nasaq-root .ns33-page-title h1{font-size:21px}#nasaq-root .ns33-page-title p{font-size:12px}#nasaq-root .ns33-calendar-card{border-radius:12px}#nasaq-root .ns33-calendar-topbar{min-height:0;padding:16px 14px;flex-wrap:wrap;align-items:flex-start;gap:12px}#nasaq-root .ns33-month-heading h2{font-size:21px}#nasaq-root .ns33-month-actions{justify-content:flex-start;width:100%;gap:7px}#nasaq-root .ns33-month-switch button{min-width:31px!important;min-height:33px!important}#nasaq-root .ns33-month-input{width:126px;height:33px}#nasaq-root .ns33-month-actions .ns-btn{margin-inline-start:auto}#nasaq-root .ns33-calendar-toolbar{padding:0 13px 12px;min-height:0;flex-wrap:wrap;gap:8px}#nasaq-root .ns33-calendar-tabs{min-height:43px;flex:1}#nasaq-root .ns33-toolbar-controls{width:100%;padding-bottom:0}#nasaq-root .ns33-toolbar-controls .ns-search{flex:1;max-width:none;width:100%}#nasaq-root .ns33-filter-panel{padding:15px 12px;gap:12px}#nasaq-root .ns33-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#nasaq-root .ns33-legend-bar{padding:9px 13px;min-height:0;align-items:flex-start;flex-direction:column;gap:7px}#nasaq-root .ns33-legend{gap:12px}#nasaq-root .ns33-legend span{font-size:10px}#nasaq-root .ns33-legend-total{font-size:10px}#nasaq-root .ns33-weekdays{min-height:35px}#nasaq-root .ns33-weekdays>div{font-size:10px;padding:7px 1px}#nasaq-root .ns33-weekday-full{display:none}#nasaq-root .ns33-weekday-short{display:inline}#nasaq-root .ns33-day{padding:3px 1px;min-height:63px}#nasaq-root .ns33-day-trigger.ns-tcal-day-trigger{min-height:27px;padding:0;justify-content:center;position:relative}#nasaq-root .ns33-date-number{width:26px;height:26px;font-size:11px}#nasaq-root .ns33-cell-events{display:none}#nasaq-root .ns33-mobile-count{display:grid;position:absolute;top:-1px;left:0;width:15px;height:15px;place-items:center;border-radius:50%;background:var(--ns33-alt);border:1px solid var(--ns33-line);font-size:9px;color:var(--ns33-muted)}#nasaq-root .ns33-mobile-dots{display:flex;justify-content:center;align-items:center;gap:3px;margin-top:4px}#nasaq-root .ns33-mobile-dots i{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--ns33-due)}#nasaq-root .ns33-mobile-dots i.is-publish{background:var(--ns33-publish)}#nasaq-root .ns33-mobile-dots i.is-stage{background:var(--ns33-stage)}#nasaq-root .ns33-calendar-footer{padding:10px 13px;font-size:10px;gap:5px;flex-direction:column;align-items:flex-start}#nasaq-root .ns33-calendar-footer span:last-child{display:none}#nasaq-root .ns33-popover{position:fixed!important;left:0!important;right:0!important;top:auto!important;bottom:0!important;width:100%!important;max-width:100vw!important;max-height:80dvh!important;border-radius:18px 18px 0 0;box-shadow:0 -16px 45px rgba(0,0,0,.22);padding-bottom:env(safe-area-inset-bottom,0px)}#nasaq-root .ns33-active-filters{padding:8px 12px}#nasaq-root .ns33-calendar-card .ns-tcal-undated{padding:15px}}
@media(max-width:360px){#nasaq-root .ns33-month-input{width:116px}#nasaq-root .ns33-day{min-height:60px}#nasaq-root .ns33-date-number{width:23px;height:23px}#nasaq-root .ns33-filter-fields{grid-template-columns:1fr}#nasaq-root .ns33-calendar-tabs{gap:11px}}
@media(prefers-reduced-motion:reduce){#nasaq-root .ns33-popover{animation:none}}
@media(max-width:760px){#nasaq-root .ns33-calendar:has(.ns33-popover)::before{content:"";position:fixed;inset:0;background:rgba(19,24,41,.28);z-index:8999}}
