/* AppReview Hub homepage and review workspace. */
:root {
      --bg-page: #f6f8fb;
      --bg-card: #ffffff;
      --bg-subtle: #f1f5f9;
      --text-main: #0f172a;
      --text-muted: #64748b;
      --text-soft: #94a3b8;
      --border: #e2e8f0;
      --border-light: #f1f5f9;
      --primary: #2563eb;
      --primary-hover: #1d4ed8;
      --primary-light: #eff6ff;
      --primary-border: #bfdbfe;
      --star: #f59e0b;
      --star-gray: #cbd5e1;
      --success: #10b981;
      --success-bg: #ecfdf5;
      --success-text: #047857;
      --danger: #ef4444;
      --danger-bg: #fef2f2;
      --danger-text: #b91c1c;
      --apple-blue: #0284c7;
      --apple-bg: #f0f9ff;
      --google-green: #059669;
      --google-bg: #ecfdf5;
      --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
      --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
      --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
      --radius-sm: 8px;
      --radius-md: 12px;
      --radius-lg: 16px;
      --radius-xl: 24px;
    }

    html.dark {
      --bg-page: #0b0f19;
      --bg-card: #151d30;
      --bg-subtle: #1e293b;
      --text-main: #f6f8fb;
      --text-muted: #94a3b8;
      --text-soft: #64748b;
      --border: #232f48;
      --border-light: #1e293b;
      --primary: #3b82f6;
      --primary-hover: #2563eb;
      --primary-light: #1e1b4b;
      --primary-border: #3730a3;
      --star: #fbbf24;
      --star-gray: #334155;
      --success: #34d399;
      --success-bg: #064e3b;
      --success-text: #6ee7b7;
      --danger: #f87171;
      --danger-bg: #450a0a;
      --danger-text: #fca5a5;
      --apple-blue: #38bdf8;
      --apple-bg: #082f49;
      --google-green: #34d399;
      --google-bg: #064e3b;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      -webkit-font-smoothing: antialiased;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      background-color: var(--bg-page);
      color: var(--text-main);
      line-height: 1.5;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      transition: background-color 0.2s, color 0.2s;
    }

    /* SVG Safety Constraints (Never blow up) */
    svg {
      max-width: 100%;
      height: auto;
      display: inline-block;
      vertical-align: middle;
      flex-shrink: 0;
    }

    /* Container */
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 16px;
      width: 100%;
    }

    /* Header */
    header {
      position: sticky;
      top: 0;
      z-index: 50;
      background-color: rgba(255, 255, 255, 0.95);
      border-bottom: 1px solid var(--border);
      backdrop-filter: blur(8px);
    }
    html.dark header {
      background-color: rgba(21, 29, 48, 0.95);
    }
    .header-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 64px;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      text-decoration: none;
      color: inherit;
    }
    .brand-icon {
      width: 40px;
      height: 40px;
      border-radius: var(--radius-md);
      background: var(--bg-subtle);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
      flex-shrink: 0;
    }
    .brand-title {
      font-size: 19px;
      font-weight: 800;
      letter-spacing: -0.02em;
      background: var(--bg-subtle);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .brand-badge {
      font-size: 11px;
      font-weight: 600;
      padding: 2px 8px;
      border-radius: 9999px;
      background-color: var(--primary-light);
      color: var(--primary);
      margin-left: 8px;
    }

    /* Actions & Theme toggle */
    .header-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .btn-header {
      padding: 7px 14px;
      font-size: 13px;
      font-weight: 600;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
      background: var(--bg-card);
      color: var(--text-muted);
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      transition: all 0.15s;
    }
    .btn-header:hover {
      background: var(--bg-subtle);
      color: var(--text-main);
    }
    .theme-btn {
      width: 38px;
      height: 38px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
      background: var(--bg-card);
      color: var(--text-muted);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }

    /* AdSense Container */
    .ad-container {
      max-width: 1200px;
      margin: 16px auto;
      text-align: center;
      padding: 0 16px;
      min-height: 90px;
    }

    /* Toast */
    .toast-container {
      position: fixed;
      top: 80px;
      right: 20px;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      gap: 8px;
      pointer-events: none;
    }
    .toast {
      padding: 12px 18px;
      border-radius: var(--radius-md);
      font-size: 13px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
      box-shadow: var(--shadow-lg);
      transform: translateX(100px);
      opacity: 0;
      transition: all 0.3s ease;
      pointer-events: auto;
    }
    .toast.show {
      transform: translateX(0);
      opacity: 1;
    }
    .toast-success { background: #059669; color: #fff; }
    .toast-error { background: #dc2626; color: #fff; }
    .toast-info { background: #2563eb; color: #fff; }

    /* Main Container */
    main {
      flex: 1;
      padding: 24px 0 40px;
    }

    /* Hero Search Section */
    .hero-section {
      background: var(--bg-subtle);
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      padding: 36px 20px;
      text-align: center;
      background-color: var(--bg-card);
      box-shadow: var(--shadow-sm);
      margin-bottom: 32px;
    }
    .hero-title {
      font-size: 28px;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--text-main);
    }
    @media (min-width: 640px) {
      .hero-title { font-size: 34px; }
      .hero-section { padding: 48px 32px; }
    }
    .hero-desc {
      margin-top: 8px;
      font-size: 14px;
      color: var(--text-muted);
      max-width: 640px;
      margin-left: auto;
      margin-right: auto;
    }

    /* Search Form */
    .search-bar-wrap {
      max-width: 780px;
      margin: 28px auto 0;
    }
    .search-bar {
      display: flex;
      flex-direction: column;
      gap: 8px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      padding: 8px;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-md);
    }
    @media (min-width: 640px) {
      .search-bar {
        flex-direction: row;
        align-items: center;
      }
    }
    .search-select {
      background: var(--bg-subtle);
      border: 1px solid var(--border);
      color: var(--text-main);
      font-size: 13px;
      font-weight: 600;
      padding: 10px 14px;
      border-radius: var(--radius-md);
      outline: none;
      cursor: pointer;
    }
    .search-input-wrap {
      flex: 1;
      position: relative;
    }
    .search-input {
      width: 100%;
      padding: 11px 16px;
      background: transparent;
      border: none;
      outline: none;
      font-size: 14px;
      color: var(--text-main);
    }
    .search-input::placeholder {
      color: var(--text-soft);
    }
    .btn-search {
      background: var(--primary);
      color: #fff;
      font-weight: 700;
      font-size: 14px;
      padding: 11px 22px;
      border-radius: var(--radius-md);
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: background-color 0.15s;
    }
    .btn-search:hover {
      background: var(--primary-hover);
    }

    /* Quick suggestions */
    .quick-tags {
      margin-top: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 8px;
      font-size: 12px;
      color: var(--text-muted);
    }
    .quick-tag-btn {
      background: none;
      border: none;
      color: var(--primary);
      cursor: pointer;
      font-size: 12px;
      font-weight: 600;
      text-decoration: underline;
    }

    /* Section Headers */
    .section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
      flex-wrap: wrap;
      gap: 12px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border);
    }
    .section-title {
      font-size: 20px;
      font-weight: 800;
      color: var(--text-main);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .badge-count {
      font-size: 12px;
      font-weight: 700;
      padding: 2px 10px;
      border-radius: 9999px;
      background: var(--bg-subtle);
      color: var(--text-muted);
      border: 1px solid var(--border);
    }

    /* App Cards Grid */
    .apps-grid {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      gap: 16px;
    }
    @media (min-width: 640px) {
      .apps-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (min-width: 1024px) {
      .apps-grid { grid-template-columns: repeat(3, 1fr); }
    }

    .app-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 18px;
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: all 0.2s ease;
    }
    .app-card:hover {
      box-shadow: var(--shadow-md);
      border-color: var(--primary-border);
      transform: translateY(-2px);
    }

    .app-card-top {
      display: flex;
      align-items: flex-start;
      gap: 14px;
    }
    .app-icon-img {
      width: 58px;
      height: 58px;
      border-radius: 14px;
      object-fit: cover;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      background-color: var(--bg-subtle);
      flex-shrink: 0;
    }
    .app-card-info {
      flex: 1;
      min-width: 0;
    }
    .app-card-title {
      font-size: 15px;
      font-weight: 700;
      color: var(--text-main);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .app-card-dev {
      font-size: 12px;
      color: var(--text-muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-top: 2px;
    }
    .store-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 9999px;
      margin-bottom: 6px;
    }
    .store-badge-apple {
      background: var(--apple-bg);
      color: var(--apple-blue);
      border: 1px solid rgba(2, 132, 199, 0.2);
    }
    .store-badge-google {
      background: var(--google-bg);
      color: var(--google-green);
      border: 1px solid rgba(5, 150, 105, 0.2);
    }

    .app-card-stats {
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid var(--border-light);
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 12px;
    }
    .app-card-actions {
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid var(--border-light);
      display: flex;
      gap: 8px;
    }
    .btn-view-app {
      flex: 1;
      padding: 9px 12px;
      font-size: 13px;
      font-weight: 600;
      text-align: center;
      border-radius: var(--radius-sm);
      background: var(--primary-light);
      color: var(--primary);
      border: none;
      cursor: pointer;
      transition: all 0.15s;
    }
    .btn-view-app:hover {
      background: var(--primary);
      color: #fff;
    }
    .btn-quick-sync {
      padding: 9px 12px;
      border-radius: var(--radius-sm);
      background: var(--bg-subtle);
      border: 1px solid var(--border);
      color: var(--text-muted);
      cursor: pointer;
    }
    .btn-quick-sync:hover {
      background: var(--primary);
      color: #fff;
    }

    /* Detail View Styling */
    .detail-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
      flex-wrap: wrap;
      gap: 12px;
    }
    .btn-back {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 14px;
      font-size: 13px;
      font-weight: 600;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
      background: var(--bg-card);
      color: var(--text-main);
      cursor: pointer;
    }
    .btn-sync-main {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 18px;
      font-size: 13px;
      font-weight: 700;
      border-radius: var(--radius-md);
      background: var(--primary);
      color: #fff;
      border: none;
      cursor: pointer;
      box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
      transition: all 0.15s;
    }
    .btn-sync-main:hover {
      background: var(--primary-hover);
    }
    .btn-export {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 14px;
      font-size: 13px;
      font-weight: 600;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
      background: var(--bg-card);
      color: var(--text-main);
      cursor: pointer;
    }

    /* App Detail Hero */
    .detail-hero {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 20px;
      box-shadow: var(--shadow-sm);
      margin-bottom: 24px;
    }
    @media (min-width: 640px) {
      .detail-hero {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
      }
    }
    .detail-hero-left {
      display: flex;
      align-items: center;
      gap: 20px;
    }
    .detail-hero-icon {
      width: 76px;
      height: 76px;
      border-radius: 18px;
      object-fit: cover;
      box-shadow: var(--shadow-md);
      flex-shrink: 0;
    }
    .detail-hero-title {
      font-size: 22px;
      font-weight: 800;
      color: var(--text-main);
      line-height: 1.25;
    }
    .detail-hero-sub {
      font-size: 13px;
      color: var(--text-muted);
      margin-top: 4px;
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    /* Metric Cards Grid */
    .metrics-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
      margin-bottom: 24px;
    }
    @media (min-width: 768px) {
      .metrics-grid { grid-template-columns: repeat(4, 1fr); }
    }
    .metric-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-shadow: var(--shadow-sm);
    }
    .metric-val {
      font-size: 24px;
      font-weight: 900;
      color: var(--text-main);
      margin-top: 4px;
    }
    .metric-label {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-muted);
    }
    .metric-unreplied {
      border-color: rgba(239, 68, 68, 0.4);
      background-color: var(--danger-bg);
      cursor: pointer;
    }
    .metric-unreplied .metric-val,
    .metric-unreplied .metric-label {
      color: var(--danger-text);
    }
    .metric-replied {
      border-color: rgba(16, 185, 129, 0.4);
      background-color: var(--success-bg);
      cursor: pointer;
    }
    .metric-replied .metric-val,
    .metric-replied .metric-label {
      color: var(--success-text);
    }

    /* Rating Distribution */
    .dist-box {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 18px;
      margin-bottom: 24px;
      box-shadow: var(--shadow-sm);
    }
    .dist-title {
      font-size: 13px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-soft);
      margin-bottom: 12px;
    }
    .dist-row {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 12px;
      padding: 5px 8px;
      border-radius: var(--radius-sm);
      cursor: pointer;
      transition: background-color 0.15s;
    }
    .dist-row:hover {
      background-color: var(--bg-subtle);
    }
    .dist-bar-bg {
      flex: 1;
      height: 8px;
      background: var(--bg-subtle);
      border-radius: 9999px;
      overflow: hidden;
    }
    .dist-bar-fill {
      height: 100%;
      background: var(--star);
      border-radius: 9999px;
      transition: width 0.4s ease;
    }

    /* Filter Toolbar */
    .filter-toolbar {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 16px;
      margin-bottom: 24px;
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .filter-group {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }
    .filter-label {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-muted);
      margin-right: 6px;
    }
    .filter-btn {
      padding: 6px 12px;
      font-size: 12px;
      font-weight: 600;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
      background: var(--bg-subtle);
      color: var(--text-main);
      cursor: pointer;
      transition: all 0.15s;
    }
    .filter-btn.active {
      background: var(--primary);
      color: #fff;
      border-color: var(--primary);
    }

    .filter-search-row {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding-top: 14px;
      border-top: 1px solid var(--border-light);
    }
    @media (min-width: 640px) {
      .filter-search-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
      }
    }
    .filter-search-input {
      flex: 1;
      max-width: 420px;
      padding: 8px 14px;
      font-size: 13px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      background: var(--bg-page);
      color: var(--text-main);
      outline: none;
    }
    .sort-select {
      padding: 8px 12px;
      font-size: 13px;
      font-weight: 600;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      background: var(--bg-page);
      color: var(--text-main);
      outline: none;
      cursor: pointer;
    }

    /* Review Card */
    .review-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 20px;
      margin-bottom: 14px;
      box-shadow: var(--shadow-sm);
    }
    .review-card-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      margin-bottom: 10px;
    }
    .review-user-info {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .review-avatar {
      width: 36px;
      height: 36px;
      border-radius: 9999px;
      background: var(--bg-subtle);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 700;
      color: var(--text-main);
      flex-shrink: 0;
    }
    .review-avatar-img {
      width: 36px;
      height: 36px;
      border-radius: 9999px;
      object-fit: cover;
      flex-shrink: 0;
      border: 1px solid var(--border);
      display: block;
    }
    html.dark .review-avatar {
      background: var(--bg-subtle);
    }
    .review-user-name {
      font-size: 13px;
      font-weight: 700;
      color: var(--text-main);
    }
    .review-date {
      font-size: 11px;
      color: var(--text-soft);
    }
    .review-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 6px;
    }
    .review-content {
      font-size: 13px;
      color: var(--text-main);
      line-height: 1.6;
      white-space: pre-wrap;
    }
    .reply-box {
      margin-top: 14px;
      background: var(--primary-light);
      border: 1px solid var(--primary-border);
      border-radius: var(--radius-md);
      padding: 14px;
      font-size: 12px;
    }
    .reply-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-weight: 700;
      color: var(--primary);
      margin-bottom: 6px;
    }
    .reply-content {
      color: var(--text-main);
      line-height: 1.5;
    }
    .unreplied-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      color: var(--text-soft);
      margin-top: 10px;
    }
    .review-original-link a:hover {
      text-decoration: underline;
      opacity: 0.85;
    }

    /* Pagination */
    .pagination-bar {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      margin: 28px 0;
    }
    .btn-page {
      padding: 8px 18px;
      font-size: 13px;
      font-weight: 600;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
      background: var(--bg-card);
      color: var(--text-main);
      cursor: pointer;
    }
    .btn-page:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }

    /* Modal styles */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(15, 23, 42, 0.65);
      backdrop-filter: blur(4px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      padding: 16px;
    }
    .modal-overlay.hidden {
      display: none !important;
    }
    .modal-dialog {
      max-width: 580px;
      width: 100%;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 24px;
      box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2), 0 8px 10px -6px rgba(0,0,0,0.1);
      position: relative;
    }
    .sync-ad-panel {
      display: none;
      margin: 0 0 20px;
      padding: 14px 16px 10px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      text-align: center;
    }
    .sync-ad-panel.is-visible { display: block; }
    .sync-ad-label {
      margin-bottom: 8px;
      color: var(--text-soft);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    /* Footer */
    footer {
      border-top: 1px solid var(--border);
      background: var(--bg-card);
      padding: 24px 0;
      text-align: center;
      font-size: 12px;
      color: var(--text-soft);
      margin-top: auto;
    }

    /* Helper Utilities */
    .hidden { display: none !important; }
    .star-amber { color: var(--star); }
    .star-gray { color: var(--star-gray); }
    .loading-spinner {
      display: inline-block;
      width: 18px;
      height: 18px;
      border: 2px solid rgba(255,255,255,0.3);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

/* Bright, focused app research workspace. */
:root{--primary:#2563eb;--primary-hover:#1d4ed8;--primary-light:#eff6ff;--primary-border:#bfdbfe;--bg-page:#f6f8fb;--text-main:#0f172a;--text-muted:#64748b;--text-soft:#728097;--border:#e2e8f0;--shadow-sm:0 2px 6px rgba(15,23,42,.025);--shadow-md:0 5px 18px rgba(15,23,42,.05)}
html{scroll-behavior:smooth;scroll-padding-top:95px}
body{font-size:14px;line-height:1.6}
button,input,select{font:inherit}a{color:var(--primary)}button,a,input,select{touch-action:manipulation}button{transition:background-color .15s,border-color .15s,color .15s}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}
.container{max-width:1200px;padding:0 30px}
.ar-site-header{position:sticky;top:0;background:rgba(255,255,255,.97);border-bottom:1px solid var(--border);box-shadow:none;z-index:50}
.header-content{height:74px;gap:28px}.brand{gap:10px;flex-shrink:0}.brand-icon{width:34px;height:34px;border-radius:10px;background:var(--primary);box-shadow:none}.brand-title{color:var(--text-main);font-size:18px;letter-spacing:-.6px;font-weight:750;background:none;-webkit-text-fill-color:currentColor}.ar-nav{gap:22px}.ar-nav-link{font-size:13px;font-weight:600;text-decoration:none;color:var(--text-muted);white-space:nowrap}.ar-nav-link:hover,.ar-nav-link.is-active{color:var(--primary)}.ar-nav-pro{color:var(--text-main)}.ar-language-select{max-width:120px;font-size:12px;background:transparent;padding:8px;border-radius:7px}.theme-btn{border:0;background:transparent;width:30px;height:34px}.theme-btn:hover{color:var(--primary);background:var(--bg-subtle)}
main{padding-top:48px;padding-bottom:20px}.hero-section{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(290px,.8fr);gap:64px;text-align:left;background:none;border:0;border-radius:0;padding:12px 0 38px;box-shadow:none;margin:0}.home-eyebrow{display:flex;align-items:center;gap:8px;font-size:11px;letter-spacing:.09em;font-weight:700;margin-bottom:18px;color:var(--text-muted)}.home-live-dot{width:7px;height:7px;background:var(--primary);border-radius:50%;box-shadow:0 0 0 4px #dbeafe}.hero-title{font-size:50px;font-weight:750;letter-spacing:-2px;line-height:1.14}.hero-title span{color:var(--primary)}.hero-desc{font-size:15px;line-height:1.85;max-width:580px;margin:18px 0 0}.hero-capabilities{display:flex;flex-wrap:wrap;gap:9px 20px;margin-top:22px;color:var(--text-muted);font-size:11px}.hero-capabilities span{display:inline-flex;align-items:center;gap:5px}.hero-capabilities svg{color:var(--primary);width:14px;height:14px}
.hero-toolkit{background:var(--bg-card);border:1px solid var(--border);border-radius:16px;padding:22px 23px;align-self:center;box-shadow:var(--shadow-sm)}.toolkit-label{font-size:10px;letter-spacing:.1em;font-weight:700;color:var(--text-soft);margin-bottom:10px}.toolkit-step{display:flex;gap:14px;align-items:center;text-decoration:none;color:var(--text-main);padding:12px 0}.toolkit-step+.toolkit-step{border-top:1px solid var(--border-light)}.toolkit-number{font-size:11px;color:var(--primary);font-weight:700;width:26px;height:28px;background:var(--primary-light);border-radius:6px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.toolkit-step strong{display:block;font-size:13px;font-weight:650}.toolkit-step small{display:block;color:var(--text-muted);font-size:11px;margin-top:2px;line-height:1.5}.toolkit-arrow{margin-left:auto;font-size:17px;color:var(--text-soft)}.toolkit-step:hover strong,.toolkit-step:hover .toolkit-arrow{color:var(--primary)}
.search-bar-wrap{max-width:none;margin:0 0 24px;background:var(--bg-card);border:1px solid var(--border);border-radius:14px;padding:24px 26px;box-shadow:0 4px 20px rgba(15,23,42,.035)}.search-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.search-panel-heading h2{font-size:17px;letter-spacing:-.35px;font-weight:700}.search-panel-heading p{margin-top:3px;font-size:12px;color:var(--text-muted)}.btn-import{display:inline-flex;align-items:center;gap:6px;background:var(--bg-card);color:var(--text-main);border:1px solid var(--border);padding:8px 12px;border-radius:7px;font-size:11px;font-weight:600;cursor:pointer;flex-shrink:0}.btn-import:hover{border-color:var(--primary);color:var(--primary)}
.search-bar{display:grid;grid-template-columns:minmax(0,1fr) 160px 180px auto;gap:12px;align-items:end;background:none;border:0;box-shadow:none;padding:0;border-radius:0}.search-field{display:block;min-width:0;text-align:left}.search-field>span{display:block;font-size:10px;font-weight:650;color:var(--text-muted);margin-bottom:6px}.search-input-wrap{display:flex;align-items:center;background:var(--bg-page);border:1px solid var(--border);border-radius:8px;height:44px;padding:0 13px;min-width:0;gap:9px}.search-input-wrap svg{color:var(--text-soft);flex:none}.search-input{height:100%;padding:0;font-size:13px;min-width:0}.search-input-wrap:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px #dbeafe}.search-input:focus-visible{outline:none}.search-select{width:100%;height:44px;border-radius:8px;background:var(--bg-page);padding:0 11px;font-size:12px;font-weight:500;min-width:0}.btn-search{height:44px;border-radius:8px;font-size:12px;font-weight:600;padding:0 19px;white-space:nowrap}.quick-tags{justify-content:flex-start;margin-top:15px;gap:7px;font-size:11px}.quick-tags>span{margin-right:4px}.quick-tag-btn{text-decoration:none;border:1px solid var(--border);background:var(--bg-card);color:var(--text-muted);padding:3px 9px;border-radius:5px;font-size:10px;font-weight:500}.quick-tag-btn:hover{background:var(--primary-light);border-color:var(--primary-border);color:var(--primary)}.ar-locale-note{max-width:none;margin:13px 0 0;font-size:10px;line-height:1.7;color:var(--text-soft)}
.home-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:var(--bg-card);border:1px solid var(--border);border-radius:12px;padding:21px 0;margin-bottom:38px}.home-overview>div{padding:0 25px;min-width:0}.home-overview>div+div{border-left:1px solid var(--border)}.home-overview>div>span{font-size:10px;font-weight:600;color:var(--text-muted);display:block}.home-overview strong{display:block;font-size:27px;font-weight:700;letter-spacing:-.8px;line-height:1.5;font-variant-numeric:tabular-nums;margin-top:2px}.home-overview strong span{font-size:10px;font-weight:500;letter-spacing:0;color:var(--text-soft)}.home-overview small{display:block;color:var(--text-soft);font-size:10px}
.home-charts{margin:0 0 38px}.section-header{padding:0;margin-bottom:16px;border:0;gap:14px}.section-title{font-size:19px;letter-spacing:-.5px;font-weight:700;line-height:1.4}.section-subtitle{color:var(--text-muted);font-size:11px;margin-top:4px}.section-link{color:var(--primary);text-decoration:none;font-size:11px;font-weight:600}.section-link:hover{text-decoration:underline}.badge-count{font-size:10px;min-width:24px;padding:1px 6px;background:var(--bg-card);font-weight:600}.home-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.home-chart-card{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;overflow:hidden}.home-chart-heading{padding:17px 20px 13px;display:flex;align-items:center;justify-content:space-between;gap:12px}.home-chart-heading h3{font-size:13px;line-height:1.4;font-weight:650}.home-chart-heading span{color:var(--text-soft);font-size:10px}.home-chart-items{list-style:none;margin:0;padding:0 20px}.home-chart-items li{border-top:1px solid var(--border-light)}.home-chart-items a{display:flex;gap:12px;align-items:center;min-width:0;padding:11px 0;color:var(--text-main);text-decoration:none}.home-chart-items a:hover strong{color:var(--primary)}.home-chart-rank{width:16px;font-size:11px;color:var(--text-soft);font-variant-numeric:tabular-nums;text-align:center;flex-shrink:0}.home-chart-items img{width:37px;height:37px;object-fit:cover;border-radius:9px;background:var(--bg-subtle);flex-shrink:0}.home-chart-app{min-width:0;flex:1}.home-chart-app strong{display:block;font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-chart-app small{display:block;font-size:10px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-chart-arrow{font-size:13px;color:var(--text-soft)}.home-chart-source{border-top:1px solid var(--border);font-size:9px;color:var(--text-soft);padding:11px 20px;margin:0;line-height:1.6}.home-chart-source a{color:var(--text-muted);text-decoration:none}.home-chart-source a:hover{text-decoration:underline}
#tracked-apps-section{margin-bottom:35px}#tracked-apps-section .section-header>div:last-child{width:300px!important}#tracked-apps-section .section-header input,#tracked-apps-section .section-header select{font-size:11px!important;height:35px;padding-top:0!important;padding-bottom:0!important;border-radius:7px!important}.library-table-head{display:grid;grid-template-columns:minmax(0,1fr) 128px 88px 126px 142px;gap:16px;padding:11px 20px;color:var(--text-soft);font-size:9px;font-weight:600;background:var(--bg-subtle);border:1px solid var(--border);border-bottom:0;border-radius:10px 10px 0 0}.library-table-head span:nth-child(3),.library-table-head span:nth-child(4){text-align:right}#tracked-apps-grid{display:block;gap:0;border:1px solid var(--border);border-radius:0 0 10px 10px;background:var(--bg-card);overflow:hidden}#tracked-apps-grid:empty{border:0}.library-app-row{display:grid;grid-template-columns:minmax(0,1fr) 128px 88px 126px 142px;gap:16px;padding:15px 20px;align-items:center}.library-app-row+.library-app-row{border-top:1px solid var(--border-light)}.library-app-row:hover{background:var(--bg-page)}.library-app-main{display:flex;align-items:center;gap:12px;min-width:0}.library-app-main>div{min-width:0}.library-app-main .app-icon-img{width:44px;height:44px;border-radius:10px;box-shadow:none;border:1px solid var(--border-light)}.library-app-title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none;font-size:12px;font-weight:650;color:var(--text-main);line-height:1.5}.library-app-title:hover{color:var(--primary)}.library-app-dev{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text-muted)}.library-app-dev a{color:inherit;text-decoration:none}.library-app-dev a:hover{text-decoration:underline}.library-app-store .store-badge{margin:0;font-size:9px;padding:1px 5px;border-radius:4px;font-weight:500}.library-app-store small{display:block;color:var(--text-soft);font-size:9px;margin-top:3px;text-transform:uppercase}.library-app-rating{text-align:right;font-size:12px;font-weight:650;font-variant-numeric:tabular-nums}.library-app-rating span{font-size:11px;color:var(--star);margin-left:2px}.library-app-reviews{text-align:right}.library-app-reviews strong{font-size:12px;font-weight:650;font-variant-numeric:tabular-nums;display:block}.library-app-reviews small{font-size:9px;color:var(--text-soft);display:block;margin-top:2px}.library-app-actions{display:flex;justify-content:flex-end;gap:6px}.library-app-actions .btn-view-app{background:var(--bg-card);border:1px solid var(--border);color:var(--text-main);font-size:10px;font-weight:600;border-radius:6px;padding:7px 9px;flex:none}.library-app-actions .btn-view-app:hover{color:var(--primary);border-color:var(--primary-border);background:var(--primary-light)}.library-app-actions .btn-quick-sync{width:30px;height:30px;padding:0;background:transparent;border:0;display:flex;align-items:center;justify-content:center}.library-app-actions .btn-quick-sync svg{width:13px;height:13px}.library-app-actions .btn-quick-sync:hover{background:var(--primary-light);color:var(--primary)}.library-pagination{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--text-muted);margin-top:16px;gap:15px}.library-pagination[hidden]{display:none}.library-pagination>div{display:flex;align-items:center;gap:12px}.library-pagination .btn-page{font-size:10px;padding:6px 10px;border-radius:6px}.library-pagination #library-page{font-variant-numeric:tabular-nums;color:var(--text-soft)}
#search-results-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.app-card{border-radius:11px;padding:17px;box-shadow:none}.app-card:hover{box-shadow:var(--shadow-md);transform:none}.app-icon-img{width:48px;height:48px;border-radius:11px}.app-card-title{font-size:13px}.app-card-dev{font-size:10px}.store-badge{font-size:9px;padding:1px 6px}.app-card-stats{font-size:11px}.developer-banner{background:var(--primary-light)!important;border-color:var(--primary-border)!important}.developer-banner #import-all-btn{background:var(--primary)!important;box-shadow:none!important;font-size:12px!important}.developer-banner>div>div:first-child{box-shadow:none!important}.toast-info{background:var(--primary)}
.ar-editorial{max-width:1200px;padding:0 30px;margin:20px auto 46px}.ar-editorial>h2{font-size:24px;letter-spacing:-.5px;font-weight:700}.ar-editorial>p{max-width:940px;font-size:12px}.ar-discover-links{gap:7px}.ar-discover-links a{font-size:11px;padding:6px 10px;border-radius:6px;color:var(--text-muted)}.ar-discover-links a:hover{border-color:var(--primary-border);color:var(--primary)}.ar-guide-grid{margin:28px 0;gap:20px}.ar-guide-card{border-radius:12px;padding:23px}.ar-guide-card h2{font-size:17px;font-weight:650;letter-spacing:-.3px}.ar-guide-card p{font-size:12px}.ar-editorial details{background:var(--bg-card);border:1px solid var(--border);padding:15px 19px;margin:8px 0;border-radius:9px;font-size:12px}.ar-editorial details summary{font-size:12px}.ar-editorial details p{font-size:12px}.ar-primary-link{font-size:11px;padding:9px 13px;border-radius:7px;font-weight:600}footer{padding:24px 0;font-size:11px;color:var(--text-muted)}
html.dark{--primary:#60a5fa;--primary-hover:#3b82f6;--primary-light:#172e4f;--primary-border:#23466e;--bg-page:#0b1220;--bg-card:#111d30;--bg-subtle:#152238;--text-main:#f1f5f9;--text-muted:#9aabc2;--text-soft:#8393a9;--border:#253448;--border-light:#1d2b3d}.dark .ar-site-header{background:rgba(17,29,48,.97)}.dark .brand-icon{background:#2563eb}.dark .home-live-dot{box-shadow:0 0 0 4px #172e4f}.dark .btn-search{background:#2563eb}.dark .search-input-wrap:focus-within{box-shadow:0 0 0 3px #172e4f}
@media(max-width:1080px){.ar-nav{gap:15px}.hero-section{gap:30px}.hero-title{font-size:43px}.search-bar{grid-template-columns:minmax(0,1fr) 145px 165px}.search-bar .btn-search{grid-column:1/-1}.library-table-head,.library-app-row{grid-template-columns:minmax(0,1fr) 110px 58px 100px 135px;gap:12px}}
@media(max-width:820px){.header-content{height:auto;min-height:72px;flex-wrap:wrap;gap:16px;padding-top:17px;padding-bottom:14px}.ar-nav{width:100%;gap:18px;justify-content:space-between}.hero-section{grid-template-columns:1fr;gap:24px}.hero-title{font-size:42px;letter-spacing:-1.6px}.hero-toolkit{display:none}main{padding-top:32px}.hero-desc{max-width:620px}.home-overview>div{padding:0 16px}.home-overview small{font-size:9px}.library-table-head{display:none}.library-app-row{grid-template-columns:minmax(0,1fr) 80px 100px;gap:12px}.library-app-store{grid-column:1;grid-row:2;margin-left:56px;display:flex;align-items:center;gap:8px}.library-app-store small{margin:0}.library-app-rating{grid-column:2;grid-row:1}.library-app-reviews{grid-column:2;grid-row:2}.library-app-actions{grid-column:3;grid-row:1/3;flex-direction:column;align-items:flex-end}.library-app-row{padding:15px 18px;row-gap:2px}#tracked-apps-grid{border-radius:10px}.library-app-reviews small{display:none}#search-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-chart-grid{gap:14px}.home-chart-heading{padding:15px 15px 12px}.home-chart-items{padding:0 15px}.home-chart-source{padding:10px 15px}}
@media(max-width:600px){.container,.ar-editorial{padding-left:20px;padding-right:20px}.header-content{gap:12px}.brand-title{font-size:17px}.ar-nav{flex-wrap:wrap;justify-content:flex-start;gap:12px 20px}.ar-nav-link{font-size:11px}.ar-nav .ar-language-select{margin-left:auto;max-width:100px;font-size:10px;order:0}.ar-nav .theme-btn{width:24px;height:29px}.hero-section{padding:2px 0 28px}.hero-title{font-size:36px;letter-spacing:-1.3px}.home-eyebrow{font-size:9px;margin-bottom:15px}.hero-desc{font-size:13px;margin-top:15px}.hero-capabilities{font-size:9px;gap:8px 12px;margin-top:16px}.hero-capabilities svg{width:12px;height:12px}.search-bar-wrap{padding:19px 18px}.search-panel-heading{align-items:flex-start;margin-bottom:16px;gap:10px}.search-panel-heading h2{font-size:15px}.search-panel-heading p{font-size:10px;max-width:220px}.btn-import{padding:6px 8px;font-size:9px;gap:4px}.btn-import svg{width:12px;height:12px}.search-bar{grid-template-columns:1fr 1fr;gap:12px}.search-query-field{grid-column:1/-1}.search-bar .btn-search{grid-column:1/-1}.search-input{font-size:12px}.search-select{font-size:10px;padding:0 7px}.search-field>span{font-size:9px}.quick-tags{font-size:9px;gap:5px}.quick-tag-btn{font-size:9px;padding:3px 7px}.ar-locale-note{font-size:9px}.home-overview{grid-template-columns:1fr 1fr;padding:0;margin-bottom:28px}.home-overview>div{padding:16px 18px}.home-overview>div+div{border-left:0}.home-overview>div:nth-child(2n){border-left:1px solid var(--border)}.home-overview>div:nth-child(n+3){border-top:1px solid var(--border)}.home-overview>div>span{font-size:9px}.home-overview strong{font-size:23px}.home-overview strong span{font-size:9px}.home-overview small{font-size:8px}.home-chart-grid{grid-template-columns:1fr}.section-title{font-size:17px}.section-link{font-size:10px}.section-subtitle{font-size:10px}.home-charts{margin-bottom:28px}#tracked-apps-section .section-header>div:last-child{width:100%!important}.library-app-row{grid-template-columns:minmax(0,1fr) 58px 87px;gap:8px;row-gap:4px;padding:13px 12px}.library-app-main{gap:9px}.library-app-main .app-icon-img{width:35px;height:35px;border-radius:8px}.library-app-title{font-size:11px}.library-app-dev{font-size:9px}.library-app-store{margin-left:44px}.library-app-store .store-badge{font-size:8px}.library-app-store small{font-size:8px}.library-app-rating{font-size:11px}.library-app-reviews strong{font-size:10px}.library-app-actions .btn-view-app{font-size:9px;padding:6px 7px;max-width:86px;overflow-wrap:anywhere}.library-app-actions .btn-quick-sync{width:25px;height:25px}.library-pagination{font-size:9px;gap:8px}.library-pagination>div{gap:7px}.library-pagination .btn-page{font-size:9px;padding:5px 7px}#search-results-grid{grid-template-columns:1fr}.ar-editorial{margin-top:6px}.ar-editorial>h2{font-size:21px}.ar-guide-grid{grid-template-columns:1fr}.ar-guide-card{padding:19px}.ar-growth{padding-left:20px;padding-right:20px}.modal-dialog{max-height:90vh;overflow-y:auto;padding:20px}.detail-hero,.metric-card{padding:18px}.detail-hero-title{font-size:23px}.filter-search-row{flex-wrap:wrap}.filter-search-row>div{max-width:100%}.sort-select{max-width:240px}.home-chart-items img{width:38px;height:38px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
.ar-home>.home-library-ad{min-height:0;margin:12px auto 28px;padding:0 30px;width:100%;max-width:1200px}.library-table-head[hidden]{display:none}
.ar-home main.container{padding-top:42px;padding-bottom:20px}@media(max-width:600px){.ar-home main.container{padding-top:30px}}
