@font-face{font-family:"FC Fredoka";src:url("assets/text-designer/fredoka.ttf") format("truetype");font-weight:300 700;font-display:swap}
@font-face{font-family:"FC Bungee";src:url("assets/text-designer/bungee.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"FC Lilita";src:url("assets/text-designer/lilitaone.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"FC Pacifico";src:url("assets/text-designer/pacifico.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"FC Abril";src:url("assets/text-designer/abrilfatface.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"FC Oswald";src:url("assets/text-designer/oswald.ttf") format("truetype");font-weight:200 700;font-display:swap}
.text-design-panel{margin-top:18px;padding-top:18px;border-top:1px solid #cddede;min-width:0}
.text-design-panel [hidden],#text-review[hidden],#preview-text-design[hidden],.builder-section label[hidden]{display:none!important}
.text-design-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.text-design-heading h3{font-size:1.02rem;line-height:1.35;margin:0}
.text-design-heading>span{font-size:.76rem;color:#687477;white-space:nowrap}
.text-design-panel label,.text-control-label{font-size:.84rem}
.text-design-panel textarea#design-wording{min-height:70px;resize:vertical;line-height:1.5}
.text-font-effect{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin:13px 0}
.text-control-label{display:block;margin-bottom:6px;font-weight:850}
.text-font-effect select{width:100%;min-width:0;font-size:.88rem;min-height:42px;background:#fff}
.text-effect-options{display:flex;min-height:42px;border:1px solid #b9cbd0;border-radius:5px;overflow:hidden}
.text-effect-options button{flex:1;min-width:0;border:0;border-right:1px solid #b9cbd0;background:#fff;color:#243234;font:inherit;font-size:.82rem;font-weight:750;padding:8px 4px;cursor:pointer}
.text-effect-options button:last-child{border-right:0}
.text-effect-options button[aria-pressed="true"]{background:#087c80;color:#fff}
.text-stage-shell{width:100%;background:#edf3f3;border:1px solid #d0dfdf;border-radius:5px;padding:8px;overflow:hidden}
#text-design-stage{width:100%;aspect-ratio:8/5;max-height:350px;touch-action:pan-y;outline-offset:2px}
#text-design-stage .konvajs-content{margin-inline:auto}
#text-design-stage canvas{max-width:100%}
.text-layout-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:9px}
.text-layout-toolbar>div{display:flex;gap:5px}
.text-layout-toolbar button{border:1px solid #c2d3d4;background:#fff;color:#215456;border-radius:4px;font:inherit;cursor:pointer}
.text-icon-button{width:36px;height:36px;padding:7px;display:grid;place-items:center}
.text-layout-toolbar img{display:block;flex-shrink:0}
.text-download{display:flex;align-items:center;gap:7px;padding:8px 10px;font-size:.78rem!important;font-weight:800!important}
.text-layout-toolbar button:hover:enabled{background:#e4f6f5;border-color:#087c80}
.text-layout-toolbar button:disabled{opacity:.4;cursor:not-allowed}
.text-design-status{font-size:.78rem;color:#92530b;line-height:1.45;margin:8px 0 0;min-height:18px}
.text-adjustments{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:13px 19px;margin:11px 0 16px}
.text-adjustments label>span{display:flex;justify-content:space-between;gap:9px}
.text-adjustments output{color:#087c80;font-weight:800;white-space:nowrap}
.text-adjustments input[type="range"]{width:100%;min-width:0;padding:0;height:22px;accent-color:#087c80;border:0;box-shadow:none}
.text-colors{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.text-colors button{display:flex;align-items:center;gap:10px;border:1px solid #bed2d4;border-radius:5px;background:#fff;padding:11px;color:#202126;font:inherit;text-align:left;cursor:pointer;min-width:0}
.text-colors button[aria-expanded="true"]{border-color:#087c80;box-shadow:inset 0 0 0 1px #087c80;background:#eefafa}
.text-colors i{display:block;width:32px;height:32px;flex-shrink:0;border-radius:4px;background:var(--color);border:1px solid #0003}
.text-colors small{display:block;font-size:.73rem;color:#667276;font-weight:600}
.text-colors strong{display:block;font-size:.85rem;line-height:1.3;overflow-wrap:anywhere}
.text-color-note{font-size:.75rem;color:#667276;margin:10px 0 0}
.text-palette{padding-top:16px;margin-top:15px;border-top:1px solid #cddede}
.text-palette>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.text-palette h4{font-size:.95rem;margin:0}
.text-palette>header button{display:grid;place-items:center;width:30px;height:30px;border:1px solid #cbd8db;background:#fff;border-radius:4px;font-size:1.3rem;cursor:pointer}
.text-kind-tabs{display:flex;gap:7px;margin-bottom:12px}
.text-kind-tabs button,.text-color-families button{font:inherit;font-size:.77rem;font-weight:750;border:1px solid #cdd8db;border-radius:4px;background:#fff;color:#334347;padding:6px 9px;cursor:pointer}
.text-kind-tabs button[aria-pressed="true"]{background:#202126;color:#fff;border-color:#202126}
.text-color-families{display:flex;flex-wrap:wrap;gap:5px;margin:11px 0}
.text-color-families button[aria-pressed="true"]{background:#e4f7f7;border-color:#087c80;color:#075e61}
.text-color-swatches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-height:290px;overflow-y:auto;padding:3px}
.text-yarn-swatch{display:grid;grid-template-rows:34px auto;gap:6px;min-width:0;border:1px solid #d3dedf;border-radius:4px;background:#fff;padding:7px;color:#202126;font:inherit;font-size:.74rem;line-height:1.3;text-align:left;cursor:pointer}
.text-yarn-swatch i{display:block;width:100%;height:34px;border-radius:3px;background:var(--color);border:1px solid #0002}
.text-yarn-swatch span{overflow-wrap:anywhere}
.text-yarn-swatch[aria-pressed="true"]{border-color:#087c80;box-shadow:inset 0 0 0 1px #087c80;background:#f0fafa}
.text-yarn-swatch:hover{outline:2px solid #087c80;outline-offset:0}
.text-palette-status{font-size:.76rem;color:#596f71;margin:10px 0 0;min-height:18px}
#text-palette-retry{font:inherit;font-size:.8rem;color:#087c80;background:#fff;border:1px solid #087c80;padding:7px 11px;border-radius:4px;cursor:pointer}
.rug-preview.text-design-preview{border:0!important;clip-path:none!important;filter:none!important;border-radius:0!important;background:transparent!important;transform:none!important;box-shadow:none!important;padding:0!important;width:100%!important;height:180px!important;max-height:180px!important;aspect-ratio:auto!important}
.rug-preview.text-design-preview #preview-artwork,.rug-preview.text-design-preview #preview-text{display:none!important}
#preview-text-design{display:block;position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain}
#text-review{margin:16px 0;background:#f0f7f7;border-radius:5px;padding:12px;text-align:center}
#text-review-image{display:block;width:100%;height:220px;object-fit:contain;margin:0 auto 10px}
#text-review-download{font-size:.85rem;font-weight:800;color:#087c80;text-decoration:underline}
#dialog-summary p{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid #e5eded;padding:8px 0;margin:0;font-size:.85rem}
#dialog-summary p>strong{text-align:right;white-space:pre-wrap;overflow-wrap:anywhere;max-width:65%}
.text-design-panel :focus-visible{outline:3px solid #098bbc;outline-offset:3px}
@media(max-width:1100px) and (min-width:961px){.text-font-effect{grid-template-columns:1fr}.text-color-swatches{grid-template-columns:repeat(3,minmax(0,1fr))}.text-colors button{padding:9px;gap:7px}.text-layout-toolbar{gap:7px}.text-download{font-size:.69rem!important;gap:5px;padding:8px 6px}}
@media(max-width:560px){.text-font-effect{grid-template-columns:1fr;gap:11px}.text-design-heading h3{font-size:.92rem}.text-design-heading>span{font-size:.68rem}.text-adjustments{gap:12px}.text-adjustments label{font-size:.74rem!important}.text-colors{gap:9px}.text-colors button{padding:9px;gap:7px}.text-colors i{width:25px;height:29px}.text-colors strong{font-size:.78rem}.text-colors small{font-size:.66rem}.text-color-swatches{grid-template-columns:repeat(3,minmax(0,1fr))}.text-layout-toolbar{gap:8px;flex-wrap:wrap}.text-download{font-size:.73rem!important;margin-left:auto}.text-icon-button{width:34px;height:34px}.text-layout-toolbar>div{gap:4px}.text-yarn-swatch{font-size:.72rem}.text-stage-shell{padding:5px}#text-review-image{height:170px}}
