/*
 * "Modern" look, part 2: Ana sayfa (tp-dash-*, tp-tabs, tp-kpi, tp-saha-*) and the report blocks (tp-rp-*: Genel durum, Günlük rapor).
 * The charts (<x-tp-chart.*>, tm-*) are drawn by both looks from portal.css (→ charts) with this look's tokens. Rules: themes/modern.css.
 * Everything starts with html.tp-modern; the classic look never reads this file.
 *
 * Series colours (sales series, temsilciler): position 1 is always the Turcar orange; 2–4 differ in hue AND lightness, so they stay
 * apart for red-green colour blindness and in gray print (day: orange mid, blue dark, teal mid-light, violet light). 5–6 only for a
 * team of more than four (the classic look repeats the 4th colour there). The comparison series is never one of these: --tm-chart-2.
 */
html.tp-modern {
    --tm-r-pill: 999px;         /* pills and bars are round here; the classic look (portal.css → charts) keeps them square */
    --tm-r-bar: 6px;
    --tm-series-1: var(--tp-amber);
    --tm-series-2: #1d4f91;
    --tm-series-3: #2a9d8f;
    --tm-series-4: #b58ad0;
    --tm-series-5: #7b8494;
    --tm-series-6: #c2556b;
}
html.tp-modern.dark {
    --tm-series-2: #6ea3f5;
    --tm-series-3: #1f9c8e;
    --tm-series-4: #d3b3ea;
    --tm-series-5: #8a93a3;
    --tm-series-6: #e58a9c;
}
html.tp-modern .tp-rp { --tp-rp-s1: var(--tm-series-1); --tp-rp-s2: var(--tm-series-2); --tp-rp-s3: var(--tm-series-3); --tp-rp-s4: var(--tm-series-4);
    --tp-rp-iyi: var(--tm-good); --tp-rp-uyari: var(--tm-warn); --tp-rp-kotu: var(--tm-bad); gap: var(--tm-gap); }

/* the report's stacked columns and their legend take the series colour by position: the shared view's markup stays as it is */
html.tp-modern .tp-rp-col-f > span:nth-child(1), html.tp-modern .tp-rp-legend > span:nth-child(1) > i { background: var(--tm-series-1); }
html.tp-modern .tp-rp-col-f > span:nth-child(2), html.tp-modern .tp-rp-legend > span:nth-child(2) > i { background: var(--tm-series-2); }
html.tp-modern .tp-rp-col-f > span:nth-child(3), html.tp-modern .tp-rp-legend > span:nth-child(3) > i { background: var(--tm-series-3); }
html.tp-modern .tp-rp-col-f > span:nth-child(4), html.tp-modern .tp-rp-legend > span:nth-child(4) > i { background: var(--tm-series-4); }
html.tp-modern .tp-rp-col-f > span:nth-child(5), html.tp-modern .tp-rp-legend > span:nth-child(5) > i { background: var(--tm-series-5); }
html.tp-modern .tp-rp-col-f > span:nth-child(6), html.tp-modern .tp-rp-legend > span:nth-child(6) > i { background: var(--tm-series-6); }
html.tp-modern .tp-dash :is(b, small):is(.tp-up, .tp-late) { display: inline-block; padding: .0625rem .375rem; border-radius: 999px;
    font-family: inherit; font-size: .75rem; line-height: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; vertical-align: baseline; }
html.tp-modern .tp-dash :is(b, small).tp-up { background: var(--tm-good-soft); color: var(--tm-good); }
html.tp-modern .tp-dash :is(b, small).tp-late { background: var(--tm-bad-soft); color: var(--tm-bad); }
html.tp-modern .tp-up { color: var(--tm-good); }

/* ===== 1. Ana sayfa ===== */
html.tp-modern .tp-dash { gap: 1.5rem; }
html.tp-modern .tp-dash-hello { align-items: flex-start; }
html.tp-modern .tp-dash-name { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
html.tp-modern .tp-dash-hello .tp-dim { font-size: .875rem; }
html.tp-modern .tp-dash-hello .tp-link { font-size: .875rem; }
html.tp-modern .tp-dash-search { align-items: center; }
html.tp-modern :is(.tp-dash-cols, .tp-dash-col, .tp-dash-strip, .tp-tabpanel, .tp-dash-stack) { gap: var(--tm-gap); }
html.tp-modern .tp-saha-scope, html.tp-modern .tp-saha-note { font-size: .8125rem; line-height: 1.45; color: var(--tm-dim); }
html.tp-modern .fi-section .tp-saha-note { margin-top: .75rem; }
html.tp-modern .tp-dash .fi-section-header { flex-wrap: wrap; row-gap: .5rem; }
html.tp-modern .tm-rev .fi-section-header-text-ctn { flex: 1 1 12rem; }   /* a phone: the tabs under the description, not beside it */
/* "Siparişlerim →" at a card's top right: a small white pill */
html.tp-modern .tp-dash .fi-section-header .tp-link { display: inline-flex; align-items: center; min-height: 1.75rem; padding: .125rem .75rem; border: 1px solid var(--tp-line2);
    border-radius: 999px; background: var(--tm-surface); color: var(--tp-text); font-size: .8125rem; white-space: nowrap; }
html.tp-modern .tp-dash .fi-section-header .tp-link:hover { background: var(--tm-surface-2); text-decoration: none; }
@media (pointer: coarse) { html.tp-modern .tp-dash .fi-section-header .tp-link { min-height: 2.75rem; } }

/* the tab bar: a row of pills, the open one filled; scrolls sideways out to the page's edge on a phone */
html.tp-modern .tp-tabs { gap: .5rem; border: 0; scroll-padding-inline: 1rem; }
html.tp-modern .tp-tab { gap: .5rem; min-height: var(--tm-control-h); margin: 0; padding: 0 1rem; border: 1px solid var(--tp-line2); border-radius: 999px; background: var(--tm-surface);
    color: var(--tm-dim); font-weight: 500; font-size: .875rem; line-height: 1.25rem; font-family: inherit; letter-spacing: 0; text-transform: none; }
html.tp-modern .tp-tab:hover { background: var(--tm-surface-2); color: var(--tp-text); }
/* the chosen tab and the banner are the brand's anthracite, the menu's colour: one dark on the page (user, 11.11.2026) */
html.tp-modern .tp-tab.is-active { border-color: var(--tp-text); background: var(--tp-text); color: var(--tm-surface); }
html.tp-modern:not(.dark) .tp-tab.is-active { border-color: var(--tn-bg); background: var(--tn-bg); }
html.tp-modern .tp-tab:focus-visible { outline: 2px solid var(--tp-amber); outline-offset: 2px; }
html.tp-modern .tp-tab-n { min-width: 1.25rem; padding: 0 .375rem; border-radius: 999px; background: var(--tm-hover); color: var(--tm-dim); font-size: .6875rem; line-height: 1.125rem; font-weight: 600; }
html.tp-modern .tp-tab-n.is-alert { background: var(--tm-bad-soft); color: var(--tm-bad); }
html.tp-modern .tp-tab.is-active .tp-tab-n:not(.is-alert) { background: color-mix(in srgb, var(--tm-surface) 24%, transparent); color: inherit; }
@media (max-width: 639.98px) { html.tp-modern .tp-tabs { margin-inline: -1rem; padding-inline: 1rem; } }
html.tp-modern .tp-attn .tm-dot { flex: none; margin-inline-end: .75rem; }
html.tp-modern .tp-attn:has(.tp-attn-l:hover) { background: var(--tm-surface-2); }
html.tp-modern .tp-attn-act { border-radius: var(--tm-r-sm); }
html.tp-modern .tp-attn-sub { color: var(--tm-dim); }
html.tp-modern .tp-dash-counts { margin-bottom: .75rem; }

/* the KPI strip: one surface, the numbers divided by hairlines (each cell draws its left and top line, the strip clips the outer ones) */
html.tp-modern .tp-dash-kpis { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--tm-tray-pad); padding: var(--tm-tray-pad); border: 1px solid var(--tm-tray-line); border-radius: var(--tm-r);
    background: var(--tm-tray); }
html.tp-modern .tp-dash .tp-kpi { gap: .125rem; min-width: 0; padding: .625rem .875rem; border: 0; border-radius: var(--tm-r-sm); background: var(--tm-surface); box-shadow: var(--tm-shadow); }
/* the strip's cards (.tp-dash-kpis: the selector outweighs the cells' base rules below, the phone's rules outweigh it): more room,
   the number leads (32 px) and its label steps back (12 px) */
html.tp-modern .tp-dash .tp-dash-kpis .tp-kpi { padding: 1rem 1.25rem 1.125rem; }
html.tp-modern .tp-dash .tp-dash-kpis .tp-kpi-l { font-size: .75rem; line-height: 1.125rem; }
html.tp-modern .tp-dash .tp-dash-kpis .tp-kpi-n { font-size: 2rem; line-height: 2.5rem; letter-spacing: -.03em; }
html.tp-modern .tp-dash .tp-dash-kpis .tp-kpi-n { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: .25rem; }   /* the small amount never makes the line taller */
html.tp-modern .tp-dash .tp-dash-kpis .tp-kpi-n small { margin: 0; font-size: .5em; line-height: 1; letter-spacing: 0; }
html.tp-modern .tp-dash a.tp-kpi[href]:hover { background: var(--tm-surface-2); }
html.tp-modern .tp-dash .tp-kpi-l { order: -1; font-family: inherit; font-size: .8125rem; line-height: 1.25rem; letter-spacing: 0; text-transform: none; color: var(--tm-dim); }
html.tp-modern .tp-dash .tp-kpi-n { font-family: inherit; font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--tp-text); overflow-wrap: anywhere; }
html.tp-modern .tp-dash .tp-kpi-s { font-size: .8125rem; line-height: 1.45; color: var(--tm-dim); }
html.tp-modern .tp-dash .tp-kpi.is-alert .tp-kpi-n { color: var(--tm-bad); }
html.tp-modern .tp-dash .tp-kpi.is-alert .tp-kpi-l::before { content: ''; display: inline-block; width: .5rem; height: .5rem; margin-inline-end: .375rem; border-radius: 50%; background: var(--tm-bad); }
html.tp-modern .tp-target { margin-top: .25rem; gap: .25rem; }
html.tp-modern .tp-target-bar { height: 6px; border-radius: 999px; background: var(--tp-line); }
html.tp-modern .tp-target-f { border-radius: 999px; background: var(--tp-amber); }
html.tp-modern .tp-target-f.is-ok { background: var(--tm-good); }
html.tp-modern .tp-target-t { font-size: .75rem; color: var(--tm-dim); }
/* two numbers inside a card (Müşterilerinizden, Cari bakiye): quiet inset tiles */
html.tp-modern .tp-saha-inbox { gap: .75rem; }
html.tp-modern .tp-saha-inbox .tp-kpi { padding: .75rem 1rem; border-radius: var(--tm-r-sm); background: var(--tm-surface-2); box-shadow: none; }
html.tp-modern .tp-saha-inbox a.tp-kpi[href]:hover { background: var(--tm-hover); }
@media (max-width: 639.98px) {
    /* one row that scrolls sideways (the banner and the tabs come up into the first screen); a cell that needs a look goes first,
       the last one shown is cut, which says there is more */
    html.tp-modern .tp-dash-kpis { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
    html.tp-modern .tp-dash-kpis::-webkit-scrollbar { display: none; }
    html.tp-modern .tp-dash .tp-dash-kpis .tp-kpi { flex: 0 0 auto; min-width: 7.25rem; padding: .5rem .75rem; scroll-snap-align: start; }
    html.tp-modern .tp-dash .tp-dash-kpis.tp-saha-kpis .tp-kpi { min-width: 10.5rem; }
    html.tp-modern .tp-dash .tp-dash-kpis .tp-kpi.is-alert { order: -1; }
    html.tp-modern .tp-dash .tp-dash-kpis .tp-kpi-l { white-space: nowrap; }
    html.tp-modern .tp-dash .tp-dash-kpis .tp-kpi-n { font-size: 1.25rem; line-height: 1.625rem; letter-spacing: -.02em; }
    html.tp-modern .tp-dash .tp-kpi-s { font-size: .75rem; }
}

/* list rows: 44 px, a hairline between, the hover tint out to the card's padding */
html.tp-modern .tp-dash-row { min-height: 2.75rem; margin-inline: -.5rem; padding: .625rem .5rem; border-bottom-color: var(--tp-line); border-radius: var(--tm-r-sm); font-size: .875rem; line-height: 1.4; }
html.tp-modern button.tp-dash-row { width: calc(100% + 1rem); }
html.tp-modern .tp-dash-row:is(a[href], button):hover, html.tp-modern .tp-dash-row:has(.tp-saha-link:hover) { background: var(--tm-surface-2); }
html.tp-modern .tp-dash-row:hover { background: none; }
html.tp-modern .tp-dash-row:is(a[href], button):focus-visible { outline: 2px solid var(--tp-amber); outline-offset: -2px; }
html.tp-modern .tp-dash-row b { font-weight: 600; }
html.tp-modern .tp-dash-order { gap: .25rem; }
html.tp-modern .tp-dash-order .tp-progress { margin-top: .125rem; }
html.tp-modern .tp-dash-chev { color: var(--tm-faint); }
html.tp-modern .tp-saha-row { gap: .125rem 1.25rem; }
html.tp-modern .tp-saha-main { gap: .0625rem; }
html.tp-modern .tp-saha-side { font-size: .8125rem; }
html.tp-modern .tp-saha-side b { font-size: .875rem; }
html.tp-modern .tp-saha-chance > .tp-saha-side { min-width: 5.5rem; }
html.tp-modern .tp-saha-chance > .tp-saha-side:nth-child(3) { min-width: 10.5rem; }
html.tp-modern .tp-saha-empty { padding: 1.25rem .25rem; text-align: center; font-size: .875rem; }
html.tp-modern .tp-saha-firsat { color: var(--tp-amber); font-size: .8125rem; }
html.tp-modern .tp-saha-link:hover > span:first-child { color: var(--tp-amber); }
html.tp-modern .tp-saha-tem { margin-top: .25rem; padding: 0 .5rem; border: 0; border-radius: 999px; background: var(--tm-hover); font-weight: 500; font-size: .6875rem; line-height: 1.25rem; font-family: inherit; color: var(--tm-dim); }
@media (max-width: 639.98px) {
    /* phone: the name left over two lines, the numbers stacked right. The classic page hides a row's third part here, which is the amount of an
       offer / a product; this look keeps it when it is the row's last part (a list of chances keeps the classic two columns) */
    html.tp-modern .tp-saha-row > .tp-saha-main { grid-row: 1 / span 2; }
    html.tp-modern .tp-saha-row:not(.tp-saha-chance) > .tp-saha-side:nth-child(3):last-child { display: flex; grid-column: 2; }
    html.tp-modern .tp-saha-row > .tp-saha-side:nth-child(4) { grid-column: 2; }
    html.tp-modern .tp-saha-chance > .tp-saha-side { min-width: 0; }
}
/* tabs inside a card and their counts */
html.tp-modern .tp-saha-tabs { margin: 0 0 .75rem; overflow-x: auto; scrollbar-width: none; }
html.tp-modern .tp-saha-count { min-width: 1.25rem; margin-inline-start: .375rem; padding: 0 .375rem; border-radius: 999px; background: var(--tm-hover); color: var(--tm-dim);
    font-size: .6875rem; line-height: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
html.tp-modern .tp-seg .fi-active .tp-saha-count:not(.is-alert) { background: var(--tm-hover); color: var(--tp-text); }
html.tp-modern .tp-saha-count.is-alert { background: var(--tm-bad-soft); color: var(--tm-bad); }
@media (max-width: 639.98px) {
    html.tp-modern .tp-saha-tabs.fi-tabs { display: grid; width: 100%; }
    html.tp-modern .tp-saha-tabs .fi-tabs-item { min-height: 2.75rem; padding-inline: .25rem; font-size: .75rem; line-height: 1.15; letter-spacing: 0; }
}
/* agenda */
html.tp-modern .tp-saha-day { margin-top: 1rem; padding: 0 0 .25rem; border: 0; font-weight: 600; font-size: .75rem; line-height: 1.25rem; font-family: inherit; letter-spacing: 0; text-transform: none; color: var(--tm-dim); }
html.tp-modern .tp-saha-day:first-child { margin-top: 0; }
html.tp-modern .tp-saha-agenda { gap: .75rem; align-items: center; }
html.tp-modern .tp-saha-agenda > .tp-code { color: var(--tm-dim); font-size: .8125rem; }
html.tp-modern .tp-saha-pill { padding: .125rem .5rem; border: 0; border-radius: 999px; background: var(--tm-good-soft); color: var(--tm-good); font-size: .75rem; line-height: 1rem; font-weight: 500; }
html.tp-modern .tp-saha-pill.is-plan { background: var(--tm-accent-soft); color: var(--tp-amber); }
html.tp-modern .tp-saha-pill.is-order { background: var(--tm-bad-soft); color: var(--tm-bad); }
/* acting for a temsilci */
html.tp-modern .tp-saha-temsilci { align-items: center; padding: .625rem 1rem; border: 1px solid var(--tm-accent-line); border-radius: var(--tm-r); background: var(--tm-accent-soft); font-size: .875rem; }
/* the team: one surface, a cell per temsilci, hairlines between */
html.tp-modern .tp-saha-ekip { gap: 0; margin-bottom: 0; overflow: hidden; border: 1px solid var(--tp-line); border-radius: var(--tm-r-sm); }
html.tp-modern .tp-saha-member { gap: .375rem; padding: 1rem; border: 0; background: none; box-shadow: -1px 0 0 var(--tp-line), 0 -1px 0 var(--tp-line); }
html.tp-modern .tp-saha-member-h { align-items: center; }
html.tp-modern .tp-saha-member-h .tp-dim { font-size: .8125rem; }
html.tp-modern .tp-saha-member-n { font-weight: 600; font-size: 1.25rem; line-height: 1.75rem; font-family: inherit; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
html.tp-modern .tp-saha-member-n small { margin-left: .375rem; vertical-align: .125rem; }
html.tp-modern .tp-saha-member-d { gap: .5rem .75rem; margin-top: .5rem; padding-top: .75rem; border-top: 1px solid var(--tp-line); font-size: .8125rem; }
html.tp-modern .tp-saha-member-d dt { font-weight: 400; font-size: .75rem; line-height: 1.125rem; font-family: inherit; letter-spacing: 0; text-transform: none; color: var(--tm-dim); }
html.tp-modern .tp-saha-member-d dd { font-variant-numeric: tabular-nums; }
html.tp-modern .tp-saha-member .tp-kpi-l { order: 0; margin-top: .25rem; font-family: inherit; font-size: .75rem; letter-spacing: 0; text-transform: none; color: var(--tm-dim); }
/* category tiles */
html.tp-modern .tp-cat-grid { gap: .625rem; }
html.tp-modern .tp-cat-tile { gap: .125rem; padding: .75rem .875rem; border: 1px solid var(--tp-line); border-radius: var(--tm-r-sm); background: var(--tm-surface); }
html.tp-modern .tp-cat-tile:hover, html.tp-modern .tp-cat-tile:focus-visible { border-color: var(--tm-accent-line); background: var(--tm-accent-soft); }
html.tp-modern .tp-cat-code { font-size: .75rem; }
html.tp-modern .tp-cat-tile .tp-dim { font-size: .8125rem; }
html.tp-modern .tp-dash .tp-note { margin-top: .75rem; font-size: .875rem; }



/* ===== 3. report blocks (Genel durum, Günlük rapor) ===== */
/* Genel durum is a group of cards on the canvas, not a card of cards: its section is only the heading and the firm switch */
html.tp-modern .tp-genel.fi-section { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
html.tp-modern .tp-genel > .fi-section-header { padding: 0 0 .75rem; }
html.tp-modern .tp-genel .fi-section-header-heading { white-space: nowrap; }
html.tp-modern .tp-genel > .fi-section-content-ctn { border: 0; border-radius: 0; background: none; }
html.tp-modern .tp-genel > .fi-section-content-ctn > .fi-section-content { padding: 0; }
html.tp-modern .tp-genel .tp-saha-note { margin: 0 0 .75rem; }
html.tp-modern .tp-rp-grid { gap: var(--tm-gap); }
/* the numbers first; on a phone then what needs attention, the charts, the long tables */
html.tp-modern .tp-genel .tp-rp-cell:has(> .tp-rp-block > .tp-rp-kpis) { order: -3; }
@media (max-width: 767.98px) {
    html.tp-modern .tp-genel .tp-rp-cell:has(> .tp-rp-block .tp-rp-list) { order: -2; }
    html.tp-modern .tp-genel .tp-rp-cell:has(> .tp-rp-block :is(.tp-rp-cols, .tp-rp-bars)) { order: -1; }
}
html.tp-modern .tp-rp-meta { font-size: .8125rem; line-height: 1.45; font-family: inherit; color: var(--tm-dim); }
html.tp-modern .tp-rp-meta b { font-size: .875rem; font-weight: 600; }
html.tp-modern .tp-rp-tabs { scrollbar-width: none; }
html.tp-modern .tp-rp-head h2 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -.01em; }
html.tp-modern .tp-rp-head .tp-dim { font-size: .8125rem; }
/* kpi: a strip like the home page's; the tone is a dot by the label (and the number itself when bad) */
html.tp-modern .tp-rp-title { margin: 0 0 .5rem; font-weight: 600; font-size: .875rem; line-height: 1.25rem; font-family: inherit; letter-spacing: 0; text-transform: none; color: var(--tp-text); }
/* a report's KPI block is a tray and a sheet like every card: its title on the tray, the numbers on the sheet */
html.tp-modern .tp-rp-block:has(> .tp-rp-kpis) { padding: var(--tm-tray-pad); border: 1px solid var(--tm-tray-line); border-radius: var(--tm-r); background: var(--tm-tray); }
html.tp-modern .tp-rp-block > .tp-rp-title:has(+ .tp-rp-kpis) { margin: 0; padding: .5rem .75rem; }
html.tp-modern .tp-rp-kpis { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0; overflow: hidden; border: 1px solid var(--tp-line); border-radius: var(--tm-r-sm);
    background: var(--tm-surface); }
html.tp-modern .tp-rp-kpi { gap: .25rem; padding: 1rem 1.25rem; border: 0; background: none; box-shadow: -1px 0 0 var(--tp-line), 0 -1px 0 var(--tp-line); }
html.tp-modern .tp-rp-kpi-l { font-size: .8125rem; line-height: 1.25rem; font-family: inherit; letter-spacing: 0; text-transform: none; color: var(--tm-dim); }
html.tp-modern .tp-rp-kpi[class*='is-'] .tp-rp-kpi-l::before { content: ''; display: inline-block; width: .5rem; height: .5rem; margin-inline-end: .375rem; border-radius: 50%; background: var(--tm-good); }
html.tp-modern .tp-rp-kpi.is-uyari .tp-rp-kpi-l::before { background: var(--tm-warn); }
html.tp-modern .tp-rp-kpi.is-kotu .tp-rp-kpi-l::before { background: var(--tm-bad); }
html.tp-modern .tp-rp-kpi-n { font-weight: 600; font-size: 1.5rem; line-height: 2rem; font-family: inherit; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
html.tp-modern .tp-rp-kpi:is(.is-iyi, .is-uyari) .tp-rp-kpi-n { color: var(--tp-text); }
html.tp-modern .tp-rp-kpi.is-kotu .tp-rp-kpi-n { color: var(--tm-bad); }
html.tp-modern .tp-rp-kpi-n small { margin-left: .25rem; font-size: .875rem; font-weight: 500; letter-spacing: 0; color: var(--tm-dim); }
html.tp-modern .tp-rp-kpi-a { font-size: .8125rem; line-height: 1.45; color: var(--tm-dim); }
@media (max-width: 639.98px) {
    html.tp-modern .tp-rp-kpis { grid-template-columns: 1fr 1fr; }
    html.tp-modern .tp-rp-kpis > .tp-rp-kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
    html.tp-modern .tp-rp-kpi { padding: .75rem 1rem; }
    html.tp-modern .tp-rp-kpi-n { font-size: 1.125rem; line-height: 1.5rem; }
    html.tp-modern .tp-rp-kpi-a { font-size: .75rem; }
}
/* sutun: rounded columns on quarter gridlines, values in mono above, the running period faded */
html.tp-modern .tp-rp-cols { gap: 0; height: 14rem; }
html.tp-modern .tp-rp-col { gap: .375rem; }
html.tp-modern .tp-rp-col-v { display: flex; justify-content: center; width: 0;   /* centred over its column even when wider than it */
    font: .6875rem/1 var(--tp-mono); color: var(--tm-faint); font-variant-numeric: tabular-nums; }
html.tp-modern .tp-rp-col-t { justify-content: center; border-bottom: 1px solid var(--tp-line2); background: linear-gradient(to bottom, var(--tp-line) 1px, transparent 1px) 0 0 / 100% 25%; }
html.tp-modern .tp-rp-col-f { width: 64%; max-width: 3rem; gap: 1px; border-radius: 6px 6px 0 0; }
html.tp-modern .tp-rp-col:hover .tp-rp-col-f { filter: brightness(1.08); }
html.tp-modern .tp-rp-col-l { font-size: .75rem; line-height: 1rem; font-family: inherit; color: var(--tm-dim); }
html.tp-modern .tp-rp-col.is-dim .tp-rp-col-f { opacity: .5; }
html.tp-modern .tp-rp-legend { gap: .375rem 1rem; margin-top: .875rem; font-size: .8125rem; color: var(--tm-dim); }
html.tp-modern .tp-rp-legend i { width: .5rem; height: .5rem; margin-right: .375rem; border-radius: 50%; vertical-align: .0625rem; }
html.tp-modern .tp-rp-legend b { font-weight: 600; }
@media (max-width: 639.98px) {
    html.tp-modern .tp-rp-cols { height: 12.5rem; }
    html.tp-modern .tp-rp-col-f { width: 72%; border-radius: 4px 4px 0 0; }
    html.tp-modern .tp-rp-col-v { font-size: .625rem; letter-spacing: -.02em; }
    html.tp-modern .tp-rp-col-l { font-size: .6875rem; }
}
/* eight or more columns in a narrow card (a phone, half a row on a tablet): every other value, they would run into each other */
html.tp-modern .tp-rp-block .fi-section-content { container: tp-rp-card / inline-size; }
@container tp-rp-card (max-width: 34rem) {
    html.tp-modern .tp-rp-cols:has(> :nth-child(8)) .tp-rp-col:nth-child(even) .tp-rp-col-v { visibility: hidden; }
}
/* cubuk */
html.tp-modern .tp-rp-bars { gap: .75rem; }
html.tp-modern .tp-rp-bar { font-size: .875rem; }
html.tp-modern .tp-rp-bar-t { height: .5rem; overflow: hidden; border-radius: 999px; background: var(--tp-line); }
html.tp-modern .tp-rp-bar-f { min-width: 4px; border-radius: 999px; }
html.tp-modern .tp-rp-bar-v { font-weight: 600; font-size: .8125rem; line-height: 1.25rem; font-family: inherit; font-variant-numeric: tabular-nums; }
/* liste: rows with a tone dot, like a work list */
html.tp-modern .tp-rp-list { gap: 0; }
html.tp-modern .tp-rp-list li { position: relative; gap: .125rem; min-height: 2.75rem; justify-content: center; padding: .625rem 0 .625rem 1.5rem; border: 0; border-bottom: 1px solid var(--tp-line); font-size: .875rem; font-weight: 500; }
html.tp-modern .tp-rp-list li:last-child { border-bottom: 0; }
html.tp-modern .tp-rp-list li::before { content: ''; position: absolute; left: .25rem; top: 1.0625rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--tm-chart-2); }
html.tp-modern .tp-rp-list li.is-iyi::before { background: var(--tm-good); }
html.tp-modern .tp-rp-list li.is-uyari::before { background: var(--tm-warn); }
html.tp-modern .tp-rp-list li.is-kotu::before { background: var(--tm-bad); }
html.tp-modern .tp-rp-list li .tp-dim { font-size: .8125rem; font-weight: 400; }
/* not, expired link */
html.tp-modern .tp-rp-not { font-size: .8125rem; color: var(--tm-dim); }
html.tp-modern .tp-rp-not:is(.tp-rp-uyari, .tp-rp-kotu, .tp-rp-iyi) { padding: .625rem .875rem; border-radius: var(--tm-r-sm); background: var(--tm-warn-soft); color: var(--tm-warn); font-weight: 500; }
html.tp-modern .tp-rp-not.tp-rp-kotu { background: var(--tm-bad-soft); color: var(--tm-bad); }
html.tp-modern .tp-rp-not.tp-rp-iyi { background: var(--tm-good-soft); color: var(--tm-good); }
html.tp-modern .tp-rp-expired { border: 1px solid var(--tm-accent-line); border-radius: var(--tm-r); background: var(--tm-accent-soft); }
/* tablo: tones as text colour; its phone cards */
html.tp-modern .tp-rp-iyi { color: var(--tm-good); } html.tp-modern .tp-rp-uyari { color: var(--tm-warn); } html.tp-modern .tp-rp-kotu { color: var(--tm-bad); }
html.tp-modern .tp-rp-card-d dt { color: var(--tm-dim); }
html.tp-modern .tp-rp-card-d dd, html.tp-modern .tp-rp-card-h, html.tp-modern .tp-rp-card-v { font-size: .875rem; }
html.tp-modern .tp-rp .tp-note { margin-top: .75rem; font-size: .8125rem; }

@media (prefers-reduced-motion: reduce) { html.tp-modern .tp-loading { transition: none; } }
