:root{color-scheme:dark;--bg:#0d1a1c;--panel:#102023;--panel-soft:#162b2d;--line:#294143;--muted:#9eb3b3;--text:#edf5f3;--teal:#6de1c7;--teal-dark:#194c43;--mono:ui-monospace,SFMono-Regular,Consolas,monospace;--sans:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-family:var(--sans);font-size:16px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,select,input{font:inherit}button,a,select,input{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}button,select{color:inherit}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid var(--teal);outline-offset:4px}a{color:inherit}button svg{width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}h1,h2,p,figure{margin:0}.skip-link{position:absolute;top:-100px;left:12px;z-index:5;padding:10px;background:var(--teal);color:var(--bg)}.skip-link:focus{top:12px}
.app-shell{max-width:1800px;margin:auto}.topbar{height:78px;padding:0 30px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:26px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:21px;font-weight:690;letter-spacing:-.5px}.brand b{color:var(--teal);font-weight:500}.brand-mark{display:grid;place-items:center;width:38px;height:38px;background:#193c35;border:1px solid #336b5c;border-radius:11px}.brand-mark svg{width:22px;height:22px;fill:none;stroke:var(--teal);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.free-label{font-size:12px;font-family:var(--mono);letter-spacing:1px;color:var(--muted)}.header-print{margin-left:auto}.button{border-radius:8px;min-height:45px;padding:11px 17px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:630;font-size:14px;transition:background .18s,transform .18s;border:1px solid transparent}.button:not(:disabled):active{transform:translateY(1px)}.button-outline{border-color:#3c5758;background:#14282b}.button-outline:not(:disabled):hover{background:#203b3c;border-color:#71a397}.button-primary{color:#0a2c25;background:var(--teal);border-color:var(--teal);box-shadow:0 3px 16px #2ae6ac0b}.button-primary:not(:disabled):hover{background:#9cf1d8;border-color:#9cf1d8}
.app-body{display:grid;grid-template-columns:342px minmax(0,1fr);min-height:calc(100vh - 126px)}.sidebar{background:var(--panel);border-right:1px solid var(--line);padding:30px 23px 26px;display:flex;flex-direction:column}.eyebrow{font-size:12px;letter-spacing:1.65px;font-family:var(--mono);color:var(--muted);font-weight:500}.sidebar-intro h1{font-size:23px;letter-spacing:-.6px;line-height:1.35;margin-top:8px;margin-bottom:27px;font-weight:650}.control-section{margin-bottom:25px}.control-section h2{font-size:14px;font-weight:620;display:flex;align-items:center;gap:10px}.step{font-size:12px;font-family:var(--mono);color:var(--teal)}.category-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:13px}.category{border:1px solid var(--line);background:#122426;border-radius:8px;min-height:74px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;font-size:14px;transition:background .15s,border-color .15s}.category>span{font-size:24px;line-height:1}.category:hover{background:#1d3334}.category.active{background:#1a3832;border-color:#5bbda4;color:#9af0d4}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.selection-count{font-size:12px;color:var(--muted)}.control-hint{font-size:13px;color:var(--muted);margin-top:8px;line-height:1.45}.motif-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:13px}.motif{position:relative;min-width:0;border:1px solid var(--line);border-radius:8px;padding:7px 6px 8px;background:#152b2d;text-align:center;transition:background .15s,border-color .15s}.motif:hover{background:#213c3c}.motif.active{border-color:#6ad9bb;background:#214137}.motif canvas{display:block;width:100%;aspect-ratio:1;height:auto;border-radius:5px;background:#f5faf7;padding:5px}.motif-name{display:block;font-size:13px;line-height:1.3;margin-top:7px;overflow-wrap:anywhere}.motif-check{position:absolute;top:4px;right:4px;width:18px;height:18px;border-radius:50%;background:var(--teal);color:#12352d;display:none;font-size:13px;font-weight:700;line-height:18px}.motif.active .motif-check{display:block}.difficulty-options{display:flex;gap:6px;margin-top:13px}.difficulty{padding:11px 5px 9px;flex:1;min-width:0;border:1px solid var(--line);border-radius:8px;background:#152b2d;text-align:center}.difficulty>span:last-child{display:block}.difficulty b{font-size:13px;font-weight:580;display:block;line-height:1.3}.difficulty small{font-size:12px;color:var(--muted);display:block;margin-top:4px;line-height:1.3}.difficulty-bars{display:flex;align-items:flex-end;justify-content:center;gap:3px;height:18px;margin-bottom:8px}.difficulty-bars i{height:8px;width:5px;border-radius:2px;background:#78938e}.difficulty-bars i:nth-child(2){height:12px}.difficulty-bars i:nth-child(3){height:16px}.difficulty.active{border-color:#5bbda4;background:#1a3832}.difficulty.active .difficulty-bars i{background:var(--teal)}.difficulty.active b{color:#a1f2d8}.checkbox-label{display:flex;align-items:center;gap:9px;margin-top:16px;cursor:pointer;font-size:14px;color:#c1d1d0;line-height:1.5}.checkbox-label input{accent-color:var(--teal);width:16px;height:16px;flex-shrink:0;margin:0}.final-settings{border-top:1px solid var(--line);padding-top:19px;margin-bottom:23px}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.setting-row:last-child{margin-bottom:0}.setting-row label{font-size:14px;color:#c2d0cf}select{background:#172c2f;border:1px solid #365052;border-radius:6px;min-height:37px;padding:6px 27px 6px 10px;max-width:100%;font-size:14px;cursor:pointer}.setting-row select{width:132px}.generate-area{margin-top:auto}.generate-area .button{width:100%;min-height:49px;font-size:15px}.generate-note{margin-top:11px;font-size:12px;color:var(--muted);text-align:center;line-height:1.5}
.workspace{padding:31px 32px 24px;background:radial-gradient(ellipse at 100% 0%,#1a363730,transparent 70%),#122325;min-width:0}.workspace-top{display:flex;align-items:center;justify-content:space-between;gap:14px}.workspace-top h2{font-size:29px;font-weight:640;letter-spacing:-.7px;margin-top:8px;line-height:1.25}.ready-badge{border:1px solid #356858;background:#1b382f;color:#a8e1c8;padding:7px 10px;font-size:12px;white-space:nowrap;border-radius:6px}.workspace-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:19px;margin-bottom:22px}.workspace-toolbar p{font-size:13px;font-family:var(--mono);color:var(--muted)}.text-button{border:0;padding:7px 0;background:transparent;color:#acd0c5;font-size:14px;display:inline-flex;align-items:center;gap:8px}.text-button:not(:disabled):hover{color:var(--teal)}.text-button svg{width:17px;height:17px}.paper-spread{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}.paper-card{min-width:0}.paper-card figcaption{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:12px}.paper-label{font-size:14px;font-weight:570;display:flex;align-items:center;gap:9px}.paper-label>svg{width:16px;height:16px;fill:none;stroke:#dbe8e1;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.paper-meta{font-size:10px;font-family:var(--mono);letter-spacing:1px;color:#94aead}.swatch-group{display:flex;gap:3px}.swatch-group i{width:8px;height:13px;border-radius:2px;background:#f2bb72}.swatch-group i:nth-child(2){background:#9dda91}.swatch-group i:nth-child(3){background:#f29194}.paper{position:relative;background:white;border-radius:3px;overflow:hidden;box-shadow:0 10px 26px #03141660,0 0 0 1px #ffffff0d;line-height:0}.paper canvas{width:100%;height:auto;display:block}.paper-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;font-size:14px;color:#48625b;line-height:1.5;background:#fff}.paper-loading[hidden]{display:none}.spinner{width:24px;height:24px;border:2px solid #e4eeea;border-top-color:#3bbda1;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.output-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:24px;margin-top:22px;border-top:1px solid var(--line);flex-wrap:wrap}.print-settings{display:flex;gap:11px;align-items:center}.print-settings label{font-size:14px;color:var(--muted)}.print-settings select{min-height:43px;max-width:230px}.output-actions{display:flex;gap:9px}.status-message{font-size:14px;line-height:1.5;color:#bde3d5;min-height:0;margin-top:12px}.status-message:empty{margin-top:0}.status-message.error{padding:13px;border-radius:7px;background:#3c2323;color:#ffd0c5;border:1px solid #71504a}.workspace-bottom{margin-top:24px;display:flex;justify-content:space-between;align-items:center;gap:15px}.workspace-bottom p{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);line-height:1.5}.workspace-bottom p svg{width:16px;height:16px;fill:none;stroke:#b4c2a5;stroke-width:1.7;flex-shrink:0}.workspace-bottom>span{font-family:var(--mono);font-size:11px;color:#839f9e;white-space:nowrap}.footer{height:48px;display:flex;justify-content:space-between;align-items:center;padding:0 30px;font-size:12px;border-top:1px solid var(--line);color:#9aafad}.print-root{display:none}.noscript{padding:20px;background:#512a26;color:white}
@media(min-width:1500px){.workspace{padding:35px 48px}.paper-spread{gap:32px}.paper-card{max-width:510px;width:100%;justify-self:center}.paper-spread{max-width:1090px;margin:auto}.workspace-toolbar,.output-toolbar,.workspace-bottom{max-width:1090px;margin-left:auto;margin-right:auto}}
@media(max-width:1200px){.app-body{grid-template-columns:305px minmax(0,1fr)}.sidebar{padding:27px 17px}.workspace{padding:29px 23px}.paper-spread{gap:17px}.paper-meta{display:none}.workspace-top h2{font-size:25px}.workspace-bottom>span{display:none}.output-toolbar{gap:16px}.print-settings{gap:8px}.output-actions{margin-left:auto}.free-label{font-size:11px;letter-spacing:.5px}.difficulty b{font-size:12px}}
@media(max-width:900px){.topbar{padding:0 20px;height:70px;gap:14px}.free-label{display:none}.app-body{grid-template-columns:275px minmax(0,1fr)}.sidebar{padding:25px 14px}.sidebar-intro h1{font-size:21px}.category{font-size:13px}.motif-grid{gap:6px}.motif-name{font-size:12px}.difficulty-options{flex-direction:column;gap:6px}.difficulty{display:flex;align-items:center;gap:10px;text-align:left;padding:9px 12px}.difficulty>span:last-child{display:flex;justify-content:space-between;align-items:center;flex:1;gap:9px}.difficulty-bars{margin:0;width:20px;flex-shrink:0}.difficulty small{margin:0}.workspace{padding:25px 20px}.workspace-top{align-items:flex-start;flex-direction:column;gap:12px}.workspace-top h2{font-size:24px}.paper-spread{grid-template-columns:1fr}.paper-card{max-width:410px;width:100%;justify-self:center}.workspace-toolbar{flex-wrap:wrap}.print-settings{flex-wrap:wrap}.output-actions{width:100%}.output-actions .button{flex:1}.workspace-bottom{margin-top:20px}.footer{padding:0 20px}}
@media(max-width:650px){.topbar{padding:0 16px;height:68px}.brand{font-size:18px;gap:9px}.brand-mark{width:32px;height:32px;border-radius:9px}.header-print{min-height:37px;padding:8px 10px;font-size:13px}.header-print svg{width:16px;height:16px}.app-body{display:flex;flex-direction:column}.sidebar{border-right:0;border-bottom:1px solid var(--line);padding:24px 19px}.sidebar-intro h1{font-size:23px;margin-bottom:23px}.control-section{margin-bottom:22px}.category-tabs{gap:9px}.category{font-size:15px;min-height:74px}.motif-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.motif canvas{max-height:90px;aspect-ratio:1;object-fit:contain}.motif{padding:9px}.motif-name{font-size:14px}.difficulty-options{flex-direction:row;gap:8px}.difficulty{display:block;padding:12px 7px;text-align:center}.difficulty>span:last-child{display:block}.difficulty-bars{margin:0 auto 8px}.difficulty b{font-size:14px}.difficulty small{font-size:12px;margin-top:5px}.setting-row select{width:155px}.control-hint{font-size:14px}.generate-note{font-size:13px}.workspace{padding:25px 19px}.workspace-top{flex-direction:row;align-items:center;gap:10px}.workspace-top .eyebrow{font-size:10px;letter-spacing:1.2px}.workspace-top h2{font-size:23px}.ready-badge{font-size:11px;padding:6px 7px;white-space:normal;text-align:center;max-width:100px}.workspace-toolbar{margin:17px 0 23px}.paper-spread{gap:24px}.paper-card figcaption{margin-bottom:10px}.paper-meta{display:block;font-size:9px}.output-toolbar{margin-top:22px;padding-top:21px}.print-settings{width:100%;justify-content:space-between}.print-settings select{flex:1;max-width:235px}.output-actions{gap:10px}.workspace-bottom p{font-size:13px;align-items:flex-start}.footer{height:auto;min-height:65px;gap:8px;padding:14px 19px;flex-wrap:wrap;font-size:12px}}
@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition:none!important;scroll-behavior:auto!important}}
@media print{html,body{margin:0!important;padding:0!important;background:white!important;color:black!important;color-scheme:light}.app-shell,.skip-link,.noscript{display:none!important}.print-root{display:block!important}.print-sheet{height:277mm;width:190mm;break-after:page;page-break-after:always;display:flex;align-items:center;justify-content:center;overflow:hidden}.print-sheet:last-child{break-after:auto;page-break-after:auto}.print-sheet img{display:block;width:190mm;height:auto;max-height:277mm;object-fit:contain}.print-root.landscape .print-sheet{width:277mm;height:190mm}.print-root.landscape .print-sheet img{width:277mm;max-height:190mm}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
