.fz-tool,
.fz-tool * {
    box-sizing: border-box;
}

.fz-tool {
    direction: rtl;
    text-align: right;
    font-family: inherit;
    margin: 24px 0;
    color: #1f2937;
}

.fz-tool__header {
    margin-bottom: 20px;
}

.fz-tool__title {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.5;
    color: #0f172a;
}

.fz-tool__desc {
    margin: 0;
    color: #475569;
    line-height: 1.9;
}

.fz-tool__body {
    display: grid;
    gap: 18px;
}

.fz-tool__card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04);
}

.fz-tool__section-title {
    margin: 0 0 14px;
    font-size: 18px;
    color: #0f172a;
}

.fz-form {
    display: grid;
    gap: 16px;
}

.fz-form__row {
    display: grid;
    gap: 12px;
}

.fz-form__row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fz-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #334155;
    font-weight: 600;
}

.fz-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    color: #0f172a;
    font-size: 15px;
}

.fz-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.fz-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.fz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: #0f766e;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: 0.2s ease;
}

.fz-btn:hover {
    background: #115e59;
    color: #fff;
}

.fz-btn--light {
    background: #e2e8f0;
    color: #0f172a;
}

.fz-btn--light:hover {
    background: #cbd5e1;
    color: #0f172a;
}

.fz-tool__result {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    min-height: 80px;
}

.fz-tool__result-placeholder {
    margin: 0;
    color: #64748b;
}

.fz-result-list {
    display: grid;
    gap: 10px;
}

.fz-result-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.fz-result-item strong {
    color: #0f172a;
}

.fz-result-item span {
    color: #0f766e;
    font-weight: 700;
}

.fz-tool__notice {
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    border-radius: 12px;
    padding: 14px 16px;
    line-height: 1.9;
}

.fz-tool__content {
    line-height: 2;
    color: #334155;
}

.fz-tool__content p {
    margin: 0 0 12px;
}

.fz-tool__content ul {
    margin: 0;
    padding-right: 18px;
}

.fz-tool__content code {
    display: inline-block;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    direction: ltr;
}

.fz-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    padding: 12px 14px;
}

.fz-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: 10px;
    padding: 12px 14px;
}

.fz-muted {
    color: #64748b;
    font-size: 14px;
}

.fz-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
}

.fz-spaceframe-summary {
    display: grid;
    gap: 10px;
}

.fz-spaceframe-box {
    border: 1px solid #dbeafe;
    background: #f8fbff;
    border-radius: 12px;
    padding: 14px;
}

.fz-spaceframe-box h4 {
    margin: 0 0 8px;
    color: #1e3a8a;
    font-size: 16px;
}

@media (max-width: 767px) {
    .fz-form__row--2 {
        grid-template-columns: 1fr;
    }

    .fz-tool__title {
        font-size: 22px;
    }

    .fz-result-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
