:root {
  --navy: #0b3654;
  --navy-2: #154d6b;
  --teal: #1c9c91;
  --teal-soft: #e8f7f4;
  --sky: #eaf3f8;
  --ink: #172a36;
  --muted: #647783;
  --line: #dce6eb;
  --paper: #ffffff;
  --bg: #f3f7f9;
  --danger: #b33f49;
  --shadow: 0 20px 60px rgba(11, 54, 84, .12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid rgba(28,156,145,.28);
  outline-offset: 2px;
}

.initial-loader { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 8px; }
.initial-loader strong { margin-top: 9px; font-size: 1.25rem; }
.initial-loader small { color: var(--muted); }
.loader-mark, .brand-mark { display: grid; place-items: center; background: var(--teal); }
.loader-mark { width: 48px; height: 48px; border-radius: 15px; animation: breathe 1.4s ease-in-out infinite; }
.loader-mark i, .brand-mark i { width: 20px; height: 11px; border: 4px solid white; border-top: 0; border-radius: 0 0 16px 16px; transform: rotate(-12deg); }
@keyframes breathe { 50% { transform: scale(1.05); opacity: .8; } }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(340px,.9fr) minmax(480px,1.1fr); }
.auth-brand { padding: clamp(34px,7vw,92px); color: white; background: radial-gradient(circle at 18% 82%,rgba(73,199,180,.28) 0 12%,transparent 34%),radial-gradient(circle at 92% 14%,rgba(255,255,255,.09) 0 15%,transparent 42%),linear-gradient(145deg,#082b43,#0b3654 58%,#116672); display: flex; flex-direction: column; justify-content: space-between; }
.brand-lockup { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 44px; height: 44px; border-radius: 14px; flex: 0 0 auto; }
.brand-lockup strong { display: block; font-size: 1.3rem; letter-spacing: -.025em; }
.brand-lockup small { display: block; color: #bcd2de; margin-top: 3px; }
.auth-message { max-width: 530px; margin: 70px 0; }
.auth-message span { color: #7ce0d0; font-size: .78rem; letter-spacing: .09em; font-weight: 850; }
.auth-message h1 { margin: 12px 0 16px; max-width: 540px; font-size: clamp(2.25rem,4.5vw,4.6rem); line-height: .98; letter-spacing: -.055em; }
.auth-message p { max-width: 490px; margin: 0; color: #d4e5eb; font-size: 1.05rem; line-height: 1.65; }
.security-note { display: flex; align-items: center; gap: 10px; color: #cce1e8; font-size: .86rem; }
.security-note span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(73,199,180,.18); color: #7ce0d0; font-weight: 900; }

.auth-main { padding: 32px clamp(22px,6vw,92px); display: grid; align-content: center; background: var(--bg); }
.auth-top { position: absolute; top: 24px; right: clamp(22px,4vw,56px); }
.text-link { color: var(--teal); text-decoration: none; font-weight: 750; }
.text-link:hover { text-decoration: underline; }
.auth-card { width: min(500px,100%); margin: 0 auto; padding: clamp(24px,4vw,40px); background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.auth-back-button { margin: 0 0 26px; padding: 0; border: 0; color: var(--teal-dark); background: transparent; font: inherit; font-weight: 850; cursor: pointer; }
.recovery-success { min-height: 390px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.recovery-success-icon { width: 68px; height: 68px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--teal); font-size: 2rem; font-weight: 900; box-shadow: 0 10px 24px rgba(28,156,145,.25); }
.recovery-success h2 { margin-bottom: 10px; }
.recovery-success p { max-width: 390px; margin: 0 0 12px; color: var(--muted); }
.recovery-success .primary-button { width: 100%; margin-top: 18px; }
.auth-card h2 { margin: 0 0 8px; font-size: clamp(1.65rem,3vw,2.1rem); letter-spacing: -.04em; }
.auth-card > p { margin: 0 0 25px; color: var(--muted); line-height: 1.55; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 25px; border-radius: 13px; background: var(--sky); }
.auth-tabs button { min-height: 43px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-weight: 750; }
.auth-tabs button.active { color: var(--navy); background: white; box-shadow: 0 3px 10px rgba(11,54,84,.09); }
.form-stack { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .9rem; font-weight: 750; }
.field input, .field select { width: 100%; min-height: 49px; padding: 11px 13px; color: var(--ink); background: white; border: 1px solid #cbd9df; border-radius: 11px; }
.field input:focus, .field select:focus { border-color: var(--teal); outline: 3px solid rgba(28,156,145,.14); }
.field-help { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.primary-button, .secondary-button, .danger-button { min-height: 48px; border-radius: 11px; padding: 11px 16px; font-weight: 800; }
.primary-button { border: 0; color: white; background: var(--teal); }
.primary-button:hover { background: #16877e; }
.secondary-button { border: 1px solid var(--line); color: var(--navy); background: white; }
.secondary-button:hover { background: #f7fbfc; }
.danger-button { border: 1px solid #edc6ca; color: var(--danger); background: #fff7f8; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 3px; }
.link-button { padding: 6px 0; border: 0; background: transparent; color: var(--teal); font-weight: 750; }
.status-box { position: relative; margin-bottom: 17px; padding: 13px 14px; border-radius: 11px; font-size: .9rem; line-height: 1.45; }
.status-box.success { color: #0b6f66; background: var(--teal-soft); border: 1px solid #bce4dd; }
.status-box.error { color: #8d3039; background: #fff2f3; border: 1px solid #efc9cd; }
.status-box.info { color: var(--navy); background: var(--sky); border: 1px solid #ccdee8; }
#app-notice { padding-right: 46px; }
#dismiss-notice { position: absolute; top: 50%; right: 10px; width: 31px; height: 31px; border: 0; border-radius: 50%; color: inherit; background: transparent; transform: translateY(-50%); font-size: 1.3rem; }
#dismiss-notice:hover { background: rgba(255,255,255,.65); }

.app-layout { min-height: 100vh; display: grid; grid-template-columns: 245px minmax(0,1fr); }
.app-sidebar { min-height: 100vh; padding: 24px 16px; color: white; background: var(--navy); display: flex; flex-direction: column; }
.app-sidebar .brand-lockup { padding: 0 8px 25px; }
.app-nav { display: grid; gap: 6px; }
.app-nav button { width: 100%; min-height: 46px; padding: 11px 13px; border: 0; border-radius: 11px; color: #d5e5ec; background: transparent; text-align: left; font-weight: 700; }
.app-nav button.active, .app-nav button:hover { color: white; background: rgba(255,255,255,.12); }
.app-nav .nav-group { display: grid; gap: 4px; margin-bottom: 14px; }
.app-nav-heading { padding: 15px 11px 5px; color: #b4ccda; font-size: .71rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.app-nav button > span { display: inline-block; width: 27px; font-size: 1.13rem; text-align: center; }
.app-nav .nav-planned { float: right; margin-top: 3px; color: #b4ccda; font-size: .69rem; font-weight: 700; }
.manager-menu-backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(7,31,46,.6); }
.manager-menu-panel { width: min(86vw,360px); height: 100%; padding: 22px 16px 36px; overflow-y: auto; color: white; background: var(--navy); box-shadow: 20px 0 45px rgba(7,31,46,.18); }
.manager-menu-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 8px 15px; font-size: 1.05rem; }
.manager-menu-header button { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; color: white; background: rgba(255,255,255,.08); font-size: 1.7rem; }
.menu-signout { margin: 10px 11px; border: 0; color: #7ce0d0; background: transparent; font-weight: 750; }
.menu-destination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.menu-destination:last-child { border-bottom: 0; }
.menu-destination strong, .menu-destination small { display: block; }
.menu-destination small { margin-top: 5px; color: var(--muted); line-height: 1.4; }
.sidebar-user { margin-top: auto; padding: 18px 8px 0; border-top: 1px solid rgba(255,255,255,.13); }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user small { margin-top: 4px; color: #bcd2de; }
.sidebar-user button { margin-top: 13px; padding: 0; border: 0; color: #7ce0d0; background: transparent; font-weight: 750; }
.app-main { min-width: 0; }
.app-header { min-height: 88px; padding: 18px clamp(20px,4vw,42px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); backdrop-filter: blur(12px); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.app-header span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.app-header h1 { margin: 4px 0 0; font-size: 1.55rem; letter-spacing: -.035em; }
.header-actions { display: flex; align-items: center; gap: 11px; }
.notification-button { position: relative; width: 43px; height: 43px; padding: 0; border: 1px solid var(--line); border-radius: 13px; color: var(--navy); background: white; display: grid; place-items: center; }
.notification-button:hover { border-color: #afd7d0; background: var(--teal-soft); }
.bell-icon { position: relative; width: 17px; height: 18px; border: 2px solid currentColor; border-radius: 9px 9px 5px 5px; }
.bell-icon::before { content: ''; position: absolute; top: -5px; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: currentColor; transform: translateX(-50%); }
.bell-icon::after { content: ''; position: absolute; bottom: -5px; left: 50%; width: 7px; height: 3px; border-radius: 0 0 7px 7px; background: currentColor; transform: translateX(-50%); }
.notification-button > strong { position: absolute; top: -6px; right: -6px; min-width: 21px; height: 21px; padding: 0 5px; border: 2px solid white; border-radius: 999px; color: white; background: var(--danger); display: grid; place-items: center; font-size: .66rem; line-height: 1; }
.role-pill { padding: 8px 11px; border-radius: 999px; color: #08746c !important; background: var(--teal-soft); font-weight: 800 !important; }
.app-content { max-width: 1250px; margin: 0 auto; padding: 30px clamp(20px,4vw,42px) 80px; }
.welcome-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 24px; }
.welcome-row h2 { margin: 0 0 6px; font-size: clamp(1.65rem,3vw,2rem); letter-spacing: -.04em; }
.welcome-row p { margin: 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.card { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 9px 24px rgba(11,54,84,.06); }
.platform-owner-pill { padding: 9px 12px; border: 1px solid #bce4dd; border-radius: 999px; color: #08746c; background: var(--teal-soft); font-size: .78rem; font-weight: 850; }
.platform-stats { margin-bottom: 20px; }
.platform-support-card { margin-bottom: 20px; }
.platform-search { padding: 0 20px 20px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
.platform-search input { min-height: 48px; padding: 11px 13px; border: 1px solid #cbd9df; border-radius: 11px; color: var(--ink); background: white; }
.platform-search input:focus { border-color: var(--teal); outline: 3px solid rgba(28,156,145,.14); }
.support-results { margin: 0 20px 20px; border-top: 1px solid var(--line); }
.support-result-row { padding: 15px 0; display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.support-result-row strong, .support-result-row small { display: block; }
.support-result-row small, .support-result-row > span { margin-top: 4px; color: var(--muted); font-size: .8rem; }
.platform-company-row { padding: 16px 20px; display: grid; grid-template-columns: minmax(220px,1.35fr) minmax(160px,.65fr) minmax(190px,.85fr) auto; align-items: center; gap: 18px; border-top: 1px solid var(--line); }
.platform-company-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.company-letter { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: var(--navy); background: var(--sky); font-weight: 900; }
.platform-company-main strong, .platform-company-main small, .platform-company-status small { display: block; overflow-wrap: anywhere; }
.platform-company-main small, .platform-company-status small { margin-top: 5px; color: var(--muted); font-size: .78rem; }
.platform-company-numbers { display: flex; gap: 18px; }
.platform-company-numbers span { display: grid; }
.platform-company-numbers strong { font-size: 1.05rem; }
.platform-company-numbers small { color: var(--muted); font-size: .72rem; }
.platform-company-status { min-width: 0; }
.platform-company-status .tag { display: inline-block; }
.platform-security { display: flex; gap: 8px; align-items: flex-start; }
.platform-security strong { white-space: nowrap; }
.stat-card span, .stat-card small { display: block; color: var(--muted); }
.stat-card strong { display: block; margin: 12px 0 5px; font-size: 1.8rem; letter-spacing: -.04em; }
.section-card { padding: 0; overflow: hidden; }
.section-head { padding: 19px 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.section-head h3 { margin: 0 0 4px; }
.section-head p { margin: 0; color: var(--muted); font-size: .88rem; }
.empty-state { padding: 42px 22px; border-top: 1px solid var(--line); text-align: center; }
.empty-icon { width: 48px; height: 48px; margin: 0 auto 13px; border-radius: 14px; background: var(--sky); color: var(--navy); display: grid; place-items: center; font-weight: 900; }
.empty-state h4 { margin: 0 0 7px; font-size: 1.05rem; }
.empty-state p { max-width: 430px; margin: 0 auto; color: var(--muted); line-height: 1.55; }
.customer-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.customer-list li + li { border-top: 1px solid var(--line); }
.customer-row { width: 100%; padding: 15px 20px; border: 0; color: var(--ink); background: white; display: flex; justify-content: space-between; align-items: center; gap: 15px; text-align: left; }
.customer-row:hover { background: #f8fbfc; }
.customer-main { min-width: 0; display: flex; align-items: center; gap: 12px; }
.customer-avatar { width: 41px; height: 41px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: var(--navy); background: var(--sky); font-weight: 850; }
.customer-copy strong, .customer-copy small { display: block; }
.customer-copy small { margin-top: 3px; color: var(--muted); }
.customer-end { display: flex; align-items: center; gap: 13px; }
.row-arrow { color: #8ba0ab; font-size: 1.65rem; line-height: 1; }
.tag { padding: 6px 9px; border-radius: 999px; color: #08746c; background: var(--teal-soft); font-size: .76rem; font-weight: 800; }
.tag.pending, .tag.draft { color: #79560a; background: #fff4d7; }
.tag.cancelled { color: #8d3039; background: #fff0f2; }
.tag.muted { color: var(--muted); background: #edf2f4; }
.privacy-callout { margin-top: 19px; padding: 15px 16px; border-left: 4px solid var(--teal); border-radius: 11px; color: #397069; background: var(--teal-soft); line-height: 1.5; }

.back-button { margin: 0 0 18px; padding: 8px 0; border: 0; color: var(--navy); background: transparent; font-weight: 800; }
.back-button:hover { color: var(--teal); }
.customer-hero { position: relative; min-height: 126px; padding: 24px; border-radius: 20px; color: white; background: radial-gradient(circle at 92% 18%,rgba(124,224,208,.22),transparent 30%),linear-gradient(135deg,var(--navy),var(--navy-2)); display: flex; align-items: center; gap: 17px; box-shadow: 0 18px 42px rgba(11,54,84,.16); }
.customer-avatar.large { width: 58px; height: 58px; border-radius: 17px; color: white; background: rgba(255,255,255,.15); }
.customer-hero .eyebrow { color: #7ce0d0; }
.customer-hero h2 { margin: 4px 0 5px; font-size: clamp(1.55rem,3vw,2.05rem); }
.customer-hero p { margin: 0; color: #d6e6ec; line-height: 1.45; }
.customer-hero > .tag { margin-left: auto; color: #e8fffb; background: rgba(28,156,145,.38); }
.eyebrow { display: block; color: var(--teal); font-size: .72rem; font-weight: 900; letter-spacing: .085em; }
.customer-tabs { margin: 18px 0; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: white; display: inline-flex; gap: 5px; }
.customer-tabs button { min-height: 41px; padding: 9px 15px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-weight: 800; }
.customer-tabs button:hover { color: var(--navy); background: var(--sky); }
.customer-tabs button.active { color: white; background: var(--navy); }
.customer-tabs button span { margin-left: 5px; opacity: .72; }
.workspace-loading { min-height: 250px; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); }
.loading-dot { width: 34px; height: 34px; border: 4px solid #cfe0e8; border-top-color: var(--teal); border-radius: 50%; animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.customer-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.summary-card span, .summary-card small { display: block; color: var(--muted); }
.summary-card strong { display: block; margin: 10px 0 5px; font-size: 2rem; letter-spacing: -.045em; }
.summary-card strong.summary-date { font-size: 1.35rem; }
.action-card { margin-top: 17px; padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.action-card h3 { margin: 6px 0 6px; }
.action-card p { max-width: 590px; margin: 0; color: var(--muted); line-height: 1.5; }
.quick-actions { flex: 0 0 auto; display: flex; gap: 9px; }

.member-list, .schedule-list { border-top: 1px solid var(--line); }
.member-row { min-height: 70px; padding: 13px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.member-row:first-child { border-top: 0; }
.member-avatar { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; color: var(--navy); background: var(--sky); display: grid; place-items: center; font-weight: 900; }
.member-copy { min-width: 0; flex: 1; }
.member-copy strong, .member-copy small { display: block; }
.member-copy small { margin-top: 3px; color: var(--muted); }
.empty-state.compact { padding: 30px 20px; }
.existing-members { padding: 20px; border-top: 1px solid var(--line); background: #f8fbfc; }
.existing-members h4 { margin: 0 0 4px; }
.existing-members > p { margin: 0 0 13px; color: var(--muted); font-size: .88rem; }
.existing-row { padding: 12px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.existing-row strong, .existing-row small { display: block; }
.existing-row small { margin-top: 3px; color: var(--muted); }
.small-button { min-height: 38px; padding: 7px 12px; border: 1px solid #b7d7d2; border-radius: 9px; color: #08746c; background: white; font-weight: 800; }
.small-button:hover { background: var(--teal-soft); }

.shift-row { width: 100%; min-height: 98px; padding: 17px 20px; border: 0; border-top: 1px solid var(--line); color: var(--ink); background: white; display: flex; align-items: center; gap: 16px; text-align: left; }
.shift-row:first-child { border-top: 0; }
.shift-row:hover { background: #f8fbfc; }
.shift-date { width: 54px; height: 62px; flex: 0 0 auto; border-radius: 13px; color: var(--navy); background: var(--sky); display: grid; place-items: center; align-content: center; }
.shift-date strong { font-size: 1.35rem; line-height: 1; }
.shift-date span { margin-top: 4px; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.shift-main { min-width: 0; flex: 1; }
.shift-title { display: flex; align-items: center; gap: 9px; }
.shift-main p { margin: 5px 0 4px; color: var(--ink); }
.shift-main small { color: var(--muted); line-height: 1.45; }
.shift-open { flex: 0 0 auto; color: #8ba0ab; font-size: 1.65rem; }

.schedule-card { overflow: visible; }
.calendar-toolbar { padding: 14px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8fbfc; display: grid; grid-template-columns: auto minmax(280px,1fr) auto; align-items: center; gap: 14px; }
.segmented { padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: white; display: inline-flex; }
.segmented button { min-height: 36px; padding: 7px 11px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-weight: 800; }
.segmented button:hover { color: var(--navy); background: var(--sky); }
.segmented button.active { color: white; background: var(--navy); }
.scope-switch button.active { background: var(--teal); }
.period-navigation { min-width: 0; display: grid; grid-template-columns: 38px auto minmax(130px,auto) 38px; align-items: center; justify-content: center; gap: 7px; }
.period-navigation button { min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--navy); background: white; font-weight: 800; }
.period-navigation button:first-child, .period-navigation button:last-child { padding: 0; font-size: 1.55rem; }
.period-navigation strong { overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.calendar-empty { border-top: 0; }
.day-agenda { border-top: 0; }

.week-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.week-day { min-width: 0; min-height: 190px; padding: 10px; border-left: 1px solid var(--line); background: white; }
.week-day:first-child { border-left: 0; }
.week-day.today { background: #f0faf8; }
.week-day > button { width: 100%; padding: 5px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; display: grid; place-items: center; }
.week-day > button span { font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.week-day > button strong { margin-top: 3px; color: var(--ink); font-size: 1.15rem; }
.week-day.today > button strong { width: 31px; height: 31px; border-radius: 50%; color: white; background: var(--teal); display: grid; place-items: center; }
.calendar-event { width: 100%; margin-top: 7px; padding: 8px; border: 0; border-left: 3px solid var(--teal); border-radius: 7px; color: var(--navy); background: var(--teal-soft); overflow: hidden; text-align: left; }
.calendar-event:hover { filter: brightness(.97); }
.calendar-event.overnight { border-left-color: var(--navy-2); background: var(--sky); }
.calendar-event.double_assistance { border-left-color: #b47b16; background: #fff6df; }
.calendar-event.extra { border-left-color: #8050a6; background: #f5edf9; }
.calendar-event strong, .calendar-event span { display: block; overflow: hidden; font-size: .75rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event span { margin-top: 3px; color: var(--muted); }
.no-shifts { display: block; padding: 15px 3px; color: #8b9aa2; text-align: center; }

.month-wrap { overflow: hidden; }
.month-grid { width: 100%; background: white; }
.month-weekdays { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); border-bottom: 1px solid var(--line); }
.month-weekdays span { padding: 10px 4px; color: var(--muted); font-size: .78rem; font-weight: 850; text-align: center; text-transform: uppercase; }
.month-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.month-day { min-width: 0; min-height: 105px; padding: 8px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); background: white; text-align: left; }
.month-day:nth-child(7n) { border-right: 0; }
.month-day:nth-last-child(-n+7) { border-bottom: 0; }
.month-day:hover { background: #f7fbfc; }
.month-day.selected { outline: 2px solid var(--teal); outline-offset: -2px; background: #f4fbfa; }
.month-day.outside { color: #9aabb3; background: #fbfcfd; }
.day-number { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; }
.month-day.today .day-number { color: white; background: var(--teal); }
.month-events { display: grid; gap: 4px; margin-top: 5px; }
.month-event, .more-events { overflow: hidden; padding: 4px 5px; border-radius: 5px; color: var(--navy); background: var(--sky); font-size: .72rem; font-weight: 750; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.month-event.double_assistance { color: #77530d; background: #fff1ce; }
.month-event.extra { color: #694080; background: #f4eafa; }
.month-event.day { color: #076c64; background: var(--teal-soft); }
.more-events { color: var(--muted); background: transparent; }
.month-agenda { padding: 18px 20px 8px; border-top: 1px solid var(--line); background: #fbfdfd; }
.month-agenda h4 { margin: 0 0 10px; font-size: 1rem; }
.month-agenda > p { color: var(--muted); }
.month-agenda .shift-row { width: 100%; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.news-image { display: block; width: min(100%,560px); max-height: 320px; margin: 14px 0; border-radius: 12px; object-fit: cover; }
.news-audio { display: block; width: min(100%,420px); margin: 14px 0; }

.calendar-subscription { margin-top: 17px; padding: 20px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 16px; }
.calendar-subscription-icon { width: 48px; height: 48px; border-radius: 14px; color: var(--navy); background: var(--sky); display: grid; place-items: center; font-size: 1.35rem; font-weight: 900; }
.subscription-title { display: flex; align-items: center; gap: 10px; }
.subscription-title h3 { margin: 0; }
.calendar-subscription p { max-width: 650px; margin: 5px 0 0; color: var(--muted); line-height: 1.45; }
.subscription-actions { display: flex; align-items: center; gap: 12px; }
.danger-link { color: var(--danger); }
.modal-success-icon { width: 50px; height: 50px; margin-bottom: 15px; border-radius: 50%; color: white; background: var(--teal); display: grid; place-items: center; font-size: 1.35rem; font-weight: 900; }
.calendar-choice-list { display: grid; gap: 10px; }
.calendar-choice { width: 100%; min-height: 72px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: white; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 11px; text-align: left; }
.calendar-choice:hover { border-color: #afd7d0; background: var(--teal-soft); }
.calendar-choice > span:nth-child(2) { min-width: 0; }
.calendar-choice strong, .calendar-choice small { display: block; }
.calendar-choice small { margin-top: 4px; color: var(--muted); line-height: 1.35; }
.choice-icon { width: 38px; height: 38px; border-radius: 10px; color: var(--navy); background: var(--sky); display: grid; place-items: center; font-weight: 900; }
.privacy-callout.compact { margin-top: 15px; font-size: .86rem; }
.secure-link-box { margin: 18px 0 0; }
.secure-link-box label { display: block; margin-bottom: 7px; color: var(--ink); font-size: .88rem; font-weight: 800; }
.secure-link-box input { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); background: #f8fbfc; font-size: .82rem; }
.invite-result-actions { flex-wrap: wrap; align-items: center; }

.modal-backdrop { position: fixed; inset: 0; z-index: 20; padding: 20px; background: rgba(7,31,46,.56); display: grid; place-items: center; }
.modal { width: min(520px,100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 26px; border-radius: 20px; background: white; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.modal.wide { width: min(720px,100%); }
.modal h2 { margin: 0 0 8px; }
.modal > p { margin: 0 0 22px; color: var(--muted); line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.modal-actions.split { flex-wrap: wrap; }
.modal-action-spacer { flex: 1; }
.modal-danger-icon { width: 50px; height: 50px; margin-bottom: 15px; border-radius: 50%; color: white; background: var(--danger); display: grid; place-items: center; font-size: 1.35rem; font-weight: 900; }
.pass-detail-head { margin-bottom: 22px; display: flex; align-items: center; gap: 14px; }
.pass-detail-head h2 { margin: 4px 0 0; }
.pass-details { margin: 0; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.pass-details > div { padding: 13px 15px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 125px minmax(0,1fr); gap: 15px; }
.pass-details > div:first-child { border-top: 0; }
.pass-details dt { color: var(--muted); font-size: .8rem; font-weight: 800; }
.pass-details dd { margin: 0; line-height: 1.45; }
.modal-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.modal-heading h2 { margin-top: 4px; }
.modal-close { width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 11px; color: var(--navy); background: white; font-size: 1.35rem; }
.notification-modal { padding: 0; overflow: hidden; }
.notification-modal .modal-heading { padding: 23px 24px 17px; }
.notification-tools { padding: 10px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8fbfc; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.notification-tools span { color: var(--muted); font-size: .82rem; font-weight: 750; }
.notification-tools button { padding: 5px 0; border: 0; color: var(--teal); background: transparent; font-size: .82rem; font-weight: 800; }
.notification-list { max-height: min(540px,65vh); overflow-y: auto; }
.notification-row { position: relative; width: 100%; padding: 15px 22px; border: 0; border-top: 1px solid var(--line); color: var(--ink); background: white; display: grid; grid-template-columns: 39px minmax(0,1fr) 9px; align-items: start; gap: 12px; text-align: left; }
.notification-row:first-child { border-top: 0; }
.notification-row:hover { background: #f8fbfc; }
.notification-row.unread { background: #f2faf8; }
.notification-kind { width: 39px; height: 39px; border-radius: 11px; color: #08746c; background: var(--teal-soft); display: grid; place-items: center; font-size: 1.15rem; font-weight: 900; }
.notification-kind.shift_changed { color: var(--navy); background: var(--sky); }
.notification-kind.shift_cancelled, .notification-kind.shift_removed { color: var(--danger); background: #fff0f2; }
.notification-copy { min-width: 0; }
.notification-copy strong, .notification-copy span, .notification-copy small { display: block; }
.notification-copy span { margin-top: 4px; color: var(--muted); font-size: .87rem; line-height: 1.45; }
.notification-copy small { margin-top: 7px; color: #84949d; font-size: .72rem; }
.notification-row i { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--teal); }
.notification-empty { min-height: 230px; padding: 38px 24px; display: grid; place-items: center; align-content: center; text-align: center; }
.notification-empty h3 { margin: 0 0 6px; }
.notification-empty p { margin: 0; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-row { padding: 13px; border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check-row input, .member-picker input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); }
.check-row strong, .check-row small { display: block; }
.check-row small { margin-top: 3px; color: var(--muted); }
.member-picker { margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 12px; }
.member-picker legend { padding: 0 5px; font-size: .9rem; font-weight: 800; }
.member-picker label { padding: 9px 6px; border-top: 1px solid var(--line); display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.member-picker label:first-of-type { border-top: 0; }
.member-picker strong, .member-picker small { display: block; }
.member-picker small { margin-top: 2px; color: var(--muted); }
.availability-matches { padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--sky); }
.availability-matches:empty { display: none; }
.availability-matches strong { display: block; font-size: .9rem; }
.availability-matches p { margin: 5px 0 0; color: var(--muted); font-size: .87rem; }
.availability-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.availability-actions .small-button:disabled { opacity: .55; cursor: default; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.mobile-nav { display: none; }
.mobile-nav-badge { display: none; }
.next-shift-card { min-height: 200px; margin-bottom: 20px; padding: 24px; display: grid; justify-items: start; gap: 9px; color: white; border-radius: 18px; background: radial-gradient(circle at 90% 15%, rgba(97,226,205,.26), transparent 38%), linear-gradient(125deg, var(--navy), #136173); box-shadow: var(--shadow); }
.next-shift-card small { color: #c9e6e8; font-size: .83rem; font-weight: 800; }
.next-shift-card strong { font-size: clamp(2rem, 5vw, 2.75rem); letter-spacing: -.05em; }
.next-shift-card span { color: #e2f3f2; }
.next-shift-card button { margin-top: 8px; }
.next-shift-card .next-day-time { color: #d6ebee; font-size: .9rem; font-weight: 750; }
.next-shift-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.ghost-button { min-height: 48px; padding: 11px 16px; border: 1px solid rgba(255,255,255,.34); border-radius: 11px; color: white; background: rgba(255,255,255,.08); font-weight: 800; }
.employee-home-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.8fr); gap: 18px; align-items: start; }
.employee-home-layout > div { display: grid; gap: 18px; }
.employee-quick-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
.quick-action { min-height: 72px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: white; box-shadow: 0 9px 24px rgba(11,54,84,.06); display: grid; grid-template-columns: auto minmax(0,1fr); justify-items: start; align-content: center; align-items: center; column-gap: 11px; text-align: left; }
.quick-action > span { width: 38px; height: 38px; grid-row: 1 / 3; border-radius: 11px; color: var(--teal); background: var(--teal-soft); display: grid; place-items: center; font-size: 1.1rem; font-weight: 850; }
.quick-action strong, .quick-action small { display: block; }
.quick-action small { color: var(--muted); line-height: 1.35; }
.quick-action.danger-tint > span { color: var(--danger); background: #fff0f2; }
.priority-card { margin-bottom: 18px; padding: 0; overflow: hidden; }
.priority-card .section-head { min-height: 112px; }
.priority-card h3 { margin: 4px 0; }
.status-check { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; color: #08746c; background: var(--teal-soft); display: grid; place-items: center; font-size: 1.2rem; font-weight: 900; }
.manager-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 18px; }
.metric-card { min-height: 130px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: white; box-shadow: 0 9px 24px rgba(11,54,84,.06); display: grid; align-content: space-between; gap: 4px; text-align: left; }
.metric-card span, .metric-card small { color: var(--muted); }
.metric-card strong { font-size: 2rem; letter-spacing: -.04em; }
.metric-card.success strong { color: #08746c; }
.metric-card.warning strong { color: #9a5c00; }
.metric-card.danger strong { color: var(--danger); }
.compact-feed .section-head { padding-bottom: 8px; }
.inbox-card > .empty-inline { padding: 20px; }
.feed-card, .app-content > .card { margin-bottom: 18px; }
.feed-body { padding: 0 22px 20px; line-height: 1.55; }
.feed-body strong { font-size: 1.12rem; }
.feed-body p { white-space: pre-wrap; margin-bottom: 0; }
.feed-item { padding: 16px 0; border-top: 1px solid var(--line); }
.feed-item:first-of-type { border-top: 0; }
.feed-item strong, .feed-item small { display: block; }
.feed-item small { margin-top: 5px; color: var(--muted); }
.feed-item p { white-space: pre-wrap; line-height: 1.55; }
.section-intro, .empty-inline { color: var(--muted); line-height: 1.55; }
.empty-inline { padding: 8px 0; }
.extra-tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: white; }
.extra-tabs button { min-width: max-content; flex: 1; min-height: 42px; padding: 7px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 750; }
.extra-tabs button.active { color: white; background: var(--teal); }
.inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; padding-top: 16px; border-top: 1px solid var(--line); }
.inline-form .primary-button { min-width: 145px; }
.compact-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.compact-row:last-of-type { border-bottom: 0; }
.compact-row strong, .compact-row small { display: block; }
.compact-row small { margin-top: 4px; color: var(--muted); }
.row-actions { display: flex; gap: 7px; }
.row-actions button { min-height: 40px; padding: 8px 10px; }
.chat-thread { display: grid; gap: 10px; max-height: min(55vh, 500px); padding: 8px 0 18px; overflow: auto; }
.chat-bubble { width: min(80%, 550px); padding: 12px 15px; border-radius: 14px; background: var(--sky); }
.chat-bubble.mine { margin-left: auto; background: var(--teal-soft); }
.chat-bubble p { margin: 6px 0; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-bubble small { color: var(--muted); }
.chat-compose { display: flex; gap: 9px; }
.chat-compose input { flex: 1; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; }
.profile-fields { display: grid; gap: 12px; }
.profile-fields div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.profile-fields dt { color: var(--muted); }
.profile-fields dd { margin: 0; overflow-wrap: anywhere; }
.profile-layout { display: grid; gap: 16px; max-width: 780px; }
.profile-card { padding: clamp(20px,3vw,27px); }
.profile-card h3 { margin: 0 0 7px; font-size: 1.16rem; }
.profile-card .section-intro, .profile-section-title p { margin: 0; }
.profile-photo-row { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.profile-photo { width: 86px; height: 86px; flex: 0 0 86px; overflow: hidden; display: grid; place-items: center; border-radius: 25px; color: white; background: linear-gradient(145deg,var(--navy),var(--teal)); font-size: 2rem; font-weight: 850; }
.profile-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-photo-form { position: relative; display: grid; justify-items: start; gap: 7px; }
.profile-photo-label { display: inline-grid; place-items: center; cursor: pointer; }
.profile-photo-form input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.profile-photo-form:focus-within .profile-photo-label { outline: 3px solid rgba(28,156,145,.28); outline-offset: 2px; }
.profile-photo-form .field-help { margin: 0; }
.profile-edit-form { margin-top: 20px; max-width: 580px; }
.profile-edit-form .primary-button, .profile-edit-form .secondary-button { justify-self: start; }
.profile-subheading { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.profile-feedback { margin: 0; color: var(--danger); font-size: .89rem; line-height: 1.4; }
.profile-feedback[hidden] { display: none; }
.field textarea { width: 100%; min-height: 125px; padding: 11px 13px; color: var(--ink); border: 1px solid #cbd9df; border-radius: 11px; resize: vertical; font: inherit; }
.field textarea:focus-visible, .mobile-nav button:focus-visible { outline: 3px solid rgba(28,156,145,.28); outline-offset: 2px; }

@media (max-width: 860px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand { min-height: 250px; padding: 28px 22px; }
  .auth-message { margin: 38px 0 16px; }
  .auth-message h1 { font-size: clamp(2rem,10vw,3.15rem); }
  .auth-message p { font-size: .96rem; }
  .security-note { display: none; }
  .auth-main { padding: 28px 18px 48px; align-content: start; }
  .auth-top { position: static; margin: 0 0 18px; text-align: right; }
  .auth-card { border-radius: 20px; }
  .app-layout { grid-template-columns: 1fr; }
  .app-sidebar { min-height: auto; padding: 14px 16px; flex-direction: row; align-items: center; gap: 14px; }
  .app-sidebar .brand-lockup { padding: 0; }
  .app-sidebar .brand-lockup small, .app-nav, .sidebar-user strong, .sidebar-user small { display: none; }
  .manager-menu-panel .app-nav { display: grid; }
  .sidebar-user { margin: 0 0 0 auto; padding: 0; border: 0; }
  .sidebar-user button { margin: 0; }
  .mobile-nav { position: fixed; z-index: 20; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(58px,1fr)); padding: 7px 8px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -5px 28px rgba(11,54,84,.09); }
  .mobile-nav button { position: relative; min-width: 0; min-height: 46px; padding: 7px 2px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: .78rem; font-weight: 750; }
  .mobile-nav button span { display: block; font-size: 1.15rem; line-height: 1.1; }
  .mobile-nav button.active { color: var(--navy); background: var(--sky); }
  .mobile-nav-badge { position: absolute; top: 2px; left: calc(50% + 8px); min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid white; border-radius: 999px; display: grid; place-items: center; color: white; background: var(--danger); font-size: 9px; font-style: normal; line-height: 1; }
  .app-content { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .app-header { min-height: 78px; }
  .card-grid { grid-template-columns: 1fr; }
  .platform-company-row { grid-template-columns: 1fr auto; }
  .platform-company-numbers, .platform-company-status { grid-column: 1; }
  .platform-company-row > button { grid-column: 2; grid-row: 1; }
  .support-result-row { grid-template-columns: 1fr; gap: 7px; }
  .manager-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .employee-home-layout { grid-template-columns: 1fr; }
  .customer-summary-grid { grid-template-columns: 1fr; }
  .action-card { align-items: stretch; flex-direction: column; }
  .quick-actions { flex-wrap: wrap; }
  .calendar-toolbar { grid-template-columns: 1fr; }
  .calendar-toolbar .segmented { width: 100%; }
  .calendar-toolbar .segmented button { flex: 1; }
  .week-grid { grid-template-columns: 1fr; }
  .week-day { min-height: auto; border-top: 1px solid var(--line); border-left: 0; display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 8px; }
  .week-day:first-child { border-top: 0; }
  .calendar-subscription { grid-template-columns: auto minmax(0,1fr); align-items: start; }
  .subscription-actions { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .platform-search { grid-template-columns: 1fr; }
  .platform-company-row { grid-template-columns: 1fr; }
  .platform-company-row > button { grid-column: 1; grid-row: auto; width: 100%; }
  .platform-company-numbers { flex-wrap: wrap; }
  .platform-security { display: grid; }
}

@media (max-width: 540px) {
  .auth-card { padding: 23px 18px; }
  .auth-tabs button { font-size: .88rem; }
  .welcome-row, .section-head { align-items: stretch; flex-direction: column; }
  .section-head .primary-button { width: 100%; }
  .role-pill { display: none; }
  .app-header { padding-right: 18px; }
  .customer-row { align-items: flex-start; }
  .app-content { padding: 22px 15px 70px; }
  .customer-hero { padding: 19px; align-items: flex-start; }
  .customer-hero .customer-avatar { width: 47px; height: 47px; }
  .customer-hero > .tag { position: absolute; top: 16px; right: 16px; }
  .customer-hero p { padding-right: 4px; font-size: .87rem; }
  .customer-tabs { width: 100%; display: grid; grid-template-columns: repeat(4,1fr); }
  .customer-tabs button { padding: 8px 5px; font-size: .8rem; }
  .chat-compose { flex-wrap: wrap; }
  .chat-compose button { width: 100%; }
  .row-actions { width: 100%; }
  .profile-fields div { grid-template-columns: 1fr; gap: 2px; }
  .profile-photo-row { align-items: flex-start; }
  .profile-photo { width: 72px; height: 72px; flex-basis: 72px; border-radius: 22px; }
  .quick-actions { display: grid; }
  .employee-quick-actions { grid-template-columns: 1fr; }
  .manager-metrics { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 112px; padding: 14px; }
  .metric-card strong { font-size: 1.7rem; }
  .form-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 10px; align-items: end; }
  .modal { width: 100%; max-height: calc(100vh - 20px); padding: 22px 18px; border-radius: 20px 20px 10px 10px; }
  .shift-row { align-items: flex-start; padding: 15px; }
  .shift-main p { font-size: .88rem; }
  .shift-title { align-items: flex-start; flex-direction: column; gap: 5px; }
  .calendar-toolbar { padding: 12px; }
  .period-navigation { grid-template-columns: 36px auto minmax(90px,1fr) 36px; }
  .period-navigation strong { font-size: .83rem; }
  .month-day { min-height: 72px; padding: 4px 3px; }
  .month-weekdays span { padding: 8px 1px; font-size: .7rem; }
  .day-number { width: 25px; height: 25px; font-size: .78rem; }
  .month-events { gap: 2px; margin-top: 3px; }
  .month-event, .more-events { min-height: 7px; padding: 2px 3px; font-size: .66rem; }
  .month-event { font-size: .62rem; line-height: 1.15; white-space: normal; text-overflow: clip; }
  .month-event-from, .month-event-to { display: block; }
  .month-agenda { padding: 16px 12px 7px; }
  .calendar-subscription { padding: 17px; }
  .calendar-subscription-icon { width: 42px; height: 42px; }
  .subscription-title { align-items: flex-start; flex-direction: column; gap: 5px; }
  .subscription-actions { align-items: stretch; flex-direction: column; }
  .subscription-actions .primary-button, .subscription-actions .secondary-button { width: 100%; }
  .invite-result-actions { align-items: stretch; flex-direction: column; }
  .invite-result-actions .primary-button, .invite-result-actions .secondary-button { width: 100%; }
  .modal-actions.split { align-items: stretch; flex-direction: column; }
  .modal-actions.split .modal-action-spacer { display: none; }
  .modal-actions.split button { width: 100%; }
  .pass-details > div { grid-template-columns: 1fr; gap: 4px; }
  .notification-modal { border-radius: 20px 20px 10px 10px; }
  .notification-row { padding: 14px 17px; }
}

/* Product owner portal */
.owner-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.owner-detail{padding:28px;margin-bottom:24px}.owner-detail input,.owner-detail select{width:100%;min-width:0}.owner-detail dl{display:grid;grid-template-columns:minmax(110px,1fr) 2fr;gap:16px;margin:24px 0}.owner-detail dt{color:var(--muted,#637987)}.owner-detail dd{margin:0;overflow-wrap:anywhere;font-weight:600}.owner-company-list{margin-top:20px}.owner-company{width:100%;display:flex;align-items:center;gap:16px;padding:22px 0;background:none;border:0;border-bottom:1px solid #dce7ec;text-align:left;color:#0b3654;cursor:pointer;font:inherit}.owner-company:last-child{border-bottom:0}.owner-company:hover{background:#f4f9fa}.owner-company-text{flex:1;display:grid;gap:8px;min-width:0}.owner-company-text strong{font-size:19px;overflow-wrap:anywhere}.owner-company-text small{color:#637987}.owner-company-text .tag{justify-self:start}.owner-welcome .primary-button{white-space:nowrap}.owner-detail #owner-invite-url{margin:12px 0;font-size:14px}.owner-detail h3{margin-top:0}
@media(max-width:700px){.owner-welcome{align-items:stretch;flex-direction:column;gap:20px}.owner-welcome .primary-button{width:100%}.owner-detail{padding:20px}.owner-stats{gap:10px}.owner-stats .stat-card{padding:16px 12px}.owner-stats .stat-card span{font-size:13px}.owner-stats .stat-card strong{font-size:28px}.owner-detail dl{grid-template-columns:1fr;gap:6px}.owner-detail dd{margin-bottom:14px}.owner-company{padding:20px 0;gap:12px}.owner-detail .platform-search{display:flex;gap:8px}.owner-detail .platform-search input{flex:1}.owner-detail .primary-button{white-space:normal}}

.owner-payment{padding:20px 0;border-bottom:1px solid #dce7ec}.owner-payment p{overflow-wrap:anywhere}.owner-payment form{margin-top:16px}.owner-detail>.danger-button{margin:8px 8px 8px 0}.owner-detail .status-box button{margin:8px 8px 0 0}

.owner-company-tabs{display:flex;gap:8px;margin:0 0 24px;background:#e9f3f7;padding:8px;border-radius:16px}.owner-company-tabs button{flex:1;padding:14px 8px;border:0;background:transparent;border-radius:12px;color:#0b3654;font:inherit;font-weight:700;cursor:pointer}.owner-company-tabs button.active{background:#0b3654;color:white}.owner-detail[hidden]{display:none!important}
