.sp-page {
    display:flex;
    flex-direction:column;
    gap:30px;
}

.sp-page-header h1 {
    margin:0;
}

.sp-description {
    padding:22px;
    border-left:4px solid var(--theme-accent);
    background:rgba(255,255,255,0.03);
    border-radius:10px;
    line-height:1.7;
}

.sp-nav {
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.sp-nav a {
    padding:10px 16px;
    border-radius:10px;
    background:rgba(255,255,255,0.04);
    text-decoration:none;
    transition:.2s ease;
}

.sp-nav a:hover {
    background:rgba(255,255,255,0.08);
    transform:translateY(-2px);
}

.sp-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:18px;
}

.sp-select-card {
    display:flex;
    flex-direction:column;
    gap:6px;
    padding:24px;
    border-radius:14px;
    background:var(--theme-box);
    border:1px solid var(--silent-bg-darker);
    text-decoration:none;
    transition:.2s ease;
}

.sp-select-card:hover {
    transform:translateY(-3px);
    background:rgba(255,255,255,0.03);
}

.sp-select-title {
    font-size:22px;
    font-weight:700;
}

.sp-select-subtitle {
    opacity:.7;
    font-size:13px;
}

.sp-section-title {
    font-size:30px;
    font-weight:700;
}

.sp-back a {
    text-decoration:none;
    opacity:.7;
}

.sp-card {
    background:var(--theme-box);
    border:1px solid var(--silent-bg-darker);
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 4px 18px rgba(0,0,0,0.15);
}

.sp-card-header {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    padding:22px;
    border-bottom:1px solid var(--silent-bg-darker);
    background:rgba(255,255,255,0.03);
}

.sp-card-title {
    font-size:24px;
    font-weight:700;
}

.sp-card-subtitle {
    margin-top:6px;
    font-size:13px;
    opacity:.75;
}

.sp-compare-placeholder {
    font-size:12px;
    opacity:.5;
}

.sp-table-wrapper {
    overflow-x:auto;
}

.sp-table {
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
}

.sp-table th {
    position:sticky;
    top:0;
    z-index:1;
    background:var(--theme-box);
}

.sp-table th,
.sp-table td {
    border:1px solid var(--silent-bg-darker);
    padding:10px;
    vertical-align:top;
    text-align:center;
}

.sp-table td {
    height:95px;
}

.sp-time {
    width:170px;
    text-align:left !important;
    font-weight:700;
}

.sp-cell-fach {
    font-size:15px;
    font-weight:700;
    margin-bottom:4px;
}

.sp-cell-meta {
    font-size:11px;
    line-height:1.5;
    opacity:.75;
}

.sp-table tr:hover td {
    background:rgba(255,255,255,0.02);
}

.sp-shared-subject {
    background: rgba(80, 170, 120, 0.15);
}

.sp-shared-free {
    background: rgba(120, 140, 180, 0.12);
}

.sp-compare-list {
    margin-bottom: 20px;
}

.sp-compare-label {
    margin-bottom: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .7;
}

.sp-compare-button {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 6px;
    margin-bottom: 6px;
    border-radius: 6px;
    background: var(--silent-bg-darker);
    text-decoration: none;
}

.sp-compare-active-button {
    font-weight: bold;
    outline: 1px solid rgba(255,255,255,.2);
}

.sp-compare-active {
    margin-bottom: 15px;
    font-size: 13px;
    opacity: .8;
}

.sp-compare-box {
    margin-bottom: 20px;
}

.sp-compare-select {
    width: 100%;
    max-width: 320px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--silent-bg-darker);
    background: var(--silent-bg);
    color: inherit;
    font: inherit;
}