
.grid-shape-maker-root,.grid-shape-maker-root *{box-sizing:border-box}.grid-shape-maker-root{--navy:#1e3a5f;--gold:#d4af37;font-family:system-ui,Meiryo,sans-serif;color:#2c3e50;background:linear-gradient(135deg,#0ea5e9,#6366f1,#8b5cf6);height:100vh;height:100dvh;display:flex;flex-direction:column}.grid-shape-maker-root button,.grid-shape-maker-root input,.grid-shape-maker-root select{font:inherit}.grid-shape-maker-root button{cursor:pointer;border:0;border-radius:10px;min-height:44px;padding:8px 16px;background:#edf2f8;color:#1e3a5f;font-weight:700}.grid-shape-maker-root button:disabled{opacity:.4;cursor:default}.grid-shape-maker-root button:focus-visible,.grid-shape-maker-root input:focus-visible,.grid-shape-maker-root select:focus-visible{outline:3px solid #d4af37;outline-offset:3px}.grid-shape-maker-root header{height:66px;flex-shrink:0;background:var(--navy);color:white;display:flex;align-items:center;justify-content:space-between;padding:10px 20px;gap:12px}.grid-shape-maker-root h1{font-size:20px;margin:0;white-space:nowrap}.grid-shape-maker-root nav{display:flex;gap:6px}.grid-shape-maker-root nav button{background:#ffffff20;color:white;border-radius:25px}.grid-shape-maker-root nav button[aria-pressed=true]{background:var(--gold);color:#122641}.grid-shape-maker-root main{flex:1;min-height:0;padding:18px 90px 20px 18px;display:flex;flex-direction:column;gap:12px}.grid-shape-maker-root .options{display:flex;align-items:center;gap:9px;flex-wrap:wrap;background:white;border-radius:14px;padding:10px 14px;box-shadow:0 5px 20px #0001}.grid-shape-maker-root select{min-height:44px;border:1px solid #c6d2e0;border-radius:8px;padding:6px;background:white;max-width:100%}.grid-shape-maker-root .color{display:flex;align-items:center;gap:8px;font-size:14px}.grid-shape-maker-root input[type=color]{width:48px;height:44px;border:1px solid #c6d2e0;background:white;border-radius:8px;padding:3px}.grid-shape-maker-root .board{flex:1;min-height:220px;background:white;border-radius:16px;box-shadow:0 8px 24px #0002;display:flex;flex-direction:column;overflow:hidden}.grid-shape-maker-root .drawing{flex:1;min-height:0;padding:14px;display:flex;align-items:center;justify-content:center}.grid-shape-maker-root svg{width:100%;height:100%;touch-action:none;user-select:none}.grid-shape-maker-root .caption{padding:10px 15px;border-top:1px solid #eef2f7;display:flex;justify-content:space-between;gap:12px;font-size:14px;color:#5e7187;flex-wrap:wrap}.grid-shape-maker-root .toolbar{position:absolute;right:20px;bottom:20px;display:flex;flex-direction:column;gap:14px}.grid-shape-maker-root .toolbar button{height:56px;width:56px;border-radius:50%;padding:0;font-size:24px;display:grid;place-items:center;background:white;box-shadow:0 4px 14px #0004}.grid-shape-maker-root .toolbar .primary{background:var(--gold)}.grid-shape-maker-root .toolbar .danger{color:#b43e3e}.grid-shape-maker-root .toolbar button svg{width:25px;height:25px;pointer-events:none}.grid-shape-maker-root dialog{border:0;border-radius:18px;padding:24px;width:min(520px,calc(100vw - 24px));max-height:85dvh;color:#2c3e50;box-shadow:0 20px 70px #0005}.grid-shape-maker-root dialog::backdrop{background:#101e3c88}.grid-shape-maker-root dialog h2{margin:0 0 20px;font-size:22px}.grid-shape-maker-root .row{display:flex;align-items:center;gap:12px;justify-content:space-between;margin:12px 0}.grid-shape-maker-root input[type=number],.grid-shape-maker-root input[type=text]{border:1px solid #c6d2e0;border-radius:8px;padding:10px;width:100px;min-height:44px}.grid-shape-maker-root .names{display:grid;grid-template-columns:1fr 1fr;gap:10px}.grid-shape-maker-root .names label{display:flex;align-items:center;justify-content:space-between;gap:10px}.grid-shape-maker-root .names input{width:70px}.grid-shape-maker-root .note{font-size:13px;color:#60758e}.grid-shape-maker-root .dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.grid-shape-maker-root .gold{background:var(--gold)}.grid-shape-maker-root .error{color:#b43e3e;font-size:14px;min-height:20px}.grid-shape-maker-root .view-only .edit-control{display:none}.grid-shape-maker-root .view-only .options{display:none}@media(max-width:640px){.grid-shape-maker-root header{height:58px;padding:8px 10px;gap:6px}.grid-shape-maker-root h1{font-size:15px}.grid-shape-maker-root header button{padding:6px 10px;font-size:13px}.grid-shape-maker-root main{padding:10px 72px 12px 10px}.grid-shape-maker-root .options{padding:8px;gap:6px}.grid-shape-maker-root .options select{flex:1;min-width:130px}.grid-shape-maker-root .color{font-size:12px}.grid-shape-maker-root .toolbar{right:12px;bottom:12px;gap:10px}.grid-shape-maker-root .toolbar button{height:50px;width:50px}.grid-shape-maker-root .drawing{padding:5px}.grid-shape-maker-root .caption{font-size:12px}.grid-shape-maker-root .names{grid-template-columns:1fr}}@media print{.grid-shape-maker-root{background:white;height:95vh}.grid-shape-maker-root header,.grid-shape-maker-root .options,.grid-shape-maker-root .toolbar,.grid-shape-maker-root .caption{display:none}.grid-shape-maker-root main{padding:0}.grid-shape-maker-root .board{box-shadow:none;border-radius:0}}

/* Header controls wrap and keep explicit widths against theme form styles. */
.grid-shape-maker-root header{height:auto;min-height:66px;flex-wrap:wrap;justify-content:flex-start}
.grid-shape-maker-root header h1{flex:0 0 auto}
.grid-shape-maker-root header .options{flex:1 1 600px;min-width:0;max-width:100%;width:auto;margin:0;padding:0;display:flex;background:transparent;box-shadow:none;border-radius:0;flex-wrap:wrap;overflow:visible;gap:8px}
.grid-shape-maker-root header .options>*{flex:0 0 auto;max-width:100%;margin:0}
.grid-shape-maker-root header .options select{display:inline-block;flex:0 0 auto;width:160px;min-width:0;max-width:100%;margin:0;color:#1e3a5f}
.grid-shape-maker-root header .options [data-gsm="lineStyle"],.grid-shape-maker-root header .options #lineStyle{width:130px}
.grid-shape-maker-root header .options button{width:auto;white-space:nowrap;padding:8px 12px}
.grid-shape-maker-root header .color{display:inline-flex;width:auto;white-space:nowrap;align-items:center}
.grid-shape-maker-root header .color input[type=color]{flex:0 0 48px;width:48px;min-width:48px}
.grid-shape-maker-root header nav{flex:0 0 auto;margin-left:auto}
.grid-shape-maker-root header #full,.grid-shape-maker-root header [data-gsm="full"]{flex:0 0 44px;width:44px;padding:8px}
.grid-shape-maker-root [hidden]{display:none!important}
.grid-shape-maker-root.view-only .options,.grid-shape-maker-root.view-only .edit-control{display:none}
@media(max-width:1199px){
 .grid-shape-maker-root header{padding:8px 14px;gap:8px 12px}
 .grid-shape-maker-root header .options{order:5;flex-basis:100%;padding:3px 0}
}
@media(max-width:640px){
 .grid-shape-maker-root header{padding:8px 10px}
 .grid-shape-maker-root header .options{gap:7px}
 .grid-shape-maker-root header .options button{font-size:13px}
 .grid-shape-maker-root header .options select{font-size:13px;min-height:44px}
 .grid-shape-maker-root header .color{font-size:13px}
}

/* WordPress theme isolation and administrator bar height. */
.grid-shape-maker-root{position:relative;width:100%;max-width:none;isolation:isolate;line-height:1.5;overflow:hidden;margin:0}
.grid-shape-maker-root button{width:auto;box-shadow:none;text-transform:none;letter-spacing:normal;line-height:1.3}
.grid-shape-maker-root input,.grid-shape-maker-root select{margin:0;letter-spacing:normal}
.grid-shape-maker-root svg{display:block;max-width:none}
.grid-shape-maker-root h1,.grid-shape-maker-root h2,.grid-shape-maker-root h3{border:0;background:none;padding:0;letter-spacing:normal}
.grid-shape-maker-root h1::before,.grid-shape-maker-root h1::after,.grid-shape-maker-root h2::before,.grid-shape-maker-root h2::after,.grid-shape-maker-root h3::before,.grid-shape-maker-root h3::after{display:none}
.grid-shape-maker-root h1{color:inherit;line-height:1.3}
.grid-shape-maker-root dialog{background:white}
.grid-shape-maker-root [hidden]{display:none!important}
body.admin-bar .grid-shape-maker-root{height:calc(100vh - 32px);height:calc(100dvh - 32px)}
@media(max-width:782px){body.admin-bar .grid-shape-maker-root{height:calc(100vh - 46px);height:calc(100dvh - 46px)}}
.grid-shape-maker-root:fullscreen{height:100vh;height:100dvh}
