:host,
.papy3d-pat-host {
	display: block;
	max-width: 100%;
}

* { box-sizing: border-box; }
.pat-container { color: #262626; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.45; margin: 0 auto; max-width: 1220px; width: 100%; }
.page-title { margin: 0 0 22px; text-align: center; }
.page-title h1 { font-size: clamp(24px, 4vw, 38px); line-height: 1.15; margin: 0 0 10px; }
.credits { color: #555; margin: 0 auto; max-width: 900px; }
.tool-table { border-collapse: collapse; margin: 0 0 26px; table-layout: fixed; width: 100%; }
.tool-table th, .tool-table td { border: 1px solid #b8b8b8; padding: 10px 12px; vertical-align: middle; }
.tool-table thead th, .head-row td { background: #e7e7e7; text-align: center; }
.tool-table h3, .tool-table h4 { margin: 0; }
.settings-table td:nth-child(1), .settings-table td:nth-child(3) { background: #f2f2f2; font-weight: 600; width: 23%; }
.settings-table td:nth-child(2), .settings-table td:nth-child(4) { width: 27%; }
.section th { background: #d9d9d9; padding: 8px 12px; text-align: left; }
.preview-heading { background: #f2f2f2; text-align: center; width: 24%; }
.preview-cell { min-height: 420px; padding: 8px !important; width: 76%; }
canvas { background: #f5f7fa; display: block; height: 480px; max-height: 58vw; min-height: 300px; width: 100%; }
input[type="text"], input[type="number"], select, textarea { background: #fff; border: 1px solid #888; border-radius: 2px; color: #111; font: inherit; max-width: 100%; padding: 6px 7px; }
input[type="number"] { width: 100px; }
input[type="text"] { width: 220px; }
select { min-width: 150px; }
textarea { min-height: 110px; resize: vertical; width: 100%; }
#GCODE_TEXTAREA { min-height: 420px; white-space: pre; }
button, .file-button { background: #eee; border: 1px solid #777; border-radius: 3px; color: #111; cursor: pointer; display: inline-block; font: inherit; margin: 2px; padding: 7px 11px; }
button:hover, .file-button:hover { background: #ddd; }
button:disabled { cursor: not-allowed; opacity: .5; }
.file-button input { display: none; }
.actions { margin-top: 10px; }
.advanced { color: rgb(172, 74, 160); display: inline-block; margin-top: 8px; }
.information { font-weight: 600; text-align: center; }
.warnings { color: #704900; font-weight: 600; margin-top: 8px; }
.warnings.is-error { color: #b32d2e; }
.warnings p { margin: 3px 0; }
small { color: #5f6368; display: block; margin-top: 4px; }
pre { background: #f7f7f7; border: 1px solid #ccc; max-height: 170px; overflow: auto; padding: 8px; white-space: pre-wrap; }
[hidden] { display: none !important; }

@media (max-width: 800px) {
	.tool-table, .tool-table tbody, .tool-table thead, .tool-table tr, .tool-table td, .tool-table th { display: block; width: 100% !important; }
	.tool-table tr { border: 1px solid #b8b8b8; border-bottom: 0; }
	.tool-table td, .tool-table th { border-width: 0 0 1px; }
	.preview-cell { min-height: 320px; }
	canvas { height: 360px; max-height: none; }
	.settings-table td:nth-child(1), .settings-table td:nth-child(3) { background: #f2f2f2; }
}
