.home-v5-page {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.1), transparent 24%),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 22%),
        linear-gradient(180deg, #f4f8f6 0%, #edf3f1 52%, #f8fbfa 100%);
}

.home-v5-shell {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    --home-v4-panel-gap: 1rem;
}

.home-v5-shell [x-cloak] {
    display: none !important;
}

.home-v5-mobile-summary,
.home-v5-mobile-stack {
    display: grid;
}

.home-v5-mobile-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    margin-bottom: 0.9rem;
}

.home-v5-mobile-summary-scroll {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.home-v5-mobile-summary-scroll::-webkit-scrollbar {
    display: none;
}

.home-v5-mobile-summary-chips {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: max-content;
}

.home-v5-mobile-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 2.2rem;
    padding: 0.48rem 0.8rem;
    border: 1px solid #d6e2df;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #334155;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(148, 163, 184, 0.12);
}

.home-v5-mobile-summary-chip i {
    font-size: 0.76rem;
    color: #475569;
}

.home-v5-mobile-summary-chip--date {
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    color: #1d4ed8;
}

.home-v5-mobile-summary-chip--date i {
    color: #2563eb;
}

.home-v5-mobile-summary-button,
.home-v5-shell .home-v4-mobile-sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.home-v5-mobile-summary-button {
    width: 2.85rem;
    height: 2.85rem;
    box-shadow: 0 10px 24px rgba(148, 163, 184, 0.14);
}

.home-v5-mobile-summary-button:hover,
.home-v5-mobile-summary-button:focus-visible,
.home-v5-shell .home-v4-mobile-sheet-close:hover,
.home-v5-shell .home-v4-mobile-sheet-close:focus-visible {
    border-color: #86efac;
    color: #0f766e;
    background: #f0fdf4;
}

.home-v5-mobile-sheet {
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
}

.home-v5-mobile-sheet-label {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #94a3b8;
}

.home-v5-mobile-stack {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 0.85rem;
}

.home-v5-mobile-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid #d8e4e1;
    border-radius: 1.55rem;
    background: rgba(255, 255, 255, 0.96);
    padding: 0.95rem;
    overflow-x: clip;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.home-v5-mobile-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.8rem;
}

.home-v5-mobile-eyebrow {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #94a3b8;
}

.home-v5-mobile-panel-title {
    margin: 0.18rem 0 0;
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.25;
    color: #0f172a;
}

.home-v5-mobile-workbench-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.home-v5-mobile-workbench-card {
    position: relative;
    min-height: 92px;
    border: 1px solid #dbe5f1;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 0.72rem;
    box-shadow: 0 10px 22px rgba(148, 163, 184, 0.1);
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.home-v5-mobile-workbench-card:hover,
.home-v5-mobile-workbench-card:focus-visible {
    border-color: #a7f3d0;
    background: #ffffff;
    transform: translateY(-1px);
}

.home-v5-mobile-workbench-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.9rem;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #e2e8f0;
    font-size: 0.92rem;
}

.home-v5-mobile-workbench-title {
    margin: 0.7rem 0 0;
    padding-right: 1rem;
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.home-v5-mobile-workbench-star {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    border: 1px solid #dbe5f1;
    background: #ffffff;
    color: #94a3b8;
}

.home-v5-favorite-toggle {
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    min-height: 1.75rem;
    padding: 0;
}

.home-v5-favorite-toggle i {
    font-size: 0.625rem;
    line-height: 1;
}

.home-v5-mobile-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 1.2rem;
    background: #f8fafc;
    padding: 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
}

.home-v5-mobile-recent-list,
.home-v5-mobile-recommend-list {
    display: grid;
    gap: 0.6rem;
}

.home-v5-mobile-recent-item,
.home-v5-mobile-recommend-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 1.15rem;
    background: #ffffff;
    padding: 0.75rem 0.82rem;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.home-v5-mobile-recent-item:hover,
.home-v5-mobile-recent-item:focus-visible,
.home-v5-mobile-recommend-item:hover,
.home-v5-mobile-recommend-item:focus-visible {
    border-color: #bfdbfe;
    background: #f8fbff;
    transform: translateY(-1px);
}

.home-v5-mobile-recent-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 0.85rem;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px #e2e8f0;
    font-size: 0.82rem;
}

.home-v5-mobile-recent-title,
.home-v5-mobile-recommend-title {
    display: block;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.35;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.home-v5-mobile-recent-meta,
.home-v5-mobile-recommend-meta {
    display: block;
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.4;
}

.home-v5-mobile-recent-arrow {
    flex-shrink: 0;
    color: #94a3b8;
}

.home-v5-mobile-recommend-item {
    justify-content: space-between;
}

.home-v5-mobile-calendar-section {
    min-width: 0;
}

.home-v5-mobile-calendar-section > * {
    min-width: 0;
}

.home-v5-mobile-sns-panel {
    min-width: 0;
}

.home-v5-mobile-sns {
    display: block;
}

.home-v5-mobile-sns .sns-preview-card {
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-v5-mobile-sns .sns-preview-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.home-v5-desktop-layout {
    display: none;
}

.home-v5-favorite-card-body {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 100%;
    padding-right: 2.6rem;
}

.home-v5-favorite-card-copy {
    flex: 1 1 auto;
    min-width: 0;
    align-self: center;
}

.home-v5-favorite-card-title {
    margin: 0;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.home-v5-favorite-card-star {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 1;
}

@media (max-width: 420px) {
    .home-v5-mobile-workbench-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .home-v5-mobile-recommend-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .home-v5-mobile-summary,
    .home-v5-mobile-stack,
    .home-v5-mobile-sheet,
    .home-v4-mobile-overlay {
        display: none !important;
    }

    .home-v5-desktop-layout {
        display: grid;
    }
}
