/* Shared shell: equal tab spacing, stable unread counts and viewport branding. */
:root {
  --shell-space-sm: 8px;
  --shell-space-md: 16px;
  --shell-space-lg: 32px;
  --shell-footer-space: calc(40px + env(safe-area-inset-bottom, 0px));
}
.workspace-navigation {
  flex-wrap: wrap;
  gap: var(--shell-space-sm);
  overflow: visible;
}
.workspace-navigation button {
  position: relative;
  padding: 12px var(--shell-space-md);
  min-height: 48px;
}
.workspace-navigation .notification-count {
  position: absolute;
  top: -6px;
  inset-inline-end: 0;
  transform: translateX(25%);
  width: auto;
  min-width: 20px;
  height: 18px;
  margin: 0;
  padding: 1px 5px;
  font-size: .65rem;
  line-height: 1;
}
#account-app:has(> .site-footer) {
  padding-bottom: var(--shell-footer-space);
}
html:has(.site-footer) {
  scroll-padding-bottom: var(--shell-footer-space);
}
.site-footer {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 10;
  min-height: var(--shell-footer-space);
  padding: 10px max(var(--shell-space-lg), env(safe-area-inset-right, 0px))
    calc(10px + env(safe-area-inset-bottom, 0px))
    max(var(--shell-space-lg), env(safe-area-inset-left, 0px));
  background: #f4f7f8;
  font-size: .68rem;
  pointer-events: none;
}
/* Keep temporary bottom actions above the reserved branding strip. */
#account-app .completion-toast,
#account-app .next-work .priority-snooze-toast {
  bottom: calc(var(--shell-footer-space) + var(--shell-space-sm));
}
@media (max-width: 760px) {
  .workspace-navigation { gap: var(--shell-space-sm); }
  .workspace-navigation button { padding-inline: 12px; }
  .site-footer { padding-inline: max(var(--shell-space-md), env(safe-area-inset-left, 0px)) max(var(--shell-space-md), env(safe-area-inset-right, 0px)); }
}

/* Keep the workspace label separate from its heading. */
.operational-heading .eyebrow { margin-bottom: var(--shell-space-sm); }

/* Consistent select-arrow clearance and comfortable compact touch controls. */
:root {
  --control-icon-inset: 12px;
  --control-icon-size: 12px;
  --control-icon-gap: 8px;
  --control-touch-height: 44px;
}
#account-app select:not([multiple]):not([size]),
#account-app select[size="1"] {
  appearance: none;
  padding-inline-end: calc(var(--control-icon-inset) + var(--control-icon-size) + var(--control-icon-gap));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='m2 4 4 4 4-4' stroke='%23173e4e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--control-icon-inset) center;
  background-size: var(--control-icon-size);
}
#account-app select:dir(rtl) { background-position: left var(--control-icon-inset) center; }
@media (max-width: 760px) {
  .shell-header .header-tools :is(button, select),
  .priority-organize select,
  .next-work li .priority-snooze,
  .access-deck-tabs button,
  .conversation-header button,
  .conversation-mobile-project select,
  .conversation-compose-footer button,
  #account-app .text-button { min-height: var(--control-touch-height); }
}
@media (forced-colors: active) {
  #account-app select:not([multiple]):not([size]),
  #account-app select[size="1"] {
    appearance: auto;
    background-image: none;
  }
}
