:root {
    --home-bg: #0a0a0a;
    --home-panel: #1c1c1f;
    --home-panel-2: #1f1f22;
    --home-border: rgba(255,255,255,0.08);
    --home-border-strong: rgba(255,255,255,0.14);
    --home-text: #f5f7f8;
    --home-muted: #a1a1aa;
    --home-faint: #71717a;
}

#homeDashboard[hidden] {
    display: none !important;
}

body.is-main-view-home #gallery-grid {
    display: none !important;
}

body.is-main-view-home #main-area {
    overflow: hidden;
}

.home-body {
    min-height: 100vh;
    margin: 0;
    color: var(--home-text);
    background: var(--home-bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: hidden;
}

.home-topbar {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 24px;
    border-bottom: 1px solid var(--home-border);
    background: rgba(8,9,10,0.88);
    backdrop-filter: blur(18px);
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.home-brand__mark {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--accent);
    color: #030303;
    font-size: 12px;
    font-weight: 950;
}

.home-topbar__nav {
    display: flex;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.home-topbar__nav a {
    color: var(--home-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s;
}

.home-topbar__nav a:hover {
    color: var(--accent);
}

.home-topbar__icon-btn,
.home-topbar__admin-btn,
.home-slider-controls button,
.home-ghost-action {
    border: 1px solid var(--home-border);
    background: rgba(255,255,255,0.05);
    color: var(--home-text);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.home-topbar__icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.home-topbar__icon-btn svg,
.home-topbar__admin-btn svg,
.home-slider-controls svg,
.home-primary-action svg,
.home-ghost-action svg,
.home-featured-slide__meta svg,
.home-service-card__icon svg,
.home-error-state svg {
    width: 18px;
    height: 18px;
}

.home-topbar__admin-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 850;
}

.home-topbar__icon-btn:hover,
.home-topbar__admin-btn:hover,
.home-slider-controls button:hover,
.home-ghost-action:hover {
    border-color: var(--accent-border-strong);
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
}

.home-dashboard {
    width: 100%;
    min-height: 0;
    height: 100%;
    max-height: calc(100vh - 48px);
    display: grid;
    grid-template-columns: minmax(280px, 31%) minmax(0, 1fr);
    gap: 12px;
    padding: 0;
    overflow: hidden;
}

body.is-main-view-home .home-dashboard {
    height: calc(100% - 12px);
    margin-top: 12px;
}

body.home-body .home-dashboard {
    height: calc(100vh - 64px);
    padding: 20px;
    overflow: hidden;
}

.home-dashboard__side,
.home-dashboard__main {
    min-height: 0;
    overflow: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--accent-rgb), 0.35) transparent;
}

.home-dashboard__side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#homeUserProjects {
    min-height: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
}

.home-dashboard__main {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.78fr);
    grid-template-rows: minmax(0, 1fr) minmax(190px, 34%);
    gap: 12px;
}

.home-dashboard__admin-row {
    min-height: 0;
    display: flex;
    justify-content: flex-end;
    position: absolute;
    top: -2px;
    right: 0;
    z-index: 5;
    pointer-events: none;
}

.home-dashboard__admin-row > * {
    pointer-events: auto;
}

.home-dashboard__lower {
    display: contents;
}

#homeFeatured {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
}

#homeService {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
}

#homeService .home-service-section,
#homeFeatured .home-featured {
    height: 100%;
}

#homeService .home-service-section {
    overflow: hidden;
}

#homeFeed {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    min-height: 0;
}

.home-profile-card,
.home-projects-block,
.home-featured,
.home-feed-section,
.home-service-section {
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: rgba(28, 28, 31, 0.78);
    box-shadow: 0 18px 48px rgba(0,0,0,0.22);
}

.home-profile-card {
    padding: 14px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.home-profile-card__top {
    display: flex;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.home-profile-card__avatar {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 50%;
    background: var(--accent);
    color: #050505;
    font-weight: 950;
    box-shadow: 0 0 34px rgba(var(--accent-rgb), 0.28);
}

.home-profile-card__identity {
    min-width: 0;
}

.home-profile-card__identity h1,
.home-section-head h2,
.home-featured-slide__content h3,
.home-project-card__body h3,
.home-service-card h3 {
    margin: 0;
    letter-spacing: 0;
}

.home-profile-card__identity h1 {
    font-size: 21px;
    line-height: 1.05;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.home-service-card p,
.home-featured-slide__content p,
.home-feed-card__body p {
    color: var(--home-muted);
}

.home-eyebrow {
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.home-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 14px 0 0;
    position: relative;
    z-index: 1;
}

.home-profile-stats div {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: rgba(0,0,0,0.24);
}

.home-profile-stats strong,
.home-profile-stats span {
    display: block;
}

.home-profile-stats strong {
    color: #fff;
    font-size: 19px;
    line-height: 1;
    font-weight: 950;
}

.home-profile-stats span {
    margin-top: 6px;
    color: var(--home-faint);
    font-size: 11px;
    font-weight: 700;
}

.home-profile-card__actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.home-primary-action,
.home-ghost-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.home-primary-action {
    background: var(--accent);
    color: #050505;
}

.home-primary-action:hover {
    background: var(--accent-hover);
}

.home-ghost-action {
    padding: 0 14px;
}

.home-projects-block,
.home-feed-section,
.home-service-section {
    padding: 14px;
}

.home-feed-section {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.home-service-section {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.home-service-section .home-section-head {
    flex: 0 0 auto;
}

.home-feed-section .home-section-head {
    margin-bottom: 6px;
}

.home-feed-section .home-section-head h2 {
    font-size: 16px;
    line-height: 1.08;
}

.home-projects-block {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.home-section-head h2 {
    color: #fff;
    font-size: 19px;
    line-height: 1.12;
    font-weight: 920;
}

.home-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: hidden;
}

.home-project-card {
    aspect-ratio: 1 / 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: #141416;
    color: #fff;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.home-project-card:hover {
    border-color: var(--accent-border-strong);
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.18) inset;
}

.home-project-card__visual {
    position: absolute;
    inset: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--project-color) 30%, transparent), transparent 62%),
        #101214;
}

.home-project-card__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.78));
}

.home-project-card__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-project-card__visual span {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 28px;
    font-weight: 950;
}

.home-project-card__body {
    position: relative;
    z-index: 2;
    padding: 10px;
}

.home-project-card__label,
.home-feed-card__model,
.home-service-card__label {
    color: var(--home-faint);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.home-project-card__body h3 {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.18;
    font-weight: 850;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-project-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.home-project-card__meta span,
.home-featured-slide__badge {
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
    font-size: 10px;
    font-weight: 850;
}

.home-project-card__meta span {
    padding: 3px 6px;
}

.home-featured {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    overflow: hidden;
}

.home-featured .home-section-head {
    flex: 0 0 auto;
}

.home-slider-controls {
    display: flex;
    gap: 8px;
}

.home-slider-controls button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.home-featured__stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.home-featured-slide {
    position: absolute;
    inset: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    text-decoration: none;
    transition: opacity 0.22s;
}

.home-featured-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.home-featured-slide__media {
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #090a0b;
    cursor: zoom-in;
    transition: border-color 0.15s;
}

.home-featured-slide__media:hover,
.home-featured-slide__media:focus-visible {
    border-color: var(--accent-border-strong);
}

.home-featured-slide__media img,
.home-featured-slide__media video {
    width: 100%;
    height: 100%;
    aspect-ratio: var(--featured-media-ratio, 16 / 9);
    object-fit: contain;
    display: block;
}

.home-featured-thumb img,
.home-feed-card__image img {
    width: 100%;
    height: 100%;
    display: block;
}

.home-featured-thumb img {
    aspect-ratio: var(--featured-thumb-ratio, 16 / 9);
    object-fit: contain;
}

.home-feed-card__image img {
    object-fit: cover;
}

.home-featured-slide__content {
    min-width: 0;
    padding: 0 2px 2px;
}

.home-featured-slide__badge {
    display: inline-flex;
    padding: 6px 10px;
    margin-bottom: 8px;
}

.home-featured-slide__content h3 {
    color: #fff;
    font-size: 24px;
    line-height: 1;
    font-weight: 1000;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-featured-slide__content p {
    margin: 7px 0 0;
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-featured-slide__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 850;
}

.home-featured-slide__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.home-featured-slide__action {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.home-featured-slide__action svg {
    width: 14px;
    height: 14px;
}

.home-featured-slide__action--secondary {
    background: rgba(0,0,0,0.38);
}

.home-featured-slide__action--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #050505;
}

.home-featured-slide__action:hover {
    border-color: var(--accent-border-vivid);
}

.home-featured-slide__action--primary:hover {
    background: var(--accent-hover);
    color: #050505;
}

.home-featured-slide__action:disabled,
.home-featured-slide__action.is-loading {
    cursor: wait;
    opacity: 0.65;
}

.home-featured__rail {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 45px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--accent-rgb), 0.35) transparent;
}

.home-featured-thumb {
    width: 80px;
    height: auto;
    aspect-ratio: 16 / 9;
    flex: 0 0 80px;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: #111315;
    color: var(--home-muted);
    cursor: pointer;
    opacity: 0.62;
    transition: opacity 0.15s, border-color 0.15s;
}

.home-featured-thumb.is-active {
    opacity: 1;
    border-color: var(--accent-border-vivid);
}

.home-feed-grid,
.home-service-grid {
    display: grid;
    gap: 10px;
}

.home-feed-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: stretch;
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
}

.home-feed-project-tabs {
    display: flex;
    gap: 8px;
    min-width: 0;
    margin: 6px 0 12px;
    overflow: hidden;
}

.home-feed-project-tab {
    min-width: 0;
    max-width: 150px;
    height: 26px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    color: var(--home-muted);
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}

.home-feed-project-tab span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-feed-project-tab.is-active {
    border-color: var(--accent-border-strong);
    background: rgba(var(--accent-rgb), 0.12);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.12) inset;
}

.home-feed-card,
.home-service-card {
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.home-feed-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

.home-feed-card:hover {
    border-color: var(--accent-border-strong);
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.18) inset;
}

.home-feed-card__image {
    position: relative;
    width: 100%;
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #101214;
    color: var(--home-faint);
}

.home-feed-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.home-feed-card__image--video {
    background: #07080a;
}

.home-feed-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.26);
    border-radius: 999px;
    background: rgba(0,0,0,0.54);
    color: #fff;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.home-feed-card__play svg {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

.home-feed-card__image svg {
    width: 22px;
    height: 22px;
}

.home-feed-card__image.is-missing img {
    display: none;
}

.home-feed-card__image.is-missing::before {
    content: "VIDEO";
    color: var(--home-faint);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.home-feed-card__body {
    min-height: 28px;
    padding: 6px 8px;
}

.home-feed-card__project {
    margin-bottom: 3px;
    color: var(--home-muted);
    font-size: 10px;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-feed-card__body p {
    min-height: 0;
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-feed-card__model {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #a5adbd;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.home-feed-card__model-mark {
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.08);
    color: #d9dce5;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
}

.home-feed-card__model-mark svg {
    display: block;
    width: 12px;
    height: 12px;
}

.home-feed-card__model-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-feed-card--project-link {
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 16px 12px;
    border: 1px solid rgba(var(--accent-rgb), 0.48);
    background:
        radial-gradient(circle at 50% 32%, rgba(var(--accent-rgb), 0.18), transparent 54%),
        linear-gradient(135deg, rgba(255,255,255,0.045), rgba(var(--accent-rgb), 0.07)),
        rgba(255,255,255,0.025);
    text-align: center;
}

.home-feed-card--project-link:hover {
    border-color: var(--accent-border-strong);
    background:
        radial-gradient(circle at 50% 32%, rgba(var(--accent-rgb), 0.26), transparent 56%),
        linear-gradient(135deg, rgba(255,255,255,0.06), rgba(var(--accent-rgb), 0.11)),
        rgba(255,255,255,0.035);
    box-shadow:
        0 0 0 1px rgba(var(--accent-rgb), 0.16) inset,
        0 0 22px rgba(var(--accent-rgb), 0.08);
}

.home-feed-card__project-link-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.18);
    color: #fff;
}

.home-feed-card__project-link-icon svg {
    width: 17px;
    height: 17px;
}

.home-feed-card__project-link-label {
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.15;
    text-align: center;
}

.home-feed-card__project-link-name {
    color: var(--home-muted);
    font-size: 10px;
    font-weight: 850;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.home-service-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.home-service-stack {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-service-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 12px;
}

.home-service-card--with-image {
    grid-template-columns: 1fr;
}

.home-service-card__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #101214;
}

.home-service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.home-service-card__icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
}

.home-service-card h3 {
    margin-top: 3px;
    font-size: 15px;
    font-weight: 850;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-service-card p {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.42;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-empty-card {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--home-border-strong);
    border-radius: 8px;
    color: var(--home-faint);
    background: rgba(255,255,255,0.025);
    font-size: 13px;
    text-align: center;
    padding: 18px;
}

.home-tutorial-panel {
    flex: 0 0 auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    padding: 12px;
}

.home-tutorial-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
}

.home-tutorial-panel__head h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.16;
    font-weight: 950;
}

.home-tutorial-panel__head p {
    margin: 3px 0 0;
    color: var(--home-muted);
    font-size: 12px;
    line-height: 1.3;
}

.home-tutorial-panel__reload {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.home-tutorial-panel__reload:disabled,
.home-tutorial-preview__image:disabled {
    cursor: default;
    opacity: 0.45;
}

.home-tutorial-panel__reload svg {
    width: 15px;
    height: 15px;
}

.home-tutorial-chip-slider {
    position: relative;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.home-tutorial-chip-slider::before,
.home-tutorial-chip-slider::after {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 8px;
    width: 32px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity .16s ease;
}

.home-tutorial-chip-slider::before {
    left: 22px;
    background: linear-gradient(90deg, rgba(31,32,35,0.94), rgba(31,32,35,0));
}

.home-tutorial-chip-slider::after {
    right: 22px;
    background: linear-gradient(270deg, rgba(31,32,35,0.94), rgba(31,32,35,0));
}

.home-tutorial-chip-slider.can-scroll-left::before,
.home-tutorial-chip-slider.can-scroll-right::after {
    opacity: 1;
}

.home-tutorial-chip-nav {
    width: 20px;
    height: 32px;
    min-width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: var(--accent);
    cursor: pointer;
    opacity: 0.88;
    transition: opacity .16s ease, background .16s ease, color .16s ease;
    z-index: 2;
}

.home-tutorial-chip-nav:hover:not(:disabled) {
    background: rgba(var(--accent-rgb), 0.12);
    color: #fff;
}

.home-tutorial-chip-nav:disabled {
    opacity: 0.18;
    cursor: default;
}

.home-tutorial-chip-nav svg {
    width: 14px;
    height: 14px;
}

.home-tutorial-chips {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px 0 7px;
    scrollbar-width: none;
}

.home-tutorial-chips::-webkit-scrollbar {
    display: none;
}

.home-tutorial-chip {
    height: 30px;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: var(--home-muted);
    font-size: 11px;
    font-weight: 900;
}

.home-tutorial-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-tutorial-chip svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.home-tutorial-chip.is-active {
    border-color: var(--accent-border-strong);
    background: rgba(var(--accent-rgb), 0.14);
    color: #fff;
}

.home-tutorial-preview {
    min-height: 0;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    overflow: hidden;
}

.home-tutorial-preview__image,
.home-tutorial-preview__placeholder {
    min-height: 0;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    max-width: 100%;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: #000;
    overflow: hidden;
}

.home-tutorial-preview__image {
    padding: 0;
    cursor: pointer;
    transition: border-color .16s ease, transform .16s ease, filter .16s ease;
}

.home-tutorial-preview__image:hover:not(:disabled) {
    border-color: var(--accent-border-strong);
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.home-tutorial-preview__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.home-tutorial-preview__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.home-tutorial-preview__placeholder svg {
    width: 34px;
    height: 34px;
}

.home-skeleton {
    min-height: 180px;
    padding: 18px;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: rgba(255,255,255,0.035);
}

.home-skeleton span {
    display: block;
    height: 16px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.12), rgba(255,255,255,0.05));
    animation: home-skeleton 1.2s ease-in-out infinite;
}

.home-skeleton span:nth-child(1) { width: 42%; }
.home-skeleton span:nth-child(2) { width: 76%; }
.home-skeleton span:nth-child(3) { width: 58%; }
.home-skeleton--featured { min-height: 520px; }

@keyframes home-skeleton {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

.home-error-state {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--home-muted);
    text-align: center;
}

.home-error-state h1 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.home-error-state button {
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #050505;
    padding: 10px 16px;
    font-weight: 900;
    cursor: pointer;
}

.home-curation-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,0.68);
    backdrop-filter: blur(12px);
}

.home-curation-modal__panel {
    width: min(980px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    display: flex;
    flex-direction: column;
    border: 1px solid var(--home-border-strong);
    border-radius: 18px;
    background: #141619;
    box-shadow: 0 30px 120px rgba(0,0,0,0.5);
    overflow: hidden;
}

.home-curation-modal__head,
.home-curation-modal__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid var(--home-border);
}

.home-curation-modal__head h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 920;
}

.home-curation-modal__close {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--home-border);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: #fff;
    cursor: pointer;
}

.home-curation-modal__close svg {
    width: 18px;
    height: 18px;
}

.home-curation-modal__list {
    display: grid;
    gap: 20px;
    padding: 18px;
    overflow: auto;
}

.home-curation-section {
    display: grid;
    gap: 12px;
}

.home-curation-section h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

.home-curation-row {
    display: grid;
    grid-template-columns: 34px minmax(180px, 1.15fr) minmax(160px, 1fr) minmax(130px, 0.7fr);
    gap: 10px;
    align-items: end;
    padding: 12px;
    border: 1px solid var(--home-border);
    border-radius: 14px;
    background: rgba(255,255,255,0.035);
}

.home-curation-row__number {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    border-radius: 9px;
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent);
    font-size: 12px;
    font-weight: 950;
}

.home-curation-row__wide {
    grid-column: 2 / -1;
}

.home-curation-row--tutorial label:has([data-field="folderId"]) {
    display: none;
}

.home-curation-row--tutorial label:has([data-field="folderUrl"]) {
    grid-column: 2 / -1;
}

.home-curation-row label {
    min-width: 0;
}

.home-curation-row label span {
    display: block;
    margin-bottom: 6px;
    color: var(--home-faint);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.home-curation-row input,
.home-curation-row textarea {
    width: 100%;
    border: 1px solid var(--home-border);
    border-radius: 10px;
    background: rgba(0,0,0,0.28);
    color: #fff;
    padding: 10px 11px;
    font-size: 13px;
    outline: none;
}

.home-curation-row input:focus,
.home-curation-row textarea:focus {
    border-color: var(--accent-border-vivid);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.home-curation-image-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.home-curation-upload-btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--home-border-strong);
    border-radius: 10px;
    background: rgba(var(--accent-rgb), 0.12);
    color: #fff;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.home-curation-upload-btn:hover {
    border-color: var(--accent-border-vivid);
}

.home-curation-upload-btn:disabled {
    cursor: wait;
    opacity: 0.72;
}

.home-curation-upload-btn svg {
    width: 15px;
    height: 15px;
}

.home-curation-modal__actions {
    justify-content: flex-end;
    border-top: 1px solid var(--home-border);
    border-bottom: 0;
}

@media (max-width: 1180px) {
    .home-dashboard {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .home-dashboard__side,
    .home-dashboard__main {
        overflow: visible;
    }

    .home-project-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 860px) {
    .home-body {
        overflow: auto;
    }

    .home-topbar {
        padding: 0 14px;
        gap: 12px;
    }

    .home-topbar__nav {
        display: none;
    }

    .home-topbar__admin-btn span {
        display: none;
    }

    .home-dashboard {
        height: auto;
        padding: 14px;
    }

    .home-dashboard__lower {
        grid-template-columns: 1fr;
    }

    .home-project-grid,
    .home-feed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-featured {
        min-height: auto;
    }

    .home-service-grid {
        max-height: none;
    }

    .home-featured__stage {
        min-height: 430px;
    }

    .home-featured__rail {
        min-height: 45px;
    }

    .home-featured-slide__content h3 {
        font-size: 28px;
    }

}

@media (max-width: 720px) {
    .home-curation-row {
        grid-template-columns: 30px 1fr;
    }

    .home-curation-row label,
    .home-curation-row__wide {
        grid-column: 2 / -1;
    }

    .home-curation-row--tutorial label:has([data-field="folderUrl"]),
    .home-curation-row--tutorial label:has([data-field="folderId"]) {
        grid-column: 2 / -1;
    }
}

@media (max-width: 560px) {
    .home-dashboard {
        padding: 10px;
    }

    .home-profile-stats,
    .home-project-grid,
    .home-feed-grid {
        grid-template-columns: 1fr;
    }

    .home-featured__stage {
        min-height: 390px;
    }

    .home-featured-slide__content h3 {
        font-size: 25px;
    }
}

/* ── ScreenShh download widget ── */
.home-screenshh {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: rgba(28, 28, 31, 0.78);
    box-shadow: 0 18px 48px rgba(0,0,0,0.22);
}

.home-screenshh__icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(var(--accent-rgb), 0.16);
    color: rgb(var(--accent-rgb));
}

.home-screenshh__icon i {
    width: 22px;
    height: 22px;
}

.home-screenshh__body {
    flex: 1 1 auto;
    min-width: 0;
}

.home-screenshh__title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

.home-screenshh__desc {
    margin: 4px 0 0;
    font-size: 12px;
    opacity: 0.72;
    line-height: 1.35;
}

.home-screenshh__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #0b0b0c;
    background: rgb(var(--accent-rgb));
    transition: opacity 0.15s ease;
}

.home-screenshh__btn:hover {
    opacity: 0.88;
}

.home-screenshh__btn i {
    width: 16px;
    height: 16px;
}

.home-screenshh__btn--disabled {
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}
