.ag-moj-profil-search label { display: block; font-weight: 600; margin-bottom: 8px; }

    .ag-moj-profil-input-wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

    .ag-moj-profil-input-wrap input {

      flex: 1 1 100%; width: 100%; min-width: 0; padding: 10px 14px; border-radius: 10px;

      border: 1px solid rgba(148, 163, 184, 0.45); font-size: 1rem;

    }

    .ag-moj-profil-hits { margin-top: 12px; min-height: 8px; }

    .ag-moj-profil-recent-lbl {
      margin: 0 0 8px; font-size: 0.82rem; font-weight: 600; color: #64748b;
    }

    .ag-moj-profil-recent-list { background: #f8fafc; border-color: #e2e8f0; }

    .ag-moj-profil-recent-list .ag-moj-profil-hit { border-style: dashed; }

    .ag-moj-profil-hits-list {

      display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow-y: auto;

      padding: 8px; border-radius: 12px; background: #f1f5f9;

      border: 1px solid rgba(100, 116, 139, 0.35);

    }

    .ag-moj-profil-hit {

      display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; width: 100%;

      text-align: left; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px;

      background: #fff; cursor: pointer; font: inherit; color: #0f172a;

    }

    .ag-moj-profil-hit:hover, .ag-moj-profil-hit.is-active {

      border-color: #2563eb; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);

    }

    .ag-moj-profil-hit-meta { font-size: 0.85rem; color: #64748b; }

    .ag-moj-profil-card { margin-top: 20px; }

    .ag-moj-profil-count { margin: 0 0 10px; }

    .ag-moj-profil-best {

      margin: 0 0 16px; padding: 14px 16px; border-radius: 12px;

      background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);

      border: 1px solid #93c5fd;

    }

    .ag-moj-profil-best-label {
      display: flex; align-items: center; gap: 0.35rem;
    }
    .ag-moj-profil-best-label .ag-mp-icon { margin-right: 0; }

    .ag-moj-profil-count { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
    .ag-moj-profil-count .ag-mp-icon { color: #2563eb; margin-right: 0; }

    .ag-moj-profil-best-label {

      font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;

      text-transform: uppercase; color: #1d4ed8; margin-bottom: 6px;

    }

    .ag-moj-profil-best-body { font-size: 1rem; color: #0f172a; line-height: 1.5; }

    .ag-moj-profil-best-empty { margin: 0 0 16px; color: #64748b; }

    .ag-moj-profil-table-wrap { margin-top: 4px; overflow-x: auto; }

    .ag-moj-profil-table .ag-moj-profil-rb-td,

    .ag-moj-profil-table .ag-top10-rank:not(.ag-moj-profil-rb-th) {

      width: 3rem; min-width: 3rem; max-width: 3rem;

      text-align: center; font-weight: 800; color: #1e3a8a;

    }

    .ag-moj-profil-table thead .ag-moj-profil-rb-th {

      color: #fff !important;

    }

    .ag-moj-profil-stats {

      margin-top: 28px; padding-top: 20px; border-top: 1px solid #e2e8f0;

    }

    .ag-moj-profil-stats h3 { margin: 0 0 8px; font-size: 1.15rem; color: #0f172a; }

    .ag-moj-profil-stats-grupa { margin: 0 0 16px; }

    .ag-moj-profil-kpis {

      display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));

      gap: 10px; margin-bottom: 20px;

    }

    .ag-moj-profil-kpi {

      padding: 12px 14px; border-radius: 10px; background: #f8fafc;

      border: 1px solid #e2e8f0;

    }

    .ag-moj-profil-kpi .lbl {

      display: block; font-size: 0.75rem; color: #64748b; margin-bottom: 4px;

    }

    .ag-moj-profil-kpi .val { font-size: 1.25rem; font-weight: 700; color: #1e3a8a; }

    .ag-moj-profil-charts {

      display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

      gap: 16px;

    }

    .ag-moj-profil-chart {

      padding: 14px; border-radius: 12px; background: #fff;

      border: 1px solid #e2e8f0;

    }

    .ag-moj-profil-chart h4 {

      margin: 0 0 12px; font-size: 0.9rem; color: #334155; font-weight: 600;

    }

    .ag-moj-profil-chart-empty { margin: 0; font-size: 0.85rem; color: #94a3b8; }

    .ag-moj-profil-bars { display: flex; flex-direction: column; gap: 8px; }

    .ag-moj-profil-bar-row {

      display: grid; grid-template-columns: minmax(0, 1fr) 1fr auto;

      gap: 8px; align-items: center; font-size: 0.82rem;

    }

    .ag-moj-profil-bar-label {

      overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #475569;

    }

    .ag-moj-profil-bar-track {

      height: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden;

    }

    .ag-moj-profil-bar-fill {

      height: 100%; border-radius: 999px;

      background: linear-gradient(90deg, #3b82f6, #2563eb);

    }

    .ag-moj-profil-bar-val { font-weight: 700; color: #1e3a8a; min-width: 1.5rem; text-align: right; }

    .ag-moj-profil-donut-wrap {

      display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: center;

    }

    .ag-moj-profil-donut {

      width: 120px; height: 120px; border-radius: 50%; position: relative; flex-shrink: 0;

    }

    .ag-moj-profil-donut-hole {

      position: absolute; inset: 22%; border-radius: 50%; background: #fff;

      display: flex; flex-direction: column; align-items: center; justify-content: center;

      font-size: 0.7rem; color: #64748b; line-height: 1.2;

    }

    .ag-moj-profil-donut-hole strong { font-size: 1.1rem; color: #1e3a8a; }

    .ag-moj-profil-donut-legend {

      list-style: none; margin: 0; padding: 0; font-size: 0.82rem; color: #475569;

    }

    .ag-moj-profil-donut-legend li { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }

    .ag-moj-profil-donut-legend .swatch {

      width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0;

    }

    .ag-moj-profil-donut-legend .sw-placed { background: #2563eb; }

    .ag-moj-profil-donut-legend .sw-unplaced { background: #e2e8f0; }

    .ag-moj-profil-staze { margin-top: 28px; padding-top: 20px; border-top: 1px solid #e2e8f0; }

    .ag-moj-profil-staze h3 { margin: 0 0 8px; font-size: 1.15rem; color: #0f172a; }

    .ag-moj-profil-staze-hint { margin: 0 0 16px; }

    .ag-moj-profil-staze-grid {

      display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px;

    }

    .ag-moj-profil-staze-card {

      padding: 14px 16px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff;

    }

    .ag-moj-profil-staze-a { border-top: 3px solid #22c55e; }

    .ag-moj-profil-staze-b { border-top: 3px solid #f59e0b; }

    .ag-moj-profil-staze-c { border-top: 3px solid #6366f1; }

    .ag-moj-profil-staze-card h4 { margin: 0 0 4px; font-size: 1rem; color: #0f172a; }

    .ag-moj-profil-staze-range { margin: 0 0 12px; font-size: 0.82rem; color: #64748b; }

    .ag-moj-profil-staze-metrics {

      list-style: none; margin: 0 0 12px; padding: 0; display: grid;

      grid-template-columns: 1fr 1fr; gap: 8px; font-size: 0.82rem;

    }

    .ag-moj-profil-staze-metrics li {

      display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px;

      background: #f8fafc; border-radius: 8px;

    }

    .ag-moj-profil-staze-metrics span { color: #64748b; }

    .ag-moj-profil-staze-metrics strong { color: #1e3a8a; font-variant-numeric: tabular-nums; }

    .ag-moj-profil-staze-best {

      font-size: 0.88rem; line-height: 1.45; padding: 10px 12px; border-radius: 10px;

      background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border: 1px solid #93c5fd;

    }

    .ag-moj-profil-staze-best-lbl {

      display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;

      letter-spacing: 0.04em; color: #1d4ed8; margin-bottom: 4px;

    }

    .ag-moj-profil-staze-empty { margin: 0; font-size: 0.85rem; color: #94a3b8; }

    .ag-moj-profil-staze-races {
      margin-top: 24px; padding-top: 18px; border-top: 1px solid #e2e8f0;
    }
    .ag-moj-profil-staze-races h3 {
      margin: 0 0 6px; font-size: 1.05rem; color: #0f172a;
      display: flex; align-items: center; gap: 8px;
    }
    .ag-moj-profil-staze-races-hint { margin: 0 0 14px; font-size: 0.82rem; }
    .ag-moj-profil-staze-races-list {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
      gap: 12px;
    }
    .ag-moj-profil-staza-race {
      border: 1px solid #e2e8f0; border-radius: 10px; background: #fff;
      padding: 8px 10px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }
    .ag-moj-profil-staza-race-head {
      display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
      margin-bottom: 4px; padding-bottom: 4px; border-bottom: 1px solid #f1f5f9;
    }
    .ag-moj-profil-staza-race-head h4 {
      margin: 0; font-size: 0.92rem; color: #1e3a8a; font-weight: 700;
    }
    .ag-moj-profil-staza-race-meta {
      margin: 0; font-size: 0.75rem; color: #64748b; flex: 1 1 auto;
    }
    .ag-moj-profil-staza-race-count {
      margin: 0; font-size: 0.72rem; font-weight: 600; color: #475569;
      white-space: nowrap;
    }
    .ag-moj-profil-staza-table-wrap {
      margin-top: 2px;
      overflow-x: auto;
      width: fit-content;
      max-width: 100%;
      margin-left: auto;
      margin-right: auto;
    }
    .ag-moj-profil-staza-table.ag-top10-table {
      font-size: 0.76rem;
      line-height: 1.2;
    }
    .ag-moj-profil-staza-table.ag-top10-table > thead > tr > th {
      padding: 3px 5px;
      font-size: 0.68rem;
      line-height: 1.15;
    }
    .ag-moj-profil-staza-table.ag-top10-table > tbody > tr > td {
      padding: 1px 5px;
      line-height: 1.2;
      border-bottom: 1px solid #f1f5f9;
      vertical-align: middle;
    }
    .ag-moj-profil-staza-table {
      width: auto !important;
      min-width: 0;
      max-width: 100%;
      table-layout: auto;
    }
    .ag-moj-profil-staza-table > tbody > tr:nth-child(even) {
      background: #fff;
    }
    .ag-moj-profil-staza-table > tbody > tr:hover {
      background: #f8fafc;
    }
    .ag-moj-profil-staza-table thead th {
      padding: 3px 5px;
      font-size: 0.68rem;
    }
    .ag-moj-profil-staza-table tbody td {
      padding: 1px 5px;
    }
    .ag-moj-profil-staza-table .ag-moj-profil-staza-rb {
      width: 2.2rem;
      min-width: 2.2rem;
      text-align: center;
      font-weight: 700;
      color: #1e3a8a;
      padding-right: 4px;
    }
    .ag-moj-profil-staza-table .ag-moj-profil-staza-th-ring,
    .ag-moj-profil-staza-table .ag-moj-profil-staza-ring {
      width: 1%;
      white-space: nowrap;
      text-align: left;
      padding-right: 4px;
      font-size: 0.82rem;
      font-weight: 600;
      font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
      letter-spacing: 0.02em;
    }
    .ag-moj-profil-staza-table .ag-moj-profil-staza-mesto,
    .ag-moj-profil-staza-table .ag-moj-profil-staza-th-mesto {
      width: 1%;
      white-space: nowrap;
      padding-left: 4px;
      padding-right: 8px;
      text-align: right;
    }
    .ag-moj-profil-staza-table .ag-moj-profil-staza-dolazak,
    .ag-moj-profil-staza-table .ag-moj-profil-staza-th-dolazak {
      width: 1%;
      white-space: nowrap;
      font-size: 0.72rem;
      text-align: center;
      font-variant-numeric: tabular-nums;
      padding-left: 4px;
      padding-right: 4px;
    }
    .ag-moj-profil-staza-table col.ag-moj-profil-staza-col-dolazak,
    .ag-moj-profil-staza-table col.ag-moj-profil-staza-col-fci,
    .ag-moj-profil-staza-table col.ag-moj-profil-staza-col-brzina {
      width: 1%;
    }
    .ag-moj-profil-staza-table .ag-moj-profil-staza-th-fci,
    .ag-moj-profil-staza-table .ag-moj-profil-staza-fci,
    .ag-moj-profil-staza-table .ag-moj-profil-staza-th-brzina,
    .ag-moj-profil-staza-table .ag-moj-profil-staza-brzina {
      width: 1%;
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
      text-align: right;
      padding-left: 4px;
      padding-right: 4px;
    }
    .ag-moj-profil-staza-table tr.ag-moj-profil-staza-placed td {
      color: #15803d !important;
      font-weight: 600;
      background: #fff !important;
    }
    .ag-moj-profil-staza-table tr.ag-moj-profil-staza-nplaced td {
      color: #dc2626 !important;
      background: #fff !important;
    }
    .ag-moj-profil-staza-table tr.ag-moj-profil-staza-placed .ag-moj-profil-staza-rb,
    .ag-moj-profil-staza-table tr.ag-moj-profil-staza-nplaced .ag-moj-profil-staza-rb {
      color: inherit;
    }

    .ag-karton-link {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      white-space: nowrap;
      vertical-align: middle;
    }

    .ag-karton-link-icon { flex-shrink: 0; opacity: 0.95; }

    .ag-moj-profil-count .ag-karton-link,
    .ag-moj-profil-best-body .ag-karton-link { margin-left: 2px; }

    .ag-moj-profil-table .ag-moj-profil-karton-cell { text-align: center; white-space: nowrap; }

    .ag-moj-profil-table .ag-moj-profil-karton-th { text-align: center; font-size: 0.85rem; }

    .ag-moj-profil-table.ag-top10-table > thead > tr > th.ag-moj-profil-uslov-group,
    .ag-moj-profil-table.ag-top10-table > thead > tr > th.ag-moj-profil-uslov-sub {
      text-align: center !important;
    }
    .ag-moj-profil-table .ag-moj-profil-uslov-group {
      font-size: 0.82rem;
      letter-spacing: 0.04em;
      padding-left: 8px;
      padding-right: 8px;
    }
    .ag-moj-profil-table .ag-moj-profil-uslov-sub {
      font-size: 0.78rem;
      min-width: 2.75rem;
      font-weight: 700;
    }
    .ag-moj-profil-table .ag-moj-profil-uslov-cell {
      text-align: center !important;
      white-space: normal;
      font-variant-numeric: tabular-nums;
      font-size: 0.8rem;
      min-width: 5.5rem;
      padding: 6px 5px;
      vertical-align: middle;
    }
    .ag-moj-profil-uslov-progress {
      display: flex;
      flex-direction: column;
      gap: 3px;
      align-items: stretch;
      min-width: 4.8rem;
    }
    .ag-moj-profil-uslov-head {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.2rem;
      font-weight: 700;
      line-height: 1.1;
    }
    .ag-moj-profil-prog-row {
      display: grid;
      grid-template-columns: 1.35rem 1fr auto;
      align-items: center;
      gap: 3px;
    }
    .ag-moj-profil-prog-lbl {
      font-size: 0.62rem;
      color: #64748b;
      text-align: right;
      font-weight: 600;
    }
    .ag-moj-profil-prog-track {
      height: 5px;
      background: #e2e8f0;
      border-radius: 999px;
      overflow: hidden;
    }
    .ag-moj-profil-prog-fill {
      display: block;
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, #3b82f6, #1d4ed8);
      min-width: 2px;
    }
    .ag-moj-profil-prog-fill--km {
      background: linear-gradient(90deg, #22c55e, #15803d);
    }
    .ag-moj-profil-prog-km,
    .ag-moj-profil-prog-pct {
      font-size: 0.6rem;
      color: #64748b;
      white-space: nowrap;
    }
    .ag-moj-profil-cat-goals {
      margin: 16px 0 18px;
      padding: 14px 16px;
      border-radius: 12px;
      border: 1px solid rgba(30, 58, 138, 0.1);
      background: #f8fafc;
    }
    .ag-moj-profil-cat-goals h3 {
      margin: 0 0 12px;
      font-size: 1rem;
      color: #1e3a8a;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .ag-moj-profil-cat-goals-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }
    @media (max-width: 720px) {
      .ag-moj-profil-cat-goals-grid {
        grid-template-columns: 1fr;
      }
    }
    .ag-moj-profil-cat-goal {
      padding: 10px 12px;
      border-radius: 10px;
      background: #fff;
      border: 1px solid rgba(15, 23, 42, 0.08);
    }
    .ag-moj-profil-cat-goal--ok {
      border-color: rgba(22, 163, 74, 0.35);
      background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
    }
    .ag-moj-profil-cat-goal h4 {
      margin: 0 0 2px;
      font-size: 0.95rem;
      font-weight: 800;
      color: #1e3a8a;
    }
    .ag-moj-profil-cat-goal-ring {
      margin: 0 0 8px;
      font-size: 0.78rem;
      color: #64748b;
    }
    .ag-moj-profil-cat-goal-empty {
      margin: 0;
      font-size: 0.8rem;
      color: #94a3b8;
    }
    .ag-moj-profil-uslov-val {
      line-height: 1;
    }
    .ag-moj-profil-uslov-icon-wrap {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      line-height: 0;
    }
    .ag-moj-profil-uslov-icon {
      display: block;
      flex-shrink: 0;
    }
    .ag-moj-profil-table .ag-moj-profil-uslov-ok .ag-moj-profil-uslov-val {
      color: #16a34a;
      font-weight: 700;
    }
    .ag-moj-profil-table .ag-moj-profil-uslov-fail .ag-moj-profil-uslov-val {
      color: #dc2626;
      font-weight: 700;
    }

    .ag-moj-profil-table.ag-top10-table > thead > tr > th.ag-moj-profil-th-compact {
      white-space: normal !important;
      text-align: center !important;
      line-height: 1.12;
      min-width: 2.75rem;
      max-width: 4.25rem;
      padding-left: 5px;
      padding-right: 5px;
      vertical-align: middle;
    }
    .ag-moj-profil-th-stack {
      display: inline-block;
      line-height: 1.1;
      letter-spacing: 0.02em;
    }

    .ag-moj-profil-table .ag-moj-profil-sezona-th,
    .ag-moj-profil-table .ag-moj-profil-sezona-cell {
      white-space: normal;
      font-size: 0.78rem;
      text-align: center;
      min-width: 4.25rem;
      max-width: 5.5rem;
      line-height: 1.12;
      vertical-align: middle;
    }
    .ag-moj-profil-sezona-stack {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      line-height: 1.12;
      gap: 1px;
    }
    .ag-moj-profil-sezona-stack span {
      display: block;
      white-space: nowrap;
    }
    .ag-moj-profil-sezona-active { color: #15803d; font-weight: 600; }
    .ag-moj-profil-sezona-lost { color: #dc2626; font-weight: 600; }
    .ag-moj-profil-sezona-withdrawn { color: #b45309; font-weight: 600; }

    /* —— Ikone, skeleton, animacije učitavanja —— */
    .ag-mp-icon { display: inline-block; vertical-align: -0.2em; margin-right: 0.35em; opacity: 0.92; flex-shrink: 0; }

    .ag-moj-profil-owner-title {
      display: flex; align-items: center; gap: 0.5rem; margin: 0;
      font-size: 1.5rem; color: #0f172a;
    }
    .ag-moj-profil-owner-title-wrap {
      display: flex; flex-direction: column; gap: 0.15rem; min-width: 0;
    }
    .ag-moj-profil-owner-meta {
      margin: 0; font-size: 0.95rem; font-weight: 500; color: #64748b; line-height: 1.35;
    }
    .ag-moj-profil-owner-head {
      display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem 1rem;
      margin: 0 0 0.75rem;
    }
    .ag-moj-profil-owner-head .btn,
    .ag-moj-profil-compare-row .btn,
    .ag-prognoza-actions .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
      font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer;
      padding: 0.5rem 0.95rem; border-radius: 9px; border: 1px solid transparent;
      text-decoration: none; transition: background-color .15s ease, box-shadow .15s ease;
    }
    .ag-moj-profil-owner-head .btn-primary,
    .ag-prognoza-actions .btn-primary {
      background: #2563eb; color: #fff; border-color: #1d4ed8;
    }
    .ag-moj-profil-owner-head .btn-primary:hover,
    .ag-prognoza-actions .btn-primary:hover { background: #1d4ed8; }
    .ag-moj-profil-owner-head .btn-secondary,
    .ag-moj-profil-compare-row .btn-secondary,
    .ag-prognoza-actions .btn-secondary {
      background: #eff6ff; color: #1e40af; border-color: #bfdbfe;
    }
    .ag-moj-profil-owner-head .btn-secondary:hover,
    .ag-moj-profil-compare-row .btn-secondary:hover,
    .ag-prognoza-actions .btn-secondary:hover { background: #dbeafe; }
    .ag-moj-profil-prognoza-btn { font-size: 0.9rem; padding: 0.4rem 0.9rem !important; }
    .ag-moj-profil-print-btn { font-size: 0.9rem; padding: 0.4rem 0.9rem !important; }
    .ag-moj-profil-owner-title .ag-mp-icon { color: #2563eb; margin-right: 0; }

    .ag-prognoza-dialog {
      border: none; border-radius: 14px; padding: 0; max-width: min(720px, 92vw);
      width: min(720px, 92vw); max-height: min(88vh, 820px); box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    }
    .ag-prognoza-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
    .ag-prognoza-form { display: flex; flex-direction: column; gap: 0; padding: 0; margin: 0; }
    .ag-prognoza-head {
      display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
      padding: 1rem 1.15rem 0.5rem; border-bottom: 1px solid #e2e8f0;
    }
    .ag-prognoza-head h3 { margin: 0; font-size: 1.15rem; color: #0f172a; }
    .ag-prognoza-close {
      border: none; background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; color: #64748b;
    }
    .ag-prognoza-owner-line { margin: 0.65rem 1.15rem 0; font-weight: 600; color: #1e40af; }
    .ag-prognoza-fields {
      display: grid; grid-template-columns: auto auto; gap: 0.65rem 0.75rem;
      padding: 0.85rem 1.15rem 0.25rem;
    }
    @media (max-width: 560px) { .ag-prognoza-fields { grid-template-columns: 1fr; } }
    .ag-prognoza-field { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; color: #475569; }
    .ag-prognoza-field input {
      font-size: 1rem; padding: 0.45rem 0.55rem; border: 1px solid #cbd5e1; border-radius: 8px;
      background: #f1f5f9; color: #0f172a;
    }
    .ag-prognoza-field--km input { width: 6.5rem; }
    .ag-prognoza-field--n input { width: 4.5rem; }
    .ag-prognoza-actions {
      display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem 1.15rem 0.85rem;
    }
    .ag-prognoza-results {
      padding: 0 1.15rem 1.1rem; overflow: auto; max-height: min(52vh, 480px);
      border-top: 1px solid #f1f5f9;
    }
    .ag-prognoza-intro { margin: 0.85rem 0 0.35rem; font-size: 0.95rem; }
    .ag-prognoza-note { margin: 0 0 0.75rem; font-size: 0.8rem; }
    .ag-prognoza-list { margin: 0; padding-left: 1.25rem; }
    .ag-prognoza-list li { margin: 0.45rem 0; line-height: 1.45; }
    .ag-prognoza-reason { display: block; font-size: 0.82rem; color: #64748b; margin-top: 0.15rem; }
    .ag-prognoza-table-wrap { overflow: auto; margin-top: 0.5rem; }
    .ag-prognoza-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
    .ag-prognoza-table th, .ag-prognoza-table td {
      border: 1px solid #e2e8f0; padding: 0.45rem 0.55rem; text-align: left; vertical-align: top;
    }
    .ag-prognoza-table thead th { background: #f1f5f9; color: #334155; font-weight: 700; }
    .ag-prognoza-table .ag-prognoza-ring { white-space: nowrap; }
    .ag-prognoza-reason-main { display: block; margin-bottom: 0.25rem; color: #0f172a; }
    .ag-prognoza-detail-list { margin: 0.2rem 0 0; padding-left: 1rem; color: #475569; }
    .ag-prognoza-detail-list li { margin: 0.18rem 0; line-height: 1.35; }

    .ag-moj-profil-stats h3 {
      display: flex; align-items: center; gap: 0.4rem;
    }
    .ag-moj-profil-stats h3 .ag-mp-icon { color: #2563eb; margin-right: 0; }

    .ag-moj-profil-kpi .lbl {
      display: flex; align-items: center; gap: 0.35rem;
    }
    .ag-moj-profil-kpi .lbl .ag-mp-icon { margin-right: 0; opacity: 0.75; }

    .ag-moj-profil-compare-link {
      display: inline-flex; align-items: center; gap: 0.4rem;
    }
    .ag-moj-profil-compare-row {
      display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center;
      margin: 0 0 0.85rem;
    }
    .ag-moj-profil-compare-link .ag-mp-icon { margin-right: 0; }

    .ag-moj-profil-table thead th .ag-mp-icon { margin-right: 0.25rem; opacity: 0.9; vertical-align: -0.15em; }

    .ag-moj-profil-card--enter {
      opacity: 0;
      transform: translateY(14px);
    }
    .ag-moj-profil-card--visible {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .ag-moj-profil-card--visible .ag-moj-profil-best,
    .ag-moj-profil-card--visible .ag-moj-profil-table-wrap,
    .ag-moj-profil-card--visible .ag-moj-profil-stats {
      animation: agMpFadeUp 0.5s ease backwards;
    }
    .ag-moj-profil-card--visible .ag-moj-profil-best { animation-delay: 0.08s; }
    .ag-moj-profil-card--visible .ag-moj-profil-table-wrap { animation-delay: 0.14s; }
    .ag-moj-profil-card--visible .ag-moj-profil-stats { animation-delay: 0.22s; }

    .ag-moj-profil-card--visible .ag-moj-profil-table tbody tr {
      animation: agMpRowIn 0.38s ease backwards;
    }
    .ag-moj-profil-card--visible .ag-moj-profil-table tbody tr:nth-child(1) { animation-delay: 0.12s; }
    .ag-moj-profil-card--visible .ag-moj-profil-table tbody tr:nth-child(2) { animation-delay: 0.15s; }
    .ag-moj-profil-card--visible .ag-moj-profil-table tbody tr:nth-child(3) { animation-delay: 0.18s; }
    .ag-moj-profil-card--visible .ag-moj-profil-table tbody tr:nth-child(4) { animation-delay: 0.21s; }
    .ag-moj-profil-card--visible .ag-moj-profil-table tbody tr:nth-child(5) { animation-delay: 0.24s; }
    .ag-moj-profil-card--visible .ag-moj-profil-table tbody tr:nth-child(6) { animation-delay: 0.27s; }
    .ag-moj-profil-card--visible .ag-moj-profil-table tbody tr:nth-child(7) { animation-delay: 0.30s; }
    .ag-moj-profil-card--visible .ag-moj-profil-table tbody tr:nth-child(8) { animation-delay: 0.33s; }
    .ag-moj-profil-card--visible .ag-moj-profil-kpi {
      animation: agMpFadeUp 0.45s ease backwards;
    }
    .ag-moj-profil-card--visible .ag-moj-profil-kpi:nth-child(1) { animation-delay: 0.26s; }
    .ag-moj-profil-card--visible .ag-moj-profil-kpi:nth-child(2) { animation-delay: 0.30s; }
    .ag-moj-profil-card--visible .ag-moj-profil-kpi:nth-child(3) { animation-delay: 0.34s; }
    .ag-moj-profil-card--visible .ag-moj-profil-kpi:nth-child(4) { animation-delay: 0.38s; }
    .ag-moj-profil-card--visible .ag-moj-profil-kpi:nth-child(5) { animation-delay: 0.42s; }
    .ag-moj-profil-card--visible .ag-moj-profil-kpi:nth-child(6) { animation-delay: 0.46s; }

    @keyframes agMpFadeUp {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes agMpRowIn {
      from { opacity: 0; transform: translateX(-6px); }
      to { opacity: 1; transform: translateX(0); }
    }
    @keyframes agMpShimmer {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }
    @keyframes agMpSpin {
      to { transform: rotate(360deg); }
    }

    .ag-moj-profil-loading { margin-top: 1.25rem; }
    .ag-moj-profil-skel-card {
      padding: 1.25rem 1rem 1.5rem;
      border-radius: 16px;
      border: 1px solid #e2e8f0;
      background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
      box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    }
    .ag-moj-profil-skel-head {
      display: flex; align-items: center; gap: 14px; margin-bottom: 1.25rem;
    }
    .ag-moj-profil-skel-avatar {
      width: 52px; height: 52px; border-radius: 14px;
      display: flex; align-items: center; justify-content: center;
      background: linear-gradient(135deg, #dbeafe, #eff6ff);
      color: #3b82f6;
      animation: agMpFadeUp 0.6s ease;
    }
    .ag-moj-profil-skel-head-text { flex: 1; display: flex; flex-direction: column; gap: 10px; }
    .ag-moj-profil-skel-line {
      display: block; height: 12px; border-radius: 999px;
      background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 45%, #e2e8f0 90%);
      background-size: 200% 100%;
      animation: agMpShimmer 1.4s ease-in-out infinite;
    }
    .ag-moj-profil-skel-line--title { width: 58%; height: 18px; }
    .ag-moj-profil-skel-line--sub { width: 38%; }
    .ag-moj-profil-skel-line--name { width: 55%; height: 14px; }
    .ag-moj-profil-skel-line--meta { width: 35%; height: 10px; margin-top: 6px; }

    .ag-moj-profil-skel-best {
      height: 72px; border-radius: 12px; margin-bottom: 1rem;
      background: linear-gradient(90deg, #dbeafe 0%, #eff6ff 45%, #dbeafe 90%);
      background-size: 200% 100%;
      animation: agMpShimmer 1.4s ease-in-out infinite;
    }
    .ag-moj-profil-skel-table-head {
      height: 36px; border-radius: 10px 10px 0 0; margin-bottom: 2px;
      background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 50%, #1e3a8a 100%);
      background-size: 200% 100%;
      animation: agMpShimmer 1.8s ease-in-out infinite;
      opacity: 0.85;
    }
    .ag-moj-profil-skel-table { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.25rem; }
    .ag-moj-profil-skel-tr {
      display: grid; grid-template-columns: 2rem 1.2fr 1fr 1fr 1fr 1fr;
      gap: 8px;
      animation: agMpFadeUp 0.5s ease backwards;
    }
    .ag-moj-profil-skel-cell {
      height: 28px; border-radius: 8px;
      background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 45%, #e2e8f0 90%);
      background-size: 200% 100%;
      animation: agMpShimmer 1.4s ease-in-out infinite;
    }
    .ag-moj-profil-skel-kpis {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
      gap: 10px; margin-bottom: 1rem;
    }
    .ag-moj-profil-skel-kpi {
      height: 58px; border-radius: 10px;
      background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 45%, #e2e8f0 90%);
      background-size: 200% 100%;
      animation: agMpShimmer 1.4s ease-in-out infinite, agMpFadeUp 0.5s ease backwards;
    }
    .ag-moj-profil-loading-msg {
      display: flex; align-items: center; justify-content: center; gap: 10px;
      margin: 0.5rem 0 0; font-size: 0.9rem; color: #64748b; font-weight: 500;
    }
    .ag-moj-profil-spinner {
      width: 18px; height: 18px; border-radius: 50%;
      border: 2px solid #cbd5e1;
      border-top-color: #2563eb;
      animation: agMpSpin 0.75s linear infinite;
      flex-shrink: 0;
    }

    .ag-moj-profil-hits-skel { display: flex; flex-direction: column; gap: 8px; }
    .ag-moj-profil-skel-hit {
      padding: 12px 14px; border-radius: 10px; border: 1px dashed #cbd5e1;
      background: #f8fafc;
      animation: agMpFadeUp 0.4s ease backwards;
    }

    @media (prefers-reduced-motion: reduce) {
      .ag-moj-profil-card--enter,
      .ag-moj-profil-card--visible,
      .ag-moj-profil-card--visible *,
      .ag-moj-profil-skel-line,
      .ag-moj-profil-skel-best,
      .ag-moj-profil-skel-cell,
      .ag-moj-profil-skel-kpi,
      .ag-moj-profil-spinner {
        animation: none !important;
        transition: none !important;
      }
      .ag-moj-profil-card--enter { opacity: 1; transform: none; }
    }
