

.sh-main {
    flex: 1 0 auto;
    width: 100%;
    padding-bottom: 40px;
    font-family: 'Helvetica Neue', Arial, system-ui, sans-serif;
    color: var(--home-text-primary);
}

.sh-wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--page-max-width);
    margin-inline: auto;
    padding-inline: var(--page-padding-inline);
}

.sh-main :is(a, button):focus-visible {
    outline: 2px solid var(--shelf-focus-ring);
    outline-offset: 2px;
}

.sh-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.sh-main a {
    color: inherit;
    text-decoration: none;
}

.sh-cover-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sh-titlebar {
    padding-top: 20px;
}

.sh-h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.15;
    color: var(--cp-h1-color);
}

.sh-hint {
    margin: 6px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--home-text-secondary);
}

.sh-hint svg {
    flex: none;
}

.sh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 100px;
    border: 1.5px solid transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.005em;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, transform 0.15s, box-shadow 0.18s;
    -webkit-tap-highlight-color: transparent;
}

.sh-main .sh-btn-outline,
.sh-btn-outline {
    background: transparent;
    border-color: var(--home-text-primary);
    color: var(--home-text-primary);
}

.sh-btn-outline:active {
    background: var(--home-text-primary);
    color: var(--home-card-bg);
}

.sh-btn-danger {
    background: var(--shelf-danger-bg);
    border-color: var(--shelf-danger-bg);
    color: var(--shelf-danger-on);
}

.sh-btn-ghost {
    background: transparent;
    color: var(--home-text-secondary);
    padding: 0 12px;
}

.sh-btn-ghost:active {
    color: var(--home-text-primary);
    background: var(--home-section-tinted);
}

@media (hover: hover) and (pointer: fine) {
    .sh-main .sh-btn-outline:hover,
    .sh-btn-outline:hover {
        background: var(--home-text-primary);
        color: var(--home-card-bg);
    }

    .sh-btn-ghost:hover {
        color: var(--home-text-primary);
        background: var(--home-section-tinted);
    }
}

.sh-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--home-text-secondary);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.sh-close > span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: background 0.15s, color 0.15s;
}

.sh-close:active > span {
    background: var(--home-section-tinted);
    color: var(--home-text-primary);
}

@media (hover: hover) and (pointer: fine) {
    .sh-close:hover > span {
        background: var(--home-section-tinted);
        color: var(--home-text-primary);
    }
}

.sh-tabs-wrap {
    position: relative;
    margin-top: 20px;
    margin-inline: calc(-1 * var(--page-padding-inline));
    border-bottom: 1px solid var(--home-card-border);
}

.sh-tabs {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-inline: max(0px, calc(var(--page-padding-inline) - 4px));
}

.sh-tabs::-webkit-scrollbar {
    display: none;
}

.sh-tabs.fade-r {
    -webkit-mask-image: linear-gradient(90deg, var(--home-text-primary) calc(100% - 44px), transparent);
    mask-image: linear-gradient(90deg, var(--home-text-primary) calc(100% - 44px), transparent);
}

.sh-tabs.fade-l {
    -webkit-mask-image: linear-gradient(90deg, transparent, var(--home-text-primary) 44px);
    mask-image: linear-gradient(90deg, transparent, var(--home-text-primary) 44px);
}

.sh-tabs.fade-l.fade-r {
    -webkit-mask-image: linear-gradient(90deg, transparent, var(--home-text-primary) 44px, var(--home-text-primary) calc(100% - 44px), transparent);
    mask-image: linear-gradient(90deg, transparent, var(--home-text-primary) 44px, var(--home-text-primary) calc(100% - 44px), transparent);
}

.sh-tab {
    position: relative;
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px 8px 0 0;
    background: transparent;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--home-text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.sh-tab[aria-selected="true"] {
    color: var(--home-text-primary);
    background: transparent;
}

.sh-tab[aria-selected="true"]::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--home-tab-active-bg);
}

.sh-main .sh-tab:focus-visible {
    outline: 2px solid var(--shelf-focus-ring);
    outline-offset: -4px;
    border-radius: 10px;
}

@media (hover: hover) and (pointer: fine) {
    .sh-tab:hover {
        color: var(--home-text-primary);
        background: var(--home-section-tinted);
    }

    .sh-tab[aria-selected="true"]:hover {
        background: transparent;
    }
}

.sh-panel {
    padding-top: 16px;
}

.sh-panel:focus-visible {
    outline: 2px solid var(--shelf-focus-ring);
    outline-offset: 4px;
    border-radius: 4px;
}

.sh-card-link {
    color: inherit;
}

.sh-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 12px;
    cursor: pointer;
}

.sh-tale .sh-card-link::after {
    inset: -6px;
    border-radius: 14px;
}

.sh-main .sh-card-link:focus-visible {
    outline: none;
}

.sh-card-link:focus-visible::after {
    outline: 2px solid var(--shelf-focus-ring);
    outline-offset: 2px;
}

.sh-hr:focus-within {
    box-shadow: var(--home-card-hover-shadow);
}

.sh-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.sh-toolbar .sh-btn-ghost {
    display: none;
}

.sh-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sh-chip {
    box-sizing: border-box;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 100px;
    border: 1px solid var(--home-card-border);
    background: var(--home-card-bg);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--home-text-primary);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.sh-chip[aria-pressed="true"] {
    background: var(--home-tab-active-bg);
    border-color: var(--home-tab-active-bg);
    color: var(--home-tab-active-color);
}

@media (hover: hover) and (pointer: fine) {
    .sh-chip:not([aria-pressed="true"]):hover {
        background: var(--home-section-tinted);
    }
}

.sh-clear-row {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.sh-hlist {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sh-hr {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: var(--home-card-bg);
    border: 1px solid var(--home-card-border);
    border-radius: 12px;
    transition: box-shadow 0.15s, opacity 0.2s;
}

@media (hover: hover) and (pointer: fine) {
    .sh-hr:hover {
        box-shadow: var(--home-card-hover-shadow);
    }
}

.sh-hr-cover {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--home-bar-track);
}

.sh-hr-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 30px;
}

.sh-hr-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--home-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sh-meta {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: var(--home-text-secondary);
}

.sh-hr-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-top: 4px;
}

.sh-date {
    font-size: 12px;
    color: var(--home-text-secondary);
}

.sh-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    padding: 0 8px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.sh-badge.is-done {
    background: var(--shelf-done-bg);
    color: var(--shelf-done-text);
}

.sh-badge.is-started {
    background: var(--shelf-started-bg);
    color: var(--shelf-started-text);
}

.sh-badge.is-opened {
    background: var(--home-section-tinted);
    color: var(--home-text-primary);
}

.sh-inline-empty {
    margin: 0;
    padding: 28px 12px;
    text-align: center;
    font-size: 14px;
    color: var(--home-text-secondary);
    border: 1px dashed var(--home-dot-separator);
    border-radius: 12px;
}

.sh-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sh-tale {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    transition: transform 0.15s, opacity 0.2s;
}

.sh-tale-cover {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--home-cover-shadow);
    background: var(--home-bar-track);
    transition: box-shadow 0.15s;
}

@media (hover: hover) and (pointer: fine) {
    .sh-tale:hover {
        transform: translateY(-2px);
    }

    .sh-tale:hover .sh-tale-cover {
        box-shadow: var(--home-cover-shadow-hover);
    }
}

.sh-time {
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--home-time-badge-bg);
    color: var(--home-time-badge-color);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.sh-tale-name {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--home-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sh-tale-meta {
    margin: -4px 0 0;
    font-size: 12px;
    color: var(--home-text-secondary);
}

.sh-reason {
    margin: -2px 0 0;
    display: flex;
    gap: 5px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--home-text-secondary);
}

.sh-reason b {
    flex: none;
    font-weight: 400;
    color: var(--home-accent);
}

.sh-reason span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.sh-heart {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.sh-heart > span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--home-time-badge-bg);
    color: var(--bg-badge);
    box-shadow: var(--shadow-badge);
    transition: transform 0.15s;
}

.sh-heart:active > span {
    transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
    .sh-heart:hover > span {
        transform: scale(1.08);
    }
}

.sh-skel-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sh-skel {
    position: relative;
    overflow: hidden;
    background: var(--home-bar-track);
    border-radius: 6px;
}

.sh-skel::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, var(--shelf-skeleton-shine), transparent);
    animation: sh-shine 1.4s ease-in-out infinite;
}

@keyframes sh-shine {
    to { transform: translateX(100%); }
}

.sh-skel-cover {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
}

.sh-skel-line1 {
    height: 14px;
    width: 86%;
}

.sh-skel-line2 {
    height: 11px;
    width: 62%;
}

.sh-grid .sh-skel-card:nth-child(n + 5) {
    display: none;
}

.sh-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 8px 40px;
}

.sh-illu {
    position: relative;
    flex: none;
    width: 168px;
    height: 116px;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
}

.sh-illu::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--cp-grad-overlay);
}

.sh-illu > * {
    position: absolute;
    z-index: 1;
}

.sh-illu-shelf {
    left: 16px;
    right: 16px;
    bottom: 22px;
    height: 4px;
    border-radius: 2px;
    background: var(--cp-on-grad);
    opacity: 0.28;
}

.sh-illu-book {
    bottom: 26px;
    width: 15px;
    border-radius: 3px;
    background: var(--cp-stack-card);
    box-shadow: var(--cp-stack-shadow);
    transform-origin: bottom left;
}

.sh-illu-glyph {
    right: 16px;
    top: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--cp-glyph-bg);
    display: grid;
    place-items: center;
    font-size: 17px;
    color: var(--cp-on-grad);
}

.sh-grad-peach { background: linear-gradient(135deg, var(--cp-grad-peach-1), var(--cp-grad-peach-2)); }
.sh-grad-pink { background: linear-gradient(135deg, var(--cp-grad-pink-1), var(--cp-grad-pink-2)); }
.sh-grad-lilac { background: linear-gradient(135deg, var(--cp-grad-lilac-1), var(--cp-grad-lilac-2)); }
.sh-grad-green { background: linear-gradient(135deg, var(--cp-grad-green-1), var(--cp-grad-green-2)); }
.sh-grad-blue { background: linear-gradient(135deg, var(--cp-grad-blue-1), var(--cp-grad-blue-2)); }
.sh-grad-yellow { background: linear-gradient(135deg, var(--cp-grad-yellow-1), var(--cp-grad-yellow-2)); }
.sh-grad-lavender { background: linear-gradient(135deg, var(--cp-grad-lavender-1), var(--cp-grad-lavender-2)); }

.sh-empty-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--home-text-primary);
    text-wrap: balance;
}

.sh-empty-text {
    margin: 8px 0 20px;
    max-width: 34ch;
    font-size: 14px;
    line-height: 1.5;
    color: var(--home-text-secondary);
    text-wrap: pretty;
}

.sh-counters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.sh-card {
    box-sizing: border-box;
    min-width: 0;
    padding: 16px;
    background: var(--home-card-bg);
    border: 1px solid var(--home-card-border);
    border-radius: 12px;
}

.sh-counter {
    padding: 12px 10px;
}

.sh-counter-num {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--home-accent);
    font-variant-numeric: tabular-nums;
}

.sh-counter-label {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.3;
    color: var(--home-text-secondary);
}

.sh-stat-cols {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.sh-h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--home-text-primary);
}

.sh-top {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.sh-top li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 10px;
}

.sh-top-rank {
    width: 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--home-text-secondary);
    text-align: center;
}

.sh-top-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--home-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.sh-top-name {
    display: block;
    min-height: 44px;
    line-height: 44px;
}

@media (hover: hover) and (pointer: fine) {
    .sh-main a.sh-top-name:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
    }
}

.sh-top-count {
    font-size: 13px;
    color: var(--home-text-secondary);
    font-variant-numeric: tabular-nums;
}

.sh-top-bar {
    grid-column: 2 / -1;
    height: 6px;
    border-radius: 3px;
    background: var(--home-bar-track);
    overflow: hidden;
}

.sh-top-bar > i,
.sh-progress > i {
    display: block;
    height: 100%;
    background: var(--home-bar-fill, var(--bg-button));
}

.sh-top-bar > i {
    border-radius: 3px;
}

.sh-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--home-avatar-initials);
}

.sh-top.is-authors {
    gap: 6px;
}

.sh-top.is-authors li {
    grid-template-columns: 36px minmax(0, 1fr) auto;
}

.sh-ach-head {
    margin-top: 28px;
}

.sh-ach {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sh-medal-tile {
    box-sizing: border-box;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 16px 10px 14px;
    background: var(--home-card-bg);
    border: 1px solid var(--home-card-border);
    border-radius: 12px;
}

.sh-medal-tile.is-locked {
    background: transparent;
    border: 1px dashed var(--home-dot-separator);
}

.sh-medal {
    position: relative;
    width: 56px;
    height: 56px;
    margin-bottom: 6px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    font-size: 22px;
    color: var(--cp-on-grad);
}

.sh-medal::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--cp-grad-overlay);
}

.sh-medal.is-locked {
    background: var(--home-section-tinted);
    color: var(--home-text-secondary);
}

.sh-medal.is-locked::before {
    display: none;
}

.sh-medal-name {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--home-text-primary);
}

.sh-medal-cond {
    font-size: 12px;
    line-height: 1.35;
    color: var(--home-text-secondary);
    text-wrap: pretty;
}

.sh-medal-prog {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--home-text-secondary);
    font-variant-numeric: tabular-nums;
}

.sh-progress {
    flex: none;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: var(--home-bar-track);
    overflow: hidden;
}

.sh-progress > i {
    border-radius: 2px;
}

.sh-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: end stretch;
    padding: 0;
}

.sh-overlay[hidden] {
    display: none;
}

.sh-backdrop {
    position: absolute;
    inset: 0;
    background: var(--bg-modal-backdrop);
}

.sh-dialog {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 0 0;
    background: var(--home-card-bg);
    color: var(--home-text-primary);
    box-shadow: var(--shadow-modal);
    font-family: 'Helvetica Neue', Arial, system-ui, sans-serif;
}

.sh-grab {
    width: 36px;
    height: 4px;
    margin: 0 auto 18px;
    border-radius: 2px;
    background: var(--home-dot-separator);
}

.sh-dialog-title {
    margin: 0;
    padding-right: 36px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.sh-dialog-text {
    margin: 8px 0 22px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--home-text-secondary);
    text-wrap: pretty;
}

.sh-dialog-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}

.sh-dialog-actions .sh-btn {
    width: 100%;
    min-height: 48px;
}

.sh-dialog .sh-close {
    top: 16px;
    right: 8px;
}

.sh-dialog :is(a, button):focus-visible {
    outline: 2px solid var(--shelf-focus-ring);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .sh-main { padding-bottom: 72px; }

    .sh-titlebar { padding-top: 32px; }
    .sh-h1 { font-size: 34px; }

    .sh-btn { min-height: 40px; }

    .sh-tabs-wrap {
        margin-top: 28px;
        margin-inline: 0;
    }

    .sh-tabs {
        padding-inline: 0;
        gap: 4px;
    }

    .sh-tab {
        padding: 0 18px;
        font-size: 16px;
    }

    .sh-tab[aria-selected="true"]::after {
        left: 18px;
        right: 18px;
    }

    .sh-panel { padding-top: 24px; }

    .sh-toolbar { margin-bottom: 18px; }
    .sh-toolbar .sh-btn-ghost { display: inline-flex; }
    .sh-clear-row { display: none; }

    .sh-chip {
        min-height: 36px;
        padding: 0 14px;
        font-size: 13px;
    }

    .sh-hr {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 14px;
        padding: 12px;
    }

    .sh-hr-cover {
        width: 80px;
        height: 80px;
    }

    .sh-hr-title { font-size: 16px; }

    .sh-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sh-grid .sh-skel-card:nth-child(n + 5) { display: flex; }

    .sh-time {
        left: 8px;
        bottom: 8px;
        padding: 3px 7px;
        border-radius: 5px;
        font-size: 11px;
    }

    .sh-tale-name { font-size: 15px; }
    .sh-tale-meta { font-size: 13px; }
    .sh-reason { font-size: 13px; }

    .sh-empty { padding: 48px 0 64px; }
    .sh-empty-title { font-size: 20px; }
    .sh-empty-text {
        max-width: 42ch;
        font-size: 15px;
    }

    .sh-counters { gap: 16px; }
    .sh-card { padding: 20px 22px; }
    .sh-counter { padding: 20px 22px; }
    .sh-counter-num { font-size: 44px; }
    .sh-counter-label {
        margin-top: 6px;
        font-size: 14px;
    }

    .sh-stat-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-top: 16px;
    }

    .sh-h3 {
        margin-bottom: 16px;
        font-size: 17px;
    }

    .sh-top-name { font-size: 15px; }

    .sh-ach-head { margin-top: 40px; }

    .sh-ach {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .sh-medal {
        width: 64px;
        height: 64px;
        font-size: 25px;
    }

    .sh-medal-name { font-size: 14px; }

    .sh-overlay {
        place-items: center;
        padding: 16px;
    }

    .sh-dialog {
        width: min(440px, 100%);
        padding: 24px;
        border-radius: 16px;
    }

    .sh-grab { display: none; }
    .sh-dialog-title { font-size: 21px; }
    .sh-dialog-text { font-size: 15px; }

    .sh-dialog-actions {
        flex-direction: row;
        justify-content: flex-end;
    }

    .sh-dialog-actions .sh-btn {
        width: auto;
        min-height: 40px;
    }

    .sh-dialog .sh-close {
        top: 6px;
        right: 6px;
    }
}

@media (min-width: 1024px) {
    .sh-hlist {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (min-width: 1200px) {
    .sh-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 28px 20px;
    }

    .sh-ach {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .sh-skel::after { animation: none; }

    .sh-tale,
    .sh-tale-cover,
    .sh-hr,
    .sh-btn,
    .sh-heart > span,
    .sh-close > span,
    .sh-tab,
    .sh-chip {
        transition: none;
    }

    .sh-tale:hover {
        transform: none;
    }
}
