:root{
  --bg: #f5f6fa;
  --panel: #ffffff;
  --accent: #4f46e5;
  --muted: #6b7280;
}
*{box-sizing:border-box}
body,html{
    height:100%;
    margin:0;
    font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.app{
    display:flex;
    flex-direction:column;
    height:100vh;
    background:var(--bg);
}

.toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:10px 14px;
    background:var(--panel);
    box-shadow:0 1px 4px rgba(0,0,0,.06);
}

.toolbar .controls{
    display:flex;
    gap:8px;
    align-items:center;
}

.toolbar label{
    display:flex;
    flex-direction:column;
    font-size:12px;
    color:var(--muted);
    font-weight:600;
}

.toolbar input[type="color"], 

.toolbar input[type="range"]{
    margin-left:6px;
}

.toolbar button{
    background:transparent;
    border:1px solid #e6e9f2;
    padding:6px 10px;
    border-radius:8px;
    cursor:pointer;
}

.toolbar button:hover{
    box-shadow:0 1px 6px rgba(0,0,0,.08);
}

.title{
    font-weight:700;
    color:var(--muted);
}

.canvas-wrap{
    flex:1;
    padding:12px;
}
canvas{
    width:100%;
    height:100%;
    display:block;
    border-radius:8px;
    box-shadow:0 6px 24px rgba(16,24,40,.06);
    background:white;
}

.hint{
    padding:8px 14px;
    font-size:13px;
    color:var(--muted);
    background:transparent;
    text-align:center;
}

@media (max-width:640px){
  .toolbar{
    flex-direction:column;
    gap:8px;
    align-items:stretch;
}
  .toolbar .controls{
    flex-wrap:wrap;
}
}

.custom-link {
    margin-right: auto;
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(38, 50, 56, 0.3);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    font-family: Arial, sans-serif;
  }

  .custom-link:hover {
    background: linear-gradient(45deg, #2575fc, #6a11cb);
    box-shadow: 0 6px 20px rgba(38, 50, 56, 0.5);
    text-decoration: none;
  }