.twp-not-found-default {
    --twp-nf-accent: #0f766e;
    --twp-nf-accent-hover: #0d9488;
    --twp-nf-text: #0f172a;
    --twp-nf-muted: #64748b;
    --twp-nf-canvas: #f3f5f7;
    --twp-nf-card: #fff;
    --twp-nf-border: #e8ecf0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.twp-not-found-default *,
.twp-not-found-default *::before,
.twp-not-found-default *::after {
    box-sizing: border-box;
}

.twp-not-found-default .twp-not-found-canvas {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: clamp(20rem, 42vh, 30rem);
    margin: 0;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem);
    background: var(--twp-nf-canvas);
}

.twp-not-found-default .twp-not-found-inner {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
}

.twp-not-found-default .twp-not-found-card {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 5vw, 3rem);
    text-align: center;
    color: var(--twp-nf-text);
    background: var(--twp-nf-card);
    border: 1px solid var(--twp-nf-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.twp-not-found-default .twp-not-found-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #0f766e, #0ea5e9);
}

.twp-not-found-default .twp-not-found-code {
    margin: 0 0 0.35rem;
    font-size: clamp(3.25rem, 10vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--twp-nf-accent);
}

.twp-not-found-default .twp-not-found-title {
    margin: 0 0 1.35rem;
    font-size: clamp(1.35rem, 3.4vw, 1.85rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--twp-nf-text);
}

.twp-not-found-default .twp-not-found-path {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    margin: 0 auto 1.85rem;
    max-width: 34rem;
}

.twp-not-found-default .twp-not-found-path-label {
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--twp-nf-muted);
}

.twp-not-found-default .twp-not-found-path-value {
    display: inline-block;
    max-width: 100%;
    padding: 0.45rem 0.75rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #334155;
    background: #f8fafc;
    border: 1px solid var(--twp-nf-border);
    border-radius: 999px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.twp-not-found-default .twp-not-found-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 0.85rem;
}

.twp-not-found-default .twp-not-found-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10rem;
    min-height: 3.15rem;
    padding: 0.85rem 1.6rem;
    border: 1px solid var(--twp-nf-accent);
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    background-color: var(--twp-nf-accent);
    text-decoration: none;
    box-shadow: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.twp-not-found-default .twp-not-found-btn:hover,
.twp-not-found-default .twp-not-found-btn:focus {
    background-color: var(--twp-nf-accent-hover);
    border-color: var(--twp-nf-accent-hover);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 640px) {
    .twp-not-found-default .twp-not-found-canvas {
        min-height: 0;
        padding: 1.5rem 1rem 2.5rem;
        align-items: flex-start;
    }

    .twp-not-found-default .twp-not-found-card {
        border-radius: 14px;
        padding: 1.5rem 1.15rem;
    }

    .twp-not-found-default .twp-not-found-path-value {
        border-radius: 10px;
    }

    .twp-not-found-default .twp-not-found-actions {
        flex-direction: column;
    }

    .twp-not-found-default .twp-not-found-btn {
        width: 100%;
        min-width: 0;
    }
}