:root {
  color-scheme: light;
  --ink: #242929;
  --muted: #697171;
  --line: #d5dddd;
  --surface: #f4f7f7;
  --panel: #ffffff;
  --teal: #00aaa0;
  --teal-dark: #007d76;
  --teal-soft: #dff5f3;
  --graphite: #3f4444;
  --graphite-dark: #272b2b;
  --silver: #c7c9c9;
  --yellow: #d8a332;
  --red: #c5544b;
  --blue: #45758c;
  --shadow: 0 18px 48px rgba(36, 41, 41, 0.11);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(0, 170, 160, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff, var(--surface));
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(0, 170, 160, 0.18), transparent 44%),
    var(--graphite-dark);
  color: #f5f7f2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: var(--graphite);
}

.brand h1,
.topbar h2,
.panel h3 {
  margin: 0;
  letter-spacing: 0;
}

.brand h1 {
  font-size: 1.18rem;
}

.eyebrow {
  margin: 0 0 4px;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0;
  opacity: 0.72;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.nav-item span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(0, 170, 160, 0.48);
  border-radius: 6px;
  color: #8ff2ea;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(0, 170, 160, 0.18);
  color: #ffffff;
}

.privacy-note {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(0, 170, 160, 0.34);
  border-radius: 8px;
  background: rgba(0, 170, 160, 0.1);
}

.privacy-note h2 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.privacy-note p,
.quiet,
.manager-note p,
.resource-copy,
#supportCopy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.privacy-note p {
  color: rgba(255, 255, 255, 0.72);
}

.content {
  padding: 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.topbar h2 {
  font-size: clamp(1.75rem, 2.4vw, 2.7rem);
}

.status-pill,
.threshold {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: minmax(340px, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.panel {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.checkin-panel {
  grid-row: span 3;
}

.support-panel,
.insights-panel,
.resources-panel {
  min-height: 252px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel h3 {
  font-size: 1.22rem;
}

form {
  display: grid;
  gap: 18px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
.note-label,
.range-row label {
  display: block;
  margin-bottom: 8px;
  color: var(--graphite);
  font-size: 0.92rem;
  font-weight: 750;
}

.trend-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4fafa;
}

.trend-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal-dark);
}

.trend-consent span {
  display: grid;
  gap: 4px;
}

.trend-consent strong {
  color: var(--graphite-dark);
  font-size: 0.9rem;
}

.trend-consent small,
.trend-participation-note {
  color: var(--muted);
  line-height: 1.45;
}

.limited-trend-state {
  display: grid;
  gap: 8px;
  min-height: 120px;
  align-content: center;
}

.limited-trend-state strong {
  color: var(--teal-dark);
  font-size: 1.5rem;
}

.limited-trend-state p {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.trend-direction-list,
.mood-distribution,
.detail-factor-list,
.weekly-trend-list {
  display: grid;
  gap: 10px;
}

.trend-direction-list > div,
.mood-distribution > div,
.detail-factor-list > div,
.weekly-trend-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.trend-direction-list > div:last-child,
.mood-distribution > div:last-child,
.detail-factor-list > div:last-child,
.weekly-trend-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.trend-direction-list strong,
.mood-distribution strong,
.detail-factor-list strong,
.weekly-trend-list strong {
  color: var(--teal-dark);
  text-align: right;
}

.leading-factor {
  display: grid;
  min-height: 120px;
  place-items: center;
  color: var(--teal-dark);
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
}

.trend-submit-status {
  min-height: 20px;
  margin: -8px 0 0;
  color: var(--teal-dark);
  font-size: 0.82rem;
  line-height: 1.4;
}

.trend-submit-status.error {
  color: var(--red);
}

.trend-participation-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.segmented,
.tag-grid {
  display: grid;
  gap: 8px;
}

.segmented {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf4f4;
}

.segmented label,
.tag-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--graphite);
}

.segmented label:has(input:checked),
.tag-grid label:has(input:checked) {
  border-color: rgba(0, 170, 160, 0.42);
  background: #ffffff;
  color: var(--teal-dark);
  font-weight: 750;
}

.tag-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.range-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
}

.range-row label {
  margin: 0;
}

input[type="range"] {
  accent-color: var(--teal);
}

output {
  font-weight: 800;
  text-align: right;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fbfcf8;
}

input[type="text"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfdfd;
}

input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfdfd;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(0, 170, 160, 0.28);
  outline-offset: 2px;
}

select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfdfd;
}

.primary-action,
.secondary-action,
.resource-list button,
.resource-list a,
.icon-button {
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  min-height: 48px;
  background: var(--teal-dark);
  color: #ffffff;
}

.primary-action:hover,
.icon-button.solid:hover {
  background: var(--graphite-dark);
}

.secondary-action,
.resource-list button,
.resource-list a {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-color: var(--line);
  background: #fbfdfd;
  color: #2f3d39;
  text-align: center;
  text-decoration: none;
}

.secondary-action.active,
.secondary-action:hover,
.resource-list button:hover,
.resource-list a:hover {
  border-color: rgba(0, 170, 160, 0.42);
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-color: var(--line);
  background: #ffffff;
  color: var(--teal-dark);
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-button.solid {
  background: var(--teal-dark);
  color: #ffffff;
}

.account-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.account-email {
  overflow: hidden;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-logout {
  min-height: 36px;
  border: 1px solid rgba(0, 170, 160, 0.52);
  border-radius: 8px;
  background: rgba(0, 170, 160, 0.12);
  color: #ffffff;
  font-weight: 750;
}

.account-logout:hover {
  background: rgba(0, 170, 160, 0.28);
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(0, 170, 160, 0.12), transparent 40%),
    var(--graphite-dark);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1fr);
  width: min(920px, 100%);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px;
  background:
    linear-gradient(180deg, rgba(0, 170, 160, 0.22), transparent 54%),
    var(--graphite-dark);
  color: #ffffff;
}

.auth-brand img {
  width: 116px;
  height: 116px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: var(--graphite);
}

.auth-brand h1,
.auth-panel h2 {
  margin: 0;
  letter-spacing: 0;
}

.auth-brand h1 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.auth-brand p:last-child {
  max-width: 34ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 48px;
}

.auth-panel h2 {
  margin-bottom: 8px;
  font-size: 1.8rem;
}

.auth-field {
  display: grid;
  gap: 8px;
  color: var(--graphite);
  font-size: 0.92rem;
  font-weight: 750;
}

.auth-message {
  min-height: 22px;
  margin: -4px 0;
  color: var(--teal-dark);
  font-size: 0.88rem;
  line-height: 1.45;
}

.auth-message.error {
  color: var(--red);
}

.auth-panel button:disabled,
.auth-panel input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.setup-notice {
  padding: 14px;
  border: 1px solid rgba(216, 163, 50, 0.48);
  border-radius: 8px;
  background: #fff8e8;
  color: var(--graphite);
}

.setup-notice p {
  margin: 6px 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.setup-notice code {
  color: var(--teal-dark);
  font-weight: 750;
}

.auth-privacy {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.auth-access-note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.auth-access-note a {
  color: var(--teal-dark);
  font-weight: 750;
}

.signal-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(0, 170, 160, 0.14);
}

.signal-dot.warning {
  background: var(--yellow);
  box-shadow: 0 0 0 6px rgba(216, 163, 50, 0.16);
}

.signal-dot.high {
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(197, 84, 75, 0.15);
}

.action-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.action-item {
  padding: 12px;
  border-left: 4px solid var(--teal);
  border-radius: 7px;
  background: var(--teal-soft);
  color: var(--graphite-dark);
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.metric-row strong {
  font-size: 1.35rem;
}

.meter {
  height: 10px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ece7;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--yellow), var(--red));
}

.sparkline {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 7px;
  height: 76px;
  margin-top: 12px;
}

.sparkline span {
  border-radius: 6px 6px 0 0;
  background: var(--teal-dark);
}

.events-panel {
  grid-column: 1 / -1;
}

.manager-note {
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: var(--teal-soft);
}

.manager-note strong {
  display: block;
  margin-bottom: 6px;
}

.resource-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.conversation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.conversation-panel {
  max-width: 920px;
}

.conversation-intro {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.contact-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  color: var(--ink);
  text-decoration: none;
}

.contact-card:hover {
  border-color: rgba(0, 170, 160, 0.44);
  box-shadow: 0 14px 34px rgba(36, 41, 41, 0.1);
}

.contact-card h3 {
  margin: 0;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.contact-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: auto;
  border-radius: 8px;
  background: var(--teal-dark);
  color: #ffffff;
}

.contact-card.director {
  border-top: 5px solid var(--graphite);
}

.contact-card.rep {
  border-top: 5px solid var(--teal);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  background: var(--teal-soft);
}

.text-link.compact {
  min-height: 34px;
  white-space: nowrap;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.talk-list,
.event-list {
  display: grid;
  gap: 10px;
}

.events-panel .event-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.toolbox-page-panel {
  max-width: 980px;
}

.talk-page-list {
  gap: 14px;
}

.talk-card,
.event-item {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.talk-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.talk-card strong,
.event-item strong {
  color: var(--graphite-dark);
}

.talk-card p,
.event-item p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.event-item {
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
}

.event-item time {
  display: grid;
  min-height: 58px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 800;
}

.event-item time strong {
  color: var(--teal-dark);
  font-size: 1.25rem;
  line-height: 1;
}

.event-item time span {
  color: var(--graphite);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.company-calendar-panel {
  max-width: 1180px;
}

.company-calendar {
  display: grid;
  gap: 14px;
}

.calendar-month-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.calendar-month-heading strong {
  color: var(--graphite-dark);
  font-size: 1.2rem;
}

.calendar-month-heading span {
  color: var(--muted);
  font-size: 0.92rem;
}

.calendar-controls {
  display: flex;
  gap: 8px;
}

.company-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.company-weekday {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.company-day {
  display: grid;
  align-content: start;
  gap: 7px;
  width: 100%;
  min-height: 104px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  color: inherit;
  font: inherit;
  text-align: left;
}

.company-day span {
  color: var(--graphite);
  font-size: 0.88rem;
  font-weight: 800;
}

.company-day strong {
  display: block;
  padding: 7px;
  border-radius: 7px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.78rem;
  line-height: 1.25;
}

.company-day em {
  align-self: start;
  width: max-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--graphite-dark);
  color: #ffffff;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.company-day.has-event {
  border-color: rgba(0, 170, 160, 0.46);
  background: #ffffff;
}

button.company-day.has-event:hover,
button.company-day.has-event:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 170, 160, 0.12);
}

.month-event-section {
  display: grid;
  gap: 10px;
  padding-top: 6px;
}

.month-event-section h4 {
  margin: 0;
  color: var(--graphite-dark);
  font-size: 1rem;
}

.month-event-list {
  display: grid;
  gap: 8px;
}

.calendar-event-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.calendar-event-row:last-child {
  border-bottom: 0;
}

.calendar-event-row:hover,
.calendar-event-row:focus-visible {
  color: var(--teal-dark);
  outline: 0;
}

.calendar-event-row time {
  color: var(--teal-dark);
  font-weight: 800;
}

.event-row-copy,
.event-row-detail {
  display: block;
}

.event-row-detail {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

body.modal-open {
  overflow: hidden;
}

.event-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(36, 41, 41, 0.48);
}

.event-detail-dialog {
  display: grid;
  gap: 16px;
  width: min(640px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow-y: auto;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}

.event-detail-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.event-detail-heading h3 {
  margin: 3px 0 0;
  color: var(--graphite-dark);
  font-size: 1.35rem;
}

.event-detail-list {
  display: grid;
  gap: 12px;
}

.event-detail-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.event-detail-card h4 {
  margin: 0;
  color: var(--graphite-dark);
  font-size: 1.08rem;
}

.event-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.event-detail-meta p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: var(--surface);
}

.event-detail-meta span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.event-detail-meta strong {
  color: var(--graphite-dark);
  line-height: 1.35;
}

.event-detail-activity {
  margin: 0;
  color: var(--graphite);
  line-height: 1.55;
  white-space: pre-wrap;
}

.talk-detail {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.talk-detail[hidden] {
  display: none;
}

.talk-duration {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.talk-completion-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(0, 170, 160, 0.24);
  border-radius: 8px;
  background: var(--teal-soft);
}

.talk-completion-panel p {
  margin: 0;
  color: var(--graphite);
}

.talk-completion-panel .primary-action {
  justify-self: start;
}

.talk-completion-confirmed {
  font-weight: 900;
  color: var(--teal-dark) !important;
}

.talk-completion-error {
  color: #b42318 !important;
  font-weight: 800;
}

.talk-content-rich {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  color: var(--graphite-dark);
  line-height: 1.55;
}

.talk-content-rich h3 {
  margin: 8px 0 0;
  color: var(--graphite-dark);
  font-size: 1.16rem;
  line-height: 1.25;
}

.talk-content-rich p,
.talk-content-rich ul,
.talk-content-rich ol {
  margin: 0;
}

.talk-content-rich p {
  color: var(--graphite);
}

.talk-content-rich .rich-small {
  color: var(--muted);
  font-size: 0.9rem;
}

.talk-content-rich .rich-large {
  color: var(--graphite-dark);
  font-size: 1.08rem;
  font-weight: 650;
}

.talk-content-rich strong {
  color: var(--graphite-dark);
  font-weight: 850;
}

.talk-content-rich ul,
.talk-content-rich ol {
  padding-left: 20px;
}

.company-day.today {
  border-color: rgba(63, 68, 68, 0.46);
}

.company-day.weekend,
.company-day.next-month {
  background: #f2f5f5;
}

.company-day.next-month span,
.company-day.weekend span {
  color: #98a1a1;
}

.tracker-layout {
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}

.tracker-panel {
  min-width: 0;
}

.month-controls {
  display: flex;
  gap: 8px;
}

.mood-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.mood-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--graphite);
  font-size: 0.86rem;
  font-weight: 750;
}

.mood-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.mood-good {
  --mood-color: var(--teal);
}

.mood-steady {
  --mood-color: var(--yellow);
}

.mood-low {
  --mood-color: var(--red);
}

.mood-dot,
.calendar-day.has-mood::before {
  background: var(--mood-color);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekday {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  position: relative;
  display: grid;
  min-height: 84px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.calendar-day.empty {
  border-color: transparent;
  background: transparent;
}

.calendar-day span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.calendar-day strong {
  align-self: end;
  color: var(--graphite-dark);
  font-size: 0.88rem;
}

.calendar-day.has-mood {
  border-color: rgba(0, 170, 160, 0.26);
  background: #ffffff;
}

button.calendar-day {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
}

.calendar-day.clickable-day:hover,
.calendar-day.clickable-day:focus-visible {
  border-color: var(--teal-dark);
  background: var(--teal-soft);
  outline: 2px solid transparent;
}

.calendar-day.clickable-day.selected {
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 3px rgba(0, 170, 160, 0.18);
}

.calendar-day.has-mood::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.tracker-side {
  display: grid;
  gap: 18px;
}

.day-checkin-list {
  display: grid;
  gap: 12px;
}

.day-checkin-entry {
  padding: 13px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--mood-color);
  border-radius: 8px;
  background: #fbfdfd;
}

.day-checkin-entry > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.day-checkin-entry span,
.day-checkin-entry p {
  color: var(--muted);
  font-size: 0.84rem;
}

.day-checkin-entry p {
  margin: 8px 0 0;
  line-height: 1.5;
}

.day-note-label {
  display: block;
  margin-top: 12px;
  color: var(--graphite-dark) !important;
  font-weight: 800;
}

.day-checkin-entry .day-checkin-note {
  margin-top: 4px;
  padding: 10px;
  border-left: 3px solid var(--silver);
  background: var(--surface);
  color: var(--graphite);
  white-space: pre-wrap;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.summary-grid div {
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.summary-grid span,
.saved-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.summary-grid strong {
  font-size: 1.28rem;
}

.checkin-list {
  display: grid;
  gap: 10px;
}

.saved-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--mood-color);
  border-radius: 8px;
  background: #fbfdfd;
}

.saved-item div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.saved-item strong {
  color: var(--graphite-dark);
}

.saved-item span {
  margin-bottom: 0;
}

.saved-item p,
.empty-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.suggestion-layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.95fr) minmax(280px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.suggestion-panel {
  min-width: 0;
}

.suggestion-side,
.suggestion-list {
  display: grid;
  gap: 12px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--graphite);
  font-weight: 750;
}

.privacy-option-list {
  display: grid;
  gap: 8px;
}

.field-hint {
  margin: -2px 0 8px 28px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.field-hint.limit-warning {
  color: var(--red);
  font-weight: 800;
}

.suggestion-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: #fbfdfd;
}

.suggestion-item div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.suggestion-item p {
  margin: 0;
  color: var(--graphite-dark);
  line-height: 1.45;
}

.suggestion-item span,
.suggestion-item small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.suggestion-concern {
  border-left-color: var(--red);
}

.suggestion-praise {
  border-left-color: var(--yellow);
}

.support-contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(280px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.settings-panel,
.settings-side {
  min-width: 0;
}

.settings-side,
.settings-note-list {
  display: grid;
  gap: 12px;
}

.security-form {
  display: grid;
  gap: 12px;
}

.settings-message {
  min-height: 1.2rem;
  margin: 0;
  color: var(--graphite);
  font-weight: 800;
}

.settings-message.error {
  color: #b42318;
}

.settings-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.full-width-action {
  width: 100%;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.swatch-grid label {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 84px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  color: var(--graphite);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.swatch-grid label:has(input:checked) {
  border-color: rgba(0, 170, 160, 0.52);
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.swatch-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.swatch {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 999px;
}

.swatch.teal {
  background: #00aaa0;
}

.swatch.blue {
  background: #45758c;
}

.swatch.graphite {
  background: #5d6666;
}

.preview-card {
  padding: 16px;
  border: 1px solid rgba(0, 170, 160, 0.36);
  border-radius: 8px;
  background: var(--teal-soft);
}

.preview-card strong {
  display: block;
  margin-bottom: 8px;
}

.preview-card p,
.settings-note-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

body.compact-density .content,
body.compact-density .sidebar {
  padding: 20px;
}

body.compact-density .panel,
body.compact-density .support-contact-card,
body.compact-density .contact-card {
  padding: 14px;
}

body.compact-density form,
body.compact-density .grid,
body.compact-density .settings-layout,
body.compact-density .team-trends-layout {
  gap: 12px;
}

body.high-contrast {
  --ink: #111515;
  --muted: #414747;
  --line: #9aa4a4;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

body.hide-privacy-notes .privacy-note {
  display: none;
}

.support-contact-card {
  display: grid;
  gap: 14px;
  align-content: space-between;
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.support-contact-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.support-contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.priority-card {
  border-top: 5px solid var(--graphite);
}

.crisis-card {
  border-top: 5px solid var(--red);
}

.contact-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--teal-dark);
  color: #ffffff;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.contact-number.pending {
  background: #eef2f2;
  color: var(--graphite);
}

.contact-number.secondary-number {
  background: #eef2f2;
  color: var(--teal-dark);
}

.number-stack {
  display: grid;
  gap: 8px;
}

.team-trends-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.trend-summary-panel,
.manager-actions-panel {
  grid-column: 1 / -1;
}

.trend-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trend-stat-grid div {
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.trend-stat-grid span,
.trend-stat-grid small {
  display: block;
  color: var(--muted);
  font-weight: 750;
}

.trend-stat-grid span {
  font-size: 0.82rem;
}

.trend-stat-grid strong {
  display: block;
  margin: 8px 0;
  color: var(--graphite-dark);
  font-size: 1.65rem;
}

.trend-stat-grid small {
  line-height: 1.35;
}

.factor-list {
  display: grid;
  gap: 12px;
}

.factor-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
}

.factor-list span,
.factor-list strong {
  font-weight: 800;
}

.factor-list i {
  grid-column: 1 / -1;
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--teal);
}

.trend-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  min-height: 190px;
}

.trend-bars div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 7px;
  height: 170px;
}

.trend-bars span {
  grid-column: 1 / -1;
  align-self: start;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}

.trend-bars i {
  display: block;
  min-height: 18px;
  border-radius: 7px 7px 0 0;
}

.trend-bars .stress,
.trend-legend .stress {
  background: var(--red);
}

.trend-bars .energy,
.trend-legend .energy {
  background: var(--teal);
}

.trend-legend {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.trend-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.crisis-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(197, 84, 75, 0.42);
  border-radius: 8px;
  background: #fff1ef;
  color: #8d2e28;
  font-weight: 800;
  text-decoration: none;
}

.crisis-action:hover {
  background: #ffe3df;
  border-color: rgba(197, 84, 75, 0.72);
}

.crisis-action strong {
  color: #611b17;
  font-size: 1.15rem;
  white-space: nowrap;
}

.content-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eaf1f1;
}

.content-tab {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--graphite);
  font-weight: 800;
}

.content-tab.active {
  background: var(--panel);
  color: var(--teal-dark);
  box-shadow: 0 2px 8px rgba(36, 41, 41, 0.1);
}

.editor-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(360px, 1.2fr);
  gap: 18px;
  align-items: start;
}

.editor-section[hidden] {
  display: none;
}

.suggestions-editor {
  grid-template-columns: minmax(0, 1fr);
}

.suggestion-form-layout {
  grid-template-columns: minmax(420px, 1.35fr) minmax(260px, 0.65fr);
}

.suggestion-guidance {
  position: sticky;
  top: 24px;
}

.suggestion-guidance h3 {
  margin-bottom: 10px;
}

.suggestion-review-copy {
  margin-bottom: 12px;
}

.suggestion-record {
  align-items: start;
}

.suggestion-record .record-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.suggestion-details {
  white-space: pre-wrap;
}

.record-status.reviewing {
  border-color: rgba(69, 117, 140, 0.35);
  background: #e9f2f6;
  color: #315e73;
}

.record-status.declined {
  border-color: rgba(197, 84, 75, 0.3);
  background: #fff1ef;
  color: #8d2e28;
}

.record-status.resolved {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
}

.editor-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.editor-field {
  display: grid;
  gap: 7px;
  color: var(--graphite);
  font-size: 0.9rem;
  font-weight: 750;
}

.editor-field.wide {
  grid-column: 1 / -1;
}

.editor-field textarea,
.editor-field input {
  background: #fbfdfd;
}

.rich-editor-field {
  align-items: stretch;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--surface);
}

.format-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--graphite);
  font-size: 0.84rem;
  font-weight: 800;
}

.format-button:hover,
.format-button:focus-visible {
  border-color: rgba(0, 170, 160, 0.48);
  color: var(--teal-dark);
}

.rich-editor {
  min-height: 230px;
  max-height: 460px;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  background: #fbfdfd;
  color: var(--graphite-dark);
  font-weight: 500;
  line-height: 1.55;
  outline: 0;
}

.rich-editor:focus-visible {
  border-color: rgba(0, 170, 160, 0.62);
  box-shadow: 0 0 0 4px rgba(0, 170, 160, 0.12);
}

.rich-editor:empty::before {
  color: var(--muted);
  content: attr(data-placeholder);
}

.rich-editor p,
.rich-editor h3 {
  margin: 0 0 10px;
}

.rich-editor h3 {
  color: var(--graphite-dark);
  font-size: 1.16rem;
}

.rich-editor .rich-small {
  color: var(--muted);
  font-size: 0.9rem;
}

.rich-editor .rich-large {
  color: var(--graphite-dark);
  font-size: 1.08rem;
  font-weight: 650;
}

.publish-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: var(--graphite);
  font-weight: 750;
}

.publish-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal-dark);
}

.editor-form-actions,
.record-actions {
  display: flex;
  gap: 8px;
}

.editor-form-actions .primary-action,
.editor-form-actions .secondary-action {
  min-width: 140px;
  padding: 0 16px;
}

.editor-message {
  min-height: 22px;
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.editor-message.error {
  color: var(--red);
}

.content-setup-notice {
  margin-bottom: 18px;
}

.editor-record-list {
  display: grid;
  gap: 10px;
}

.editor-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.editor-record:first-child {
  padding-top: 0;
}

.editor-record:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.editor-record p {
  margin: 5px 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.record-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(0, 170, 160, 0.34);
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.record-status.draft {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
}

.record-actions .secondary-action {
  min-width: 72px;
  padding: 0 10px;
}

.danger-action {
  color: var(--red);
}

.danger-action:hover {
  border-color: rgba(197, 84, 75, 0.4);
  background: #fff1ef;
  color: #9b352e;
}

.empty-state {
  margin: 0;
  padding: 18px 0;
  color: var(--muted);
  text-align: center;
}

.legal-notices {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding: 26px 0 8px;
  border-top: 1px solid var(--line);
}

.legal-heading h3 {
  margin: 0;
  color: var(--graphite-dark);
  font-size: 1.15rem;
  letter-spacing: 0;
}

.legal-disclosures {
  border-top: 1px solid var(--line);
}

.legal-disclosures details {
  border-bottom: 1px solid var(--line);
}

.legal-disclosures summary {
  padding: 16px 2px;
  color: var(--graphite-dark);
  font-weight: 800;
  cursor: pointer;
}

.legal-disclosures details[open] summary {
  color: var(--teal-dark);
}

.legal-copy {
  max-width: 860px;
  padding: 2px 2px 22px;
  color: var(--graphite);
  font-size: 0.9rem;
  line-height: 1.65;
}

.legal-copy section + section {
  margin-top: 24px;
}

.legal-copy h4 {
  margin: 0 0 8px;
  color: var(--graphite-dark);
  font-size: 0.98rem;
  letter-spacing: 0;
}

.legal-copy p {
  margin: 0 0 12px;
}

.legal-copy ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-copy li + li {
  margin-top: 4px;
}

.legal-copy address {
  margin: 0 0 16px;
  font-style: normal;
}

.legal-copy a {
  color: var(--teal-dark);
  font-weight: 700;
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  }

  .nav-item {
    justify-content: center;
    padding: 8px;
  }

  .nav-item span {
    display: none;
  }

  .privacy-note {
    margin-top: 0;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .events-panel .event-list {
    grid-template-columns: 1fr;
  }

  .conversation-grid {
    grid-template-columns: 1fr;
  }

  .tracker-layout {
    grid-template-columns: 1fr;
  }

  .suggestion-layout {
    grid-template-columns: 1fr;
  }

  .support-contact-layout {
    grid-template-columns: 1fr;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .team-trends-layout,
  .trend-stat-grid {
    grid-template-columns: 1fr;
  }

  .checkin-panel {
    grid-row: auto;
  }

  .editor-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .content,
  .sidebar {
    padding: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-list,
  .tag-grid,
  .segmented {
    grid-template-columns: 1fr;
  }

  .range-row {
    grid-template-columns: 1fr 42px;
  }

  .range-row label {
    grid-column: 1 / -1;
  }

  .calendar-grid {
    gap: 5px;
  }

  .calendar-day {
    min-height: 64px;
    padding: 7px;
  }


  .calendar-day strong {
    font-size: 0.72rem;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .swatch-grid,
  .settings-actions {
    grid-template-columns: 1fr;
  }

  .talk-card {
    grid-template-columns: 1fr;
  }

  .event-actions {
    justify-content: stretch;
    width: 100%;
  }

  .text-link.compact {
    width: 100%;
    justify-content: center;
  }

  .company-calendar-grid {
    gap: 5px;
  }

  .company-day {
    min-height: 70px;
    padding: 6px;
  }

  .company-day strong {
    padding: 5px;
    font-size: 0.68rem;
  }

  .event-detail-modal {
    padding: 14px;
  }

  .event-detail-dialog {
    max-height: calc(100vh - 28px);
    padding: 16px;
  }

  .event-detail-meta {
    grid-template-columns: 1fr;
  }

  .calendar-month-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-tabs,
  .editor-field-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .editor-field.wide {
    grid-column: auto;
  }

  .editor-record {
    grid-template-columns: 1fr;
  }

  .editor-form-actions,
  .record-actions {
    flex-direction: column;
  }

  .editor-form-actions .primary-action,
  .editor-form-actions .secondary-action,
  .record-actions .secondary-action {
    width: 100%;
  }

  .auth-page {
    display: block;
    padding: 0;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    min-height: 100vh;
    border: 0;
  }

  .auth-brand {
    gap: 22px;
    padding: 26px;
  }

  .auth-brand img {
    width: 82px;
    height: 82px;
  }

  .auth-brand h1 {
    font-size: 1.55rem;
  }

  .auth-panel {
    justify-content: flex-start;
    padding: 30px 24px;
  }
}

@media (max-width: 420px) {
  .calendar-day strong {
    display: none;
  }
}
