/* Family Operations — isolated calendar concept at /calender_test */

.ops-app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(rgba(var(--primary-rgb), 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.018) 1px, transparent 1px),
    radial-gradient(900px 520px at 58% -10%, rgba(var(--primary-rgb), 0.09), transparent 66%),
    var(--bg);
  background-size: 40px 40px, 40px 40px, auto, auto;
  color: var(--text);
}

.ops-app.is-embedded {
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
}

.ops-app.is-embedded .ops-shell {
  padding: 0;
}

.ops-app button,
.ops-app a {
  font: inherit;
}

.ops-app button:focus-visible,
.ops-app a:focus-visible {
  outline: 2px solid rgba(var(--primary-rgb), 0.85);
  outline-offset: 2px;
}

.ops-nav {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  padding: 14px 9px;
  border-right: 1px solid var(--nav-border);
  background: var(--nav-bg);
  box-shadow: var(--nav-shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.ops-brand {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  margin-bottom: 26px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-2);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.22);
}

.ops-brand img {
  width: 35px;
  height: 35px;
  border-radius: 10px;
}

.ops-nav-items {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.ops-nav-items a,
.ops-nav-settings {
  position: relative;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--text-faint);
  text-decoration: none;
  transition: 160ms ease;
}

.ops-nav-items a:hover,
.ops-nav-settings:hover {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--text-strong);
}

.ops-nav-items a.is-active {
  border-color: var(--accent-strong-border);
  background: var(--nav-active-bg);
  color: var(--accent-strong-ink);
  box-shadow: inset 0 0 18px rgba(var(--primary-rgb), 0.08), 0 8px 24px rgba(var(--primary-rgb), 0.08);
}

.ops-nav-items a.is-active::before {
  position: absolute;
  left: -10px;
  width: 2px;
  height: 20px;
  border-radius: 0 3px 3px 0;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  content: '';
}

.ops-shell {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 7px;
}

.ops-header {
  display: flex;
  min-width: 0;
  min-height: 66px;
  flex: 0 0 66px;
  align-items: center;
  gap: 12px;
  padding: 8px 11px 8px 15px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--glass-bg) 88%, transparent);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.ops-header-title {
  min-width: 230px;
}

.ops-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-faint);
  font-family: var(--font-micro);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ops-eyebrow i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 7px rgba(var(--primary-rgb), 0.7);
}

.ops-eyebrow b {
  color: rgb(var(--primary-rgb));
  font-size: inherit;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ops-header-title > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 4px;
}

.ops-header-title h1 {
  overflow: hidden;
  color: var(--text-strong);
  font-family: var(--font-heading);
  font-size: clamp(17px, 1.45vw, 23px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-header-title > div > span {
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.ops-date-controls,
.ops-view-switcher {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-1);
}

.ops-date-controls button,
.ops-view-switcher button,
.ops-theme-button,
.ops-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: 150ms ease;
}

.ops-date-controls button {
  width: 31px;
  height: 31px;
}

.ops-date-controls button:hover,
.ops-view-switcher button:hover,
.ops-theme-button:hover,
.ops-icon-button:hover {
  background: var(--surface-2);
  color: var(--text-strong);
}

.ops-date-controls .ops-today-button {
  width: auto;
  padding: 0 10px;
  border-right: 1px solid var(--border-faint);
  border-left: 1px solid var(--border-faint);
  color: var(--text-subtle);
  font-family: var(--font-micro);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-header-spacer {
  flex: 1;
}

.ops-theme-button {
  height: 33px;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-1);
  color: var(--text-subtle);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ops-view-switcher {
  gap: 3px;
  padding: 3px;
}

.ops-view-switcher button {
  min-width: 52px;
  height: 27px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
}

.ops-view-switcher button.is-active {
  background: var(--accent-strong-bg);
  box-shadow: inset 0 0 0 1px var(--accent-strong-border);
  color: var(--accent-strong-ink);
}

.ops-content {
  display: grid;
  min-width: 0;
  min-height: 0;
  flex: 1;
  grid-template-columns: 232px minmax(490px, 1fr) 286px;
  gap: 11px;
}

.ops-content.is-month {
  grid-template-columns: minmax(680px, 1fr) 286px;
}

.ops-weather,
.ops-calendar-panel,
.ops-actions {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--glass-bg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
}

.ops-weather {
  display: flex;
  flex-direction: column;
  padding: 15px 13px 13px;
  overflow: hidden;
}

.ops-panel-heading,
.ops-action-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ops-panel-heading h2,
.ops-action-header h2 {
  margin-top: 4px;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.ops-icon-button {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-1);
}

.ops-icon-button.is-loading svg {
  animation: ops-spin 900ms linear infinite;
}

@keyframes ops-spin {
  to { transform: rotate(360deg); }
}

.ops-weather-current {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
  padding: 13px 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(var(--secondary-rgb), 0.055)),
    var(--surface-1);
}

.ops-weather-glyph {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--text-muted);
}

.ops-weather-glyph.is-sun { color: #f2bc5b; }
.ops-weather-glyph.is-rain { color: #65b8ff; }
.ops-weather-glyph.is-snow { color: #a7dcff; }
.ops-weather-glyph.is-storm { color: #c492ff; }
.ops-weather-glyph.is-cloud { color: var(--text-muted); }

.ops-weather-current > div:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.ops-weather-current > div:nth-child(2) strong {
  color: var(--text-strong);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.ops-weather-current > div:nth-child(2) span {
  overflow: hidden;
  margin-top: 5px;
  color: var(--text-subtle);
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-weather-range {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}

.ops-weather-range b {
  color: #ef8b7c;
  font-size: 14px;
}

.ops-weather-range span {
  color: #6aaef2;
  font-size: 12px;
  font-weight: 700;
}

.ops-weather-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 8px 2px 9px;
  border-bottom: 1px solid var(--border-faint);
  color: var(--text-faint);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.ops-weather-meta span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-status-dot,
.ops-pulse-status i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #49d69b;
  box-shadow: 0 0 8px rgba(73, 214, 155, 0.7);
}

.ops-hourly-list,
.ops-week-weather {
  min-height: 0;
  flex: 1;
  overflow: auto;
}

.ops-hourly-row {
  display: grid;
  grid-template-columns: 34px 24px minmax(0, 1fr) 31px 29px;
  align-items: center;
  gap: 5px;
  min-height: 43px;
  border-bottom: 1px solid var(--border-faint);
  color: var(--text-subtle);
}

.ops-hourly-row:last-child,
.ops-week-weather-row:last-child {
  border-bottom: 0;
}

.ops-hourly-time {
  color: var(--text-muted);
  font-family: var(--font-micro);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ops-hourly-condition {
  overflow: hidden;
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-hourly-rain {
  color: #65b8ff;
  font-family: var(--font-micro);
  font-size: 8px;
  font-weight: 700;
}

.ops-hourly-row > strong {
  color: var(--text-strong);
  font-size: 11px;
  text-align: right;
}

.ops-week-weather-row {
  display: grid;
  grid-template-columns: 37px 25px minmax(0, 1fr) 29px 28px;
  align-items: center;
  gap: 5px;
  min-height: 47px;
  padding: 0 3px;
  border-bottom: 1px solid var(--border-faint);
  border-radius: 8px;
}

.ops-week-weather-row.is-selected {
  background: rgba(var(--primary-rgb), 0.06);
}

.ops-week-weather-row > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ops-week-weather-row > div:first-child strong {
  color: var(--text-muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.ops-week-weather-row > div:first-child span {
  color: var(--text-strong);
  font-size: 11px;
  font-weight: 700;
}

.ops-week-weather-text {
  overflow: hidden;
  color: var(--text-subtle);
  font-size: 8px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-week-weather-row > strong {
  color: var(--text-strong);
  font-size: 10px;
  text-align: right;
}

.ops-weather-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding-top: 9px;
  border-top: 1px solid var(--border-faint);
}

.ops-weather-footer span {
  padding: 6px 2px;
  border: 1px solid var(--border-faint);
  border-radius: 7px;
  background: var(--surface-1);
  color: var(--text-faint);
  font-size: 7px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.ops-empty {
  display: grid;
  min-height: 90px;
  place-items: center;
  padding: 18px;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.ops-calendar-panel {
  position: relative;
  overflow: hidden;
}

.ops-day-view {
  overflow: hidden;
}

.ops-lane-header,
.ops-week-header {
  position: sticky;
  z-index: 6;
  top: 0;
  display: grid;
  min-width: 0;
  height: 62px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--glass-bg) 94%, transparent);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.ops-lane-header {
  min-width: var(--day-min-width, 568px);
  grid-template-columns: 58px repeat(var(--member-count, 3), minmax(160px, 1fr));
}

.ops-lane-time-label {
  display: grid;
  place-items: center;
  color: var(--text-faint);
  font-family: var(--font-micro);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.ops-member-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border-left: 1px solid var(--border-faint);
}

.ops-avatar {
  display: inline-grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--member-color) 65%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--member-color) 13%, var(--surface-1));
  box-shadow: inset 0 0 0 2px var(--surface-1), 0 0 13px color-mix(in srgb, var(--member-color) 16%, transparent);
  color: var(--member-color);
  font-family: var(--font-micro);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.ops-avatar.is-small {
  width: 22px;
  height: 22px;
  font-size: 6px;
}

.ops-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.ops-member-heading > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.ops-member-heading strong {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-member-heading span {
  color: var(--text-faint);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ops-member-heading > b {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  place-items: center;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-1);
  color: var(--text-faint);
  font-size: 8px;
}

.ops-timeline-scroll,
.ops-week-scroll {
  position: absolute;
  inset: 0;
  overflow: auto;
}

.ops-day-view > .ops-timeline-scroll {
  min-width: 0;
}

.ops-day-inner {
  min-width: var(--day-min-width, 568px);
  min-height: 100%;
}

.ops-date-band {
  position: sticky;
  z-index: 5;
  top: 62px;
  display: grid;
  height: 62px;
  min-height: 62px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--glass-bg) 97%, var(--surface-1));
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ops-day-date-band {
  min-width: var(--day-min-width, 568px);
  grid-template-columns: 58px repeat(var(--member-count, 3), minmax(160px, 1fr));
}

.ops-week-date-band {
  grid-template-columns: 58px repeat(7, minmax(90px, 1fr));
}

.ops-date-band-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-right: 1px solid var(--border-faint);
  color: var(--text-faint);
  font-family: var(--font-micro);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.ops-date-band-cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  gap: 3px;
  padding: 5px;
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid var(--border-faint);
  scrollbar-color: var(--border) transparent;
  scrollbar-width: thin;
}

.ops-date-band-cell:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -2px;
}

.ops-date-band-cell:last-child {
  border-right: 0;
}

.ops-date-chip {
  display: flex;
  width: 100%;
  height: 23px;
  min-height: 23px;
  min-width: 0;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--event-color) 34%, var(--border));
  border-left: 2px solid var(--event-color);
  border-radius: 6px;
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--event-color) 13%, transparent), transparent 72%),
    color-mix(in srgb, var(--surface-1) 94%, var(--glass-bg));
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.ops-date-chip:hover {
  border-color: color-mix(in srgb, var(--event-color) 58%, var(--border));
  background: color-mix(in srgb, var(--event-color) 12%, var(--surface-1));
}

.ops-date-chip.is-middle {
  border-radius: 3px;
}

.ops-date-chip.is-start {
  border-radius: 6px 3px 3px 6px;
}

.ops-date-chip.is-end {
  border-radius: 3px 6px 6px 3px;
}

.ops-date-chip.is-birthday {
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--event-color) 19%, transparent), rgba(var(--secondary-rgb), 0.05)),
    color-mix(in srgb, var(--surface-1) 92%, var(--glass-bg));
}

.ops-date-chip-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: color-mix(in srgb, var(--event-color) 76%, var(--text));
}

.ops-date-chip-kind {
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--event-color) 72%, var(--text-muted));
  font-family: var(--font-micro);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.ops-date-chip strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 8px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-date-band-more {
  padding-left: 5px;
  color: var(--text-faint);
  font-size: 7px;
  font-weight: 700;
}

.ops-day-timeline {
  position: relative;
  display: grid;
  min-width: var(--day-min-width, 568px);
  grid-template-columns: 58px repeat(var(--member-count, 3), minmax(160px, 1fr));
  min-height: var(--timeline-height);
}

.ops-time-scale {
  position: relative;
  grid-column: 1;
  height: var(--timeline-height);
  border-right: 1px solid var(--border-faint);
  background: var(--surface-1);
}

.ops-time-scale span {
  position: absolute;
  right: 9px;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-family: var(--font-micro);
  font-size: 8px;
  font-weight: 700;
}

.ops-day-lane,
.ops-week-day-lane {
  position: relative;
  height: var(--timeline-height);
  border-right: 1px solid var(--border-faint);
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hour-height, 66px) - 1px), var(--border-faint) calc(var(--hour-height, 66px) - 1px), var(--border-faint) var(--hour-height, 66px)),
    linear-gradient(180deg, rgba(var(--primary-rgb), 0.012), transparent 40%);
}

.ops-day-lane:last-of-type,
.ops-week-day-lane:last-of-type {
  border-right: 0;
}

.ops-positioned-event {
  position: absolute;
  right: 5px;
  left: 5px;
  z-index: 2;
  min-height: 36px;
}

.ops-event-card {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 36px;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
  padding: 8px 31px 7px 10px;
  border: 1px solid color-mix(in srgb, var(--event-color) 31%, var(--border));
  border-left: 2px solid var(--event-color);
  border-radius: 9px;
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--event-color) 12%, transparent), transparent 68%),
    color-mix(in srgb, var(--glass-bg) 92%, var(--surface-2));
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.13);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
}

.ops-event-card:hover {
  z-index: 3;
  border-color: color-mix(in srgb, var(--event-color) 55%, var(--border));
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.2), 0 0 18px color-mix(in srgb, var(--event-color) 10%, transparent);
  transform: translateY(-1px);
}

.ops-event-card.is-transport {
  border-style: solid;
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--event-color) 15%, transparent), rgba(var(--primary-rgb), 0.04)),
    color-mix(in srgb, var(--glass-bg) 92%, var(--surface-2));
}

.ops-event-time {
  color: color-mix(in srgb, var(--event-color) 78%, var(--text));
  font-family: var(--font-micro);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.ops-event-card > strong {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-event-location {
  overflow: hidden;
  color: var(--text-subtle);
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-event-card > .ops-avatar {
  position: absolute;
  right: 6px;
  bottom: 6px;
}

.ops-event-card.is-compact {
  gap: 2px;
  padding: 7px 5px;
}

.ops-event-card.is-compact > strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 9px;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ops-event-card.is-compact .ops-avatar {
  display: none;
}

.ops-event-card.is-dense {
  gap: 2px;
  padding: 5px 7px;
}

.ops-event-card.is-dense .ops-event-location,
.ops-event-card.is-dense > .ops-avatar {
  display: none;
}

.ops-event-card.is-dense > strong {
  font-size: 9px;
}

.ops-now-line {
  position: absolute;
  right: 0;
  left: 58px;
  z-index: 3;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 7px rgba(var(--accent-rgb), 0.6);
  pointer-events: none;
}

.ops-now-line span {
  position: absolute;
  left: -3px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.ops-now-line.is-lane {
  right: 0;
  left: 0;
}

.ops-week-inner {
  min-width: 688px;
  min-height: 100%;
}

.ops-week-header {
  grid-template-columns: 58px repeat(7, minmax(90px, 1fr));
}

.ops-week-day-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-left: 1px solid var(--border-faint);
}

.ops-week-day-heading.is-today {
  background: rgba(var(--primary-rgb), 0.06);
}

.ops-week-day-heading span {
  color: var(--text-subtle);
  font-family: var(--font-micro);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.ops-week-day-heading strong {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  color: var(--text-strong);
  font-size: 12px;
}

.ops-week-day-heading.is-today strong {
  background: var(--accent-strong-bg);
  box-shadow: inset 0 0 0 1px var(--accent-strong-border);
  color: var(--accent-strong-ink);
}

.ops-week-day-heading b {
  position: absolute;
  right: 6px;
  top: 7px;
  color: var(--text-faint);
  font-size: 7px;
}

.ops-week-timeline {
  position: relative;
  display: grid;
  grid-template-columns: 58px repeat(7, minmax(90px, 1fr));
  min-height: var(--timeline-height);
}

.ops-week-day-lane.is-today {
  background:
    repeating-linear-gradient(to bottom, rgba(var(--primary-rgb), 0.035) 0, rgba(var(--primary-rgb), 0.035) calc(var(--hour-height, 66px) - 1px), rgba(var(--primary-rgb), 0.11) calc(var(--hour-height, 66px) - 1px), rgba(var(--primary-rgb), 0.11) var(--hour-height, 66px));
}

.ops-month-view {
  display: flex;
  min-width: 680px;
  flex-direction: column;
}

.ops-month-weekdays {
  display: grid;
  height: 36px;
  flex: 0 0 36px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}

.ops-month-weekdays span {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--border-faint);
  color: var(--text-faint);
  font-family: var(--font-micro);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.ops-month-weekdays span:last-child {
  border-right: 0;
}

.ops-month-grid {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(88px, 1fr));
  overflow: auto;
}

.ops-month-cell {
  position: relative;
  min-width: 0;
  min-height: 88px;
  padding: 7px 7px 5px;
  overflow: hidden;
  border-right: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
  background: linear-gradient(145deg, transparent, rgba(var(--primary-rgb), 0.008));
}

.ops-month-cell:nth-child(7n) {
  border-right: 0;
}

.ops-month-cell.is-outside {
  opacity: 0.36;
  background: var(--surface-1);
}

.ops-month-cell.is-today {
  background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.075), rgba(var(--secondary-rgb), 0.025));
  box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.28);
}

.ops-month-date {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-micro);
  font-size: 9px;
  font-weight: 700;
}

.ops-month-cell.is-today .ops-month-date {
  background: var(--accent-strong-bg);
  box-shadow: inset 0 0 0 1px var(--accent-strong-border);
  color: var(--accent-strong-ink);
}

.ops-month-events {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.ops-month-event {
  display: grid;
  min-width: 0;
  height: 21px;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  padding: 0 5px;
  border: 1px solid color-mix(in srgb, var(--event-color) 20%, var(--border-faint));
  border-radius: 5px;
  background: color-mix(in srgb, var(--event-color) 8%, var(--surface-1));
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.ops-month-event:hover {
  border-color: color-mix(in srgb, var(--event-color) 45%, var(--border));
  background: color-mix(in srgb, var(--event-color) 13%, var(--surface-1));
}

.ops-month-event i {
  width: 3px;
  height: 10px;
  border-radius: 4px;
  background: var(--event-color);
}

.ops-month-event > svg {
  color: color-mix(in srgb, var(--event-color) 78%, var(--text));
}

.ops-month-event.is-date-event {
  border-color: color-mix(in srgb, var(--event-color) 30%, var(--border-faint));
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--event-color) 13%, transparent), transparent 76%),
    var(--surface-1);
}

.ops-month-event.is-birthday {
  box-shadow: inset 0 0 0 1px rgba(var(--secondary-rgb), 0.04);
}

.ops-month-event span {
  overflow: hidden;
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-month-event b {
  color: var(--text-subtle);
  font-family: var(--font-micro);
  font-size: 7px;
  font-weight: 700;
}

.ops-month-more {
  width: max-content;
  max-width: 100%;
  padding-left: 7px;
  border: 0;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 7px;
  font-weight: 700;
  text-align: left;
}

.ops-month-more:hover,
.ops-month-more:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

.ops-actions {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding: 16px 14px 13px;
  overflow: auto;
  border-color: color-mix(in srgb, var(--primary) 18%, var(--glass-border));
  background:
    linear-gradient(160deg, rgba(var(--primary-rgb), 0.035), transparent 34%),
    var(--glass-bg);
  box-shadow: -9px 0 30px rgba(0, 0, 0, 0.11), 0 13px 40px rgba(0, 0, 0, 0.22), inset 1px 0 rgba(var(--primary-rgb), 0.07);
  transform: translateZ(0);
}

.ops-action-count {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--accent-strong-border);
  border-radius: 9px;
  background: var(--accent-strong-bg);
  color: var(--accent-strong-ink);
  font-family: var(--font-micro);
  font-size: 10px;
  font-weight: 800;
}

.ops-action-intro {
  margin: 8px 0 15px;
  color: var(--text-subtle);
  font-size: 9px;
  line-height: 1.55;
}

.ops-action-section-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 3px 0 8px;
  color: var(--text-faint);
  font-family: var(--font-micro);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ops-action-section-heading i {
  height: 1px;
  flex: 1;
  background: var(--border-faint);
}

.ops-action-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 13px;
}

.ops-action-card {
  --action-color: var(--primary);
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--action-color) 25%, var(--border));
  border-left: 2px solid var(--action-color);
  border-radius: 10px;
  background: color-mix(in srgb, var(--action-color) 6%, var(--surface-1));
}

.ops-action-card.is-danger { --action-color: #ff6f85; }
.ops-action-card.is-weather { --action-color: #5eb9f5; }
.ops-action-card.is-info { --action-color: #9b7cf3; }

.ops-action-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--action-color);
  font-family: var(--font-micro);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.ops-action-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--action-color) 30%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--action-color) 8%, transparent);
}

.ops-action-card h3 {
  margin-top: 8px;
  color: var(--text-strong);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.ops-action-card p {
  margin-top: 4px;
  color: var(--text-subtle);
  font-size: 9px;
  line-height: 1.5;
}

.ops-action-card button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 5px 7px;
  border: 1px solid color-mix(in srgb, var(--action-color) 30%, var(--border));
  border-radius: 6px;
  background: color-mix(in srgb, var(--action-color) 8%, var(--surface-1));
  color: var(--action-color);
  cursor: pointer;
  font-size: 7px;
  font-weight: 800;
}

.ops-action-card button:hover {
  background: color-mix(in srgb, var(--action-color) 14%, var(--surface-1));
}

.ops-all-clear {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, #49d69b 22%, var(--border));
  border-radius: 10px;
  background: color-mix(in srgb, #49d69b 5%, var(--surface-1));
}

.ops-all-clear > span {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: color-mix(in srgb, #49d69b 10%, transparent);
  color: #49d69b;
}

.ops-all-clear strong {
  color: var(--text-strong);
  font-size: 10px;
}

.ops-all-clear p {
  margin-top: 2px;
  color: var(--text-subtle);
  font-size: 9px;
  line-height: 1.4;
}

.ops-next-card {
  position: relative;
  display: flex;
  min-height: 72px;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 13px;
  padding: 11px 36px 11px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-1);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.ops-next-card:hover {
  border-color: var(--accent-strong-border);
  background: var(--surface-2);
}

.ops-next-card > svg {
  position: absolute;
  right: 11px;
  top: 50%;
  color: var(--text-faint);
  transform: translateY(-50%);
}

.ops-next-time {
  color: rgb(var(--primary-rgb));
  font-family: var(--font-micro);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ops-next-card strong {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-next-card > span:last-of-type {
  overflow: hidden;
  color: var(--text-subtle);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-family-pulse {
  margin-top: auto;
}

.ops-family-pulse-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--border-faint);
  border-radius: 10px;
  background: var(--surface-1);
}

.ops-avatar-stack {
  display: flex;
  padding-left: 5px;
}

.ops-avatar-stack .ops-avatar {
  margin-left: -5px;
  box-shadow: 0 0 0 2px var(--glass-bg);
}

.ops-family-pulse-row > div:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.ops-family-pulse-row > div:nth-child(2) strong {
  color: var(--text-strong);
  font-size: 8px;
}

.ops-family-pulse-row > div:nth-child(2) span {
  color: var(--text-faint);
  font-size: 7px;
}

.ops-pulse-status {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: #49d69b;
  font-family: var(--font-micro);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ops-preview-note {
  display: flex;
  min-width: 0;
  height: 15px;
  flex: 0 0 15px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
  color: var(--text-faint);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.ops-preview-note span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-dialog-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--scrim-bg);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  animation: ops-fade 150ms ease-out;
}

@keyframes ops-fade {
  from { opacity: 0; }
}

.ops-dialog {
  position: relative;
  width: min(410px, 100%);
  padding: 23px;
  border: 1px solid var(--accent-strong-border);
  border-radius: 17px;
  background: var(--glass-bg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38), 0 0 40px rgba(var(--primary-rgb), 0.09);
  color: var(--text);
}

.ops-dialog-close {
  position: absolute;
  right: 13px;
  top: 13px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-1);
  color: var(--text-muted);
  cursor: pointer;
}

.ops-dialog h2 {
  margin-top: 8px;
  padding-right: 35px;
  color: var(--text-strong);
  font-size: 22px;
  letter-spacing: -0.035em;
}

.ops-dialog-member {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 19px;
  padding: 10px;
  border: 1px solid var(--border-faint);
  border-radius: 11px;
  background: var(--surface-1);
}

.ops-dialog-member > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ops-dialog-member strong {
  color: var(--text-strong);
  font-size: 11px;
}

.ops-dialog-member span {
  color: var(--text-faint);
  font-size: 8px;
}

.ops-dialog dl {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}

.ops-dialog dl > div {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-faint);
}

.ops-dialog dt {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-faint);
  font-size: 9px;
  font-weight: 700;
}

.ops-dialog dd {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.6;
}

.ops-primary-button {
  width: 100%;
  height: 38px;
  border: 1px solid var(--accent-strong-border);
  border-radius: 10px;
  background: var(--accent-strong-bg);
  color: var(--accent-strong-ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.ops-toast {
  position: fixed;
  z-index: 150;
  left: 50%;
  bottom: 24px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 14px;
  border: 1px solid var(--accent-strong-border);
  border-radius: 10px;
  background: var(--glass-bg);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.26);
  color: var(--text-strong);
  font-size: 9px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: 180ms ease;
}

.ops-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1280px) {
  .ops-content { grid-template-columns: 210px minmax(470px, 1fr) 258px; }
  .ops-content.is-month { grid-template-columns: minmax(650px, 1fr) 258px; }
  .ops-header-title { min-width: 205px; }
  .ops-theme-button span { display: none; }
  .ops-theme-button { width: 33px; padding: 0; }
  .ops-weather { padding-right: 10px; padding-left: 10px; }
  .ops-actions { padding-right: 11px; padding-left: 11px; }
}

@media (max-width: 1050px) {
  .ops-shell { overflow: auto; }
  .ops-header { position: sticky; z-index: 12; top: 0; }
  .ops-content,
  .ops-content.is-month {
    min-height: 860px;
    flex: 0 0 auto;
    grid-template-columns: 215px minmax(620px, 1fr);
    grid-template-rows: minmax(650px, 1fr) auto;
  }
  .ops-content.is-month { grid-template-columns: minmax(760px, 1fr); }
  .ops-content.is-month .ops-calendar-panel { min-height: 700px; }
  .ops-actions { grid-column: 1 / -1; min-height: 260px; }
  .ops-content:not(.is-month) .ops-actions { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(220px, .75fr); column-gap: 18px; }
  .ops-content:not(.is-month) .ops-action-header,
  .ops-content:not(.is-month) .ops-action-intro,
  .ops-content:not(.is-month) .ops-action-list { grid-column: 1; }
  .ops-content:not(.is-month) .ops-action-section-heading:nth-of-type(2),
  .ops-content:not(.is-month) .ops-next-card,
  .ops-content:not(.is-month) .ops-family-pulse { grid-column: 2; }
  .ops-header-title > div > span { display: none; }
}

@media (max-width: 800px) {
  body[data-operations-standalone="true"] { overflow: auto; }
  body[data-operations-standalone="true"] #root { height: auto; min-height: 100dvh; overflow: visible; }
  .ops-app {
    display: block;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .ops-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 80;
    height: 66px;
    flex-direction: row;
    justify-content: center;
    gap: 14px;
    padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border-top: 1px solid var(--nav-border);
    border-right: 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
  }
  .ops-brand { width: 39px; height: 39px; margin: 0 6px 0 0; }
  .ops-brand img { width: 32px; height: 32px; }
  .ops-nav-items { flex: 0 1 auto; flex-direction: row; gap: 7px; }
  .ops-nav-items a,
  .ops-nav-settings { width: 39px; height: 39px; }
  .ops-nav-items a.is-active::before { inset: auto 10px -9px; width: auto; height: 2px; border-radius: 3px 3px 0 0; }
  .ops-shell { display: block; overflow: visible; padding: 9px 9px 84px; }
  .ops-header {
    position: relative;
    display: grid;
    height: auto;
    min-height: 116px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 9px;
    padding: 12px;
  }
  .ops-header-title { min-width: 0; }
  .ops-header-spacer { display: none; }
  .ops-date-controls { justify-self: end; }
  .ops-theme-button { grid-column: 1; grid-row: 2; justify-self: start; width: auto; padding: 0 10px; }
  .ops-theme-button span { display: inline; }
  .ops-view-switcher { grid-column: 2; grid-row: 2; }
  .ops-view-switcher button { min-width: 45px; padding: 0 7px; }
  .ops-content,
  .ops-content.is-month {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 9px;
  }
  .ops-weather { min-height: 420px; }
  .ops-calendar-panel { order: 1; min-height: 690px; }
  .ops-weather { order: 2; }
  .ops-actions { order: 3; }
  .ops-day-view,
  .ops-week-view { overflow: hidden; }
  .ops-day-inner { min-width: max(650px, var(--day-min-width, 650px)); }
  .ops-month-view { min-width: 680px; }
  .ops-content.is-month { overflow-x: auto; }
  .ops-actions { display: flex !important; min-height: 540px; }
  .ops-preview-note { display: none; }

  .ops-app.is-embedded {
    display: block;
    height: 100%;
    min-height: 0;
    overflow: auto;
  }

  .ops-app.is-embedded .ops-shell {
    padding: 0;
  }
}

@media (max-width: 520px) {
  .ops-header-title h1 { font-size: 16px; }
  .ops-eyebrow b { display: none; }
  .ops-theme-button span { display: none; }
  .ops-theme-button { width: 33px; padding: 0; }
  .ops-view-switcher button { min-width: 41px; font-size: 9px; }
  .ops-weather { min-height: 400px; }
}

@media (prefers-reduced-motion: reduce) {
  .ops-app *,
  .ops-app *::before,
  .ops-app *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
