/* Staging compact inbox. Every rule stays under .compact-inbox or the compose sheet. */
.compact-inbox { display: flex; flex-direction: column; gap: 0; }
.compact-inbox-toolbar, .compact-inbox-note-tools { display: flex; align-items: center; gap: 9px; margin: 8px 0 12px; }
.compact-inbox-search { min-width: 0; display: flex; align-items: center; gap: 9px; background: #fff; padding: 0 13px; border-radius: 15px; height: 44px; flex: 1; color: #A29D94; }
.compact-inbox-search input { border: 0; outline: 0; min-width: 0; width: 100%; background: transparent; font-size: 13px; color: #151513; }
.compact-inbox-search:focus-within { outline: 2px solid #4B6A5A; outline-offset: 2px; }
.compact-inbox-compose, .compact-inbox-gear, .compact-inbox-sheet-x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 15px; cursor: pointer; flex: none; }
.compact-inbox-compose { background: #4B6A5A; color: #fff; }
.compact-inbox-gear, .compact-inbox-sheet-x { background: #fff; color: #6D6962; }
.compact-inbox-glyph { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.compact-inbox-glyph-fill { fill: currentColor; stroke: none; }
/* These rows are <button>s: without their own colour the names take the
   browser's button text colour, which an iPhone paints system blue. */
.compact-inbox-fern { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; background: #E7EFE9; border: 0; border-radius: 18px; text-align: left; cursor: pointer; color: #151513; }
.compact-inbox-fern-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.compact-inbox-fern b { font-size: 14px; }
.compact-inbox-fern b small { color: #6D6962; font-size: 10px; font-weight: 500; margin-left: 5px; }
.compact-inbox-fern-copy span { font-size: 12px; color: #6D6962; }
.compact-inbox-messages > .compact-inbox-filters { margin-top: 0; }
.compact-inbox-filters { display: flex; gap: 4px; padding: 4px; margin: 12px 0; background: #EFECE7; border-radius: 999px; flex: 1; }
.compact-inbox-chip { flex: 1; background: transparent; border: 0; border-radius: 999px; padding: 7px 8px; cursor: pointer; color: #6D6962; }
.compact-inbox-chip[aria-pressed="true"] { background: #fff; color: #1B4332; }
.compact-inbox-surface { background: #fff; border-radius: 22px; overflow: hidden; }
.compact-inbox-row, .compact-inbox-open { display: flex; width: 100%; min-height: 72px; gap: 10px; align-items: center; text-align: left; background: transparent; padding: 12px; border: 0; cursor: pointer; color: #151513; }
.compact-inbox-row { border-bottom: 1px solid #F0EEEA; }
.compact-inbox-row:last-child { border-bottom: 0; }
.compact-inbox-who-slot { width: 52px; height: 42px; flex: none; display: flex; align-items: center; }
.compact-inbox-faces { position: relative; width: 52px; height: 38px; }
.compact-inbox-mini { position: absolute; top: 0; }
.compact-inbox-mini:nth-child(1) { left: 0; z-index: 3; }
.compact-inbox-mini:nth-child(2) { left: 12px; z-index: 2; }
.compact-inbox-mini:nth-child(3) { left: 24px; z-index: 1; }
.compact-inbox-main, .compact-inbox-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.compact-inbox-title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compact-inbox-title.is-unread { font-weight: 700; }
.compact-inbox-preview { font-size: 12px; color: #6D6962; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compact-inbox-trail, .compact-inbox-end { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.compact-inbox-time, .compact-inbox-count { font-size: 12px; color: #A29D94; }
.compact-inbox-count { min-width: 18px; text-align: center; }
.compact-inbox-kicker { font-family: "Spotka Inbox IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: 10px; font-weight: 500; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; color: #6D6962; }
.compact-inbox-note { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; background: #fff; border-radius: 18px; padding: 12px; margin: 0 0 8px; border-left: 0; }
.compact-inbox-note.is-action { background: #F6E3EA; }
.compact-inbox-note.is-action .compact-inbox-kicker { color: #8A3D5C; }
.compact-inbox-day-label { margin: 8px 2px; font-size: 12px; font-weight: 650; color: #6D6962; }
.compact-inbox-dot { width: 8px; height: 8px; border-radius: 50%; background: #1B4332; }
.compact-inbox-done { font-size: 12px; color: #3A5446; }
.compact-inbox-empty { padding: 16px; color: #6D6962; }
.compact-inbox-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #E7EFE9; color: #1B4332; }
.compact-inbox-sheet-back { position: fixed; inset: 0; z-index: 40; background: rgba(21, 21, 19, .35); display: flex; align-items: flex-end; justify-content: center; }
.compact-inbox-sheet { width: min(560px, 100%); max-height: min(85vh, 720px); overflow: auto; background: #F4F2EE; border-radius: 24px 24px 0 0; padding: 12px 16px 24px; }
.compact-inbox-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.compact-inbox-sheet-head h2 { margin: 0; font-size: 18px; }
.compact-inbox-subhead { margin: 16px 2px 8px; font-size: 13px; color: #6D6962; }
.compact-inbox-sheet-x { font-size: 22px; line-height: 1; }
.compact-inbox-event-sheet { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.compact-inbox-sheet-event { display: flex; flex-direction: column; gap: 4px; margin: 14px 2px 0; }
.compact-inbox-sheet-event span, .compact-inbox-sheet-note { color: #6D6962; font-size: 14px; }
.compact-inbox-sheet-note { margin: 12px 2px 0; }
.compact-inbox-sheet-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.compact-inbox-sheet-actions .btn { width: 100%; }

@font-face {
  font-family: "Spotka Inbox IBM Plex Mono";
  src: url("./fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
/* The selected compact layout groups each day's rows into one quiet surface. */
.compact-inbox-day-list { background: #fff; border-radius: 20px; overflow: hidden; }
.compact-inbox-note { border-radius: 0; margin: 0; padding: 0 12px 0 0; gap: 0 8px; border-bottom: 1px solid #eeeae5; }
.compact-inbox-note:last-child { border-bottom: 0; }
.compact-inbox-open { min-height: 80px; }
.compact-inbox-mini .action-avatar.action-avatar--msg { width: 28px; height: 28px; flex-basis: 28px; }
.compact-inbox-mini .action-avatar-initial { font-size: 10px; }
.compact-inbox-note-tools { margin: 0 0 4px; }
.compact-inbox-note-tools .compact-inbox-filters { margin: 4px 0; }
.compact-inbox-person { position: relative; display: inline-flex; width: 52px; height: 42px; align-items: center; }
.compact-inbox-occurrence { position: absolute; right: 4px; bottom: -2px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #4b6a5a; border: 2px solid #fff; }
.compact-inbox-occurrence svg { width: 12px; height: 12px; }

.compact-inbox-note { grid-template-columns: minmax(0, 1fr) 58px; }
.compact-inbox-note-cta { min-width: 52px; min-height: 44px; padding: 6px 9px; border: 0; border-radius: 999px; background: #8a3d5c; color: #fff; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.compact-inbox-done { display: inline-flex; align-items: center; gap: 3px; }
.compact-inbox-done svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* One mobile header treatment across staging screens, including Home. */
@media (max-width: 600px) {
  .app-shell.staging-shared-header .topbar #appInstallLink { display: none; }
  .app-shell.staging-shared-header .topbar-brand { flex: 0 0 60px; min-width: 0; }
  .app-shell.staging-shared-header #topBrandWordmark,
  .app-shell.staging-shared-header #topBrandWordmark svg { width: 60px; min-width: 0; }
  .app-shell.staging-shared-header .topbar-build-label { min-width: 60px; }
}

/* Event chat identity matches a direct-message portrait's footprint. */
:is(.compact-inbox-messages, .compact-inbox-sheet) .compact-inbox-who-slot { width: 38px; height: 38px; }
:is(.compact-inbox-messages, .compact-inbox-sheet) .action-avatar.action-avatar--msg { width: 38px; height: 38px; flex-basis: 38px; }
.compact-inbox-event { position: relative; display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: #e7efe9; color: #4b6a5a; }
.compact-inbox-event > svg { width: 20px; height: 20px; }
.compact-inbox-event > img { position: absolute; inset: 0; width: 38px; height: 38px; object-fit: cover; border-radius: 10px; }
.compact-inbox-group-badge { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; background: #1b4332; color: #fff; }
.compact-inbox-group-badge svg { width: 10px; height: 10px; }

/* 2026-10-21 · A: notices Spotka sends carry the Spotka mark; suggestions sit
   on soft green. */
.compact-inbox-spotka-mark { width: 38px; height: 38px; flex: none; display: block; }
.compact-inbox-spotka-mark img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; display: block; }
.compact-inbox-group-badge .compact-inbox-badge-mark { width: 14px; height: 14px; border-radius: 4px; display: block; background: url('/app/assets/spotka-app-icon.png') center / cover; }
.compact-inbox-note.is-suggestion { background: #EEF3EC; }

/* 2026-10-21 · 1: unread rows are raised white cards; read rows fade back to
   an outline. Rows that need an answer stay rose either way. */
.compact-inbox-note:not(.is-read) { box-shadow: 0 1px 2px rgba(20, 20, 10, .06), 0 4px 14px rgba(20, 20, 10, .07); }
.compact-inbox-note.is-read:not(.is-action) { background: transparent; box-shadow: inset 0 0 0 1px #E4DFD7; }
.compact-inbox-note.is-read .compact-inbox-who-slot { opacity: .75; }
.compact-inbox-note:not(.is-read) .compact-inbox-time { color: #1B4332; font-weight: 600; }
.compact-inbox-note:not(.is-read) .compact-inbox-dot { width: 10px; height: 10px; }
.compact-inbox-day-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.compact-inbox-mark-all { border: 0; background: none; padding: 0; color: #4B6A5A; font-size: 12px; font-weight: 600; cursor: pointer; }
/* Every row end keeps one order: time on top, then the dot, then the button. */
.compact-inbox-note .compact-inbox-end { align-self: stretch; justify-content: flex-start; }
.compact-inbox-note .compact-inbox-end .compact-inbox-time { order: -1; }
.compact-inbox-note .compact-inbox-end .compact-inbox-note-cta { margin-top: auto; }

/* The event sheet shows the same summary as the Calendar card. */
.compact-event-summary { display: flex; flex-direction: column; gap: 8px; margin: 12px 2px 0; }
.compact-event-summary .calendar-event-hero { display: block; }
.compact-event-summary .calendar-event-hero img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 16px; display: block; }
.compact-event-summary-title { margin: 2px 0 0; font-size: 16px; font-weight: 650; color: #151513; }
.compact-event-summary .calendar-event-inline-meta { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #6D6962; }
/* Rows are separate cards, so a read row can fade back to the page colour. */
.compact-inbox-notes .compact-inbox-day-list { background: transparent; border-radius: 0; overflow: visible; }
/* The host row's base styles live with the Events screen; the sheet needs
   them on Notifications too. */
.compact-event-summary .calendar-event-hero { background: transparent; }
.compact-event-summary .invitation-host-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 13px; color: #6D6962; }
.compact-event-summary .invitation-host-open { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font: inherit; color: #151513; cursor: pointer; }
.compact-event-summary .invitation-host-avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; background: #E7EFE9; color: #1B4332; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.compact-event-summary .invitation-host-avatar img { width: 100%; height: 100%; object-fit: cover; }
.compact-inbox-notes .compact-inbox-day-list .compact-inbox-note { border-radius: 16px; margin: 0 0 8px; border-bottom: 0; }
