 :root{
      --bg:#f6f8fc;
      --card:#ffffff;
      --text:#0f172a;
      --muted:#64748b;
      --line:rgba(15, 23, 42, .10);
      --shadow:0 10px 30px rgba(2, 8, 23, .10);
      --brand1:#0b1b33; /* AUTOMA */
      --brand2:#12407a;
      --brand3:#1d6df2;
      --radius:18px;
      --maxw:1000px;
    }

    html[data-theme="dark"]{
      --bg:#070b13;
      --card:#0b1220;
      --text:#e5e7eb;
      --muted:#9aa4b2;
      --line:rgba(226, 232, 240, .10);
      --shadow:0 12px 34px rgba(0, 0, 0, .40);
      --brand1:#0b1b33;
      --brand2:#0f2a55;
      --brand3:#2b7fff;
    }

    *{ box-sizing:border-box; }
    body{
      margin:0;
      font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
      background: radial-gradient(1200px 600px at 20% -10%, rgba(29,109,242,.14), transparent 60%),
                  radial-gradient(900px 500px at 110% 20%, rgba(29,109,242,.10), transparent 55%),
                  var(--bg);
      color:var(--text);
      padding-top: 72px; /* espaço do header fixo */
    }

    /* HEADER FIXO estilo app */
    .app-header{
      position:fixed; inset:0 0 auto 0;
      height:72px;
      display:flex; align-items:center;
      padding: 12px 14px;
      background: linear-gradient(135deg, var(--brand1), var(--brand2));
      color:#fff;
      z-index:50;
      box-shadow: 0 10px 26px rgba(2,8,23,.25);
    }
    .header-inner{
      width:min(var(--maxw), calc(100% - 20px));
      margin:0 auto;
      display:flex; align-items:center; gap:12px;
    }
    .logo{
      width:44px; height:44px;
      border-radius:14px;
      background: rgba(255,255,255,.14);
      border:1px solid rgba(255,255,255,.18);
      display:grid; place-items:center;
      overflow:hidden;
      flex:0 0 auto;
    }
    .logo img{ width:100%; height:100%; object-fit:cover; display:block; }
    .title-wrap{ min-width:0; flex:1; }
    .school{
      font-size:22px; letter-spacing:.2px;
	  font-weight:600;
      opacity:.92;
      margin:0;
      line-height:1.2;
      white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    }
    .page-title{
      margin:2px 0 0;
      font-size:15px;
      font-weight:400;
      line-height:1.2;
      white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    }
    .header-actions{ display:flex; gap:10px; align-items:center; }
    .icon-btn{
      width:42px; height:42px;
      border-radius:14px;
      border:1px solid rgba(255,255,255,.18);
      background: rgba(255,255,255,.10);
      color:#fff;
      display:grid; place-items:center;
      cursor:pointer;
      transition: transform .12s ease, background .12s ease;
      user-select:none;
    }
    .icon-btn:active{ transform: scale(.98); }
    .icon-btn:hover{ background: rgba(255,255,255,.14); }

    /* CONTEÚDO */
    .wrap{
      width:min(var(--maxw), calc(100% - 20px));
      margin: 14px auto 96px;
    }
    .card{
      background: var(--card);
      border:1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow:hidden;
    }
    .card-head{
      display:flex;
      gap:10px;
      align-items:flex-start;
      justify-content:space-between;
      padding: 14px 14px 10px;
      border-bottom: 1px solid var(--line);
    }
    .card-head h1{
      font-size:20px;
      margin:0;
      font-weight:900;
      letter-spacing:.2px;
    }
    .card-head p{
      margin:6px 0 0;
      color:var(--muted);
      font-size:13px;
      line-height:1.35;
    }
    .chip{
      font-size:12px;
      color:var(--muted);
      border:1px solid var(--line);
      padding:8px 10px;
      border-radius:999px;
      white-space:nowrap;
    }

    /* Imagem responsiva + zoom */
    .img-zone{
      padding: 12px;
    }
    .img-frame{
      border-radius: 14px;
      overflow:hidden;
      border:1px solid var(--line);
      background: rgba(0,0,0,.02);
    }
    html[data-theme="dark"] .img-frame{ background: rgba(255,255,255,.03); }
    .img-frame img{
      width:100%;
      height:auto;
      display:block;
      transform-origin: center top;
      transform: scale(var(--zoom, 1));
      transition: transform .12s ease;
    }

    .controls{
      display:flex;
      gap:10px;
      flex-wrap:wrap;
      padding: 12px 14px 14px;
      border-top: 1px solid var(--line);
      align-items:center;
      justify-content:space-between;
    }
    .btn{
      appearance:none;
      border:1px solid var(--line);
      background: transparent;
      color: var(--text);
      padding: 10px 12px;
      border-radius: 14px;
      font-weight:700;
      cursor:pointer;
      transition: transform .12s ease, background .12s ease;
    }
    .btn:hover{ background: rgba(29,109,242,.08); }
    .btn:active{ transform: scale(.99); }
    .range{
      display:flex; gap:10px; align-items:center;
      color: var(--muted);
      font-size:12px;
      flex:1;
      justify-content:flex-end;
      min-width: 260px;
    }
    input[type="range"]{
      width: 180px;
      accent-color: var(--brand3);
    }

    /* WhatsApp flutuante */
    .wa{
      position: fixed;
      right: 16px;
      bottom: 16px;
      width: 56px;
      height: 56px;
      border-radius: 18px;
      background: #25D366;
      color: #fff;
      display: grid;
      place-items: center;
      box-shadow: 0 14px 30px rgba(0,0,0,.25);
      z-index: 60;
      text-decoration: none;
      border: 1px solid rgba(255,255,255,.25);
    }
    .wa:active{ transform: scale(.99); }

    /* Footer */
    .foot{
      margin-top: 10px;
      color: var(--muted);
      font-size: 12px;
      text-align:center;
    }
	
	.wa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 999;
}

.wa-icon {
  width: 32px;   /* Ajuste conforme desejar */
  height: 32px;
}
