/* 20261111a: Meme Maker */
/* 20261112b: Kalpurush (SIL OFL, served unmodified); all other fonts come from Google Fonts */
@font-face{font-family:'Kalpurush';src:url('/fonts/kalpurush.ttf') format('truetype');font-display:swap}
.me-credits{font-size:11px;color:var(--muted);text-align:center;margin:0;line-height:1.5}
.me-main{max-width:1240px;margin:0 auto;padding:22px 20px 48px}
.me-crumbs{font-size:13px;color:var(--muted);margin:0 0 6px}.me-crumbs a{color:#1F1B16;font-weight:600}
.me-head h1{font:700 clamp(28px,4vw,40px)/1.1 'Space Grotesk',sans-serif;color:#1F1B16;margin:0 0 6px;letter-spacing:-.02em}
.me-lead{margin:0 0 18px;color:#1F1B16;max-width:720px}
.me-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:22px;align-items:start}
.me-stage-wrap{position:sticky;top:12px}
.me-stage{background:#FFFFFF;border:1px solid #DDD7CE;border-radius:10px;min-height:360px;display:flex;align-items:center;justify-content:center;padding:14px;position:relative}
.me-stage.me-drop{outline:3px dashed #C83D00;outline-offset:-10px;background:#FFFFFF}
.me-stage canvas{display:block;max-width:100%;max-height:74vh;width:auto;height:auto;touch-action:none;cursor:default;box-shadow:0 2px 14px rgba(0,0,0,.12);background:#FFFFFF}
.me-stage canvas:focus{outline:none}
.me-empty{text-align:center;padding:40px 10px}
.me-empty-title{font:700 22px 'Space Grotesk',sans-serif;color:#1F1B16;margin:0 0 4px}
.me-empty-sub{color:var(--muted);margin:0 0 18px}
.me-hint{font-size:12px;color:var(--muted);margin:8px 2px 0}
.me-panel{display:flex;flex-direction:column;gap:12px}
.me-card{background:#FFFFFF;border:1px solid #DDD7CE;border-radius:10px;padding:14px}
.me-card h2{font:700 13px 'Space Grotesk',sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#1F1B16;margin:0 0 10px}
.me-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.me-card-head h2{margin:0}
.me-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.me-wrap{margin:10px 0}
.me-center{justify-content:center;text-align:center}
.me-btn{border:1px solid #DDD7CE;background:#F6F3EE;color:#1F1B16;font:700 13px 'DM Sans',sans-serif;padding:10px 14px;min-height:42px;border-radius:6px;cursor:pointer}
.me-btn:hover{background:#FFFFFF}
.me-btn:disabled{opacity:.45;cursor:not-allowed}
.me-primary{background:var(--green);border-color:#C83D00;color:#fff}.me-primary:hover{background:#C83D00}
.me-small{padding:7px 11px;min-height:36px;font-size:12px}
.me-danger{color:#b42318;border-color:#efc3bf;background:#fff4f3}.me-danger:hover{background:#ffe7e5}
.me-export{background:var(--lime);border-color:#DDD7CE;color:#000000;font-size:15px;min-height:52px;width:100%}.me-export:hover{background:#C83D00}
.me-seg{display:flex;border:1px solid #DDD7CE;border-radius:6px;overflow:hidden}
.me-seg button{flex:1;border:0;background:#FFFFFF;color:#1F1B16;font:700 12px 'DM Sans',sans-serif;padding:10px 8px;min-height:42px;cursor:pointer}
.me-seg button+button{border-left:1px solid #DDD7CE}
.me-seg button[aria-checked="true"],.me-seg button[aria-pressed="true"]{background:var(--green);color:#fff}
.me-seg-sm button{padding:7px 9px;min-height:36px}
.me-field{margin-top:12px}
.me-label{display:block;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:12px 0 5px}
.me-check{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#1F1B16;cursor:pointer}
.me-check input{width:17px;height:17px;accent-color:#C83D00}
.me-panel textarea,.me-panel select,.me-vault-bar input[type=search]{width:100%;box-sizing:border-box;border:1px solid #DDD7CE;border-radius:6px;padding:9px 10px;font:15px/1.4 'DM Sans','Hind Siliguri',sans-serif;background:#FFFFFF;color:#1F1B16}
.me-panel textarea{resize:vertical}
.me-panel input[type=range]{width:100%;accent-color:#C83D00}
.me-grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.me-colors{display:flex;gap:6px;align-items:center}
.me-colors input[type=color]{width:38px;height:36px;border:1px solid #DDD7CE;border-radius:6px;padding:2px;background:#FFFFFF}
.me-swatch{width:26px;height:26px;border-radius:50%;border:2px solid #DDD7CE;cursor:pointer;padding:0}
.me-swatch[data-color="#ffffff"]{background:#1E1813}.me-swatch[data-color="#000000"]{background:#000}.me-swatch[data-color="#ffe14d"]{background:#ffe14d}
.me-note{font-size:12px;color:var(--muted);margin:8px 0 0}
.me-note a{color:#1F1B16;font-weight:700}
.me-small-note{text-align:center;margin:0}
.me-vault{border:0;padding:0;width:min(1000px,94vw);max-height:88vh;border-radius:10px;background:var(--cream)}
.me-vault::backdrop{background:rgba(0,0,0,.55)}
.me-vault-shell{display:flex;flex-direction:column;max-height:88vh}
.me-vault-top{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid #DDD7CE}
.me-vault-top h2{font:700 20px 'Space Grotesk',sans-serif;color:#1F1B16;margin:0}
.me-x{border:0;background:transparent;font-size:28px;line-height:1;color:#1F1B16;cursor:pointer;width:44px;height:44px}
.me-vault-bar{display:flex;gap:14px;align-items:center;padding:12px 18px;flex-wrap:wrap}.me-vault-bar input[type=search]{flex:1;min-width:220px}
.me-vault-grid{list-style:none;margin:0;padding:4px 18px 14px;display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;overflow-y:auto}
.me-vault-grid button{display:block;width:100%;border:1px solid #DDD7CE;background:#FFFFFF;border-radius:8px;padding:0;text-align:left;cursor:pointer;overflow:hidden;color:#1F1B16}
.me-vault-grid button:hover,.me-vault-grid button:focus-visible{border-color:#DDD7CE;outline:2px solid #C83D00}
.me-vault-grid img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;background:#FFFFFF}
.me-vault-grid b{display:block;font-size:12px;line-height:1.3;padding:6px 8px 0}
.me-vault-grid span{display:block;font-size:11px;color:var(--muted);padding:2px 8px 8px}
.me-vault .me-center{padding:0 0 16px}
@media(max-width:900px){.me-layout{grid-template-columns:1fr}.me-card-text{order:-2}.me-card-layout{order:-1}.me-export{position:sticky;bottom:10px;z-index:5;box-shadow:0 6px 18px rgba(0,0,0,.18)}.me-stage-wrap{position:static}.me-stage{min-height:240px;padding:8px}.me-stage canvas{max-height:62vh}}

/* 20261202: black text, orange accents */
.me-body h1,.me-body h2,.me-body h3,.me-empty-title,.me-x{color:#1F1B16}
.me-btn,.me-btn.me-small{color:#1F1B16;border-color:#DDD7CE}

/* 20261202c: white text on C83D00 */
.me-primary,.me-primary:hover,.me-export:hover,.me-seg button[aria-checked="true"],.me-seg button[aria-pressed="true"]{color:#1F1B16}
.me-stat{margin:4px 0 12px;font-weight:700;color:#1F1B16}
.me-stat strong{color:#1F1B16}

/* 20261202f */
.me-lead a,.me-crumbs a,.me-credits a{text-decoration:none!important;font-weight:700}

/* 20261202g */
.me-lead a,.me-crumbs a,.me-credits a{color:#1F1B16}
.mark,.pulse,.status-dot,.button.lime,.rm-btn-alt{background:#FFFFFF!important}

/* 20261202h: light minimal + halftone */
:root{--ink:#1F1B16;--cream:#F6F3EE;--muted:#6B655E;--line:#DDD7CE;color-scheme:light}
html{background-color:#F6F3EE}
body{background-color:#F6F3EE;background-image:radial-gradient(circle at center,rgba(31,27,22,.06) 1.2px,transparent 1.7px),radial-gradient(circle at center,rgba(31,27,22,.06) 1.2px,transparent 1.7px);background-size:12px 12px;background-position:0 0,6px 6px;color:#1F1B16}

.me-primary,.me-primary:hover,.me-export:hover,.me-seg button[aria-checked="true"],.me-seg button[aria-pressed="true"]{color:#FFFFFF}
.me-stat strong{color:#C83D00}
.me-lead a,.me-crumbs a,.me-credits a{color:#1F1B16}

/* 20261202t */
.me-btn.me-primary{color:#fff!important}
.me-export:disabled{opacity:1!important;background:#E8DCCF!important;color:#7A736B!important;box-shadow:none!important}

/* 20261202v mobile tool tabs + standalone download */
.me-tabs{display:none}
@media (max-width:767px){
.me-stage-wrap{position:sticky;top:0;z-index:30;background:#F6F3EE;padding:8px 0 6px}
.me-stage{min-height:0;padding:8px}
.me-stage canvas{max-height:30vh}
.me-hint{font-size:11px;line-height:1.35;margin:6px 0 0}
.me-tabs{display:flex;gap:6px;margin-top:8px;padding:4px;background:#fff;border:1px solid #DDD7CE;border-radius:12px}
.me-tabs button{flex:1;min-height:44px;border:0;border-radius:9px;background:transparent;color:#1F1B16;font-family:inherit;font-weight:700;font-size:14px;cursor:pointer}
.me-tabs button[aria-selected="true"]{background:#C83D00;color:#fff}
body[data-me-tab="text"] .me-panel .me-card:not(.me-card-text),
body[data-me-tab="layout"] .me-panel .me-card:not(.me-card-layout),
body[data-me-tab="image"] .me-panel .me-card:not(.me-card-image){display:none}
.me-export{position:fixed!important;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:60;width:auto;min-height:52px;font-size:16px;box-shadow:0 6px 18px rgba(31,27,22,.25)}
.me-export:not(:disabled){background:#C83D00!important;color:#fff!important}
body{padding-bottom:84px}
}

/* 20261203a */
.me-vault-shell.me-picking .me-vault-bar,.me-vault-shell.me-picking .me-vault-grid,.me-vault-shell.me-picking .me-center{display:none!important}
.me-pick{flex:1;min-height:0;padding:16px;display:flex;flex-direction:column;align-items:center;gap:10px;overflow:auto;text-align:center}
.me-pick[hidden]{display:none!important}
.me-pick-back{align-self:flex-start;background:none;border:0;color:#6B655E;font:600 14px/1.2 inherit;font-family:inherit;cursor:pointer;padding:4px 0}
.me-pick-back:hover{color:#1F1B16;text-decoration:underline}
.me-pick-img{width:100%;max-width:520px;max-height:46vh;object-fit:contain;border-radius:10px;border:1px solid #DDD7CE;background:#fff}
.me-pick-title{margin:4px 0 0;font-size:18px;color:#1F1B16}
.me-pick-sub{margin:0;color:#6B655E;font-size:14px}
.me-pick-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;width:100%;max-width:520px;margin-top:6px}
.me-pick-actions .me-btn{flex:1 1 200px;min-height:46px}
