.container.tool-container {
    width: min(920px, 100%);
    display: grid;
    gap: 12px;
    align-items: stretch;
}

.tool-container textarea,
.tool-container input[type="text"] {
    width: 100%;
    border-radius: 16px;
    border: 1px solid;
    padding: 1rem 1.05rem;
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

body.dark-mode .tool-container textarea,
body.dark-mode .tool-container input[type="text"] {
    background: var(--surface-strong-dark);
    color: var(--text-dark);
    border-color: var(--border-dark);
}

body.light-mode .tool-container textarea,
body.light-mode .tool-container input[type="text"] {
    background: var(--surface-light);
    color: var(--text-light);
    border-color: var(--border-light);
}

.tool-container textarea[readonly] {
    opacity: 0.95;
}

body.dark-mode .tool-container textarea[readonly] {
    background: #1b212a;
}

body.light-mode .tool-container textarea[readonly] {
    background: #f1f3f6;
}

.tool-container textarea:focus,
.tool-container input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}

.tool-container textarea {
    resize: vertical;
    min-height: 170px;
}

#qrcode {
    min-height: 240px;
    border-radius: 18px;
    border: 1px solid;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode #qrcode {
    background: var(--surface-dark);
    border-color: var(--border-dark);
}

body.light-mode #qrcode {
    background: var(--surface-light);
    border-color: var(--border-light);
}

#qrcode img,
#qrcode canvas {
    border-radius: 10px;
}

@media (max-width: 600px) {
    .tool-container textarea {
        min-height: 150px;
    }
}
