/* Apple Design: presentation only; existing gestures, events and layout stay authoritative. */
:root {
  --apple-ink: #1d1d1f;
  --apple-muted: #62626a;
  --apple-blue: #0066cc;
  --apple-canvas: #f5f5f7;
  --apple-line: #d9d9df;
  --apple-shadow: 0 8px 30px rgba(29,29,31,.06), 0 1px 3px rgba(29,29,31,.04);
  --apple-font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
  font-family: var(--apple-font);
  font-optical-sizing: auto;
}
body { background: var(--apple-canvas); color: var(--apple-ink); }
.app-shell { font-family: var(--apple-font); }
.app-shell :is(button, input, select, textarea) { font-family: inherit; accent-color: var(--apple-blue); }
.app-shell :is(h1, h2, h3) { font-optical-sizing: auto; letter-spacing: -.025em; }
.app-shell :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid #0071e3;
  outline-offset: 3px;
}
.app-shell button:not(:disabled):not(.tinder-btn-reject):not(.tinder-btn-approve) { transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease; }
.app-shell button:not(:disabled):active { filter: brightness(.93); }
.app-shell .approved-header p, .app-shell .tinder-stat-left, .app-shell .tinder-hint { color: #62626a; }
.app-shell .tinder-stat-approved { color: #147a4b; }
.app-shell .view-tabs {
  gap: .25rem;
  padding: 10px 16px;
  background: rgba(250,250,252,.88);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border-bottom-color: rgba(29,29,31,.08);
  box-shadow: 0 4px 16px rgba(29,29,31,.025);
}
.app-shell .view-tabs button {
  flex-shrink: 0;
  background: transparent;
  color: #52525a;
  border-radius: .75rem;
  font-weight: 500;
}
.app-shell .view-tabs button:hover { background: #e9e9ee; color: var(--apple-ink); }
.app-shell .view-tabs button.active {
  background: #e5effc;
  color: #0056ad;
  box-shadow: inset 0 0 0 1px rgba(0,102,204,.08);
  font-weight: 650;
}
.app-shell :is(.admin-gate, .maker-page, .tinder-review, .website-publish-page, .messages-page, .messages-login) {
  background: var(--apple-canvas);
  font-family: var(--apple-font);
}
.app-shell .admin-gate form {
  border-color: rgba(29,29,31,.09);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 24px 70px rgba(29,29,31,.07), 0 2px 8px rgba(29,29,31,.025);
}
.app-shell .admin-gate h1 { color: var(--apple-ink); font-weight: 650; line-height: 1.15; }
.app-shell .admin-gate form > span { color: var(--apple-blue); font-weight: 650; letter-spacing: .09em; }
.app-shell .admin-gate p { color: var(--apple-muted); }
.app-shell .admin-gate input { color: var(--apple-ink); background: #fafafa; border-color: #c8c8cf; border-radius: .75rem; }
.app-shell .admin-gate button { background: var(--apple-blue); border-radius: .75rem; font-weight: 600; }
.app-shell :is(.dashboard-page, .approved-page) { padding-top: 1.5rem; }
.app-shell :is(.dashboard-toolbar, .approved-header, .orders-header, .maker-header) h1 { font-weight: 650; line-height: 1.12; }
.app-shell :is(.dashboard-filters, .approved-controls) :is(input, select) {
  min-height: 44px;
  border-color: var(--apple-line);
  border-radius: .75rem;
  background: #fff;
}
.app-shell :is(.card, .approved-card, .facebook-queue-card, .queue-order-editor, .recent-posts, .maker-card,
  .color-options-form, .color-options-editor, .color-options-product, .color-product-preview,
  .color-options-results, .website-catalog, .website-product-workspace) {
  border-radius: 1.125rem;
  box-shadow: var(--apple-shadow);
}
.app-shell .card { border: 1px solid rgba(29,29,31,.08); }
.app-shell .card:hover { box-shadow: 0 12px 32px rgba(29,29,31,.10); }
.app-shell .card.selected { border-color: #0071e3; box-shadow: 0 0 0 2px rgba(0,113,227,.22); }
.app-shell .approved-card.selected { border-color: #0071e3; box-shadow: 0 0 0 2px rgba(0,113,227,.16); }
.app-shell .info { padding: 1rem; }
.app-shell .info .name { font-weight: 650; letter-spacing: -.012em; }
.app-shell .actions button { border-radius: .75rem; font-weight: 600; }
.app-shell :is(.btn-refresh, .btn-find-replacement) { color: #0056ad; background: #eaf2fd; border-radius: .75rem; }
.app-shell :is(.selection-toolbar, .approved-selection, .dashboard-pagination) button { min-height: 44px; border-radius: .625rem; }
.app-shell .approved-selection { border-radius: .875rem; border-color: var(--apple-line); }
.app-shell .tinder-stats { color: var(--apple-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.app-shell .tinder-card { border-radius: 1.625rem; box-shadow: 0 18px 55px rgba(29,29,31,.16), 0 2px 8px rgba(29,29,31,.07); }
.app-shell .tinder-card-info h2 { font-weight: 650; letter-spacing: -.02em; }
/* ponytail: styling never overrides swipe transforms, timing, touch-action or pointer capture. */
.app-shell :is(.maker-search-bar, .maker-proxy-toolbar) { border-radius: 1.125rem; box-shadow: var(--apple-shadow); }
.app-shell .maker-mode-pills { background: #e9e9ee; border-radius: .75rem; }
.app-shell .maker-mode-pill { min-height: 44px; border-radius: .5rem; }
.app-shell .maker-mode-pill.active { color: var(--apple-ink); background: #fff; }
.app-shell :is(.maker-kicker, .maker-source-link, .orders-eyebrow) { color: var(--apple-blue); }
.app-shell :is(.maker-btn-search, .maker-btn-proxy-go, .btn-new-order) { background: var(--apple-blue); }
.app-shell :is(.maker-header h1, .orders-header h1) { color: var(--apple-ink); }
.app-shell :is(.image-editor, .maker-modal-content, .order-import, .avatar-sync-dialog, .website-replacement-dialog) {
  border-radius: 1.25rem;
  box-shadow: 0 28px 90px rgba(29,29,31,.22);
}
.app-shell :is(.image-editor-backdrop, .maker-modal-backdrop) { background: rgba(20,20,24,.48); backdrop-filter: blur(8px); }
.app-shell :is(.orders-header-actions button, .orders-sheet-link, .queue-order-tools button) { min-height: 44px; border-radius: .75rem; }
.app-shell .color-options-hero { background: #1d1d1f; border-radius: 1.5rem; }
.app-shell .color-options-hero :is(span, p) { color: #dedee3; }
.app-shell .color-options-hero h1 { font-weight: 650; line-height: 1.08; }
.app-shell .website-publish-page { --ink: #1d1d1f; --muted: #62626a; --blue: #0066cc; --line: #e5e5ea; }
.app-shell .website-publish-page :is(button, input, select, textarea) { font-family: var(--apple-font); }
.app-shell .website-publish-header h1 { letter-spacing: -.035em; font-weight: 650; }
.app-shell .website-catalog-list > button.active { background: #eaf2fd; box-shadow: inset 3px 0 #0071e3; }
.app-shell .website-workspace-tabs button.active { border-bottom-color: #0066cc; color: #0056ad; }
.app-shell .messages-page { --msg-navy: #242429; --msg-blue: #0071e3; --msg-canvas: #f5f5f7; --msg-ink: #1d1d1f; --msg-line: #e5e5ea; }
.app-shell .messages-layout { box-shadow: var(--apple-shadow); border-radius: 1.25rem; }
.app-shell .conversation-panel { background: #242429; }
.app-shell .message-history { background: #f5f5f7; }
.app-shell .chat-header { background: rgba(255,255,255,.9); backdrop-filter: blur(20px); }
.app-shell .message-bubble.outgoing > div { background: #0071e3; border-color: #0071e3; box-shadow: 0 3px 10px rgba(0,113,227,.12); }
.app-shell .reply-composer footer button { background: #0066cc; box-shadow: none; }
.app-shell .composer-shell { box-shadow: 0 4px 16px rgba(29,29,31,.06); }
.app-shell :is(.messenger-mark, .chat-empty-icon) { transform: none; box-shadow: none; }
.app-shell .messenger-mark { background: #0071e3; }
@media (max-width: 760px) {
  .app-shell .view-tabs { padding-inline: .5rem; }
  .app-shell .view-tabs button { padding-inline: .75rem; }
  .app-shell :is(.dashboard-page, .approved-page) { padding-top: 1rem; }
  .app-shell .image-editor { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell :is(button, a, .card, .thumb-wrap img, .maker-card, .maker-card-thumb img, .color-swatch-box) { transition: none !important; }
  .app-shell :is(.card, .maker-card):hover, .app-shell .card:hover .thumb-wrap img, .app-shell .maker-card-thumb:hover img { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .app-shell :is(.view-tabs, .chat-header) { background: #fafafa; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .app-shell :is(.image-editor-backdrop, .maker-modal-backdrop) { background: rgba(20,20,24,.75); backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .app-shell .view-tabs { background: #fff; border-bottom-color: #62626a; backdrop-filter: none; }
  .app-shell :is(.card, .approved-card, .admin-gate form, .website-catalog, .website-product-workspace) { border-color: #62626a; }
}
