body.tools-layout { background: #fff; }
.tools-layout [hidden] { display: none !important; }
.tool-viewer { border: 1px solid #eceef4; border-radius: 12px; overflow: hidden; background: #fff; }
.tool-viewer-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #eff0f5; }
.tool-viewer-toolbar h2 { flex: 1; min-width: 0; margin: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.tool-viewer-toolbar button { padding: 7px 10px; border: 1px solid #e4e0f2; border-radius: 6px; background: #fff; color: #715bd4; font: inherit; cursor: pointer; }
.tool-viewer-toolbar > a { color: #8a819e; font-size: 13px; }
.tool-viewer-status { margin: 0; padding: 12px 20px; color: #8a819e; font-size: 13px; background: #faf9fd; }
.tool-viewer iframe { display: block; width: 100%; height: max(650px, calc(100vh - 285px)); border: 0; background: #fff; }
.tool-viewer iframe.is-loading { visibility: hidden; }
.tools-layout .tools-shell, .tools-layout .tools-shell *,.tools-layout .tool-detail,.tools-layout .tool-detail * { box-sizing: border-box; }
.tools-layout .tools-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - var(--site-header-height, 57px)); color: #243044; background: #fff; }
.tools-sidebar { position: sticky; top: var(--site-header-height, 57px); align-self: start; height: calc(100vh - var(--site-header-height, 57px)); padding: 30px 14px; overflow-y: auto; background: #f6f7fb; }
.tools-brand { display: flex; align-items: center; gap: 12px; padding: 4px 16px 30px; }
.tools-brand-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #e5edff; color: #3178f6; }
.tools-brand-icon i { font-size: 25px; }
.tools-brand h1 { margin: 0 0 5px; font-size: 20px; font-weight: 700; }
.tools-brand p { margin: 0; font-size: 12px; color: #8a94a5; }
.tools-categories { display: flex; flex-direction: column; gap: 12px; }
.tools-categories a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 12px 18px; border-radius: 10px; color: #455066; font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
.tools-categories i { flex: 0 0 20px; font-size: 20px; }
.tools-categories a:hover { color: #6553d9; background: #efedf9; }
.tools-categories a.is-active { color: #6250d6; background: #eae7ff; font-weight: 600; }
.tools-content { width: 100%; max-width: 1240px; margin: 0 auto; padding: 38px 48px 70px; min-width: 0; }
.tools-search { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; margin: 0 0 42px; padding: 6px 9px 6px 22px; border: 1px solid transparent; border-radius: 28px; background: #f6f7fb; }
.tools-search:focus-within { border-color: #c5baff; }
.tools-search > i { font-size: 24px; color: #8954ef; }
.tools-search input { flex: 1; min-width: 0; height: 38px; border: 0; outline: none; background: transparent; color: #29364a; font: inherit; }
.tools-search input::placeholder { color: #9ca5b5; }
.tools-search button { padding: 9px 22px; border: 0; border-radius: 22px; color: #6c55d8; background: #ebe7fc; font: inherit; cursor: pointer; }
.tools-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.tools-list-heading h2 { font-size: 18px; font-weight: 600; margin: 0; }
.tools-list-heading > span { color: #929bac; font-size: 13px; white-space: nowrap; }
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tool-card { position: relative; display: flex; align-items: center; min-width: 0; min-height: 108px; padding: 23px 20px; gap: 14px; border: 1px solid #f0f1f5; border-radius: 12px; background: #fff; box-shadow: 0 2px 12px #26304b09; color: #202b3d; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tool-card:hover { color: #6553d9; border-color: #dcd6fc; box-shadow: 0 6px 20px #6250d612; transform: translateY(-2px); }
.tool-icon { display: grid; place-items: center; flex: 0 0 54px; width: 54px; height: 54px; border-radius: 50%; background: #e3f0ff; color: #2581fb; }
.tool-icon i { font-size: 29px; }
.tool-card:nth-child(3n+2) .tool-icon { background: #eee5ff; color: #9555ec; }
.tool-card:nth-child(3n) .tool-icon { background: #e2f6ee; color: #20ae88; }
.tool-card-body { display: flex; flex-direction: column; gap: 9px; min-width: 0; flex: 1; }
.tool-card-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 600; }
.tool-description { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 20px; color: #929aa9; }
.tool-badge { position: absolute; right: 0; top: 0; max-width: 70%; padding: 3px 8px; border-radius: 0 11px 0 9px; background: #ff8c25; color: #fff; font-size: 11px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-arrow { display: none; }
.tools-empty { padding: 85px 20px; text-align: center; color: #939caf; }
.tools-empty > i { font-size: 42px; color: #c4bbec; }
.tools-empty h3 { margin: 20px 0 10px; font-size: 18px; color: #5b6579; }
.tools-empty p { margin: 0 0 22px; font-size: 14px; }
.tools-empty a,.tool-back { color: #7861dc; }
.tools-pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 35px; color: #8690a3; }
.tools-pagination a { padding: 8px 16px; border: 1px solid #e4e0f2; border-radius: 7px; color: #715bd4; }
.tools-layout a:focus-visible,.tools-layout button:focus-visible { outline: 2px solid #8b6de9; outline-offset: 4px; }
.tool-detail { max-width: 850px; margin: 36px auto 70px; padding: 0 24px; color: #243044; }
.tool-back { display: inline-block; margin-bottom: 24px; }
.tool-workspace { padding: 36px; border: 1px solid #eceef4; border-radius: 16px; box-shadow: 0 4px 25px #25355708; background: #fff; }
.tool-detail-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.tool-detail-heading h1 { font-size: 24px; font-weight: 600; margin: 0 0 8px; }
.tool-detail-heading p { margin: 0; font-size: 14px; color: #8c95a5; }
.tool-current-ip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px; margin-bottom: 26px; border-radius: 9px; background: #f6f7fc; color: #7f899c; font-size: 14px; }
.tool-current-ip strong { color: #485772; overflow-wrap: anywhere; }
.tool-current-ip a { margin-left: auto; color: #7960d7; }
.tool-ip-form label { display: block; margin-bottom: 10px; font-size: 14px; }
.tool-ip-form > div { display: flex; gap: 12px; }
.tool-ip-form input { flex: 1; width: 0; padding: 13px 14px; border: 1px solid #dfe3ed; border-radius: 8px; font: inherit; }
.tool-ip-form input:focus { outline: 2px solid #cbbcf2; outline-offset: 1px; }
.tool-ip-form button { padding: 0 28px; border: 0; border-radius: 8px; background: #7961db; color: #fff; font: inherit; cursor: pointer; }
.tool-ip-result { margin: 28px 0 0; font-size: 14px; }
.tool-ip-result > div { display: grid; grid-template-columns: 145px minmax(0, 1fr); padding: 17px 0; border-bottom: 1px solid #eff0f5; }
.tool-ip-result dt { color: #939bad; }
.tool-ip-result dd { margin: 0; overflow-wrap: anywhere; }
.tool-note { margin: 24px 0 0; color: #9aa2b1; font-size: 12px; line-height: 1.8; }
.tool-error { margin-top: 18px; color: #c24747; font-size: 14px; }
@media (max-width: 1250px) {
    .tools-content { padding: 30px; }
    .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .tools-layout .tools-shell { grid-template-columns: 210px minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .tools-layout .tools-shell { display: block; }
    .tools-sidebar { position: static; height: auto; padding: 20px 16px 14px; overflow: visible; }
    .tools-brand { padding: 0 4px 18px; }
    .tools-categories { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
    .tools-categories a { flex-shrink: 0; min-height: 38px; padding: 8px 12px; font-size: 13px; gap: 7px; white-space: nowrap; }
    .tools-categories i { font-size: 16px; flex-basis: 16px; }
    .tools-content { padding: 24px 16px 45px; }
    .tools-search { margin-bottom: 28px; }
    .tools-grid { gap: 14px; }
    .tool-card { padding: 20px 14px; gap: 10px; }
    .tool-icon { flex-basis: 44px; width: 44px; height: 44px; }
    .tool-icon i { font-size: 25px; }
    .tool-card-body strong { font-size: 15px; }
    .tool-detail { margin-top: 24px; padding: 0 16px; }
    .tool-workspace { padding: 22px 18px; }
}
@media (max-width: 520px) {
    .tools-grid { grid-template-columns: minmax(0, 1fr); }
    .tool-card { min-height: 100px; padding: 20px; gap: 16px; }
    .tool-icon { flex-basis: 50px; width: 50px; height: 50px; }
    .tool-arrow { display: block; color: #c7c6d8; font-size: 14px; }
    .tools-search button { padding: 9px 16px; }
    .tool-ip-result > div { grid-template-columns: 110px minmax(0, 1fr); gap: 8px; }
    .tool-ip-form button { padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .tool-card { transition: none; }
    .tool-card:hover { transform: none; }
}
