@font-face {
 font-family:Sen;
 src:url('/assets/fonts/Sen-VariableFont_wght.ttf') format('truetype');
 font-weight:400 800;
 font-display:swap;
}
.cards-page main { max-inline-size:1180px; padding-inline:clamp(16px,3vw,40px); }
.maker, .card-studio { margin: 30px auto 60px; }
.maker-tools, .maker-groups, .maker-zones, .maker-color-controls, .maker-palette { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.maker-status { font-size:13px; color:#62635e; }
.maker-workspace { display:grid; grid-template-columns:minmax(280px,.95fr) minmax(0,1.05fr); gap:clamp(20px,3.2vw,44px); margin:24px 0; align-items:start; }
.maker-preview { position:sticky; top:calc(var(--navigation-height,60px) + 12px); }
.maker-stage { position:relative; isolation:isolate; clip-path:inset(-22px); width:100%; aspect-ratio:1; border:1px solid var(--line); background:var(--white); }
.maker-stage canvas { display:block; width:100%; height:100%; touch-action:none; }
.maker [hidden] { display:none; }
.maker-notice { position:absolute; inset:0; padding:clamp(16px,3vw,36px); display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:14px; }
.maker-notice h2, .maker-notice p { margin:0; }
.maker-notice h2 { font-size:clamp(20px,2.2vw,28px); }
.maker-notice-copy { overflow:auto; min-height:0; font-size:clamp(13px,1.2vw,16px); line-height:1.65; }
.maker-notice-copy p + p { margin-top:.7em; }
.maker .maker-confirm { align-self:flex-end; padding-inline:24px; background:var(--ink); color:white; }
.maker-selection { --frame-blue:#497bff; position:absolute; border:1px solid var(--frame-blue); pointer-events:none; }
.maker-corner { position:absolute; width:0; height:0; }
.maker-corner[data-corner="nw"] { --rotate-cursor:var(--rotate-nw); left:-1px; top:-1px; --zone-turn:0deg; --resize-cursor:var(--nwse,nwse-resize); }
.maker-corner[data-corner="ne"] { --rotate-cursor:var(--rotate-ne); right:-1px; top:-1px; --zone-turn:90deg; --resize-cursor:var(--nesw,nesw-resize); }
.maker-corner[data-corner="sw"] { --rotate-cursor:var(--rotate-sw); left:-1px; bottom:-1px; --zone-turn:-90deg; --resize-cursor:var(--nesw,nesw-resize); }
.maker-corner[data-corner="se"] { --rotate-cursor:var(--rotate-se); right:-1px; bottom:-1px; --zone-turn:180deg; --resize-cursor:var(--nwse,nwse-resize); }
.maker-selection .maker-handle {
 position:absolute; z-index:1; left:0; top:0; transform:translate(-50%,-50%); display:grid; place-items:center;
 width:14px; height:14px; min-height:0; padding:0; border:0; background:none;
 pointer-events:auto; touch-action:none; cursor:var(--resize-cursor);
}
.maker-handle::after { content:''; width:8px; height:8px; box-sizing:border-box; border:1.5px solid var(--frame-blue); background:white; }
.maker-rotate-zone { display:none; }
@media (any-hover:hover) and (any-pointer:fine) {
 .maker-rotate-zone {
  display:block; position:absolute; left:-21px; top:-21px; width:42px; height:42px;
  transform:rotate(var(--zone-turn)); clip-path:polygon(0 0,100% 0,100% 50%,50% 50%,50% 100%,0 100%);
  pointer-events:auto; touch-action:none; cursor:var(--rotate-cursor);
 }
}
@media (pointer:coarse) {
 .maker-selection .maker-handle { width:24px; height:24px; }
}
.maker-stage[data-transforming], .maker-stage[data-transforming] * { cursor:var(--drag-cursor); }
.maker button { background:var(--white); border:1px solid var(--line); min-height:36px; padding:7px 11px; font:inherit; font-size:13px; }
.maker button:not(:disabled):hover { border-color:#686962; }
.maker button[aria-pressed="true"], .maker .maker-download { background:var(--ink); color:white; border-color:var(--ink); }
.maker-groups .maker-download { margin-inline-start:auto; padding-inline:14px; }
.maker-groups .maker-info { padding:0; width:36px; display:grid; place-items:center; border:0; background:transparent; }
.maker-info span { display:grid; place-items:center; width:19px; height:19px; border:1.5px solid currentColor; border-radius:50%; font:italic 600 14px/1 Georgia,serif; }
.maker [inert] { opacity:.5; }
.maker-tools { margin:12px 0 6px; }
.maker-tools button:last-child { margin-inline-start:auto; }
.maker-status { min-height:1.5em; margin:6px 0; }
.maker-editor { min-width:0; }
.maker-groups { border-bottom:1px solid var(--line); padding-bottom:12px; }
.maker-panel { margin-top:16px; display:grid; grid-template-columns:minmax(94px,28%) minmax(0,1fr); gap:16px; align-items:start; }
.maker-categories { display:flex; flex-direction:column; gap:3px; align-self:stretch; contain:size; min-height:clamp(320px,64vh,680px); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:none; padding-right:8px; border-right:1px solid var(--line); }
.maker-categories::-webkit-scrollbar { display:none; }
.maker-categories h3, .maker-material-section h4 { margin:10px 0 4px; font-size:12px; font-weight:600; color:#64655f; }
.maker-categories h3:first-child, .maker-material-section:first-child h4 { margin-top:0; }
.maker-categories button { display:flex; flex:none; align-items:center; gap:6px; min-height:34px; padding:7px 6px; border:1px solid transparent; background:transparent; text-align:start; line-height:1.3; overflow-wrap:anywhere; }
.maker-categories button[aria-pressed="true"] { color:var(--ink); background:#e7e5de; border-color:var(--line); }
.maker-choices { min-width:0; }
.maker-choices-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.maker-choices-heading h3 { font-size:16px; margin:0; }
.maker-choices-heading button { min-height:32px; padding:3px 8px; }
.maker-materials { max-height:clamp(230px,45vh,560px); overflow-y:auto; overscroll-behavior:contain; }
.maker-material-section + .maker-material-section { margin-top:14px; }
.maker-result-options { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.maker-result-options > span { font-size:13px; }
.maker .maker-edit-result { padding-inline:2px; border:0; background:transparent; text-decoration:underline; text-underline-offset:.2em; }
.maker-value { white-space:pre-line; }
.maker-styles { display:grid; grid-template-columns:repeat(auto-fill,minmax(61px,1fr)); gap:6px; padding:2px; }
.maker-option { position:relative; display:grid; min-width:0; }
.maker-styles .maker-option > :first-child { min-width:0; width:100%; padding:4px; aspect-ratio:1; display:grid; place-items:center; overflow:hidden; }
.maker-styles button[aria-pressed="true"] { background:#eceae4; color:var(--ink); border:2px solid var(--ink); }
.maker-styles button img { max-width:100%; max-height:62px; object-fit:contain; }
.maker-styles .label-style { font-size:12px; overflow-wrap:anywhere; }
.maker .maker-unpick { display:none; position:absolute; top:0; right:0; transform:translate(50%,-50%); z-index:1; width:22px; height:22px; min-height:0; padding:0; border:0; background:transparent; color:var(--ink); place-items:center; }
.maker-unpick svg { display:block; width:100%; height:100%; }
@media (any-hover:hover) and (any-pointer:fine) {
 .maker-materials { padding:12px 12px 0 0; margin:-8px -12px 0 0; scroll-padding:12px 12px 0 0; }
 .maker .maker-unpick { display:grid; opacity:0; pointer-events:none; }
 .maker-option:hover .maker-unpick, .maker-option:has(:focus-visible) .maker-unpick { opacity:1; pointer-events:auto; }
}
.maker-color-panel { margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }
.maker-zones { flex:1 1 auto; font-size:13px; }
.maker-color-controls button { min-height:30px; padding:4px 8px; }
.maker-palette { padding:10px 3px 3px; gap:8px; }
.maker-palette .maker-swatch { width:26px; height:26px; min-height:0; padding:0; background:var(--swatch); }
.maker-palette .maker-swatch[aria-pressed="true"] { background:var(--swatch); outline:2px solid var(--ink); outline-offset:2px; }
@media (pointer:coarse) {
 .maker-palette .maker-swatch { width:32px; height:32px; }
}
@media(max-width:720px) {
 .maker, .card-studio { margin-top:16px; }
 .maker-panel { grid-template-columns:minmax(80px,29%) minmax(0,1fr); gap:10px; }
 .maker-categories { padding-right:4px; }
 .maker-categories button { font-size:12px; }
 .maker-workspace { grid-template-columns:1fr; gap:10px; }
 .maker-preview { position:static; }
 .maker-stage { width:min(100%,52svh); margin-inline:auto; }
 .maker-workspace { margin-top:12px; }
 .maker-groups { gap:5px; }
 .maker-groups button { padding-inline:8px; }
 .maker-tools { margin-top:8px; }
}

.cards-page .card-modes { justify-content:center; }
.home-opening.studio-card { display:block; inline-size:min(100%, var(--opening-card-width)); margin-inline:auto; padding:24px 0; }
