.ly-tool-page .ly-tool-hero {
max-width: 760px;
}
.ly-tool {
max-width: 860px;
margin: 0 auto 8px;
}
.ly-tool__panel,
.ly-tool__result {
display: flex;
flex-direction: column;
gap: 18px;
padding: 22px;
margin: 0 0 18px;
border: 1px solid #e7ecf7;
border-radius: 16px;
background: #fff;
}
.ly-tool-drop {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
padding: 28px 18px;
border: 1.5px dashed #cdd8f2;
border-radius: 14px;
background: #fafbff;
text-align: center;
cursor: pointer;
transition: border-color 160ms ease, background-color 160ms ease;
}
.ly-tool-drop:hover,
.ly-tool-drop:focus-within {
border-color: #315efb;
background: #f2f5ff;
}
.ly-tool-drop input[type="file"] {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
}
.ly-tool-drop__title {
color: #0a1020;
font-size: 15px;
font-weight: 650;
}
.ly-tool-drop__hint {
color: #667085;
font-size: 13px;
line-height: 1.6;
}
.ly-tool-drop__file {
color: #315efb;
font-size: 13px;
font-weight: 600;
word-break: break-all;
}
.ly-tool-fields {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px 18px;
}
.ly-tool-field {
display: flex;
flex-direction: column;
gap: 6px;
min-width: 0;
}
.ly-tool-field--full {
grid-column: 1 / -1;
}
.ly-tool-field label {
color: #344054;
font-size: 13px;
font-weight: 600;
}
.ly-tool-field__legend {
margin-bottom: 4px;
color: #344054;
font-size: 13px;
font-weight: 600;
}
.ly-tool-field output {
color: #315efb;
font-weight: 700;
}
.ly-tool-field input[type="text"],
.ly-tool-field input[type="number"],
.ly-tool-field input[type="url"],
.ly-tool-field select,
.ly-tool-field textarea {
width: 100%;
max-width: 100%;
padding: 10px 12px;
border: 1px solid #d7dde7;
border-radius: 10px;
background: #fff;
color: #0a1020;
font-size: 14px;
font-family: inherit;
box-sizing: border-box;
}
.ly-tool-field textarea {
min-height: 150px;
resize: vertical;
line-height: 1.6;
}
.ly-tool-field input[type="range"] {
width: 100%;
accent-color: #315efb;
}
.ly-tool-check {
display: flex;
align-items: center;
gap: 8px;
color: #344054;
font-size: 13.5px;
}
.ly-tool-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.ly-tool-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
min-height: 40px;
padding: 0 18px;
border: 1px solid #d7dde7;
border-radius: 10px;
background: #fff;
color: #0a1020;
font-size: 14px;
font-weight: 600;
text-decoration: none;
cursor: pointer;
transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.ly-tool-btn:hover,
.ly-tool-btn:focus-visible {
border-color: #315efb;
color: #315efb;
}
.ly-tool-btn--primary {
border-color: #315efb;
background: #315efb;
color: #fff;
}
.ly-tool-btn--primary:hover,
.ly-tool-btn--primary:focus-visible {
background: #244bd5;
border-color: #244bd5;
color: #fff;
}
.ly-tool-btn[disabled],
.ly-tool-btn.is-disabled {
opacity: 0.5;
cursor: not-allowed;
pointer-events: none;
}
.ly-tool-status {
min-height: 20px;
margin: 0;
color: #667085;
font-size: 13.5px;
line-height: 1.6;
}
.ly-tool-status[data-state="ok"] { color: #0f7a56; }
.ly-tool-status[data-state="error"] { color: #c0392b; }
.ly-tool-status[data-state="busy"] { color: #315efb; }
.ly-tool-metrics {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
}
.ly-tool-metrics > div {
display: flex;
flex-direction: column;
gap: 4px;
padding: 12px 14px;
border: 1px solid #eef1f7;
border-radius: 12px;
background: #fafbff;
}
.ly-tool-metrics span {
color: #667085;
font-size: 12.5px;
}
.ly-tool-metrics strong {
color: #0a1020;
font-size: 16px;
word-break: break-word;
}
.ly-tool-preview {
display: flex;
align-items: center;
justify-content: center;
padding: 12px;
border: 1px solid #eef1f7;
border-radius: 12px;
background:
linear-gradient(45deg, #f4f6fb 25%, transparent 25%) 0 0 / 18px 18px,
linear-gradient(-45deg, #f4f6fb 25%, transparent 25%) 0 9px / 18px 18px,
linear-gradient(45deg, transparent 75%, #f4f6fb 75%) 9px -9px / 18px 18px,
linear-gradient(-45deg, transparent 75%, #f4f6fb 75%) -9px 0 / 18px 18px,
#fff;
overflow: hidden;
}
.ly-tool-preview img,
.ly-tool-preview canvas {
display: block;
max-width: 100%;
max-height: 420px;
width: auto;
height: auto;
}
.ly-tool-preview--plain {
background: #fff;
}
.ly-tool-list {
display: flex;
flex-direction: column;
gap: 8px;
margin: 0;
padding: 0;
list-style: none;
}
.ly-tool-list li {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 8px 10px;
border: 1px solid #eef1f7;
border-radius: 10px;
background: #fafbff;
color: #344054;
font-size: 13.5px;
}
.ly-tool-list__actions {
display: flex;
flex: 0 0 auto;
gap: 10px;
}
.ly-tool-list li button {
border: 0;
background: transparent;
color: #315efb;
font-weight: 600;
cursor: pointer;
}
.ly-tool-list li button.is-remove {
color: #c0392b;
}
.ly-tool-list li button[disabled] {
opacity: 0.4;
cursor: not-allowed;
}
.ly-tool-kv {
display: flex;
flex-direction: column;
margin: 0;
border: 1px solid #eef1f7;
border-radius: 12px;
overflow: hidden;
}
.ly-tool-kv__row {
display: grid;
grid-template-columns: 190px minmax(0, 1fr);
gap: 12px;
padding: 10px 14px;
border-bottom: 1px solid #eef1f7;
}
.ly-tool-kv__row:last-child {
border-bottom: 0;
}
.ly-tool-kv__row span {
color: #667085;
font-size: 13px;
}
.ly-tool-kv__row strong {
color: #0a1020;
font-size: 13.5px;
font-weight: 600;
word-break: break-word;
}
.ly-tool-code {
margin: 0;
padding: 14px;
border: 1px solid #eef1f7;
border-radius: 12px;
background: #0a1020;
color: #e6eaf0;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 12.5px;
line-height: 1.65;
white-space: pre-wrap;
word-break: break-word;
overflow-wrap: anywhere;
}
.ly-tool-note {
color: #98a2b3;
font-size: 12.5px;
line-height: 1.7;
}
.ly-tool-qr {
display: flex;
flex-direction: column;
align-items: center;
gap: 14px;
}
.ly-tool-qr canvas,
.ly-tool-qr img {
width: 100%;
max-width: 320px;
height: auto;
image-rendering: pixelated;
border: 1px solid #eef1f7;
border-radius: 12px;
background: #fff;
}
.ly-tool__privacy {
max-width: 860px;
margin: 4px auto 40px;
color: #98a2b3;
font-size: 12.5px;
text-align: center;
}
.ly-tool__error {
color: #c0392b;
font-size: 14px;
}
@media (max-width: 640px) {
.ly-tool__panel,
.ly-tool__result {
padding: 16px;
}
.ly-tool-fields {
grid-template-columns: 1fr;
}
.ly-tool-metrics {
grid-template-columns: 1fr;
}
.ly-tool-kv__row {
grid-template-columns: 1fr;
gap: 2px;
}
} .ly-tool-kv__row--head {
background: #f2f5ff;
}
.ly-tool-kv__row--head strong {
color: #315efb;
}
.ly-tool-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 14px;
}
.ly-tool-pagecard {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 12px;
border: 1px solid #eef1f7;
border-radius: 12px;
background: #fafbff;
}
.ly-tool-pagecard img {
width: 100%;
max-height: 240px;
object-fit: contain;
border: 1px solid #eef1f7;
border-radius: 8px;
background: #fff;
}
.ly-tool-pagecard span {
color: #667085;
font-size: 12.5px;
}
.ly-tool-pagecard .ly-tool-btn {
min-height: 34px;
padding: 0 12px;
font-size: 13px;
}
.ly-tool-cta {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 14px 16px;
border: 1px solid #e7ecf7;
border-radius: 14px;
background: #f7f9ff;
}
.ly-tool-cta div {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.ly-tool-cta strong {
color: #0a1020;
font-size: 14.5px;
}
.ly-tool-cta span {
color: #667085;
font-size: 13px;
}
.ly-tool-table {
display: flex;
flex-direction: column;
gap: 10px;
}
.ly-tool-compat {
display: flex;
flex-direction: column;
gap: 6px;
padding: 14px 16px;
border: 1px solid #eef1f7;
border-radius: 12px;
background: #fff;
}
.ly-tool-compat__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.ly-tool-compat__head strong {
color: #0a1020;
font-size: 15px;
}
.ly-tool-compat__meta {
color: #98a2b3;
font-size: 12.5px;
}
.ly-tool-compat__note {
margin: 0;
color: #475467;
font-size: 13px;
line-height: 1.6;
}
.ly-tool-badge {
display: inline-flex;
align-items: center;
padding: 3px 10px;
border-radius: 999px;
font-size: 12px;
font-weight: 600;
white-space: nowrap;
}
.ly-tool-badge.is-ok { background: #e7f6f0; color: #0f7a56; }
.ly-tool-badge.is-warn { background: #fdf1e2; color: #a15c00; }
.ly-tool-badge.is-bad { background: #fdecea; color: #c0392b; }
.ly-tool-badge.is-unknown { background: #f2f5ff; color: #667085; }
.ly-tool-ratelist {
display: flex;
flex-direction: column;
gap: 8px;
}
.ly-tool-rate {
display: grid;
grid-template-columns: 120px 88px minmax(0, 1fr);
align-items: center;
gap: 10px;
padding: 10px 12px;
border: 1px solid #eef1f7;
border-radius: 10px;
background: #fafbff;
}
.ly-tool-rate > span:first-child {
color: #0a1020;
font-size: 14px;
font-weight: 600;
}
.ly-tool-rate small {
color: #98a2b3;
font-size: 12.5px;
}
.ly-tool-faq {
display: flex;
flex-direction: column;
gap: 10px;
}
.ly-tool-faqitem {
padding: 12px 14px;
border: 1px solid #eef1f7;
border-radius: 12px;
background: #fff;
}
.ly-tool-faqitem summary {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
cursor: pointer;
color: #0a1020;
font-size: 15px;
font-weight: 600;
}
.ly-tool-faqitem p {
margin: 8px 0;
color: #475467;
font-size: 13.5px;
line-height: 1.6;
}
.ly-tool-faqitem strong {
display: block;
margin: 8px 0 4px;
color: #344054;
font-size: 13px;
}
.ly-tool-faqitem ul,
.ly-tool-faqitem ol {
margin: 0;
padding-left: 20px;
color: #475467;
font-size: 13.5px;
line-height: 1.7;
}
@media (max-width: 640px) {
.ly-tool-rate {
grid-template-columns: 1fr;
gap: 4px;
}
.ly-tool-grid {
grid-template-columns: 1fr 1fr;
}
} .ly-tool-hero__icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 48px;
height: 48px;
margin-bottom: 14px;
border: 1px solid #e7ecf7;
border-radius: 14px;
background: #f5f8ff;
color: #315efb;
}
.ly-tool-hero__glyph {
display: block;
}
.ly-tool-hero .ly-tool-badges {
margin-top: 14px;
}
.ly-tool-hero .ly-tool-badge-tag {
padding: 3px 11px;
font-size: 12.5px;
}