/* Neutral greys by day, graphite by night, and olive for emphasis in both. */
@layer groven-unified-olive {
  html[data-groven-design="2010"] body {
    --olive-bg: #bec1be;
    --olive-field: #dbdedb;
    --olive-panel: #d4d7d4;
    --olive-raised: #c9cdca;
    --olive-reply: #c3cbc3;
    --olive-hover: #bdc3bd;
    --olive-line: #8c958c;
    --olive-ink: #222822;
    --olive-muted: #434c44;
    --olive-accent: #485936;
    --olive-focus: #536445;
    --olive-header: linear-gradient(#4d593b, #3b482f 52%, #35432a);
    --olive-button: linear-gradient(#dde0dd, #ccd1cd 55%, #c7ccc8);
    --olive-selected: linear-gradient(#536445, #3d4d32);
    --olive-selected-hover: #566748;
    --olive-on-selected: #f0f2e5;
    --olive-on-header-muted: #d8dfcb;
    --olive-badge: linear-gradient(#e8efdc, #cad8b9);
    --olive-shadow: inset 0 1px #ffffff60, 0 2px 6px #282d291c;
    --olive-header-shadow: inset 0 1px #e1ebcf26, 0 2px 5px #222a2124;
    --olive-error: #9a3227;
    --ink: var(--olive-ink) !important;
    --muted: var(--olive-muted) !important;
    --accent: var(--olive-accent) !important;
    --lime: var(--olive-raised) !important;
    --pale: var(--olive-field) !important;
    --line: var(--olive-line) !important;
    --glass: var(--olive-panel) !important;
    --glass-strong: var(--olive-raised) !important;
    --page-background: var(--olive-bg) !important;
    --shadow: var(--olive-shadow) !important;
    --retro-paper: var(--olive-panel) !important;
    --retro-field: var(--olive-field) !important;
    --retro-silver: var(--olive-button) !important;
    --retro-green: var(--olive-header) !important;
    --retro-green-edge: var(--olive-line) !important;
    --retro-charcoal: var(--olive-header) !important;
    --retro-shadow: var(--olive-shadow) !important;
    --pocket-paper: var(--olive-panel) !important;
    --pocket-ink: var(--olive-ink) !important;
    --pocket-muted: var(--olive-muted) !important;
    --pocket-line: var(--olive-line) !important;
    --pocket-olive: var(--olive-header) !important;
    --pocket-silver: var(--olive-button) !important;
    --pocket-apple: var(--olive-selected) !important;
    --pocket-apple-text: var(--olive-on-selected) !important;
    color-scheme: light;
    color: var(--olive-ink) !important;
    background: var(--olive-bg) !important;
  }
  html[data-groven-design="2010"] body.gray {
    --olive-bg: #b4b7b4;
    --olive-field: #d4d8d5;
    --olive-panel: #cdd1ce;
    --olive-raised: #c2c7c3;
    --olive-muted: #3d463e;
    --olive-accent: #415132;
  }
  html[data-groven-design="2010"] body.night {
    --olive-bg: #212325;
    --olive-field: #272a2c;
    --olive-panel: #2d3033;
    --olive-raised: #383c3f;
    --olive-reply: #41474b;
    --olive-hover: #494e52;
    --olive-line: #71787c;
    --olive-ink: #e9ecee;
    --olive-muted: #bfc6c9;
    --olive-accent: #c5d9a9;
    --olive-focus: #a5bc8a;
    --olive-button: linear-gradient(#484d51, #373b3e);
    --olive-shadow: inset 0 1px #eff4f81e, 0 2px 6px #1214164d;
    --olive-error: #ffb9aa;
    color-scheme: dark;
  }
  html[data-groven-design="2010"] body #authScreen.pocket-welcome.is-active {
    --pocket-page: var(--olive-bg) !important;
    --pocket-paper: var(--olive-panel) !important;
    --pocket-ink: var(--olive-ink) !important;
    --pocket-muted: var(--olive-muted) !important;
    --pocket-edge: var(--olive-line) !important;
    --pocket-bar: var(--olive-header) !important;
    --pocket-apple: var(--olive-selected) !important;
  }
  html[data-groven-design="2010"] body #profileShop {
    --shop-paper: var(--olive-panel) !important;
    --shop-surface: var(--olive-bg) !important;
    --shop-edge: var(--olive-line) !important;
    --shop-ink: var(--olive-ink) !important;
    --shop-muted: var(--olive-muted) !important;
    --shop-header: var(--olive-raised) !important;
    --shop-toolbar: var(--olive-field) !important;
    --shop-card-footer: var(--olive-raised) !important;
  }
  html[data-groven-design="2010"] body #profileShop :is(.grovin-wallet, .shop-founder-note) {
    background: var(--olive-field) !important;
    border-color: var(--olive-line) !important;
    color: var(--olive-muted) !important;
    box-shadow: var(--olive-shadow) !important;
  }
  html[data-groven-design="2010"] body #profileShop .grovin-wallet :is(b, small) { color: var(--olive-ink) !important; }
  html[data-groven-design="2010"] body #profileShop .shop-item { --shop-item-accent: var(--olive-line) !important; }
  html[data-groven-design="2010"] body :is(#appScreen, #guestScreen, #setupScreen, #authScreen, #hubPage, .app-content, .guest-content, .guest-layout) {
    background: var(--olive-bg) !important;
    color: var(--olive-ink) !important;
  }
  html[data-groven-design="2010"] body :where(.glass-card:not(.profile-hero), .modal, .post-card, .post-card-body,
    .guest-notice, .guest-feed-controls, .guest-welcome, .feed-toolbar, .sidebar, .pocket-widget, .pocket-account,
    .friend-card, .community-card, .communities-directory, .notification-card, .grovie-collection,
    .profile-shop, .tamagotchi-shop, .profile-identity, .public-profile-dialog, .music-catalog,
    .streaming-shelf, .local-music-library, .spotify-main-library, .groven-device-body, .custom-room-guide,
    .hub-menu-card, .hub-notes-card, .hub-events-card, .hub-profile-card, .grove-camera, .spotify-main-playlists,
    .friend-search, .profile-guestbook, .grovie-card, .grovie-room, .public-profile-head, .public-profile-details) {
    background: var(--olive-panel) !important;
    color: var(--olive-ink) !important;
    border-color: var(--olive-line) !important;
    box-shadow: var(--olive-shadow) !important;
  }
  html[data-groven-design="2010"] body :is(.profile-hero, .profile-cover-image, .public-profile-cover, .hub-profile-cover,
    .large-avatar, .mini-avatar, .avatar-preview, .public-profile-avatar, .post-avatar, .post-card-avatar,
    .message-contact-avatar, .mobile-message-avatar) {
    /* Profile and avatar photos may be inline background images. */
    background-color: var(--olive-raised) !important;
    color: var(--olive-ink) !important;
    border-color: var(--olive-line) !important;
  }
  html[data-groven-design="2010"] body .mobile-message-avatar:not([style*="background-image"]) {
    background: var(--olive-raised) !important;
  }
  html[data-groven-design="2010"] body :is(.public-profile-avatar:not([style*="background-image"]),
    .public-profile-cover:not(.has-cover)) {
    background: var(--olive-raised) !important;
  }
  html[data-groven-design="2010"] body :is(.app-header, .guest-header, .setup-header, .pocket-welcome-bar,
    .pocket-widget-title, .pocket-account-title, .composer-window-title, .message-window-titlebar,
    .post-media-editor-title, .hub-fullscreen-bar, .grove-camera-bar, .hub-card-title, .toast) {
    background: var(--olive-header) !important;
    color: var(--olive-on-selected) !important;
    border-color: var(--olive-line) !important;
    box-shadow: var(--olive-header-shadow) !important;
  }
  html[data-groven-design="2010"] body :is(.app-header, .guest-header, .hub-fullscreen-bar)::before {
    background: var(--olive-header) !important;
  }
  html[data-groven-design="2010"] body :is(.retro-brand, .retro-brand b, .pocket-widget-title b, .pocket-welcome-brand,
    .pocket-guest-brand, .setup-header .wordmark, .setup-header .wordmark span, .pocket-account-title h2,
    .composer-window-title b, .hub-card-title b, .hub-fullscreen-brand b, .message-window-titlebar b) {
    color: var(--olive-on-selected) !important;
    text-shadow: none !important;
  }
  html[data-groven-design="2010"] body :is(.profile-identity h3, .profile-stats b, .public-profile-name, .post-card-author > b,
    .pocket-account h3, .guest-feed-heading h2, .groven-hub-head h3,
    .message-self-card b, .message-peer-header b, .message-contact-group > b, .groven-device-brand b,
    #streamingShelfTitle, #shopTitle, #messageContactsTitle, .public-profile-head h3, .profile-guestbook-head b) {
    color: var(--olive-ink) !important;
    text-shadow: none !important;
  }
  html[data-groven-design="2010"] body :is(.pocket-welcome-footer, .guest-footer, .retro-bottom-nav, .welcome-ribbon,
    .hub-activity-strip, .hub-profile-identity, .hub-profile-stats, .profile-stats, .profile-quick-actions, .profile-details-grid,
    .post-social-bar, .message-menu-bar, .message-action-strip, .message-contacts-pane, .message-peer-header, .message-composer,
    .message-composer-tools, .message-send-row, .message-self-card, .message-bubble,
    .message-emoji-tray, .settings-tabs, .settings-panels, .settings-email, .safe-note, .post-place-field, .post-music-attachment,
    .post-media-toolbar, .post-photo-options, .post-video-options, .music-email-note, .streaming-player-shell,
    .groven-device-screen, .groven-device-console, .spotify-quick-start, .spotify-import-panel, .spotify-track-panel,
    .custom-room-toolbar, .pocket-action-panel, .community-wall-head, .community-invite-hint,
    .message-contact-group, .spotify-quick-form-row, .home-rail-icon, #hubCalendarHint, .official-updates,
    .message-contacts-brand, .sensitive-post-control, .official-updates > article, .starter-goal li,
    .post-card-head, .grovie-room-head, .mobile-message-header, .profile-shop-head, .community-card-head,
    .message-contact-group h4, .no-friends-note, .grove-camera-tools) {
    background: var(--olive-raised) !important;
    color: var(--olive-ink) !important;
    border-color: var(--olive-line) !important;
  }
  html[data-groven-design="2010"] body :is(.message-chat-pane, .message-thread, .field-shell, .streaming-player-empty,
    #grovieRarity, #profileGuestbookCount, #friendsEmptyState p, .public-profile-stats,
    .public-profile-details p, #publicProfileDialog .profile-guestbook-head b) {
    background: var(--olive-field) !important;
    color: var(--olive-ink) !important;
    border-color: var(--olive-line) !important;
  }
  html[data-groven-design="2010"] body .message-row.mine .message-bubble {
    background: var(--olive-reply) !important;
    color: var(--olive-ink) !important;
  }
  html[data-groven-design="2010"] body #hubPage :is(.hub-primary-grid, .hub-utility-menu) > button[data-aero-icon] {
    --aero-tint: #d1ddb9 !important;
    --aero-accent: #a4b886 !important;
  }
  html[data-groven-design="2010"] body #hubPage :is(.hub-primary-grid, .hub-utility-menu) > button[data-aero-icon] > span {
    background: var(--olive-button) !important;
    border-color: var(--olive-line) !important;
    box-shadow: var(--olive-shadow) !important;
  }
  html[data-groven-design="2010"] body :where(.soft-button, .outline-button, .nav-item, .icon-button, .notification-button,
    .profile-trigger, .theme-button, .top-menu-button, .nav-menu-button, .close-modal, .guest-nav button, .feed-filter,
    .guest-filters button, .composer-top button, .modal-tool, .post-media-toolbar button, .message-composer-tools button,
    .message-contact-row, .message-action-strip button, .settings-tab, .settings-row, .profile-section-tiles button,
    .shop-tabs button, .music-source-tabs button, .global-search-tabs button, .retro-bottom-nav button,
    .pocket-action-panel > button, .hub-back-button, .contact-action,
    .grove-camera button:not(.grove-camera-shutter), .profile-cover-upload, #browseAsGuest, #authModeToggle,
    .hub-primary-grid > button, .hub-utility-menu > button, .hub-fullscreen-actions > button,
    #grovieRoomArrange, #welcomeRibbon button, .grovie-rename) {
    background: var(--olive-button) !important;
    color: var(--olive-ink) !important;
    border-color: var(--olive-line) !important;
    box-shadow: var(--olive-shadow) !important;
    text-shadow: none !important;
  }
  html[data-groven-design="2010"] body :is(.soft-button, .outline-button, .nav-item, .icon-button, .feed-filter,
    .guest-filters button, .composer-top button, .modal-tool, .settings-row, .settings-tab, .pocket-action-panel > button,
    .hub-primary-grid > button, .hub-utility-menu > button):hover {
    background: var(--olive-hover) !important;
  }
  html[data-groven-design="2010"] body :is(.primary-button, .auth-submit, .round-button, .nav-item.active,
    .guest-nav button:is(.active, .is-active, [aria-current=page]), .guest-filters :is(.active, .is-active, [aria-pressed=true]),
    .feed-filter:is(.active, .is-active, [aria-pressed=true]),
    .settings-tab.active, .shop-tabs .active,
    .global-search-tabs .active, .music-source-tabs .active, .retro-bottom-nav .is-active, .retro-bottom-camera,
    .notification-button b, .message-send-row button[type=submit], .pocket-welcome-actions .primary-button,
    .pocket-welcome-account-link) {
    background: var(--olive-selected) !important;
    color: var(--olive-on-selected) !important;
    border-color: var(--olive-line) !important;
    text-shadow: none !important;
  }
  html[data-groven-design="2010"] body :is(.primary-button, .auth-submit, .round-button, .retro-bottom-camera, .message-send-row button[type=submit]):hover {
    background: var(--olive-selected-hover) !important;
  }
  html[data-groven-design="2010"] body :is(input:not([type=radio], [type=checkbox], [type=range], [type=color], [type=hidden]),
    textarea, select) {
    background: var(--olive-field) !important;
    color: var(--olive-ink) !important;
    border-color: var(--olive-line) !important;
  }
  html[data-groven-design="2010"] body :is(input, textarea)::placeholder { color: var(--olive-muted) !important; }
  html[data-groven-design="2010"] body :is(input[type=radio], input[type=checkbox], input[type=range]) { accent-color: var(--olive-accent); }
  html[data-groven-design="2010"] body :is(.toggle-row i, .theme-dot, .mood-pill) {
    background: var(--olive-field) !important;
    color: var(--olive-muted) !important;
    border-color: var(--olive-line) !important;
  }
  html[data-groven-design="2010"] body :is(.toggle-row input:checked + i, .mood-pill.selected) {
    background: var(--olive-selected) !important;
    color: var(--olive-on-selected) !important;
  }
  html[data-groven-design="2010"] body :where(.eyebrow, .form-note, .intro, .password-hint, .guest-welcome-hint, .guest-tools,
    .settings-row small, .toggle-row small, .settings-email small, .post-card-author small, .message-peer-status,
    .message-search-label, .sidebar-bottom > p, .friend-card-handle, .profile-cover-note, .community-dialog-copy,
    .profile-guestbook-copy, .profile-guestbook-comments > p, .profile-details-grid :is(p, small), .friend-search-note,
    .friends-empty-copy p, .communities-page-head p, .communities-directory p, .message-label,
    .message-contact-group :is(h4, small), .message-self-card small, .message-peer-header small,
    #grovieSpecies, #grovieMessage, #grovieCollectionHint, #grovieRoomHint, #shopHint, #streamingLibraryHint,
    #streamingDeviceNote, #streamingLinkCount, #streamingLinkEmpty, #nextStepCopy, .official-updates p,
    #hubCalendarStatus, #friendSearchForm label, #friendsEmptyState p, #newMessage small, #communitiesFilterLabel,
    #spotifyQuickLabel, #messageContactGroupTitle, #messageContactCount, .grovie-need span, #grovieRarity,
    .profile-community-head :is(small, p), .profile-detail-empty, .profile-community-empty, #profileGuestbookCount,
    .listening-summary small, #listeningDuration, .groven-device-brand > div span, #messageContactsSubtitle,
    .sensitive-post-control small, .settings-action-copy, .public-profile-details :is(small, span), #globalSearchStatus,
    .public-profile-handle, .public-profile-bio, .grove-camera-caption p, .grove-camera-status, .grove-camera-privacy,
    #streamingEmptyHint, .no-friends-note p, .grove-camera-adjust output) {
    color: var(--olive-muted) !important;
  }
  html[data-groven-design="2010"] body :is(.starter-head b, .starter-goal li, .official-updates b, .grovie-collection-item :is(b, small, i)) {
    color: var(--olive-ink) !important;
  }
  html[data-groven-design="2010"] body .grovie-collection-item {
    background: var(--olive-field) !important;
    border-color: var(--olive-line) !important;
  }
  html[data-groven-design="2010"] body .grovie-collection-item.is-active {
    background: var(--olive-reply) !important;
    border-color: var(--olive-focus) !important;
  }
  html[data-groven-design="2010"] body :is(#appScreen, #guestScreen, #publicProfileDialog) .supporter-badge-first20 {
    background: var(--olive-badge) !important;
    border-color: var(--olive-line) !important;
  }
  html[data-groven-design="2010"] body :is(#appScreen, #guestScreen, #publicProfileDialog) .supporter-badge-first20 small {
    color: #283223 !important;
    text-shadow: none !important;
  }
  html[data-groven-design="2010"] body .next-step-number {
    background: var(--olive-header) !important;
    color: var(--olive-on-selected) !important;
    border-color: var(--olive-line) !important;
  }
  html[data-groven-design="2010"] body :is(.auth-link, .support-link, .site-credits a, .guest-footer a, .pocket-welcome-footer a,
    .profile-signals a, .post-card-body a, .community-post-list a, .message-thread a, .pocket-account a) {
    color: var(--olive-accent) !important;
  }
  html[data-groven-design="2010"] body :is(.auth-feedback.error, .auth-feedback[data-tone=error], .form-error,
    .settings-row.danger, .modal-tool.danger, .media-remove, .connect-status.error, .message-status.error) {
    color: var(--olive-error) !important;
  }
  html[data-groven-design="2010"] body :is(button, a, input, textarea, select, summary):focus-visible {
    outline-color: var(--olive-focus) !important;
  }
  html[data-groven-design="2010"] body :is(.pocket-account-title, .hub-card-title, .setup-header) :is(h2, h3, b) {
    color: var(--olive-on-selected) !important;
  }
  html[data-groven-design="2010"] body :is(.pocket-widget-title, .hub-card-title, .setup-header, .post-media-editor-title,
    .hub-fullscreen-brand, .pocket-welcome-copy) :is(.eyebrow, p, small, i) {
    color: var(--olive-on-header-muted) !important;
  }
  html[data-groven-design="2010"] body #messageWindowStatus {
    color: var(--olive-on-header-muted) !important;
  }
  html[data-groven-design="2010"] body dialog::backdrop { background: #24272985 !important; }
  html[data-groven-design="2010"] body ::selection { background: #536445; color: var(--olive-on-selected); }
}
