.stats-study-pool {
    display: grid;
    gap: 10px;
    padding: 20px;
}

.stats-study-pool > header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--app-line);
}

.stats-study-pool > header h2 { margin: 3px 0 5px; font-size: 20px; }
.stats-study-pool > header p:last-child { margin: 0; color: var(--app-muted); font-size: 10px; }

.stats-study-pool > article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--app-line);
    border-left: 4px solid var(--app-blue);
    background: #fff;
}

.study-pool-main { min-width: 0; }
.study-pool-badges { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.study-pool-badges span, .study-pool-badges b, .study-pool-badges em { padding: 3px 6px; border-radius: 2px; font-size: 7px; font-style: normal; text-transform: uppercase; }
.study-pool-badges span { color: #285c61; background: #dfeeee; }
.study-pool-badges b { color: #835612; background: #fff2cf; }
.study-pool-badges em { color: #54666a; background: #edf1f2; }
.stats-study-pool h3 { margin: 7px 0 4px; font-size: 14px; line-height: 1.35; }
.study-pool-meta { margin: 0; color: var(--app-muted); font-size: 8px; }
.study-pool-abstract { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 10px 0; color: #405155; font: 10px/1.55 Lato, ui-sans-serif, sans-serif; }

.study-pool-extraction {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 11px;
    border-top: 1px solid var(--app-line);
    border-left: 1px solid var(--app-line);
}

.study-pool-extraction span { display: grid; gap: 2px; padding: 7px; border-right: 1px solid var(--app-line); border-bottom: 1px solid var(--app-line); }
.study-pool-extraction small { color: var(--app-muted); font-size: 7px; }
.study-pool-extraction strong { font-size: 9px; }
.stats-study-pool article > aside { display: flex; align-items: stretch; flex-direction: column; gap: 6px; }
.stats-study-pool article > aside .primary-button, .stats-study-pool article > aside .tool-command { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 9px; font-size: 8px; text-decoration: none; }
.stats-study-pool article > aside .app-icon-button { margin-top: auto; align-self: flex-end; }
.stats-tabs button b { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-left: 4px; border-radius: 9px; color: #fff; background: var(--app-blue); font-size: 7px; }

@media (max-width: 850px) {
    .stats-study-pool > article { grid-template-columns: 1fr; }
    .stats-study-pool article > aside { flex-direction: row; flex-wrap: wrap; }
    .stats-study-pool article > aside .app-icon-button { margin: 0 0 0 auto; }
}
