.nic-main {
    grid-template-rows: auto auto minmax(0, 1fr);
}

.nic-projects {
    position: relative;
    z-index: 32;
    min-width: 0;
    height: 68px;
    padding: 7px 12px;
    border-bottom: 1px solid rgba(117, 130, 154, .14);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    background:
        linear-gradient(90deg, rgba(248, 250, 252, .98), rgba(255, 255, 255, .96)),
        repeating-linear-gradient(90deg, transparent 0 44px, rgba(148, 163, 184, .08) 44px 45px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .035);
}

.nic-projects-heading {
    width: 116px;
    min-width: 116px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nic-projects-heading > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.nic-projects-heading strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 760;
    line-height: 1.2;
}

.nic-projects-heading span {
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
}

.nic-project-create-compact {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(100, 116, 139, .16);
    border-radius: 10px;
    display: none;
    place-items: center;
    background: #fff;
    color: #334155;
    font: inherit;
    font-size: 17px;
    cursor: pointer;
}

.nic-project-rail-shell {
    min-width: 0;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 6px;
}

.nic-project-rail {
    min-width: 0;
    display: flex;
    align-items: stretch;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.nic-project-rail::-webkit-scrollbar {
    display: none;
}

.nic-project-scroll-button {
    width: 24px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: transparent;
    color: #94a3b8;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}

.nic-project-scroll-button:hover {
    background: rgba(15, 23, 42, .055);
    color: #334155;
}

.nic-project-card {
    position: relative;
    flex: 0 0 124px;
    min-width: 0;
    height: 54px;
    border: 1px solid rgba(100, 116, 139, .14);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 7px 18px rgba(15, 23, 42, .055);
    scroll-snap-align: start;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.nic-project-card:hover,
.nic-project-card:focus-within {
    z-index: 2;
    transform: none;
    border-color: rgba(51, 65, 85, .28);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .1);
}

.nic-project-card.is-active {
    border-color: #334155;
    box-shadow: 0 0 0 2px rgba(51, 65, 85, .09), 0 12px 25px rgba(15, 23, 42, .1);
}

.nic-project-card.is-active::after {
    content: '';
    position: absolute;
    inset: auto 18px 0 18px;
    height: 2px;
    border-radius: 999px 999px 0 0;
    background: #334155;
}

.nic-project-card.is-drop-target {
    transform: translateY(-4px) scale(1.025);
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15), 0 16px 30px rgba(37, 99, 235, .18);
}

.nic-project-card.is-loading .nic-project-cover::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: nic-project-spin .8s linear infinite;
}

.nic-project-card.is-importing,
.nic-project-card.is-import-done,
.nic-project-card.is-import-error {
    border-color: rgba(37, 99, 235, .46);
}

.nic-project-card.is-importing .nic-project-more {
    pointer-events: none;
    opacity: 0;
}

.nic-project-import-progress {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 4px;
    z-index: 5;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(37, 99, 235, .13);
    pointer-events: none;
}

.nic-project-import-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    box-shadow: 0 0 12px rgba(37, 99, 235, .35);
    transition: width .24s cubic-bezier(.22, 1, .36, 1);
}

.nic-project-import-progress.done > span {
    background: #16a34a;
}

.nic-project-import-progress.error > span {
    background: #dc2626;
}

.nic-project-card-main {
    width: 100%;
    height: 100%;
    padding: 5px 27px 5px 5px;
    border: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.nic-project-cover {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #e2e8f0, #cbd5e1);
}

.nic-project-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .24s ease;
}

.nic-project-card:hover .nic-project-cover img {
    transform: scale(1.08);
}

.nic-project-copy {
    min-width: 0;
    display: grid;
    justify-items: start;
    gap: 2px;
}

.nic-project-copy strong,
.nic-project-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nic-project-copy strong {
    color: #1e293b;
    font-size: 12px;
    font-weight: 720;
}

.nic-project-copy small {
    min-width: 18px;
    padding: 1px 5px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 9px;
    font-weight: 680;
    line-height: 1.4;
    text-align: center;
}

.nic-project-all {
    flex-basis: 100px;
}

.nic-project-more {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 23px;
    height: 23px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .72);
    color: #94a3b8;
    font: inherit;
    font-size: 9px;
    letter-spacing: -1px;
    opacity: 0;
    cursor: pointer;
    transition: opacity .16s ease, color .16s ease, background .16s ease;
}

.nic-project-card:hover .nic-project-more,
.nic-project-card:focus-within .nic-project-more {
    opacity: 1;
}

.nic-project-more:hover {
    background: #fff;
    color: #0f172a;
}

.nic-project-pin {
    position: absolute;
    right: 8px;
    bottom: 7px;
    color: #2563eb;
    font-size: 6px;
}

.nic-project-cover-empty {
    position: relative;
    width: 29px;
    height: 29px;
}

.nic-project-cover-empty i {
    position: absolute;
    width: 20px;
    height: 15px;
    border: 1px solid rgba(71, 85, 105, .32);
    border-radius: 5px;
    background: rgba(255, 255, 255, .58);
    transform: rotate(-7deg);
}

.nic-project-cover-empty i:nth-child(1) {
    left: 1px;
    top: 10px;
}

.nic-project-cover-empty i:nth-child(2) {
    right: 1px;
    top: 6px;
    transform: rotate(8deg);
}

.nic-project-cover-empty i:nth-child(3) {
    left: 5px;
    top: 3px;
    transform: rotate(0deg);
}

.nic-project-all-grid {
    width: 28px;
    height: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
}

.nic-project-all-grid i {
    border-radius: 4px;
    background: rgba(71, 85, 105, .28);
}

.nic-project-all.is-active .nic-project-all-grid i {
    background: rgba(30, 41, 59, .58);
}

.nic-project-new-card {
    flex: 0 0 154px;
    height: 62px;
    padding: 6px 14px;
    border: 1px dashed rgba(100, 116, 139, .34);
    border-radius: 16px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    align-items: center;
    column-gap: 9px;
    background: rgba(248, 250, 252, .72);
    color: #475569;
    font: inherit;
    text-align: left;
    cursor: pointer;
    scroll-snap-align: start;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.nic-project-new-card:hover {
    transform: translateY(-2px);
    border-color: rgba(51, 65, 85, .48);
    background: #fff;
}

.nic-project-new-card > span {
    grid-row: 1 / 3;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #e2e8f0;
    color: #334155;
    font-size: 18px;
}

.nic-project-new-card strong {
    align-self: end;
    font-size: 11px;
    font-weight: 700;
}

.nic-project-new-card small {
    align-self: start;
    color: #94a3b8;
    font-size: 9px;
}

.nic-project-loading,
.nic-project-empty-copy {
    flex: 0 0 auto;
    height: 62px;
    padding: 0 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 11px;
    white-space: nowrap;
}

.nic-project-loading span,
.nic-project-preview-loading span {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(100, 116, 139, .18);
    border-top-color: #64748b;
    border-radius: 50%;
    animation: nic-project-spin .8s linear infinite;
}

.nic-project-preview {
    position: absolute;
    top: calc(100% + 1px);
    left: 142px;
    right: 16px;
    z-index: 44;
    padding: 12px;
    border: 1px solid rgba(100, 116, 139, .16);
    border-radius: 0 0 20px 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 50px rgba(15, 23, 42, .15);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-5px);
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}

.nic-project-preview.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nic-project-preview header {
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nic-project-preview header > div {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.nic-project-preview header strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 740;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nic-project-preview header span {
    color: #94a3b8;
    font-size: 10px;
    white-space: nowrap;
}

.nic-project-preview header button {
    height: 30px;
    padding: 0 12px;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #334155;
    color: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 680;
    cursor: pointer;
}

.nic-project-preview-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(48px, 1fr));
    gap: 7px;
}

.nic-project-preview-image {
    min-width: 0;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid rgba(100, 116, 139, .12);
    border-radius: 10px;
    overflow: hidden;
    background: #e2e8f0;
    cursor: pointer;
}

.nic-project-preview-image img,
.nic-project-preview-image video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .18s ease;
}

.nic-project-preview-image.is-video {
    position: relative;
    background: #0f172a;
}

.nic-project-preview-image.is-video > span {
    position: absolute;
    left: 50%;
    top: 50%;
    color: #fff;
    font-size: 16px;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .45));
    transform: translate(-50%, -50%);
}

.nic-project-preview-image:hover img {
    transform: scale(1.08);
}

.nic-project-preview-loading,
.nic-project-preview-empty {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 11px;
}

.nic-project-actions-menu {
    position: absolute;
    z-index: 52;
    width: 142px;
    padding: 6px;
    border: 1px solid rgba(100, 116, 139, .16);
    border-radius: 13px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .16);
}

.nic-project-actions-menu button {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    font: inherit;
    font-size: 11px;
    text-align: left;
    cursor: pointer;
}

.nic-project-actions-menu button:hover {
    background: #f1f5f9;
}

.nic-project-actions-menu button.danger {
    color: #b91c1c;
}

.nic-project-dialog-backdrop {
    position: absolute;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .3);
    backdrop-filter: blur(7px);
    opacity: 0;
    transition: opacity .16s ease;
}

.nic-project-dialog-backdrop[hidden] {
    display: none;
}

.nic-project-dialog-backdrop.open {
    opacity: 1;
}

.nic-project-dialog {
    width: min(430px, 92vw);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 16px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 30px 80px rgba(15, 23, 42, .24);
    transform: translateY(8px) scale(.98);
    transition: transform .18s ease;
}

.nic-project-dialog-backdrop.open .nic-project-dialog {
    transform: translateY(0) scale(1);
}

.nic-project-dialog-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #e2e8f0;
    color: #334155;
    font-size: 23px;
}

.nic-project-dialog-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.nic-project-dialog-copy strong {
    color: #0f172a;
    font-size: 17px;
    font-weight: 760;
}

.nic-project-dialog-copy span {
    color: #64748b;
    font-size: 12px;
}

.nic-project-dialog label,
.nic-project-dialog-actions {
    grid-column: 1 / -1;
}

.nic-project-dialog label {
    display: grid;
    gap: 7px;
}

.nic-project-dialog label span {
    color: #475569;
    font-size: 11px;
    font-weight: 680;
}

.nic-project-dialog input {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1px solid rgba(100, 116, 139, .22);
    border-radius: 13px;
    outline: none;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 13px;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.nic-project-dialog input:focus {
    border-color: #475569;
    box-shadow: 0 0 0 3px rgba(71, 85, 105, .1);
}

.nic-project-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.nic-project-dialog-actions button {
    height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(100, 116, 139, .2);
    border-radius: 12px;
    background: #fff;
    color: #475569;
    font: inherit;
    font-size: 12px;
    font-weight: 680;
    cursor: pointer;
}

.nic-project-dialog-actions button[type="submit"] {
    border-color: #0f172a;
    background: #0f172a;
    color: #fff;
}

.nic-project-dialog-actions button:disabled {
    opacity: .55;
    cursor: wait;
}

@keyframes nic-project-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1400px) {
    .nic-projects-heading {
        width: 40px;
        min-width: 40px;
    }

    .nic-projects-heading > div {
        display: none;
    }

    .nic-project-create-compact {
        display: grid;
    }

    .nic-project-preview {
        left: 64px;
    }
}

.nic-project-guide-trigger {
    position: absolute;
    right: 270px;
    bottom: 18px;
    z-index: 12;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(100, 116, 139, .2);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .88);
    color: #64748b;
    font: inherit;
    font-size: 14px;
    font-weight: 760;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
    backdrop-filter: blur(10px);
    transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.nic-project-guide-trigger:hover,
.nic-project-guide-trigger[aria-expanded="true"] {
    border-color: #334155;
    background: #fff;
    color: #0f172a;
}

.nic-project-guide {
    position: absolute;
    inset: 0;
    z-index: 80;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.nic-project-guide[hidden] {
    display: none;
}

.nic-project-guide.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nic-project-guide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .46);
    backdrop-filter: blur(2px);
}

.nic-project-guide-spot {
    position: absolute;
    left: var(--guide-focus-x, 24px);
    top: var(--guide-focus-y, 24px);
    width: var(--guide-focus-w, 220px);
    height: var(--guide-focus-h, 160px);
    z-index: 1;
    border-radius: 18px;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, .08), 0 0 0 2px rgba(147, 197, 253, .92), 0 0 28px rgba(59, 130, 246, .34);
    animation: nic-project-guide-pulse 1.7s ease-in-out infinite;
    pointer-events: none;
    transition: left .32s ease, top .32s ease, width .32s ease, height .32s ease;
}

.nic-project-guide-demo {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.nic-project-guide-cursor {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(37, 99, 235, .9);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .28);
    opacity: 0;
}

.nic-project-guide-cursor::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(147, 197, 253, .85);
    border-radius: inherit;
}

.nic-project-guide-context {
    position: absolute;
    left: calc(var(--guide-click-x, 140px) + 12px);
    top: calc(var(--guide-click-y, 100px) + 12px);
    min-width: 136px;
    height: 42px;
    padding: 0 13px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, .98);
    color: #1e293b;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .22);
    opacity: 0;
}

.nic-project-guide-context i {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: #2563eb;
    font-style: normal;
    font-size: 17px;
}

.nic-project-guide-context b {
    font-size: 12px;
    font-weight: 750;
}

.nic-project-guide-compose {
    position: absolute;
    left: calc(var(--guide-compose-x, 620px) + 18px);
    top: calc(var(--guide-compose-y, 620px) + 18px);
    width: min(calc(var(--guide-compose-w, 420px) - 36px), 380px);
    height: min(calc(var(--guide-compose-h, 132px) - 36px), 104px);
    min-width: 220px;
    min-height: 88px;
    padding: 16px 58px 16px 16px;
    border: 2px solid rgba(255, 255, 255, .94);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 20px 46px rgba(15, 23, 42, .24);
    opacity: 0;
}

.nic-project-guide-compose > span {
    height: 100%;
    padding: 14px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    display: grid;
    align-content: center;
    gap: 8px;
    background: #f8fafc;
}

.nic-project-guide-compose i {
    display: block;
    width: 0;
    height: 5px;
    border-radius: 999px;
    background: #94a3b8;
}

.nic-project-guide-compose i:nth-child(2) { max-width: 72%; }
.nic-project-guide-compose i:nth-child(3) { max-width: 46%; }

.nic-project-guide-compose > b {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #0f172a;
    color: #fff;
    font-size: 18px;
    line-height: 1;
}

.nic-project-guide-source,
.nic-project-guide-target {
    position: absolute;
    opacity: 0;
}

.nic-project-guide-source {
    left: var(--guide-source-x, 120px);
    top: var(--guide-source-y, 220px);
    width: min(var(--guide-source-w, 110px), 112px);
    height: min(var(--guide-source-h, 150px), 150px);
    border: 2px solid rgba(255, 255, 255, .92);
    background: linear-gradient(145deg, #dbeafe, #93c5fd 46%, #eff6ff);
    box-shadow: 0 18px 36px rgba(15, 23, 42, .24);
}

.nic-project-guide-source i {
    position: absolute;
    left: 16%;
    right: 16%;
    height: 8%;
    border-radius: 999px;
    background: rgba(255, 255, 255, .74);
}

.nic-project-guide-source i:nth-child(1) { top: 22%; }
.nic-project-guide-source i:nth-child(2) { top: 42%; right: 34%; }
.nic-project-guide-source i:nth-child(3) { top: 62%; left: 36%; }

.nic-project-guide-target {
    left: var(--guide-target-x, 720px);
    top: var(--guide-target-y, 90px);
    width: var(--guide-target-w, 166px);
    height: var(--guide-target-h, 62px);
    border: 2px solid #60a5fa;
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 0 0 5px rgba(59, 130, 246, .18), 0 18px 36px rgba(15, 23, 42, .18);
}

.nic-project-guide-target i {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, #dbeafe, #93c5fd);
}

.nic-project-guide-target b {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 4px;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(37, 99, 235, .14);
}

.nic-project-guide-target b::after {
    content: '';
    display: block;
    width: 72%;
    height: 100%;
    border-radius: inherit;
    background: #2563eb;
    animation: nic-project-guide-progress 1.8s ease-in-out infinite;
}

.nic-project-guide-card {
    position: absolute;
    left: 50%;
    right: auto;
    top: calc(50% + 20px);
    bottom: auto;
    z-index: 4;
    width: min(310px, calc(100% - 32px));
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    color: #0f172a;
    box-shadow: 0 24px 64px rgba(15, 23, 42, .28);
    transform: translateX(-50%);
}

.nic-project-guide-step {
    display: block;
    margin-bottom: 8px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 780;
    letter-spacing: .08em;
}

.nic-project-guide-card > strong {
    display: block;
    font-size: 16px;
    font-weight: 780;
}

.nic-project-guide-card p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.65;
}

.nic-project-guide-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 15px;
}

.nic-project-guide-actions button {
    height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(100, 116, 139, .18);
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.nic-project-guide-actions button.primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.nic-project-guide-actions button:hover {
    transform: translateY(-1px);
}

.nic-project-guide.step-0 .nic-project-guide-cursor {
    animation: nic-project-guide-right-click 2.6s ease-in-out infinite;
}

.nic-project-guide.step-0 .nic-project-guide-context {
    animation: nic-project-guide-context-menu 2.6s ease-in-out infinite;
}

.nic-project-guide.step-1 .nic-project-guide-compose {
    animation: nic-project-guide-compose 2.8s ease-in-out infinite;
}

.nic-project-guide.step-1 .nic-project-guide-compose i:nth-child(1) {
    animation: nic-project-guide-compose-line-one 2.8s ease-in-out infinite;
}

.nic-project-guide.step-1 .nic-project-guide-compose i:nth-child(2) {
    animation: nic-project-guide-compose-line-two 2.8s ease-in-out infinite;
}

.nic-project-guide.step-1 .nic-project-guide-compose i:nth-child(3) {
    animation: nic-project-guide-compose-line-three 2.8s ease-in-out infinite;
}

.nic-project-guide.step-1 .nic-project-guide-compose > b {
    animation: nic-project-guide-compose-send 2.8s ease-in-out infinite;
}

.nic-project-guide.step-2 .nic-project-guide-source,
.nic-project-guide.step-2 .nic-project-guide-target {
    opacity: 1;
}

.nic-project-guide.step-2 .nic-project-guide-source {
    animation: nic-project-guide-drag 2.8s cubic-bezier(.22, 1, .36, 1) infinite;
}

.nic-project-guide.step-2 .nic-project-guide-target {
    animation: nic-project-guide-target-pulse 2.8s ease-in-out infinite;
}

@keyframes nic-project-guide-pulse {
    0%, 100% { box-shadow: 0 0 0 9999px rgba(15, 23, 42, .08), 0 0 0 2px rgba(147, 197, 253, .72), 0 0 18px rgba(59, 130, 246, .2); }
    50% { box-shadow: 0 0 0 9999px rgba(15, 23, 42, .08), 0 0 0 3px rgba(147, 197, 253, 1), 0 0 34px rgba(59, 130, 246, .46); }
}

@keyframes nic-project-guide-right-click {
    0%, 12% { left: var(--guide-cursor-start-x); top: var(--guide-cursor-start-y); opacity: 0; transform: scale(.86); }
    28%, 48% { left: var(--guide-click-x); top: var(--guide-click-y); opacity: 1; transform: scale(1); }
    50% { transform: scale(.74); }
    62%, 100% { left: var(--guide-click-x); top: var(--guide-click-y); opacity: 0; transform: scale(1); }
}

@keyframes nic-project-guide-context-menu {
    0%, 48% { opacity: 0; transform: translateY(-5px) scale(.94); }
    58%, 88% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(3px) scale(.98); }
}

@keyframes nic-project-guide-compose {
    0%, 8% { opacity: 0; transform: translateY(12px) scale(.96); }
    18%, 88% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-3px) scale(.99); }
}

@keyframes nic-project-guide-compose-line-one {
    0%, 20% { width: 0; }
    42%, 100% { width: 88%; }
}

@keyframes nic-project-guide-compose-line-two {
    0%, 34% { width: 0; }
    56%, 100% { width: 72%; }
}

@keyframes nic-project-guide-compose-line-three {
    0%, 48% { width: 0; }
    68%, 100% { width: 46%; }
}

@keyframes nic-project-guide-compose-send {
    0%, 64%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(15, 23, 42, 0); }
    76% { transform: scale(.86); box-shadow: 0 0 0 7px rgba(59, 130, 246, .2); }
    86% { transform: scale(1); }
}

@keyframes nic-project-guide-drag {
    0%, 14% { opacity: 1; transform: translate(0, 0) scale(1); }
    68%, 82% { opacity: .94; transform: translate(calc(var(--guide-target-x) - var(--guide-source-x) + 24px), calc(var(--guide-target-y) - var(--guide-source-y) + 8px)) scale(.42); }
    100% { opacity: 0; transform: translate(calc(var(--guide-target-x) - var(--guide-source-x) + 24px), calc(var(--guide-target-y) - var(--guide-source-y) + 8px)) scale(.42); }
}

@keyframes nic-project-guide-target-pulse {
    0%, 36%, 100% { box-shadow: 0 0 0 2px rgba(59, 130, 246, .08), 0 18px 36px rgba(15, 23, 42, .18); }
    58%, 82% { box-shadow: 0 0 0 7px rgba(59, 130, 246, .2), 0 18px 42px rgba(37, 99, 235, .24); }
}

@keyframes nic-project-guide-progress {
    0%, 42% { width: 8%; }
    82%, 100% { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .nic-project-import-progress > span {
        transition: none !important;
    }
}

@media (max-width: 1050px) {
    .nic-project-guide-trigger {
        right: 18px;
    }
}

@media (max-width: 680px) {
    .nic-project-guide-trigger {
        right: 10px;
        bottom: 14px;
    }

    .nic-project-guide-card {
        left: 50%;
        right: auto;
        top: calc(50% + 12px);
        bottom: auto;
        width: min(310px, calc(100% - 24px));
        transform: translateX(-50%);
    }
}

@media (max-width: 1050px) {
    .nic-projects {
        height: 82px;
        padding: 8px 10px;
        grid-template-columns: minmax(0, 1fr);
    }

    .nic-projects-heading {
        display: none;
    }

    .nic-project-rail-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .nic-project-scroll-button {
        display: none;
    }

    .nic-project-card {
        flex-basis: 150px;
    }

    .nic-project-preview {
        left: 10px;
        right: 10px;
    }

    .nic-project-preview-grid {
        grid-template-columns: repeat(6, minmax(52px, 1fr));
    }
}

@media (max-width: 680px) {
    .nic-projects {
        height: 76px;
        padding: 7px 8px;
    }

    .nic-project-card,
    .nic-project-new-card {
        flex-basis: 136px;
        height: 58px;
    }

    .nic-project-card-main {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .nic-project-cover {
        width: 44px;
        height: 44px;
    }

    .nic-project-preview {
        display: none;
    }

    .nic-project-more {
        opacity: 1;
    }

    .nic-project-dialog {
        padding: 20px;
        border-radius: 20px;
    }
}
