
:root{--paper:#f7f7f2;--white:#fff;--ink:#263c32;--muted:#71776e;--line:#e2e5da;--green:#304e3d;--lime:#dce6b5;--soft:#edf0e6;--serif:Georgia,'Times New Roman',serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.55 'Segoe UI',Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit}button,a,input,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #82995a;outline-offset:4px}svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.sidebar{position:fixed;width:252px;inset:0 auto 0 0;padding:40px 25px;background:#eeefe7;border-right:1px solid var(--line);display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;font-size:21px;line-height:1.2}.brand b{font-weight:450}.brand small{display:block;font-size:8px;letter-spacing:2px;margin-top:8px}.brand-icon{font:52px var(--serif);line-height:1;width:38px;text-align:center}.sidebar nav{margin-top:63px;display:grid;gap:10px}.sidebar nav a{display:flex;gap:12px;align-items:center;padding:13px 14px;border-radius:8px;color:#697263;font-size:14px}.sidebar nav a.active{background:var(--green);color:white}.count{margin-left:auto;border:1px solid #ffffff40;border-radius:5px;padding:0 6px;font-size:11px}.sidebar-bottom{margin-top:auto}.connection{display:flex;align-items:center;gap:7px;font-size:12px}.connection i{height:7px;width:7px;border-radius:50%;background:#66804d}.connection.offline i{background:#c18a3e}.sidebar-bottom p{font:italic 16px/1.6 var(--serif);color:#828879;margin:26px 0}.sidebar-bottom>small{font-size:8px;letter-spacing:1.3px;color:#8e9589}.workspace{margin-left:252px}header{height:90px;border-bottom:1px solid var(--line);padding:0 6%;display:flex;align-items:center;gap:18px}.header-title{font-size:12px;color:var(--muted);margin-right:auto}.prototype{font-size:9px;letter-spacing:1.5px;border:1px solid #d9ded0;padding:5px 10px;border-radius:4px}.icon-button{display:grid;place-items:center;background:transparent;border:0;color:var(--ink);width:40px;height:40px}main{max-width:1160px;padding:44px 6% 25px;margin:auto;min-height:calc(100dvh - 165px)}.eyebrow{font-size:10px;font-weight:600;letter-spacing:2px;color:#778366;text-transform:uppercase}.welcome{display:flex;align-items:end;justify-content:space-between;margin-bottom:27px;gap:16px}h1{font:normal clamp(30px,3vw,43px)/1.2 var(--serif);letter-spacing:-1px;margin:9px 0 10px}h2{font:normal 24px/1.25 var(--serif);margin:0 0 10px}h3{font-size:14px;margin:0 0 8px}p{margin:0 0 16px}.sub{color:var(--muted);font-size:13px}.date-label{font-size:11px;color:var(--muted);white-space:nowrap;padding-bottom:8px}.hero{border-radius:14px;overflow:hidden;background:var(--ink);color:white;display:grid;grid-template-columns:1.25fr 1fr;min-height:237px;margin-bottom:24px;position:relative}.hero-copy{padding:30px 34px;position:relative;z-index:1}.hero .eyebrow{color:#cfdbad;font-size:9px}.hero h2{font-size:32px;margin-top:13px;max-width:330px;letter-spacing:-.6px}.hero p{color:#c6d0c6;font-size:12px;max-width:290px;margin-bottom:20px}.button{border:0;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 18px;font-size:13px;font-weight:600;min-height:44px;background:var(--green);color:white}.button.light{background:var(--lime);color:var(--ink)}.button.secondary{background:white;border:1px solid var(--line);color:var(--ink)}.button.text{background:none;color:var(--ink);padding-left:0}.button.small{font-size:12px;min-height:36px;padding:8px 12px}.music-art{position:relative;overflow:hidden;background:radial-gradient(ellipse at 75% 70%,#71805d55,transparent 65%)}.music-art:before{content:'';position:absolute;width:240px;height:240px;border:1px solid #a8b99240;border-radius:50%;left:20px;top:9px;box-shadow:0 0 0 38px #a8b99208,0 0 0 76px #a8b99208}.staff{transform:rotate(-12deg);position:absolute;width:360px;top:87px;left:-15px;height:95px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 17px,#bed0a533 18px,#bed0a533 19px)}.music-note{position:absolute;font:146px/1 var(--serif);color:#dbe6b5;left:100px;top:41px;transform:rotate(-12deg)}.spark{position:absolute;color:#b5c699;font-size:27px;left:240px;top:45px}.hero-label{position:absolute;right:25px;bottom:20px;letter-spacing:2px;font-size:8px;color:#bbc8ae}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:32px}.stat{padding:19px 20px;border:1px solid var(--line);background:white;border-radius:10px;display:flex;gap:15px;align-items:center}.stat-icon{width:39px;height:39px;border-radius:9px;display:grid;place-items:center;background:var(--soft);color:#71815c}.stat strong{font:26px/1 var(--serif);display:block;margin-bottom:6px}.stat small{font-size:10px;color:var(--muted)}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:24px 0 14px}.section-heading h2{font-size:22px;margin:0}.section-heading a{font-size:11px;color:#6b795a}.card{background:white;border:1px solid var(--line);border-radius:11px;padding:25px}.empty{display:flex;align-items:center;gap:20px;min-height:129px}.empty>span{width:53px;height:57px;border-radius:10px;background:var(--soft);display:grid;place-items:center;flex-shrink:0}.empty p{font-size:12px;color:var(--muted);margin:0}.empty h3{font-size:13px}.local-note{display:flex;gap:10px;align-items:flex-start;margin-top:23px;font-size:11px;color:var(--muted)}.local-note svg{width:16px;flex-shrink:0}.mobile-nav{display:none}footer{padding:24px 6%;font-size:10px;color:#8b9185;display:flex;justify-content:space-between;border-top:1px solid var(--line);margin:25px 6% 0;padding-left:0;padding-right:0}footer span{font-family:var(--serif);font-size:12px}.steps{display:flex;gap:10px;margin:27px 0}.step{flex:1;padding-bottom:12px;border-bottom:3px solid var(--line);font-size:11px;color:var(--muted)}.step.active{border-color:var(--green);color:var(--green);font-weight:600}.step span{display:inline-grid;place-items:center;margin-right:7px;width:22px;height:22px;border-radius:50%;background:var(--soft)}.step.active span{background:var(--green);color:white}.form-card{max-width:760px;margin:auto}.form-card h2{font-size:26px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:24px}.field.full{grid-column:1/-1}label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}label em{color:#8b5d3b;font-style:normal}input,textarea{border:1px solid #d8ddcf;background:#fbfcf9;border-radius:7px;width:100%;padding:12px 13px;color:var(--ink);outline:none;font-size:16px}input:focus,textarea:focus{border-color:#5f7950;box-shadow:0 0 0 3px #dce6b555}textarea{min-height:103px;resize:vertical}input::placeholder,textarea::placeholder{color:#a0a596;font-size:13px}.field small{font-size:10px;color:var(--muted);display:block;margin-top:6px}.form-actions{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:22px;margin-top:27px;gap:12px}.save-status{font-size:10px;color:var(--muted)}.review{display:grid;gap:16px;margin-top:22px}.review dt{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}.review dd{margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.review div{border-bottom:1px solid var(--line);padding-bottom:13px}.record{display:flex;gap:15px;align-items:center;padding:18px 20px;background:white;border:1px solid var(--line);border-radius:9px;margin-bottom:10px}.record-date{width:46px;height:50px;background:var(--soft);border-radius:7px;text-align:center;display:grid;place-content:center;flex-shrink:0}.record-date strong{font:22px/1 var(--serif)}.record-date small{font-size:9px}.record-info{min-width:0;flex:1}.record h3{overflow-wrap:anywhere}.record p{font-size:11px;color:var(--muted);margin:0}.badge{font-size:9px;color:#637747;background:var(--soft);border-radius:4px;padding:4px 7px;display:inline-block}.record>button{border:0;background:none;color:var(--ink);min-width:40px;min-height:44px}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.help-grid .card{font-size:13px;color:var(--muted)}.help-grid h2{color:var(--ink);font-size:23px}.help-grid ol{padding-left:20px}.help-grid li{margin:10px 0}.notice{background:#f0f1e6;border:1px solid #dee3d0;padding:15px;border-radius:8px;font-size:12px;color:#687257}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:20px 0}.toolbar input{flex:1;min-width:190px;background:white}.success{text-align:center;padding:35px 15px}.success .success-icon{display:grid;place-items:center;width:65px;height:65px;background:var(--soft);border-radius:50%;margin:0 auto 23px}.success h1{font-size:36px}.success p{color:var(--muted);font-size:13px;max-width:400px;margin:0 auto 25px}.success .actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}#toast{position:fixed;bottom:25px;left:calc(50% + 100px);transform:translateX(-50%);background:var(--ink);color:white;padding:12px 20px;border-radius:9px;box-shadow:0 8px 30px #0002;z-index:100;display:none;font-size:12px;max-width:90%}dialog{width:min(560px,90vw);max-height:85dvh;border:1px solid var(--line);border-radius:15px;padding:28px;color:var(--ink);overscroll-behavior:contain}dialog::backdrop{background:#17291e80}dialog>button{margin-top:18px}.error{background:#fff0e7;color:#804827;padding:14px;border-radius:7px;font-size:13px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1450px){main{padding-top:55px}.hero{min-height:270px}.hero-copy{padding:36px 40px}.hero h2{font-size:37px;max-width:390px}.music-note{font-size:170px;top:42px}}
@media(max-width:1050px){.sidebar{width:210px;padding:32px 18px}.workspace{margin-left:210px}.hero{grid-template-columns:1.5fr 1fr}.hero-copy{padding:26px}.hero h2{font-size:29px}.music-note{left:40px}.spark{left:160px}.stat{padding:16px 12px;gap:10px}.date-label{display:none}.stat-icon{width:30px;height:35px}.stat small{font-size:9px}}
@media (max-width: 720px), (orientation: landscape) and (max-height: 500px) and (max-width: 1100px){.sidebar{display:none}.workspace{margin:0}header{height:64px;padding:0 22px;gap:9px}.header-title{font-family:var(--serif);font-size:16px;color:var(--ink)}.prototype{font-size:7px;letter-spacing:1px;padding:4px 6px}.icon-button{width:32px}main{padding:28px 20px 20px;min-height:calc(100dvh - 198px)}h1{font-size:33px}.welcome{margin-bottom:22px}.welcome .sub{font-size:12px}.hero{min-height:245px;grid-template-columns:1.7fr 1fr;margin-bottom:18px}.hero-copy{padding:26px 0 25px 24px}.hero h2{font-size:29px;width:240px;max-width:75vw}.hero p{max-width:235px;line-height:1.6}.music-art{position:absolute;right:0;width:130px;height:100%;opacity:.27;pointer-events:none}.music-note{left:10px;top:65px;font-size:130px}.hero-label{display:none}.stats{gap:8px;margin-bottom:25px}.stat{display:block;padding:16px 10px}.stat-icon{display:none}.stat strong{font-size:26px;margin-bottom:7px}.stat small{font-size:9px}.empty{padding:22px 16px;gap:14px}.empty>span{width:43px;height:49px}.empty p{font-size:11px}.section-heading h2{font-size:21px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:20;justify-content:space-around;background:#fff;padding:10px 8px calc(9px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}.mobile-nav a{display:grid;gap:4px;justify-items:center;font-size:9px;color:#8a9181;min-width:80px}.mobile-nav a.active{color:var(--green);font-weight:650}.mobile-nav svg{height:21px;width:21px}.workspace{padding-bottom:70px}footer{font-size:8px;margin:18px 20px 0;padding:20px 0}footer span{font-size:10px}.fields{grid-template-columns:1fr;gap:20px}.field.full{grid-column:auto}.card{padding:22px 18px}.steps{gap:8px}.step{font-size:10px}.step span{margin-right:3px;width:19px;height:19px}.form-actions{gap:7px}.button{font-size:12px;padding:12px 14px}.help-grid{grid-template-columns:1fr}.record{padding:15px 12px;gap:11px}.record h3{font-size:12px}.record p{font-size:10px}.record .badge{display:none}#toast{left:50%;bottom:90px;width:max-content;max-width:90%}.toolbar{gap:7px}.toolbar .button{font-size:10px}.review dd{font-size:13px}}


/* GEM 4.0: ícones e áreas de toque mais legíveis no celular. */
@media (max-width: 720px), (orientation: landscape) and (max-height: 500px) and (max-width: 1100px) {
  svg { width: 24px; height: 24px; }
  .icon-button { width: 44px; height: 44px; }
  .icon-button svg { width: 25px; height: 25px; }
  .mobile-nav {
    align-items: stretch;
    padding-top: 9px;
    padding-bottom: calc(9px + env(safe-area-inset-bottom));
  }
  .mobile-nav a {
    min-height: 54px;
    align-content: center;
    gap: 5px;
  }
  .mobile-nav a svg { width: 28px; height: 28px; }
  .button svg, .toolbar button svg, .record > button svg { width: 24px; height: 24px; }
}

/* GEM 4.0: navegação e ações mobile ampliadas (v2). */
@media (max-width: 720px), (orientation: landscape) and (max-height: 500px) and (max-width: 1100px) {
  .mobile-nav {
    padding: 8px 4px calc(10px + env(safe-area-inset-bottom));
    align-items: stretch;
  }
  .mobile-nav a {
    min-width: 0;
    min-height: 60px;
    flex: 1 1 0;
    gap: 6px;
    font-size: 11px;
    line-height: 1.2;
    align-content: center;
  }
  .mobile-nav a svg {
    width: 32px;
    height: 32px;
    stroke-width: 2;
  }
  .icon-button { width: 46px; height: 46px; }
  .icon-button svg { width: 26px; height: 26px; }
  .button svg, .toolbar button svg, .record > button svg {
    width: 26px;
    height: 26px;
    stroke-width: 2;
  }
  .workspace { padding-bottom: calc(95px + env(safe-area-inset-bottom)); }
}

/* Keep every desktop navigation item reachable on short windows. */
.sidebar { overflow-y: auto; }
.sidebar-bottom { padding-top: 24px; }
