/* Interaction polish (Emil Kowalski's design-engineering rules):
   instant press feedback, strong ease-out, no tap flash, no accidental text selection. */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --motion-fast: 140ms var(--ease-out);
  --motion-base: 180ms var(--ease-out);
}
html { -webkit-tap-highlight-color: transparent; }
button, .btn, .ghost, .danger, .tab, nav button, .chart-column, .today-contact { -webkit-user-select: none; user-select: none; touch-action: manipulation; }

/* Press feedback: the interface confirms it heard the tap. */
.btn, .ghost, .danger, .tab, .sidebar nav button, .chart-column, .today-contact, .glass-folder-open {
  transition: background 140ms var(--ease-out), border-color 140ms var(--ease-out), color 140ms var(--ease-out),
    box-shadow 140ms var(--ease-out), opacity 140ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active:not(:disabled), .ghost:active:not(:disabled), .danger:active:not(:disabled), .tab:active,
.sidebar nav button:active, .today-contact:active, .glass-folder-open:active { transform: scale(0.97); }
.business-row, [data-business-card] { transition: border-color 140ms var(--ease-out), background 140ms var(--ease-out), box-shadow 140ms var(--ease-out), transform 160ms var(--ease-out); }
.business-row:active, [data-business-card]:active { transform: scale(0.99); }
.chart-column:active i { transform: scaleY(0.97); transform-origin: bottom; }

/* Tab bar hides for the keyboard with the iOS drawer curve. */
@media (max-width: 760px) { .sidebar { transition: transform 200ms var(--ease-drawer); } }

/* Toast enters from below with ease-out. */
#toast { transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .btn:active, .ghost:active, .danger:active, .tab:active, .sidebar nav button:active,
  .today-contact:active, .business-row:active, [data-business-card]:active { transform: none; }
}

/* House style (taste-skill review): no eyebrows in caps, no shadows or outlines at rest,
   surfaces separated by a tone step, one text face. Form fields keep their borders. */
:root { --font-mono: var(--font-sans); }
.section-kicker { color: var(--text-secondary); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: lowercase; }
.section-kicker::first-letter { text-transform: uppercase; }
.panel, .metric { border-color: transparent; box-shadow: none; }
.panel .row, .panel .business-row, .panel [data-business-card] { border-color: transparent; background: var(--bg-primary); box-shadow: none; }
.panel .row:hover, .panel .business-row:hover, .panel [data-business-card]:hover { border-color: transparent; background: var(--bg-hover); box-shadow: none; }
.panel .business-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.today-warning { border-color: transparent; }

@media (max-width: 760px) {
  .main { min-height: 100dvh; }
  .sidebar, .sidebar { background: var(--bg-secondary); -webkit-backdrop-filter: none; backdrop-filter: none; border-top: 0; box-shadow: 0 -1px 0 rgba(15, 23, 42, 0.06); }
  .topbar { border-bottom: 0; background: var(--bg-primary); }
}
