/* Launch Colouring — self-contained region colouring library/editor. */
.lc-screen{
  --lc-navy:#12345b;--lc-blue:#4d96ff;--lc-coral:#ff6b6b;--lc-yellow:#ffd93d;--lc-mint:#6bcb77;
  --lc-paper:#fffdfa;--lc-line:#dbe5ec;--lc-shadow:0 14px 35px rgba(35,62,86,.14);
  width:100%;max-width:none;margin:0;padding:clamp(12px,2vw,24px) clamp(12px,3vw,40px) 56px;
  color:var(--lc-navy);font-family:var(--font-b,"Nunito",sans-serif);overflow-x:clip;
  background:
    radial-gradient(circle at 6% 10%,#ffd93d55 0 52px,transparent 53px),
    radial-gradient(circle at 94% 18%,#6bcb7740 0 76px,transparent 77px),
    linear-gradient(150deg,#fff8e8 0%,#eefaff 52%,#f7efff 100%);
}
.lc-screen h1,.lc-screen h2,.lc-screen strong,.lc-screen b{font-family:var(--font-d,"Baloo 2",sans-serif)}
.lc-screen button{min-width:45px;min-height:45px;touch-action:manipulation}
.lc-screen button:focus-visible,.lc-region:focus-visible{outline:4px solid #ffb000;outline-offset:3px}
.lc-library-head,.lc-editor-head{
  width:min(1240px,100%);margin:0 auto 18px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;
}
.lc-library-head>div,.lc-editor-head>div{text-align:center;min-width:0}
.lc-library-head small,.lc-editor-head small{display:block;font-size:.72rem;letter-spacing:.16em;font-weight:900;color:#e45e55}
.lc-library-head h1,.lc-editor-head h1{font-size:clamp(2rem,5vw,3.6rem);line-height:.92;margin:2px 0;color:var(--lc-navy)}
.lc-library-head p,.lc-editor-head p{font-weight:800;color:#536d84}
.lc-round-button,.lc-gallery-button,.lc-gallery-count{
  border:3px solid #dce8f2;border-radius:18px;background:#fff;box-shadow:0 5px 0 #c8d9e5;font-weight:900;
}
.lc-round-button{width:52px;height:52px;font-size:1.65rem}
.lc-gallery-button{min-width:94px;padding:8px 14px;display:flex;align-items:center;justify-content:center;gap:8px;color:#3b6592}
.lc-gallery-button span{font-size:1.4rem;color:#845ec2}
.lc-round-button:active,.lc-gallery-button:active{transform:translateY(4px);box-shadow:0 1px 0 #c8d9e5}
.lc-library-hero{
  width:min(900px,100%);margin:0 auto 26px;padding:16px clamp(12px,4vw,32px);display:flex;align-items:center;justify-content:center;gap:22px;
  border:3px solid #ffe07c;border-radius:24px;background:linear-gradient(110deg,#fff,#fff9d8);box-shadow:0 7px 0 #f3c84d;text-align:center;
}
.lc-library-hero>span{font-size:2rem;color:#ffb000}.lc-library-hero strong{font-size:1.35rem}.lc-library-hero p{font-size:.92rem;color:#536d84;font-weight:800}
#lcLibraryCategories{width:min(1240px,100%);margin:auto;display:grid;gap:30px}
.lc-category-section{min-width:0}
.lc-category-section>header{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;margin-bottom:12px}
.lc-category-section>header>span{width:46px;height:46px;display:grid;place-items:center;border-radius:16px;background:#fff;border:3px solid #dfe9ef;color:#ff7c70;font-size:1.4rem}
.lc-category-section h2{font-size:1.65rem;margin:0}.lc-category-section header p{color:#587087;font-weight:800;font-size:.86rem}.lc-category-section header b{color:#526f89;font-size:.88rem}
.lc-art-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.lc-art-card{
  min-width:0;min-height:230px;padding:10px;display:flex;flex-direction:column;align-items:stretch;text-align:left;border:3px solid #dce8f0;border-radius:24px;background:#fff;box-shadow:0 7px 0 #cadbe6,0 10px 22px #6a829529;transition:.15s transform,.15s box-shadow;
}
.lc-art-card:hover{transform:translateY(-3px);box-shadow:0 10px 0 #cadbe6,0 15px 26px #6a829530}
.lc-art-card:active{transform:translateY(5px);box-shadow:0 2px 0 #cadbe6}
.lc-card-art{height:150px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(#eaf8ff,#fff9e6);overflow:hidden}
.lc-card-art svg{width:100%;height:100%}.lc-card-art .lc-outline{stroke-width:7}
.lc-art-card>span:nth-child(2){min-width:0;padding:9px 4px 2px}.lc-art-card strong{display:block;font-size:1.03rem;line-height:1.1}.lc-art-card small{display:block;margin-top:3px;color:#7d8c9d;font-weight:800;font-size:.72rem}
.lc-art-card>i{align-self:flex-end;width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:#dceeff;color:#2369a8;font-style:normal;font-weight:1000;font-size:1.1rem}

.lc-editor{min-height:100vh;min-height:100dvh}
.lc-editor-head{margin-bottom:10px}.lc-editor-head h1{font-size:clamp(1.75rem,4vw,2.8rem)}
.lc-explore-banner{
  width:min(760px,100%);margin:0 auto 14px;min-height:58px;padding:6px 10px;display:flex;align-items:center;justify-content:center;gap:7px;border:3px solid #dce7ef;border-radius:20px;background:#fff;box-shadow:0 5px 0 #cbdbe6;
}
.lc-explore-banner strong{padding:7px 14px;border-radius:999px;background:#e9ddff;color:#6644a5}.lc-explore-banner span{font-weight:900;color:#566f85}.lc-explore-banner small{font-weight:900;color:#73879a}
.lc-editor-layout{width:min(1240px,100%);margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 330px;align-items:start;gap:18px;min-width:0}
.lc-canvas-card,.lc-controls{border:3px solid #d9e5ed;border-radius:28px;background:#fff;box-shadow:var(--lc-shadow)}
.lc-canvas-card{min-width:0;padding:clamp(8px,2vw,18px);overflow:hidden}
.lc-paper{
  width:100%;aspect-ratio:16/9;display:grid;place-items:center;border:3px solid #e8ddd0;border-radius:20px;overflow:hidden;background:#fff;box-shadow:inset 0 0 35px #9e7c4a18;touch-action:none;user-select:none;
}
.lc-line-art{display:block;width:100%;height:100%;max-width:100%}.lc-region{cursor:crosshair;stroke:none}.lc-outline{pointer-events:none}.lc-brush-strokes{pointer-events:none}.lc-live-stroke{stroke-linecap:round;stroke-linejoin:round}
.lc-editor .lc-status{position:static;left:auto;bottom:auto;z-index:auto;transform:none;width:auto;max-width:none;min-height:48px;margin:10px 0 0;padding:10px 14px;display:grid;place-items:center;border-radius:16px;background:#edf8ff;color:#3f688b;text-align:center;font-weight:900}
.lc-controls{padding:14px;display:grid;gap:12px}.lc-tool-section{padding-bottom:12px;border-bottom:2px dashed #dbe6ed}.lc-tool-section h2{font-size:1rem;margin-bottom:8px;color:#5a7187}
.lc-tool-grid,.lc-history-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.lc-tool-grid button,.lc-history-grid button{
  min-width:0;padding:7px 3px;border:3px solid #dce8ef;border-radius:15px;background:#f8fbfd;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#536d84;font-weight:900;
}
.lc-tool-grid button span{font-size:1.2rem}.lc-tool-grid button.selected{border-color:#4d96ff;background:#e6f2ff;color:#236cb5;box-shadow:inset 0 -3px #b4d6f8}
.lc-history-grid button:active,.lc-tool-grid button:active{transform:translateY(2px)}.lc-history-grid button:disabled{opacity:.42;cursor:not-allowed}.lc-history-grid button b{font-size:.72rem}
.lc-palette{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.lc-swatch{min-width:46px!important;width:100%;height:48px;padding:4px;border:3px solid transparent;border-radius:15px;background:#eef3f6}
.lc-swatch span{display:block;width:100%;height:100%;border-radius:10px;background:var(--swatch);border:2px solid #0002;box-shadow:inset 0 3px 5px #fff6}
.lc-swatch.selected{border-color:#17202a;transform:translateY(-2px);box-shadow:0 4px 0 #17202a}.lc-swatch[data-colour="#FFFFFF"] span{border-color:#aab7c0}
.lc-export-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.lc-export-grid button{min-width:0;padding:8px 5px;border-radius:13px;background:#edf5fa;color:#49647c;font-weight:1000;border:2px solid #d7e4ec;box-shadow:0 3px 0 #c5d6e1}
.lc-export-grid .lc-save{grid-column:1/-1;background:linear-gradient(90deg,#ff7168,#ff9458);border-color:#e75950;color:#fff;box-shadow:0 5px 0 #c84740;font-size:1rem}
.lc-export-grid button:active{transform:translateY(3px);box-shadow:none}

.lc-gallery-count{min-width:52px;height:52px;display:grid;place-items:center;font-size:1.25rem;color:#694caf;background:#f0e8ff;border-color:#d9c8fb}
.lc-gallery-grid{width:min(1120px,100%);margin:12px auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.lc-gallery-card{min-width:0;padding:13px;border:3px solid #dbe7ef;border-radius:25px;background:#fff;box-shadow:0 7px 0 #cadbe5,var(--lc-shadow)}
.lc-gallery-preview{height:230px;border-radius:17px;overflow:hidden;background:#fffaf0}.lc-gallery-preview svg{width:100%;height:100%}
.lc-gallery-card>div:nth-child(2){padding:10px 5px}.lc-gallery-card small{font-weight:900;color:#e45e55}.lc-gallery-card h2{font-size:1.35rem}.lc-gallery-card p{font-size:.82rem;color:#76899b;font-weight:800}
.lc-gallery-card button,.lc-gallery-empty button{width:100%;padding:10px;border-radius:14px;background:#4d96ff;color:#fff;box-shadow:0 5px 0 #2c72b8;font-weight:1000}
.lc-gallery-empty{grid-column:1/-1;min-height:360px;padding:30px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:3px dashed #bacfdd;border-radius:28px;background:#fff}
.lc-gallery-empty>span{font-size:4rem;color:#845ec2}.lc-gallery-empty p{margin:5px 0 20px;color:#74889a;font-weight:800}.lc-gallery-empty button{width:auto;min-width:180px}

@media(max-width:1050px){
  .lc-art-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .lc-editor-layout{grid-template-columns:minmax(0,1fr) 290px}
  .lc-controls{padding:10px}.lc-palette{grid-template-columns:repeat(5,minmax(44px,1fr))}.lc-swatch{min-width:44px!important}
}
@media(max-width:760px){
  .lc-screen{padding:10px 10px 44px}
  .lc-library-head,.lc-editor-head{grid-template-columns:52px minmax(0,1fr) 52px;gap:7px;margin-bottom:12px}
  .lc-library-head h1,.lc-editor-head h1{font-size:clamp(1.55rem,8vw,2.15rem)}.lc-library-head p,.lc-editor-head p{font-size:.72rem;line-height:1.15}.lc-library-head small,.lc-editor-head small{font-size:.56rem}
  .lc-gallery-button{min-width:52px;width:52px;height:52px;padding:4px}.lc-gallery-button b{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .lc-library-hero{gap:8px;margin-bottom:22px;padding:12px 7px}.lc-library-hero>span{font-size:1.2rem}.lc-library-hero strong{font-size:1.05rem}.lc-library-hero p{font-size:.72rem}
  .lc-category-section>header{grid-template-columns:44px minmax(0,1fr);gap:8px}.lc-category-section>header>b{display:none}.lc-category-section h2{font-size:1.32rem}.lc-category-section header p{font-size:.72rem}
  .lc-art-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lc-art-card{min-height:205px;padding:7px;border-radius:19px}.lc-card-art{height:126px}.lc-art-card strong{font-size:.88rem}.lc-art-card small{font-size:.64rem}
  .lc-explore-banner{width:100%;min-height:56px;gap:5px;padding:5px;font-size:.75rem}.lc-explore-banner strong{padding:7px 9px}.lc-explore-banner small{display:none}
  .lc-editor-layout{display:flex;flex-direction:column;gap:12px}.lc-canvas-card,.lc-controls{width:100%;border-radius:22px}.lc-paper{border-radius:15px}.lc-editor .lc-status{font-size:.78rem}
  .lc-controls{display:grid;grid-template-columns:1fr;gap:10px}.lc-tool-section{padding-bottom:10px}.lc-tool-grid button{min-height:56px}.lc-palette{grid-template-columns:repeat(5,minmax(44px,1fr))}
  .lc-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lc-gallery-preview{height:180px}
}
@media(max-width:360px){
  .lc-art-grid{grid-template-columns:1fr 1fr}.lc-card-art{height:112px}.lc-art-card{min-height:192px}
  .lc-palette{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.lc-swatch{min-width:44px!important;height:46px;padding:3px}
  .lc-gallery-grid{grid-template-columns:1fr}.lc-gallery-preview{height:210px}
  .lc-export-grid button{font-size:.76rem}.lc-history-grid button b{font-size:.66rem}
}
@media(orientation:landscape) and (max-height:700px) and (min-width:761px){
  .lc-screen{padding-top:8px}.lc-editor-head{margin-bottom:5px}.lc-editor-head h1{font-size:1.65rem}.lc-editor-head p{display:none}.lc-explore-banner{margin-bottom:8px}
  .lc-editor-layout{grid-template-columns:minmax(0,1fr) 300px;gap:10px}.lc-controls{gap:7px;padding:9px}.lc-tool-section{padding-bottom:6px}.lc-tool-section h2{margin-bottom:4px}.lc-editor .lc-status{margin-top:6px}
}
@media print{
  body>*:not(#s-colouring-editor){display:none!important}#s-colouring-editor{display:block!important;background:#fff;padding:0}#s-colouring-editor .lc-editor-head,#s-colouring-editor .lc-explore-banner,#s-colouring-editor .lc-controls,#s-colouring-editor .lc-status{display:none!important}.lc-editor-layout{display:block;width:100%}.lc-canvas-card{border:0;box-shadow:none;padding:0}.lc-paper{border:0;width:100%;height:auto}
}
