@font-face{font-family:Outfit;src:url(/assets/outfit-bold.woff2) format("woff2");font-style:normal;font-weight:800;font-display:swap}
/* Patchmellow — 02 / Pieces at Play. Structural studio styles stay in style.css. */
:root{--primary:#454c89;--lilac:#d8d1f0;--apricot:#e8ae88;--line:#e3ded5;--muted:#666574;color:#343644;background:#fbf8f3;font-size:15px}
button{font-weight:500;border-radius:999px}
button:focus-visible,a:focus-visible,input:focus-visible,.cell:focus-visible{outline:3px solid #454c89;outline-offset:3px}
main:focus{outline:none}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip-link{position:fixed;left:16px;top:-70px;z-index:200;background:#343644;color:#fff;padding:14px 20px;border-radius:6px}
.skip-link:focus{top:12px}
.topbar{min-height:88px;height:auto;padding:18px 42px;background:#fbf8f3;gap:24px}
.brand{flex:0 0 auto;min-height:44px;letter-spacing:normal;line-height:0}
.brand img{display:block;width:242px;height:52px;object-fit:contain}
.welcome-topbar{max-width:1440px;margin:auto;padding:22px 58px;border:0}
.welcome-topbar nav{display:flex;align-items:center;gap:24px}
.welcome-topbar .text-button{font-size:14px;color:#343644;padding:10px 7px}
.text-button:hover{background:#eeebf5}
.welcome{display:block;max-width:1440px;padding:0 28px;margin:0 auto}
.hero{min-height:590px;position:relative;isolation:isolate;display:flex;align-items:center;overflow:hidden;background:#fbf8f3}
.welcome-copy{position:relative;z-index:2;width:56%;padding:70px 0 68px 50px}
.welcome h1{font-family:Outfit,ui-sans-serif,sans-serif;font-size:clamp(48px,4.7vw,68px);font-weight:800;letter-spacing:-1.5px;line-height:1.04;margin:0 0 28px;color:#343644}
.welcome-copy>p{max-width:390px;font-size:18px;line-height:1.55;color:#454757;margin-bottom:0}
.welcome-actions{gap:18px;align-items:center;margin:32px 0 0;flex-wrap:wrap}
.welcome-actions .primary{min-width:200px;min-height:54px;font-size:17px;padding:14px 25px;border-radius:999px}
.welcome-actions .text-button{font-size:14px;min-height:48px;padding:10px 8px}
.welcome-copy .hint{font-size:12px;color:#666574;margin-top:19px;line-height:1.6}
.hero-photo{position:absolute;right:0;top:0;width:67%;height:100%;z-index:0}
.hero-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:56% 50%}
.hero:after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,#fbf8f3 0%,#fbf8f3 29%,#fbf8f3f7 34%,#fbf8f3c7 40%,#fbf8f300 55%)}
.start-options{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:27px 30px;margin:25px 20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.start-options>div{display:flex;align-items:center;gap:18px}
.start-options p{margin:0}.start-options strong{display:block;font-size:15px;font-weight:600}.start-options p span{display:block;font-size:13px;color:#666574;margin-top:5px}
.small-patch{width:30px;height:30px;background:var(--lilac);border-radius:4px;transform:rotate(-9deg);flex-shrink:0}
.start-options>button{font-size:13px;flex-shrink:0}
.recent{margin:42px 50px 0}.recent h2{font-size:25px;font-weight:500;margin:10px 0 22px;letter-spacing:-.7px}
.recent-list{grid-template-columns:repeat(3,minmax(0,1fr))}.project-card{background:#fdfbf8;border-color:var(--line);min-width:0}
.project-card>span:nth-child(2){min-width:0}.project-card strong{overflow-wrap:anywhere}.project-card small{color:var(--muted)}
.welcome footer{max-width:650px;border:0;margin:12px auto 0;padding:24px 12px 30px;font-size:12px;color:var(--muted)}
.header-actions{align-items:center;gap:16px}.header-actions .text-button{font-size:13px}
.project-heading{margin-bottom:25px}.project-heading>div{min-width:0}.project-title{margin:0;font:inherit}
.title-button{font-size:31px;font-weight:650;overflow-wrap:anywhere;max-width:100%}
.title-button span{color:#666574}.save-status{color:#465642}
.eyebrow{color:#666574;font-size:11px}.sample-badge{color:#666574;font-size:10px}.step{color:#666574}
.studio-layout{border-radius:12px}.library{background:#fdfbf8}.workspace{background:#fafafa}
.board-surface{background:#f1f1f0;border-color:#dededc;background-image:none;border-radius:7px}
.quilt-grid{background:#fff;box-shadow:0 5px 18px #3436440d;min-width:calc(var(--cols)*49px)}
.mini-grid{min-width:0}
.section-top h2>span{color:#555464}
.save-status[data-state=error]{color:#a13a34;font-weight:600}
.cell{background:#f3f2ef;border-color:#b8b3ac}.cell>span:not(.cell-name){color:#686873}
.cell.selected{outline:3px solid #454c89;outline-offset:1px}
.board-caption{color:#69636a;font-size:10px;letter-spacing:.8px}
.motif{background:#fff}.motif.active .motif-select:after{content:'✓';position:absolute;top:9px;left:9px;width:23px;height:23px;background:var(--primary);color:#fff;border-radius:50%;display:grid;place-items:center;font-weight:700}
.motif-select strong{font-size:12px}.motif-select{color:#343644}.edit-motif{color:#555464;font-size:12px}
.availability{color:#343644;background:#fffdf5f2;font-size:11px}.exhausted .availability{color:#44563c}
.tabs button{color:#555464;min-height:44px}.tabs button.active{font-weight:650;color:#454c89}
.dimension-bar,.dimension-bar label,.muted,.library-meta,.local-note,.hint,.under-board p,.selection-bar small,footer,dialog p,.help-list,.picker-current small,.picker-motif small,.comparison h3 small,.empty-library,.swipe-hint{color:#666574}
.selection-bar{background:#eeebf7;border-color:#d8d1f0}.selection-dot{background:#454c89}.selection-bar small{font-size:12px}
.selection-actions button{background:#fff;border-color:#acacc6}.selection-actions .icon-button{min-width:44px}
.dimension-bar input:not([type=range]):not([type=checkbox]),.dimension-bar button{min-height:44px}
.under-board p{font-size:12px}.local-note{line-height:1.7}.text-button{font-size:13px}
dialog{background:#fdfbf8;border-radius:12px}dialog h2{font-family:Outfit,ui-sans-serif,sans-serif;font-weight:800;color:#343644}dialog h2:focus{outline:none}
dialog p{line-height:1.65}.dialog-actions{gap:12px}.error{color:#a13a34}.danger{color:#9a3730}
input[type=range]{min-height:44px}.checkbox{min-height:44px}.close-dialog{min-width:44px}
@media(min-width:1450px){.hero{min-height:640px}}
@media(max-width:1100px){
  .welcome-topbar{padding:20px 32px}.welcome{padding:0 16px}.hero{min-height:540px}.welcome-copy{padding-left:32px;width:59%}.welcome h1{font-size:50px}.welcome-copy>p{font-size:17px;max-width:330px}.hero-photo{width:64%}.welcome-actions{gap:10px}.welcome-actions .primary{min-width:170px}.welcome-actions .text-button{font-size:13px}.recent{margin:35px 30px 0}.recent-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .topbar{padding-left:24px;padding-right:24px}.brand img{width:224px;height:48px}
}
@media(max-width:760px){
  .topbar{padding:14px 18px;gap:10px;min-height:76px}.brand img{width:205px;height:44px}.welcome-topbar{flex-wrap:wrap;padding:17px 24px 10px;gap:6px}.welcome-topbar nav{width:100%;justify-content:space-between;gap:12px}.welcome-topbar .text-button{font-size:13px;padding:10px 0}
  .welcome{padding:0}.hero{display:flex;flex-direction:column;min-height:0;overflow:hidden;background:#fbf8f3}.hero:after{display:none}.welcome-copy{width:100%;padding:36px 26px 27px}.welcome h1{font-size:clamp(39px,10.3vw,53px);letter-spacing:-1.4px;line-height:1.05;margin:0 0 22px}.welcome-copy>p{max-width:400px;font-size:16px;line-height:1.6}.welcome-actions{flex-direction:row;gap:10px;margin:25px 0 0;align-items:center}.welcome-actions .primary{min-width:163px;min-height:52px;font-size:16px;padding:13px 20px}.welcome-actions .text-button{font-size:13px;padding:10px 7px;min-height:48px}.welcome-copy .hint{font-size:11px;margin-top:16px}
  .hero-photo{position:relative;width:100%;height:auto;aspect-ratio:1.5;z-index:0}.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:center}.start-options{margin:24px 24px 0;padding:23px 0;align-items:flex-start;flex-direction:column;gap:17px}.start-options>div{gap:14px}.start-options strong{font-size:15px}.start-options p span{font-size:12px}.start-options>button{margin-left:44px;min-height:44px}.recent{margin:32px 24px 0}.recent h2{font-size:25px}.recent-list{grid-template-columns:1fr}.welcome footer{margin:6px 14px 0;padding-bottom:26px}
  .topbar:has(.header-actions){flex-wrap:wrap}.header-actions{width:100%;justify-content:space-between;gap:6px}.header-actions>button,.header-actions .text-button{font-size:12px;padding:8px}.studio{padding-top:22px}.project-heading{gap:12px}.title-button{font-size:27px}.sample-badge{font-size:10px;line-height:1.6}.save-status{font-size:12px}.eyebrow{font-size:10px}.board-caption{font-size:9px}.under-board p{font-size:11px}.motif-list{scroll-padding:4px}.workspace{border-radius:0 0 12px 12px}.selection-bar small{font-size:12px}.selection-bar>div:first-child{min-width:0}.selection-bar strong{overflow-wrap:anywhere}.picker-current small{color:#555464}.swipe-hint{font-size:12px}.picker-popover>p{color:#555464}
}
@media(max-width:370px){.welcome-copy{padding-left:22px;padding-right:22px}.welcome h1{font-size:39px}.welcome-actions{gap:3px}.welcome-actions .primary{min-width:148px;padding:13px 17px}.welcome-actions .text-button{font-size:12px;padding:10px 6px}.dimension-bar>div{gap:5px}}
.welcome-topbar nav{flex-wrap:wrap}.start-options>button{max-width:100%;white-space:normal}.welcome-copy,.start-options p{min-width:0;overflow-wrap:break-word}
@media(forced-colors:active){.cell.selected,.motif.active{outline:3px solid Highlight}.tabs button.active{border:2px solid Highlight}.hero-photo{forced-color-adjust:none}}
/* Text may grow independently of viewport width. Let flex items and long words wrap. */
button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.topbar,.header-actions,.welcome-topbar nav,.dimension-bar>div,.variant-actions,.tabs,.board-caption{flex-wrap:wrap}
.topbar>*{min-width:0;max-width:100%}.brand{max-width:100%}.brand img{max-width:100%}
.welcome-copy,.start-options>div,.start-options p,.project-entry,.recent-list,.project-card>span,.crop-editor>div{min-width:0}
.welcome h1,.welcome p,.recent h2,dialog h2,dialog p,.overview-toolbar{overflow-wrap:anywhere}
.hero{overflow:visible}.hero-photo{overflow:hidden}.hero-photo img{border-radius:12px}
.start-options{flex-wrap:wrap}.start-options>button{flex-shrink:1}
.welcome-copy .primary{max-width:100%;min-width:min(200px,100%)}
.tabs{background:#eeebf7}.tabs button.active{color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary)}
.small-patch{background:var(--apricot);transform:rotate(15deg)}
.project-order{font-size:13px;color:var(--muted);margin-bottom:20px}
#projects-title{scroll-margin-top:24px}#projects-title:focus{outline:3px solid var(--primary);outline-offset:6px;border-radius:4px}
.projects-focused .recent{min-height:100dvh;padding-bottom:40px}.project-entry{border:1px solid var(--line);border-radius:14px;background:#fdfbf8;display:flex;flex-direction:column;align-items:stretch}
.project-card{border:0;border-radius:14px;width:100%;flex:1;background:transparent}.project-card:hover{background:#eeebf7}.project-icon{color:var(--primary)}
.delete-project{align-self:flex-end;margin:0 12px 12px;padding:8px 14px;font-size:12px;background:transparent;min-height:44px}
.board-view-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}
.board-view-actions button{background:var(--primary);border-color:var(--primary);color:#fff;min-height:44px;font-weight:600}
.board-view-actions span{font-size:12px;color:var(--muted)}
dialog.overview-dialog{width:min(1100px,calc(100vw - 24px));height:min(880px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:22px;display:flex;flex-direction:column;gap:12px;overflow:auto}
dialog.overview-dialog:not([open]){display:none}
.overview-dialog h2{margin:0 44px 0 0;font-size:26px;flex-shrink:0}.overview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;flex-shrink:0}
.overview-toolbar .tabs{width:auto}.overview-toolbar>span{font-size:13px;color:var(--muted)}
.overview-dialog .overview-hint{margin:0;font-size:13px;flex-shrink:0}
.overview-stage{flex:1;min-height:60px;display:grid;place-items:center;background:#f1f1f0;border-radius:8px;padding:0;overflow:hidden}
.overview-stage .quilt-grid{min-width:0;max-width:none;gap:1px;padding:2px;margin:0;box-shadow:none;flex:none}
.overview-stage .cell{aspect-ratio:auto;min-height:0;min-width:0;border-radius:0}
.overview-dialog .dialog-actions{position:static;flex-shrink:0;margin:0;padding:8px 0 0;background:transparent}.overview-dialog .dialog-actions button{min-height:44px}
@media(max-width:760px){
  .start-options>button{max-width:calc(100% - 44px)}
  .welcome-actions .primary{min-width:min(163px,100%)}
  .header-actions>button{flex:1 1 auto}.brand{flex-shrink:1}
  .overview-dialog.overview-dialog{padding:16px;gap:10px}.overview-dialog h2{font-size:24px}.overview-toolbar .tabs{width:100%}
  .overview-toolbar .tabs button{flex:1;min-height:44px}.overview-toolbar{gap:8px}
  .picker-bar{flex-wrap:wrap}.picker-bar>button{flex-shrink:1}.picker-current{max-width:100%}
  .selection-actions{flex-wrap:wrap}.under-board{flex-wrap:wrap}.dialog-actions button{flex:1 1 auto}
}
