body {
            font-family: 'Inter', sans-serif;
            overscroll-behavior-y: contain; /* Prevents pull-to-refresh on body */
        }
        a.game-link, a.info-link {
            color: #2563eb; /* blue-600 */
            text-decoration: none;
        }
        a.game-link:hover, a.info-link:hover {
            text-decoration: underline;
        }
        .action-btn { /* For individual card refresh icon button */
            padding: 0.2rem 0.35rem; 
            border: 1px solid #d1d5db; /* gray-300 */
            border-radius: 0.375rem; /* rounded-md */
            background-color: #f9fafb; /* gray-50 */
            cursor: pointer;
            transition: background-color 0.15s ease-in-out;
            font-size: 0.875rem; 
            line-height: 1; 
        }
        .action-btn:hover {
            background-color: #f3f4f6; /* gray-100 */
        }
        .control-btn { /* General class for main action buttons (Fetch, Stop etc) */
            padding: 0.5rem 0.75rem;
            border-radius: 0.375rem;
            box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
            font-weight: 600;
            transition: background-color 0.15s ease-in-out;
            font-size: 0.75rem;
            line-height: 1rem;
            white-space: nowrap;
        }

        /* Sort & Filter Control Styling */
        .control-panel-btn { 
            padding: 0.4rem 0.6rem; 
            font-size: 0.7rem; 
            font-weight: 500; 
            color: #6b7280; 
            text-transform: uppercase;
            letter-spacing: 0.05em; 
            cursor: pointer;
            user-select: none;
            background-color: #f9fafb; 
            border: 1px solid #e5e7eb; 
            border-radius: 0.375rem; 
            display: inline-flex; 
            align-items: center;
            margin: 0.125rem; 
            transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, border-color 0.15s ease-in-out;
            line-height: 1.1; 
        }
        .control-panel-btn:hover {
            background-color: #f3f4f6; 
        }
        .control-panel-btn .sort-icon { 
            font-size: 0.8em; 
            margin-left: 4px;
            color: #9ca3af; 
        }
        .control-panel-btn.active, .control-panel-btn .sort-icon.active { 
            color: #1f2937; 
        }
        /* Specific active colors for filters */
        .filter-btn-checked-in.active {
            background-color: #fef3c7; /* yellow-100 */
            border-color: #fde68a; /* yellow-200 */
            color: #ca8a04; /* yellow-600 */
        }
        .filter-btn-new-location.active {
            background-color: #ccfbf1; /* cyan-100 */
            border-color: #99f6e4; /* cyan-200 */
            color: #0d9488; /* cyan-600 */
        }


        /* Game Card Styling */
        .game-card {
            background-color: #ffffff; 
            padding: 0.5rem; 
            border-radius: 0.375rem; 
            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px -1px rgba(0, 0, 0, 0.04); 
            margin-bottom: 0.5rem; 
            display: flex;
            gap: 0.5rem; 
        }
        .game-card-thumbnail {
            width: 44px; 
            height: 44px; 
            object-fit: cover;
            border-radius: 0.125rem; 
            flex-shrink: 0;
        }
        .game-card-content {
            flex-grow: 1;
            min-width: 0; 
        }
        .game-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start; 
            margin-bottom: 0.1rem;
        }
        .game-card-title {
            font-size: 0.9rem; 
            font-weight: 600; 
            color: #1f2937; 
            margin-right: 0.25rem; 
            line-height: 1.3;
        }
         .game-card-year {
            font-size: 0.8rem;
            color: #6b7280;
            margin-left: 0.25rem;
        }
        .game-card-comment {
            font-size: 0.7rem; 
            color: #4b5563; 
            font-style: italic;
            margin-top: 0.1rem; 
            margin-bottom: 0.25rem; 
            max-height: 2.2rem; 
            overflow-y: auto; 
            line-height: 1.25;
        }
        .game-card-tte-status-copies { 
            margin-bottom: 0.25rem; 
        }
        .game-card-tte-status-copies ul {
            padding-left: 0; 
            list-style: none;
        }
        .game-card-tte-status-copies li {
            font-size: 0.75rem; 
            margin-bottom: 0.05rem; 
            line-height: 1.3;
        }
        .copy-link-text { 
            font-weight: 500; 
            font-size: 0.8rem; 
        }
        .status-main-text { 
            font-size: 0.8rem; 
            font-weight: 600;
        }
        .status-sub-text { 
            font-size: 0.65rem; 
            color: #6b7280; 
            margin-left: 0.25rem;
        }
        
        .game-card-bgg-details {
            display: flex;
            flex-wrap: wrap; 
            gap: 0.5rem; 
            font-size: 0.7rem; 
            color: #4b5563; 
            margin-bottom: 0.25rem; 
            line-height: 1.2;
        }
        .game-card-bgg-details > div { 
             display: flex;
             align-items: center;
        }
        .game-card-bgg-details strong { /* Label for BGG Rank */
            font-weight: 500; 
            color: #374151; 
            margin-right: 0.125rem; 
        }
         .game-card-bgg-details .icon {
            width: 0.65rem; 
            height: 0.65rem;
            margin-right: 0.125rem; 
            fill: currentColor; 
        }

        .game-card-tte-info p { /* For TTE Location */
            font-size: 0.7rem; 
            color: #4b5563; 
            margin-bottom: 0.05rem; 
            line-height: 1.3;
        }
         .game-card-tte-info strong { /* Label for TTE Location */
            font-weight: 500; 
            color: #374151; 
        }


        #progressBarContainer {
            height: 6px; 
        }
        #progressBar {
            height: 6px;
            transition: width 0.3s ease-in-out;
        }

        /* General Status Colors */
        .status-checked-in { color: #10b981; }
        .status-checked-out { color: #ef4444; }
        .status-not-in-circulation { color: #ef4444; font-weight: 600; } /* No specific style, handled by not showing */
        .status-not-in-library { color: #f97316; font-weight: 600; font-size: 0.8rem; } 
        .status-error { color: #dc2626; font-weight: 500; font-size: 0.75rem; }
        .status-pending, .status-stopped { color: #6b7280; font-style: italic; font-size: 0.7rem; }