/* Compact, live canvas while browsing on phones. Full editor remains one tap away. */
.compact-board{display:none}
.filter-tabs{scrollbar-width:thin}
.color-custom input[type=color]{touch-action:manipulation}
/* Use one artwork edge, without a white backing or a simulated unprinted rim. */
.artboard-wrap{background:transparent;border:0;border-radius:0}
.artboard-wrap>canvas{display:block;border:0;border-radius:0}
.ceramic-tile{padding:0;background:transparent}
.ceramic-tile canvas{display:block;border-radius:0}
.compact-preview{background:transparent}
.bg-color-control{margin:0 0 17px;padding:10px 12px;border:1px solid #e3dbe8;border-radius:11px;background:#f4eff6;color:#83708f;font-size:12px}
.bg-color-control input[type=color]{width:32px;height:32px;padding:0;border:0;border-radius:7px;background:transparent}
.bg-color-control small{margin-left:auto;font-size:10px;color:#a292aa}
.background-filters{margin-bottom:18px}
.background-filters button{white-space:nowrap}
@media(min-width:681px){
 .library .background-filters{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:14px;margin-bottom:18px}
 .library .background-filters button{flex:0 0 auto;padding:7px 10px;font-size:11px}
 .library .background-filters button.active{background:#e5dceb;color:#725d82}
}
.inspiration-entry{width:100%;display:flex;align-items:center;gap:10px;padding:12px 14px;margin:0 0 18px;border:1px solid #e2d9e9;border-radius:12px;background:#efebf3;color:#78638a;text-align:left}
.inspiration-entry b{font-size:13px;font-weight:500}.inspiration-entry small{display:block;margin-top:3px;font-size:11px;color:#93809f}.inspiration-entry>span:last-child{margin-left:auto}
@media(max-width:680px){
 html{overflow-anchor:none}
 html:has(body.canvas-compact){scroll-padding-top:256px}
 body{--mobile-sticky-height:var(--mobile-board-height)}
 body.canvas-compact{--mobile-sticky-height:136px}
 .stage{height:var(--mobile-sticky-height);overflow-anchor:none}
 .tool-rail{top:var(--mobile-sticky-height)}
 .stage.is-compact{border-radius:0;background:#f1f0e9;box-shadow:0 2px 9px #645e6a12}
 .stage.is-compact>.stage-bar,.stage.is-compact>.canvas-viewport,.stage.is-compact>.canvas-bottom,.stage.is-compact>.stage-hint{display:none}
 .stage.is-compact>.compact-board{height:136px;display:flex;align-items:center;gap:18px;padding:10px 17px}
 .compact-preview{flex:none;position:relative;width:112px;height:112px;padding:0;display:block;border-radius:9px;background:transparent;box-shadow:0 3px 10px #74617f18;overflow:hidden}
 .compact-preview canvas{display:block;width:100%;height:100%}
 .compact-preview span{position:absolute;bottom:0;left:0;right:0;padding:5px 0;background:#fffdf2e8;color:#695979;font-size:9px}
 .compact-summary{flex:1;min-width:0}.compact-heading{display:flex;align-items:center;gap:6px}
 .compact-summary strong{flex:1;min-width:0;display:block;font-size:14px;font-weight:500;color:#6d597b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
 .compact-clear{flex:none;width:32px;height:32px;display:grid;place-items:center;padding:6px;color:#9a8aa5;border-radius:50%;background:#e9e4ed}.compact-clear .icon{width:17px;height:17px}
 .compact-summary p{font-size:11px;color:#909780;margin:2px 0 11px}
 .compact-actions{display:flex;align-items:center;gap:8px}.compact-actions button{min-height:36px;font-size:12px;white-space:nowrap;padding:7px 10px;border-radius:8px;color:#7b6c86;background:#e8e1ed}
 .compact-actions .compact-save{margin:0;background:#83708f;color:#fffdf8}
 .library .filter-tabs{position:sticky;top:calc(var(--mobile-sticky-height) + 57px);z-index:11;display:flex;flex-wrap:nowrap;gap:5px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;background:#fffdf8f7;backdrop-filter:blur(12px);margin:0 -15px 14px;padding:8px 12px;border-bottom:1px solid #e8e2e8;box-shadow:0 3px 7px #73658009}
 .library .filter-tabs button{flex:none;min-height:34px;padding:7px 13px;font-size:11px;border-radius:19px;line-height:20px}
 .library .filter-tabs button.active{background:#e5dceb;color:#725d82;box-shadow:inset 0 0 0 1px #d7c9e0}
 .library .filter-tabs::-webkit-scrollbar{display:none}
 .preset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 13px}
 .preset-card span{font-size:11px;line-height:1.6}.preset-card small{font-size:9px;line-height:1.5}
}
@media(max-width:370px){.stage.is-compact>.compact-board{gap:12px;padding:10px 12px}.compact-summary strong{font-size:12px}.compact-actions{gap:5px}.compact-actions button{font-size:11px;padding:7px 8px}.library .filter-tabs{margin-left:-13px;margin-right:-13px}}
