#meadowNameDialog{position:fixed;left:var(--name-window-left);top:var(--name-window-top);transform:translate(-50%,-50%);margin:0;width:min(var(--name-window-width),calc(var(--name-vw,100vw) - 24px));height:min(var(--name-window-height),calc(var(--name-vh,100dvh) - 20px));max-width:none;max-height:none;box-sizing:border-box;padding:calc(18px * var(--name-ui-scale,1)) calc(45px * var(--name-ui-scale,1)) calc(12px * var(--name-ui-scale,1));border:0;background:transparent url("../assets/images/ui/settings/panel_cream_wood_frame_leaves.webp") center/100% 100% no-repeat;color:#603016;font-family:Arial,sans-serif;overflow:hidden}
#meadowNameDialog::backdrop{background:#132a1dbb}
#meadowNameDialog form{zoom:var(--name-ui-scale,1);height:100%;display:flex;flex-direction:column;margin:0}
#meadowNameDialog header{display:flex;align-items:center;justify-content:center;min-height:48px;flex-shrink:0;background:url("../assets/images/ui/settings/plaque_wood_curved_leaves.webp") center/contain no-repeat}
#meadowNameDialog h2{margin:0;font-size:24px;text-align:center;color:#fff4d5;text-shadow:1px 2px 2px #603016}
#meadowNameDialog .name-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;text-align:center}
#meadowNameDialog .name-preview{display:flex;justify-content:center}
#meadowNameDialog .name-preview canvas{width:330px;height:198px;max-width:100%;object-fit:contain}
#meadowNameDialog .name-label{display:block;font-size:15px;font-weight:bold}
#meadowNameDialog input{display:block;box-sizing:border-box;width:25%;min-width:120px;margin:4px auto 8px;font:18px Arial;padding:7px 8px;border:2px solid #cdb578;border-radius:10px;background:#fffaf0;color:#352718;touch-action:auto}
#meadowNameDialog input:focus{outline:2px solid #75a369}
#meadowNameDialog .name-payment-title{font-size:20px;font-weight:bold}
#meadowNameDialog .name-payment-line{display:flex;justify-content:center;align-items:center;gap:14px;padding:5px 0 30px}
#meadowNameDialog .name-charge{font-size:22px;font-weight:bold}
#meadowNameDialog .name-payments{display:flex;gap:14px}
#meadowNameDialog .name-payments[hidden]{display:none}
#meadowNameDialog button{font:700 20px Arial;cursor:pointer;touch-action:manipulation}
#meadowNameDialog button:focus-visible{outline:3px solid #4182bd;outline-offset:2px}
#meadowNameDialog .name-payments button{position:relative;width:50px;height:50px;padding:4px;border:2px solid #cbbb92;border-radius:50%;background:#f4e6c2}
#meadowNameDialog .name-payments button[aria-pressed=true]{background:#ffe290;border-color:#6d9758;box-shadow:0 0 0 2px #a9c787}
#meadowNameDialog .name-payments img{width:100%;height:100%;object-fit:contain}
#meadowNameDialog .balance-tooltip{position:absolute;top:calc(100% + 5px);left:50%;min-width:36px;padding:3px 8px;border-radius:12px;box-sizing:border-box;color:white;background:#ba3936;opacity:0;transform:translate(-50%,-8px);transition:opacity .16s,transform .16s;pointer-events:none;font-size:15px;z-index:1}
#meadowNameDialog [data-color=blue] .balance-tooltip{background:#2879ba}
#meadowNameDialog [data-color=yellow] .balance-tooltip{background:#edbc3c;color:#603016}
#meadowNameDialog .name-payments button:hover .balance-tooltip,#meadowNameDialog .name-payments button:focus-visible .balance-tooltip{opacity:1;transform:translate(-50%,0)}
#meadowNameDialog .name-error{color:#a52823;font-size:14px;margin:3px 0}
#meadowNameDialog .name-error:empty{display:none}
#meadowNameDialog footer{display:flex;flex-direction:column;align-items:center;gap:3px;flex-shrink:0}
#meadowNameDialog .name-confirm{width:220px;height:62px;max-width:100%;padding:0;border:0;background:transparent url("../assets/images/ui/settings/button_green_pill_02.webp") center/100% 100% no-repeat;color:#fff4d5;text-shadow:1px 2px 2px #603016}
#meadowNameDialog .name-confirm:hover{filter:brightness(1.1)}
#meadowNameDialog .name-confirm:active{filter:brightness(.9);transform:scale(.98)}
#meadowNameDialog .name-dismiss{font-size:13px}
@media(hover:none){#meadowNameDialog .name-payments button[aria-pressed=true] .balance-tooltip{opacity:1;transform:translate(-50%,0)}}

/* Artwork and captions share the Canvas layout with the editor. Native input remains accessible. */
#meadowNameDialog.layout-driven{padding:0;background:transparent;overflow:visible}
#meadowNameDialog.layout-driven::backdrop{background:transparent}
#meadowNameDialog.layout-driven form{display:contents;zoom:1}
#meadowNameDialog.layout-driven header,#meadowNameDialog.layout-driven .name-body,#meadowNameDialog.layout-driven .name-label,#meadowNameDialog.layout-driven .name-payment,#meadowNameDialog.layout-driven .name-payment-line,#meadowNameDialog.layout-driven .name-payments,#meadowNameDialog.layout-driven footer{display:contents}
#meadowNameDialog.layout-driven h2,#meadowNameDialog.layout-driven .name-preview,#meadowNameDialog.layout-driven .name-label>span,#meadowNameDialog.layout-driven .name-payment-title,#meadowNameDialog.layout-driven .name-charge,#meadowNameDialog.layout-driven .name-dismiss{display:none}
#meadowNameDialog.layout-driven .name-payments[hidden]{display:none}
#meadowNameDialog.layout-driven .name-payments button[aria-pressed=true]{border-color:transparent;box-shadow:0 0 10px 4px #b4e677,0 0 24px 8px #b4e67770}

#meadowNameDialog input{border:3px solid #c9954d;box-shadow:inset 0 2px 5px #60301622,0 1px 0 #fff8df;border-radius:10px}
#meadowNameDialog .name-payments button{border-radius:12px}
#meadowNameDialog .name-cancel{padding:0;border:0;background:transparent;color:transparent;cursor:pointer}
#meadowNameDialog .name-cancel:hover{filter:brightness(1.06)}
#meadowNameDialog .name-cancel:focus-visible{outline:3px solid #4182bd;outline-offset:2px;border-radius:20px}
