.diy-page-main {
    padding-top: 76px;
}

.diy-page-shell {
    min-height: calc(100vh - 76px);
}

#screen-diy {
    padding: 0;
}

.diy-header {
    background: rgba(255, 255, 255, 0.96);
    padding: 16px 22px;
    border-bottom: 1.5px solid var(--border);
    position: sticky;
    top: 76px;
    z-index: 20;
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.diy-header__brand {
    font-size: 19px;
    font-weight: 800;
    color: var(--primary);
}

.diy-header__back {
    background: none;
    border: none;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 700;
}

.diy-message {
    margin: 18px 18px 0;
    padding: 14px 16px;
    border-radius: 18px;
    font-weight: 700;
}

.diy-message--info {
    background: rgba(219, 234, 254, 0.82);
    color: #1d4ed8;
}

.diy-message--success {
    background: rgba(220, 252, 231, 0.92);
    color: #15803d;
}

.diy-message--error {
    background: rgba(254, 226, 226, 0.92);
    color: #b91c1c;
}

.diy-body {
    display: flex;
    gap: 0;
    min-height: calc(100vh - 140px);
    overflow: hidden;
}

.diy-left {
    flex: 1;
    padding: 24px 18px;
    overflow-y: auto;
    background: rgba(250, 250, 250, 0.92);
    min-height: 0;
}

.diy-cats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.cat-tab {
    padding: 9px 18px;
    border-radius: 30px;
    border: 1.5px solid var(--border);
    background: var(--white);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    color: #4B2D8A;
}

.cat-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cat-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cat-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark-p);
    margin-bottom: 16px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 168px));
    gap: 16px;
    justify-content: start;
}

.item-card {
    background: var(--white);
    border-radius: 22px;
    padding: 0;
    text-align: center;
    cursor: pointer;
    border: 1.5px solid rgba(124, 58, 237, 0.15);
    transition: all 0.22s;
    box-shadow: 0 3px 14px rgba(124, 58, 237, 0.08);
    overflow: hidden;
}

.item-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.16);
}

.item-card.added {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.18);
}

.item-card__media {
    width: 100%;
    height: 132px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(247, 240, 255, 0.7), rgba(255, 255, 255, 0.2));
}

.item-card__emoji {
    font-size: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 100%;
    height: 100%;
}

.item-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

.item-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #3B1878;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.45;
    padding: 12px 10px 14px;
    background: rgba(255, 255, 255, 0.98);
}

.item-card.added .item-card__name {
    color: var(--primary);
}

.diy-right {
    width: 250px;
    flex-shrink: 0;
    background: rgba(248, 245, 255, 0.96);
    border-right: 1.5px solid var(--border);
    padding: 14px 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 140px;
    height: calc(100vh - 140px);
    overflow: hidden;
}

.cone-panel__title {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.cone-panel__badge {
    font-size: 11px;
    background: var(--blush);
    color: var(--primary);
    border-radius: 20px;
    padding: 3px 10px;
    font-weight: 700;
    margin-bottom: 6px;
}

#cone-canvas {
    width: 200px;
    height: 320px;
    display: block;
    flex-shrink: 0;
    border-radius: 12px;
    margin: 0 auto;
}

.cone-items-list {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    margin-top: 4px;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.cone-item-row {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 2px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    font-size: 12px;
}

.cone-item__emoji {
    font-size: 15px;
    flex-shrink: 0;
}

.cone-item__image {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.cone-item__name {
    flex: 1;
    color: #3B1878;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cone-item__color {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.cone-remove-btn {
    background: none;
    border: none;
    color: #E57373;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    padding: 0 2px;
    flex-shrink: 0;
}

.cone-empty-hint {
    text-align: center;
    color: #7C5AB8;
    font-size: 12px;
    padding: 10px 0;
    line-height: 1.7;
}

.items-grid__empty {
    background: rgba(255, 255, 255, 0.8);
    border: 1.5px dashed rgba(124, 58, 237, 0.2);
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    color: #7C5AB8;
    font-size: 13px;
    font-weight: 700;
}

.diy-mix-preview__media {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.diy-mix-preview__emoji {
    font-size: 18px;
    line-height: 1;
}

.diy-mix-preview__image {
    width: 24px;
    height: 24px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.btn-mix {
    width: 100%;
    margin-top: 8px;
    padding: 11px;
    background: linear-gradient(135deg, var(--dark-p), var(--primary));
    color: white;
    border: none;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 800;
    font-family: var(--font-family);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 5px 18px rgba(124, 58, 237, 0.22);
    flex-shrink: 0;
}

.btn-mix:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.28);
}

.btn-mix:disabled {
    opacity: 0.4;
    pointer-events: none;
}

#screen-diy-result {
    align-items: center;
    justify-content: center;
    padding: 108px 16px 24px;
    overflow-y: auto;
}
