#tools-app[v-cloak] {
    display: none;
}

.tools-page {
    width: min(1400px, 100%);
    margin: 46px auto 72px;
    color: #162033;
    box-sizing: border-box;
}

.tools-page,
.tools-page * {
    box-sizing: border-box;
}

.tools-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 24px;
}

.tools-page-header__copy {
    min-width: 0;
}

.tools-page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: #246bfd;
    font-size: 13px;
    font-weight: 600;
}

.tools-page-kicker i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin: 0;
    font-size: 15px;
    line-height: 1;
    vertical-align: middle;
}

.tools-page-header h1 {
    margin: 0;
    color: #111c2f;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
}

.tools-page-header p {
    max-width: 650px;
    margin: 10px 0 0;
    color: #69758a;
    font-size: 15px;
    line-height: 1.75;
}

.tools-security-note {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    max-width: 330px;
    padding: 13px 16px;
    border: 1px solid #dce6e5;
    border-radius: 8px;
    background: #f7fbfa;
}

.tools-security-note__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 7px;
    background: #e3f5f1;
    color: #108878;
    font-size: 17px;
    line-height: 1;
}

.tools-security-note__copy {
    min-width: 0;
}

.tools-security-note__copy strong,
.tools-security-note__copy span {
    display: block;
}

.tools-security-note__icon i {
    display: block;
    width: 1em;
    height: 1em;
    margin: 0;
    font-size: inherit;
    line-height: 1;
    text-align: center;
}

.tools-security-note__copy strong {
    color: #243448;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.tools-security-note__copy span {
    margin-top: 2px;
    color: #788697;
    font-size: 12px;
    line-height: 1.45;
}

.tools-workbench {
    display: grid;
    grid-template-columns: 276px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.tools-sidebar {
    position: sticky;
    top: 92px;
    overflow: hidden;
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(34, 51, 84, 0.06);
}

.tools-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 19px 20px 17px;
    border-bottom: 1px solid #edf0f5;
    background: #fbfcfe;
}

.tools-sidebar-brand__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 8px;
    background: #246bfd;
    color: #fff;
    box-shadow: 0 6px 14px rgba(36, 107, 253, 0.2);
    font-size: 18px;
    line-height: 1;
}

.tools-sidebar-brand__copy {
    min-width: 0;
}

.tools-sidebar-brand__copy strong,
.tools-sidebar-brand__copy span {
    display: block;
}

.tools-sidebar-brand__icon i {
    display: block;
    width: 1em;
    height: 1em;
    margin: 0;
    font-size: inherit;
    line-height: 1;
    text-align: center;
}

.tools-sidebar-brand__copy strong {
    color: #172237;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.45;
}

.tools-sidebar-brand__copy span {
    margin-top: 2px;
    color: #8792a4;
    font-size: 12px;
    line-height: 1.4;
}

.tools-sidebar-menu {
    padding: 10px 0 8px;
}

.tools-sidebar .sidebar-menu {
    border-right: 0;
    background: transparent;
}

.tools-sidebar .el-menu-item-group__title {
    height: auto;
    padding: 14px 20px 7px !important;
    color: #9aa4b3;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
}

.tools-sidebar .el-menu-item {
    display: flex;
    align-items: center;
    gap: 11px;
    height: 58px;
    margin: 3px 10px;
    padding: 0 12px !important;
    border-radius: 7px;
    color: #465267;
    line-height: normal;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.tools-sidebar .el-menu-item:hover,
.tools-sidebar .el-menu-item:focus {
    background: #f4f7fb;
    color: #1c2b43;
}

.tools-sidebar .el-menu-item.is-active {
    background: #edf4ff;
    color: #175ad6;
    box-shadow: inset 3px 0 0 #246bfd;
}

.tools-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 7px;
    background: #f0f3f7;
    color: #6f7b8e;
    font-size: 16px;
    line-height: 1;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.tools-sidebar .el-menu-item .tools-nav-icon i {
    display: block;
    width: 1em !important;
    height: 1em;
    margin: 0 !important;
    color: inherit;
    font-size: inherit !important;
    line-height: 1 !important;
    text-align: center;
}

.tools-sidebar .el-menu-item:hover .tools-nav-icon {
    background: #e8edf5;
    color: #3e4d65;
}

.tools-sidebar .el-menu-item.is-active .tools-nav-icon {
    background: #dceaff;
    color: #246bfd;
}

.tools-nav-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

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

.tools-nav-copy strong {
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.tools-nav-copy small {
    color: #98a2b1;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
}

.tools-sidebar .el-menu-item.is-active .tools-nav-copy small {
    color: #6e91cc;
}

.tools-main {
    min-width: 0;
    min-height: 610px;
    padding: 34px 38px 38px;
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(34, 51, 84, 0.06);
}

.tool-header {
    margin: 0 0 28px;
    padding: 0 0 22px;
    border-bottom: 1px solid #edf0f4;
}

.tool-header::before {
    display: block;
    width: 32px;
    height: 3px;
    margin-bottom: 13px;
    border-radius: 2px;
    background: #246bfd;
    content: "";
}

.tool-header h2 {
    margin: 0;
    color: #172237;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.4;
}

.tool-header p {
    max-width: 760px;
    margin: 8px 0 0;
    color: #6f7b8e;
    font-size: 14px;
    line-height: 1.75;
}

.tools-main .el-form-item {
    margin-bottom: 22px;
}

.tools-main .el-form-item__label {
    padding-bottom: 8px;
    color: #354257;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.tools-main .el-input__inner,
.tools-main .el-textarea__inner {
    border: 1px solid #dce2eb;
    border-radius: 6px;
    background: #fcfdff;
    color: #243147;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.tools-main .el-input__inner {
    height: 44px;
    padding: 0 14px;
    line-height: 44px;
}

.tools-main .el-textarea__inner {
    padding: 13px 15px;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 13px;
    line-height: 1.65;
    resize: vertical;
}

.tools-main .el-input__inner:hover,
.tools-main .el-textarea__inner:hover {
    border-color: #bcc7d6;
}

.tools-main .el-input__inner:focus,
.tools-main .el-textarea__inner:focus {
    border-color: #246bfd;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(36, 107, 253, 0.1);
}

.tools-main .el-button--primary {
    min-width: 112px;
    height: 44px;
    padding: 0 24px;
    border-color: #246bfd;
    border-radius: 6px;
    background: #246bfd;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(36, 107, 253, 0.16);
}

.tools-main .el-button--primary:hover,
.tools-main .el-button--primary:focus {
    border-color: #175bdc;
    background: #175bdc;
}

.tools-main .el-select {
    width: 100%;
}

.result-box {
    margin-top: 30px;
    padding: 24px 26px;
    border: 1px solid #dfe6ef;
    border-radius: 7px;
    background: #f8fafc;
}

.result-box h3 {
    margin: 0 0 20px !important;
    color: #1d293d;
    font-size: 17px !important;
    font-weight: 650;
}

.result-item {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 16px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid #e8edf3;
}

.result-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.result-item:first-of-type {
    padding-top: 0;
}

.result-label {
    color: #788598;
    font-size: 13px;
    font-weight: 500;
}

.result-value {
    min-width: 0;
    color: #1f2c42;
    font-size: 13px;
    font-weight: 600;
    word-break: break-word;
}

.conversion-state {
    padding: 40px 18px 14px;
    text-align: center;
}

.conversion-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border: 1px solid #dce8fb;
    border-radius: 8px;
    background: #f1f6ff;
    color: #246bfd;
    font-size: 27px;
    line-height: 1;
}

.conversion-state__icon i {
    display: block;
    width: 1em;
    height: 1em;
    margin: 0;
    font-size: inherit;
    line-height: 1;
    text-align: center;
}

.conversion-state__status {
    display: block;
    width: fit-content;
    margin: 0 auto 10px;
    color: #168b79;
    font-size: 12px;
    font-weight: 600;
}

.conversion-state h3 {
    margin: 0;
    color: #202d42;
    font-size: 20px;
    font-weight: 650;
    line-height: 1.5;
}

.conversion-state > p {
    max-width: 620px;
    margin: 10px auto 0;
    color: #748095;
    font-size: 14px;
    line-height: 1.75;
}

.conversion-guide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 720px;
    margin: 34px auto 0;
    border-top: 1px solid #e7ebf1;
    border-bottom: 1px solid #e7ebf1;
}

.conversion-guide__item {
    position: relative;
    padding: 19px 16px 18px;
    text-align: left;
}

.conversion-guide__item + .conversion-guide__item::before {
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 1px;
    background: #e7ebf1;
    content: "";
}

.conversion-guide__item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    border-radius: 6px;
    background: #eef4ff;
    color: #246bfd;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
}

.conversion-guide__item strong,
.conversion-guide__item span {
    display: block;
}

.conversion-guide__item strong {
    color: #334157;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.conversion-guide__item span {
    margin-top: 4px;
    color: #8a95a6;
    font-size: 12px;
    line-height: 1.55;
}

.z-index-top-message {
    z-index: 99999 !important;
}

.el-message-box__wrapper {
    z-index: 99998 !important;
}

.v-modal {
    z-index: 99997 !important;
}

@media (max-width: 1024px) {
    .tools-page {
        width: min(1120px, calc(100% - 36px));
        margin-top: 34px;
    }

    .tools-workbench {
        grid-template-columns: 248px minmax(0, 1fr);
        gap: 18px;
    }

    .tools-main {
        padding: 30px 28px 34px;
    }

    .tools-page-header h1 {
        font-size: 29px;
    }
}

@media (max-width: 820px) {
    .tools-page {
        width: calc(100% - 32px);
        margin: 28px auto 56px;
    }

    .tools-page-header {
        align-items: flex-start;
    }

    .tools-security-note {
        max-width: 290px;
    }

    .tools-workbench {
        display: block;
    }

    .tools-sidebar {
        position: static;
        margin-bottom: 16px;
    }

    .tools-sidebar-brand {
        padding: 14px 16px;
    }

    .tools-sidebar-brand__icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .tools-sidebar-menu {
        overflow-x: auto;
        padding: 7px 6px 10px;
        scrollbar-width: thin;
    }

    .tools-sidebar .sidebar-menu {
        display: flex;
        width: max-content;
    }

    .tools-sidebar .el-menu-item-group,
    .tools-sidebar .el-menu-item-group > ul {
        display: contents;
    }

    .tools-sidebar .el-menu-item-group__title {
        display: none;
    }

    .tools-sidebar .el-menu-item {
        width: 178px;
        height: 54px;
        margin: 2px 3px;
    }

    .tools-main {
        min-height: 520px;
    }
}

@media (max-width: 680px) {
    .tools-page {
        width: calc(100% - 24px);
        margin-top: 22px;
    }

    .tools-page-header {
        display: block;
        margin-bottom: 18px;
    }

    .tools-page-header h1 {
        font-size: 25px;
    }

    .tools-page-header p {
        margin-top: 7px;
        font-size: 13px;
        line-height: 1.65;
    }

    .tools-security-note {
        max-width: none;
        margin-top: 15px;
        padding: 11px 13px;
    }

    .tools-main {
        min-height: 460px;
        padding: 24px 18px 28px;
    }

    .tool-header {
        margin-bottom: 22px;
        padding-bottom: 17px;
    }

    .tool-header::before {
        margin-bottom: 10px;
    }

    .tool-header h2 {
        font-size: 21px;
    }

    .tool-header p {
        margin-top: 6px;
        font-size: 13px;
        line-height: 1.65;
    }

    .tools-main .el-form-item__label {
        float: none !important;
        width: auto !important;
        text-align: left !important;
    }

    .tools-main .el-form-item__content {
        margin-left: 0 !important;
    }

    .tools-main .el-col-12 {
        width: 100%;
    }

    .tools-main .el-button--primary {
        width: 100%;
    }

    .result-box {
        padding: 20px 18px;
    }

    .result-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .conversion-state {
        padding: 24px 0 6px;
    }

    .conversion-guide {
        grid-template-columns: 1fr;
        margin-top: 27px;
    }

    .conversion-guide__item {
        padding: 15px 12px;
    }

    .conversion-guide__item + .conversion-guide__item::before {
        top: 0;
        right: 12px;
        bottom: auto;
        left: 12px;
        width: auto;
        height: 1px;
    }
}

@media (max-width: 420px) {
    .tools-page {
        width: calc(100% - 20px);
    }

    .tools-page-kicker {
        margin-bottom: 7px;
    }

    .tools-page-header h1 {
        font-size: 23px;
    }

    .tools-sidebar .el-menu-item {
        width: 166px;
    }

    .tools-nav-copy strong {
        font-size: 12px;
    }

    .tools-main {
        padding-right: 15px;
        padding-left: 15px;
    }
}
