/* focus-workspace-preview.css, the rules scoped to the calendar page: loads with the first visit of that page (data-rattib-style="calendar" in index.html) and sits right after the shell part in the cascade. Source order is the parent sheet's. */
/* Calendar: native four-view/date/filter/editor semantics, shared Focus materials. */
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar { color: var(--preview-ink); font-family: var(--preview-ui); }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0; margin: 2px 0 24px; border: 0; background: transparent; box-shadow: none; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-head::after { display: none; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-head > div { flex: 1; min-width: 0; width: auto; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-head h1 { font-family: var(--preview-display); font-size: 54px; font-weight: 400; line-height: 1.08; letter-spacing: -.045em; margin: 0 0 10px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-eyebrow { color: var(--preview-muted); font-size: 13px; line-height: 1.6; margin: 0; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar :is(.calendar-button,.calendar-icon-button), html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #calendar-event-dialog .calendar-button { min-height: 44px; border: 1px solid var(--preview-line); border-radius: 12px; background: var(--preview-row); color: var(--preview-ink); font-family: var(--preview-ui); font-size: 12px; padding: 10px 14px; box-shadow: none; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed :is(#panel-calendar,#calendar-event-dialog) .calendar-primary:not(:disabled) { min-height: 44px; padding: 12px 20px; border: 1px solid transparent; border-radius: 13px; background: var(--preview-action); color: var(--preview-action-ink); font-family: var(--preview-ui); font-size: 13px; font-weight: 600; box-shadow: none; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-toolbar { display: flex; gap: 16px; justify-content: space-between; align-items: center; border: 1px solid var(--preview-line); border-radius: 18px; padding: 14px 18px; background: var(--preview-surface); margin-bottom: 12px; box-shadow: var(--preview-shadow); }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-period { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-period h2 { font-family: var(--preview-display); font-size: 32px; font-weight: 400; letter-spacing: -.025em; line-height: 1.2; margin: 0 14px 0 0; min-width: 0; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-icon-button { width: 44px; padding: 8px; font-size: 19px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-views { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--preview-line); border-radius: 14px; background: var(--preview-field); box-shadow: none; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-views button { min-width: 60px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--preview-muted); padding-inline: 12px; font-size: 12px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-views .is-current { background: var(--preview-row); color: var(--preview-accent); border-color: var(--preview-accent); box-shadow: none; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-filter-disclosure { padding: 0; border: 1px solid var(--preview-line); border-radius: 15px; background: var(--preview-surface); margin-bottom: 18px; box-shadow: none; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-filter-disclosure > summary { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 10px 16px; box-sizing: border-box; color: var(--preview-ink); font-size: 12px; cursor: pointer; list-style: none; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-filter-disclosure > summary::before { content: '+'; color: var(--preview-accent); }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-filter-disclosure[open] > summary::before { content: '−'; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; align-items: end; border: 0; border-top: 1px solid var(--preview-line); border-radius: 0; padding: 16px; background: transparent; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed :is(#panel-calendar,#calendar-event-dialog) .calendar-field { min-width: 0; font-size: 12px; gap: 8px; color: var(--preview-ink); }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed :is(#panel-calendar,#calendar-event-dialog) .calendar-field > span { color: var(--preview-muted); }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed :is(#panel-calendar,#calendar-event-dialog) .calendar-field :is(input,select,textarea), html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed :is(#panel-calendar,#calendar-event-dialog) .localized-control-input { min-height: 44px; padding: 10px 12px; border: 1px solid var(--preview-control-line); border-radius: 12px; background: var(--preview-field); color: var(--preview-ink); font-family: var(--preview-ui); font-size: 14px; line-height: 1.5; box-sizing: border-box; min-width: 0; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed :is(#panel-calendar,#calendar-event-dialog) .calendar-field:has(input[type=checkbox]) { min-height: 44px; align-items: center; grid-column: 1/-1; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed :is(#panel-calendar,#calendar-event-dialog) .calendar-field input[type=checkbox] { width: 20px; height: 20px; min-width: 20px; max-width: 20px; min-height: 20px; max-height: 20px; flex: 0 0 20px; padding: 0; accent-color: var(--preview-accent); }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-content { border: 1px solid var(--preview-line); border-radius: 22px; background: var(--preview-surface); box-shadow: var(--preview-shadow); min-height: 0; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar :is(.calendar-board,.calendar-grid,.calendar-inspector) { background: transparent; background-image: none; border-color: var(--preview-line); box-shadow: none; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-inspector { padding: 24px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-weekdays { background: var(--preview-row); border-color: var(--preview-line); }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-weekdays span { color: var(--preview-muted); font-size: 12px; padding: 14px 2px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-date { min-height: 105px; min-width: 0; padding: 10px 8px; gap: 8px; border: 0; border-inline-end: 1px solid var(--preview-line); border-bottom: 1px solid var(--preview-line); border-radius: 0; background: transparent; color: var(--preview-ink); box-shadow: none; overflow: hidden; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-date:is(.is-weekend,.is-outside,:nth-child(7n),:nth-child(7n+6)) { background: var(--preview-row); }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-date:nth-child(7n) { border-inline-end: 0; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-date.is-outside .calendar-date-number { color: var(--preview-muted); }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-date[aria-pressed=true] { background: var(--preview-row); outline: 2px solid var(--preview-accent); outline-offset: -2px; box-shadow: none; border-color: var(--preview-line); }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-date-number { min-width: 28px; line-height: 28px; font-family: var(--preview-ui); font-size: 12px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-date:is([aria-current=date],[aria-pressed=true]) .calendar-date-number { background: var(--preview-accent); color: var(--preview-action-ink); min-height: 28px; min-width: 28px; line-height: 28px; border-radius: 50%; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-date:focus-visible { outline: 3px solid var(--preview-accent); outline-offset: -4px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-cell-previews { gap: 4px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-cell-item { color: var(--preview-ink); background: var(--preview-row); border-color: var(--preview-accent); border-radius: 4px; font-size: 11px; line-height: 1.6; padding: 3px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar :is(.calendar-count,.calendar-more) { color: var(--preview-muted); font-size: 11px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar :is(.calendar-selected-day,.calendar-agenda-day) h3 { font-family: var(--preview-display); font-size: 24px; font-weight: 400; line-height: 1.3; color: var(--preview-ink); }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-item { background: transparent; padding: 16px 0; border-color: var(--preview-line); }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-item-body { border-color: var(--preview-accent); }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-item strong { font-family: var(--preview-ui); font-size: 14px; line-height: 1.55; font-weight: 600; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-item :is(.calendar-item-time,.calendar-item-meta,.calendar-completed) { color: var(--preview-muted); font-size: 11px; line-height: 1.7; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-item .calendar-item-notes { color: var(--preview-muted); font-size: 12px; line-height: 1.7; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-item-actions { gap: 8px; flex-wrap: wrap; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-item-actions button { min-height: 44px; padding: 10px 14px; border-radius: 12px; background: var(--preview-row); font-size: 12px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-content:not([data-view=month]) .calendar-board { padding: 24px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-content[data-view=day] .calendar-board { grid-template-columns: minmax(0,1fr); }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-empty { color: var(--preview-muted); font-family: var(--preview-display); font-size: 26px; line-height: 1.4; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-note { color: var(--preview-muted); font-size: 12px; padding: 10px 14px; border: 1px solid var(--preview-line); border-radius: 12px; background: var(--preview-surface); }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-feedback:not(:empty) { color: var(--preview-ink); font-size: 12px; padding: 10px 14px; border: 1px solid var(--preview-line); border-radius: 12px; background: var(--preview-surface); }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #calendar-event-dialog { background: var(--preview-dialog-surface); background-image: none; color: var(--preview-ink); font-family: var(--preview-ui); border: 1px solid var(--preview-line); border-radius: 24px; padding: 24px; box-shadow: var(--preview-shadow); backdrop-filter: none; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #calendar-event-dialog::backdrop { background: rgb(8 7 10 / .63); backdrop-filter: none; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #calendar-event-dialog h2 { font-family: var(--preview-display); font-size: 32px; font-weight: 400; letter-spacing: -.025em; line-height: 1.25; margin: 0 0 22px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #calendar-event-dialog :is(.calendar-clock-options,.calendar-warning,.calendar-feedback:not(:empty)) { padding: 12px; border: 1px solid var(--preview-line); border-radius: 14px; background: var(--preview-row); color: var(--preview-ink); font-size: 12px; line-height: 1.7; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #calendar-event-dialog .calendar-clock-options { padding: 0; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #calendar-event-dialog .calendar-clock-options > summary { padding: 12px; border: 0; border-radius: 14px; color: var(--preview-muted); }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #calendar-event-dialog .calendar-clock-fields { padding: 0 12px 12px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #calendar-event-dialog .calendar-dialog-actions { border-color: var(--preview-line); gap: 8px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #calendar-event-dialog .calendar-note { color: var(--preview-muted); font-size: 12px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed .localized-picker[open] { background: var(--preview-dialog-surface); color: var(--preview-ink); }
html[data-rattib-material="glass"][data-theme="light"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-eyebrow { color: var(--preview-ink); }
html[data-rattib-material="glass"][lang="ar"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-head h1 { font-size: 44px; letter-spacing: -.02em; }
html[data-rattib-material="glass"][lang="ar"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-period h2 { font-size: 27px; }
@media (max-width:1100px) {
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-content { grid-template-columns: minmax(0,1fr); }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-inspector { border-inline-start: 0; border-top: 1px solid var(--preview-line); }
}
@media (max-width:700px) {
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-head { gap: 12px; margin: 0 0 16px; flex-wrap: nowrap; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-head h1 { font-size: 42px; margin-bottom: 8px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-head .calendar-primary { flex: 0 0 auto; width: auto; min-width: 44px; max-width: none; padding: 12px 14px; font-size: 12px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-eyebrow { font-size: 12px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-toolbar { gap: 12px; padding: 12px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-period { width: 100%; gap: 6px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-period h2 { flex: 1 1 100%; font-size: 28px; margin: 0; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-views { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); width: 100%; padding: 3px; gap: 3px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-views button { min-width: 0; white-space: nowrap; padding: 8px 4px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-filter-disclosure { margin-bottom: 14px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-filters { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 14px; gap: 14px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed :is(#panel-calendar,#calendar-event-dialog) .calendar-field { font-size: 12px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed :is(#panel-calendar,#calendar-event-dialog) .calendar-field :is(input,select,textarea), html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed :is(#panel-calendar,#calendar-event-dialog) .localized-control-input { font-size: 16px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-weekdays span { padding: 10px 1px; font-size: 11px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-date { min-height: 62px; padding: 7px 3px; gap: 3px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-cell-previews { display: none; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-count { display: block; color: var(--preview-muted); font-size: 11px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-inspector { padding: 18px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-content:not([data-view=month]) .calendar-board { grid-template-columns: minmax(0,1fr); gap: 24px; padding: 18px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-period h2, html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #calendar-event-dialog h2 { overflow-wrap: anywhere; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #calendar-event-dialog { padding: 18px; border-radius: 22px; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #calendar-event-dialog .calendar-form-fields, html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #calendar-event-dialog .calendar-clock-fields { grid-template-columns: minmax(0,1fr); }
html[data-rattib-material="glass"][lang="ar"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-head h1 { font-size: 32px; }
html[data-rattib-material="glass"][lang="ar"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-period h2 { font-size: 23px; }
}
@media (forced-colors:active) {
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #calendar-event-dialog { background: Canvas; color: CanvasText; border-color: CanvasText; }
html[data-rattib-material="glass"][data-route-surface="calendar"]:not(#_) body.workspace-framed #panel-calendar .calendar-date:is([aria-current=date],[aria-pressed=true]) .calendar-date-number { color: HighlightText; background: Highlight; }
}
