:root{
  --bg:#0f1112;
  /* slightly transparent card so the wall background subtly shows through */
  --card: rgba(15,19,21,0.45);
  --accent:#e7a63b;
  --muted:#98a1a6;
  /* thinner, more transparent glass overlay for controls */
  --glass: rgba(255,255,255,0.005);
}
*{box-sizing:border-box}
html,body,#app{height:100%;margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial}
body{
  /* photographic street wall background with a subtle dark overlay for readability
     using the uploaded wall image asset so the preview matches the mural surface */
  background:
    linear-gradient(rgba(5,6,7,0.6), rgba(5,6,7,0.6)),
    url("ChatGPT Image 25 jul 2026, 08_59_00.png") center/cover no-repeat;
  color:#e6eef2;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  /* ensure the wall fills behind the rounded card */
  background-attachment:fixed;
}
main{width:100%;max-width:980px;background:var(--card);border-radius:12px;padding:18px;box-shadow:0 10px 30px rgba(2,6,8,0.7)}
header{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
h1{margin:0;font-size:24px}
.hint{margin:0;color:var(--muted);font-size:14px}

.controls{display:block;background:var(--glass);padding:12px;border-radius:10px;margin-bottom:12px}
.controls label{display:block;font-size:16px;margin-bottom:10px}
textarea{width:100%;min-height:120px;padding:12px;border-radius:10px;border:1px solid rgba(255,255,255,0.04);background:transparent;color:inherit;resize:vertical}
input,select,textarea{font-size:16px}
.row{display:flex;gap:10px}
.row.small{gap:8px;margin-top:8px}
.row > label{flex:1}

.actions{display:flex;gap:10px;margin-top:10px;align-items:center}
button{background:var(--accent);border:none;padding:12px 18px;border-radius:10px;color:#081014;font-weight:700;cursor:pointer;font-size:16px}
button[disabled]{opacity:0.45;cursor:not-allowed}
#status{margin-left:8px;color:var(--muted);font-size:13px}

/* preview and canvas */
.preview{margin-top:8px}
.canvas{
  height:520px;
  border-radius:12px;
  /* let the page wall show through so the mural preview sits on the street-wall background */
  background: transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
  /* subtle border to separate preview from wall */
  border:1px solid rgba(255,255,255,0.05);
}
canvas#muralCanvas{max-width:100%;max-height:100%;display:block;height:auto;width:100%;}
.loader{position:absolute;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;background:rgba(2,6,8,0.5);backdrop-filter:blur(2px);inset:0;color:var(--muted)}
.hidden{display:none}
.spinner{width:48px;height:48px;border-radius:50%;border:5px solid rgba(255,255,255,0.06);border-top-color:var(--accent);animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
footer{margin-top:10px;color:var(--muted);font-size:13px;text-align:right}